2002-11-26 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f09cffaa
AC
12002-11-26 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
4 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
5 * gdbarch.c: Re-generate.
6
e92b0cc9
AC
72002-11-26 Andrew Cagney <ac131313@redhat.com>
8
9 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
10 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
11 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
12 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
13 pc_in_call_dummy_at_entry_point.
14 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
15 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
16 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
17 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
18 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
19 pc_in_call_dummy_on_stack.
20 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
21 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
22 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
23 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
24 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
25
b4b88177
AC
262002-11-26 Andrew Cagney <ac131313@redhat.com>
27
28 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
29 pc_in_call_dummy_before_text_end
30 (deprecated_pc_in_call_dummy_after_text_end): Rename
31 pc_in_call_dummy_after_text_end.
32 (deprecated_pc_in_call_dummy_on_stack): Rename
33 pc_in_call_dummy_on_stack.
34 (deprecated_pc_in_call_dummy_at_entry_point): Rename
35 pc_in_call_dummy_at_entry_point.
36 * m68k-tdep.c (m68k_gdbarch_init): Update.
37 * s390-tdep.c (s390_gdbarch_init): Update.
38 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
39 * vax-tdep.c (vax_gdbarch_init): Update.
40 * sparc-tdep.c (sparc_gdbarch_init): Update.
41 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
42 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
43 * i386-tdep.c (i386_gdbarch_init): Update.
44 * frv-tdep.c (frv_gdbarch_init): Update.
45 * cris-tdep.c (cris_gdbarch_init): Update.
46 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
47 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
48 (deprecated_pc_in_call_dummy_after_text_end)
49 (deprecated_pc_in_call_dummy_on_stack)
50 (deprecated_pc_in_call_dummy_at_entry_point): Update.
51 * alpha-tdep.c (alpha_gdbarch_init): Update.
52
eb784848
DJ
532002-11-25 Daniel Jacobowitz <drow@mvista.com>
54
55 * acconfig.h (HAVE_PREAD64): Add.
56 * configure.in: Check for pread64.
57 * config.in: Regenerated.
58 * configure: Regenerated.
59 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
60 * linux-proc.c (linux_proc_xfer_memory): New function.
61 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
62
933c6fe4
DC
632002-11-25 David Carlton <carlton@math.stanford.edu>
64
65 * dwarf2read.c (scan_partial_symbols): Descend into namespace
66 pdi's with no name.
67
158a8022
AC
682002-11-25 Andrew Cagney <ac131313@redhat.com>
69
70 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
71 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
72
481d0f41
JB
732002-11-25 Jim Blandy <jimb@redhat.com>
74
e8289572
JB
75 * symfile.c (init_objfile_sect_indices): New function.
76 (default_symfile_offsets): Move the section-index-initializing
77 stuff into init_objfile_sect_indices, and call that.
78
b29c9944
JB
79 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
80 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
81
13de58df
JB
82 * symfile.c (syms_from_objfile): Adjust indentation.
83
481d0f41
JB
84 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
85 || info_verbose isn't true.
86
7d6a26a7
AC
872002-11-24 Andrew Cagney <ac131313@redhat.com>
88
89 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
90 default to get_frame_base.
91 * gdbarch.h, gdbarch.c: Regenerate.
92 * arch-utils.c (default_frame_address): Delete function.
93 * arch-utils.h (default_frame_address): Delete declaration
94
6abe1021
PM
952002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
96
97 * varobj.c (find_frame_addr_in_frame_chain):
98 Use get_frame_base instead of FRAME_FP,
99 obvious fix.
100
c193f6ac
AC
1012002-11-19 Andrew Cagney <ac131313@redhat.com>
102
103 * frame.h (FRAME_FP): Delete macro.
104 (get_frame_base): New function declaration.
105 * frame.c (get_frame_base): New function.
106 (get_frame_id): Use ->frame.
107 (frame_find_by_id): Rewrite to use get_frame_id.
108 * blockframe.c: Use get_frame_base instead of FRAME_FP.
109 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
110 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
111 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
112 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
113 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
114 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
115
e5d2af14
AC
1162002-11-24 Andrew Cagney <ac131313@redhat.com>
117
118 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
119
931d12c6
AC
1202002-11-24 Andrew Cagney <ac131313@redhat.com>
121
122 * frame.c (set_unwind_by_pc): Revert change below, use
123 PC_IN_CALL_DUMMY.
124 (get_prev_frame): Ditto.
125
5e0f933e
AC
1262002-11-24 Andrew Cagney <ac131313@redhat.com>
127
128 * dummy-frame.c (pc_in_dummy_frame): New function.
129 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
130 (find_dummy_frame): Update comment.
131 (generic_pop_current_frame): Use get_frame_type.
132 * dummy-frame.h (pc_in_dummy_frame): Declare.
133 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
134 (create_new_frame): Use pc_in_dummy_frame.
135 (get_prev_frame): Use pc_in_dummy_frame.
136 (frame_saved_regs_register_unwind): Use get_prev_frame.
137 (deprecated_generic_get_saved_register): Use get_prev_frame.
138
7d8547c9
AC
1392002-11-23 Andrew Cagney <ac131313@redhat.com>
140
141 * blockframe.c (find_frame_addr_in_frame_chain): Move function
142 from here ...
143 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
144 (varobj_create): Note that frame ID should be used.
145 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
146
0225421b
AC
1472002-11-23 Andrew Cagney <ac131313@redhat.com>
148
149 * breakpoint.c: Include "gdb_assert.h".
150 (deprecated_frame_in_dummy): Assert that generic dummy frames are
151 not being used.
152 * Makefile.in (breakpoint.o): Update dependencies.
153 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
154 deprecated_frame_in_dummy.
155 * stack.c (print_frame_info_base): Ditto.
156 (frame_info): Ditto.
157 (print_frame_info_base): Ditto. Delete dead code.
158
32eeb91a
AS
1592002-11-23 Andreas Schwab <schwab@suse.de>
160
161 * Makefile.in (m68k_tdep_h): Define.
162 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
163 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
164 * m68k-tdep.c: Move register number enum ...
165 * m68k-tdep.h: ... to this new file and rename the constants from
166 E_* to M68K_*. All uses changed.
167 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
168 * abug-rom.c: Include "m68k-tdep.h". Use
169 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
170 * cpu32bug-rom.c: Likewise.
171 * dbug-rom.c: Likewise.
172 * m68k-tdep.c: Likewise.
173 * m68klinux-nat.c: Likewise.
174 * remote-est.c: Likewise.
175 * rom68k-rom.c: Likewise.
176 * config/m68k/tm-linux.h: Likewise.
177
9648bac8
AC
1782002-11-23 Andrew Cagney <ac131313@redhat.com>
179
180 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
181 dummy frame initialization code.
182 * mips-tdep.c (mips_gdbarch_init): Ditto.
183
91a175b3
CF
1842002-11-22 Christopher Faylor <cgf@redhat.com>
185
186 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
187 attach will hang.
188
f4ded5b1
AC
1892002-11-22 Andrew Cagney <ac131313@redhat.com>
190
191 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
192 to default_frame_address.
193 * gdbarch.h, gdbarch.c: Re-generate.
194
195 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
196 or frame_locals_address to default_frame_address.
197 * m68k-tdep.c (m68k_gdbarch_init): Update.
198 * i386-tdep.c (i386_gdbarch_init): Update.
199 * frv-tdep.c (frv_gdbarch_init): Update.
200 * sh-tdep.c (sh_gdbarch_init): Update.
201 * v850-tdep.c (v850_gdbarch_init): Update.
202 * sparc-tdep.c (sparc_gdbarch_init): Update.
203 * mips-tdep.c (mips_gdbarch_init): Update.
204 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
205 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
206 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
207
208 * cris-tdep.c (cris_frame_args_address): Delete function.
209 (cris_frame_locals_address): Delete function.
210 (cris_gdbarch_init): Do not set frame_args_address or
211 frame_locals_address.
212
f7c1e0f3
MS
2132002-11-22 Michael Snyder <msnyder@redhat.com>
214
215 * thread-db.c (thread_db_load): Tell the user what's going on
216 if dlopen fails on libthread_db.
217
03dac896
AS
2182002-11-23 Andreas Schwab <schwab@suse.de>
219
220 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
221 invariant return values.
222
7a67d0fe
AS
2232002-11-22 Andreas Schwab <schwab@suse.de>
224
225 * valops.c (value_slice): Move declaration of `offset' to avoid
226 warning.
227
5633f842
CF
2282002-11-22 Christopher Faylor <cgf@redhat.com>
229
230 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
231 (struct so_stuff): Add end_addr field.
232 (register_loaded_dll): Calculate and store end address of loaded dll.
233 (solib_address): New function.
234 (child_solib_loaded_library_pathname): Pass carefully constructed
235 section info to safe_symbol_file_add rather than ignoring it.
236 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
237 DLL is loaded.
238 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
239 (child_create_inferior): Fix a compiler warning.
240 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
241 (solib_address): Declare new function.
242
d85fe7f7
AS
2432002-11-22 Andreas Schwab <schwab@suse.de>
244
245 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
246 and FPS registers.
247
8308e54c
DJ
2482002-11-21 Daniel Jacobowitz <drow@mvista.com>
249
250 * maint.c (_initialize_maint_cmds): Fix typo. From
251 Francesco Potorti` <pot@gnu.org>.
252
8997bd5e
AC
2532002-11-21 Andrew Cagney <cagney@redhat.com>
254
255 * mips-tdep.c (mips_dump_tdep): Delete references to
256 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
257 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
258 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
259 * printcmd.c (build_address_symbolic): Delete calls to
260 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
261 (address_info): Ditto.
262 Fix PR gdb/773.
263
4e87b832
KD
2642002-11-19 Klee Dienes <kdienes@apple.com>
265 Adam Fedor <fedor@gnu.org>
266
267 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
268 the ability to explicitly specify the quote characters and word
269 break characters; if NULL is specified for either, use the old
270 behavior of using the characters used by the completer.
271 (skip_chars): New function. Convenience wrapper around
272 skip_quoted_chars to provide the original skip_chars behavior.
273 * completer.h (skip_quoted_chars): Add prototype.
274
9ba8d803
AC
2752002-11-19 Andrew Cagney <ac131313@redhat.com>
276
277 Problems reported by Paul Eggert.
278 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
279
0a595803
AS
2802002-11-19 Andreas Schwab <schwab@suse.de>
281
282 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
283 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
284 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
285 (m68k_linux_frame_saved_pc): Move to ...
286 * m68klinux-tdep.c: ... here. New file.
287 * Makefile.in (m68klinux-tdep.o): Add dependencies.
288 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
289
e8afa4d7
AF
2902002-11-19 Adam Fedor <fedor@gnu.org>
291
292 * objc-exp.y: Revert to old skip_quoted usage.
293
a76c9d72
AF
2942002-11-19 Adam Fedor <fedor@gnu.org>
295
296 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
297 (objc_lang_h): Define.
298 (YYFILES): Add objc-exp.tab.c.
299 (local-maintainer-clean): Remove objc-exp.tab.c.
300 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
301
fd0e9d45
PM
3022002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
303
304 * p-exp.y (typecast rule): Add automatic dereference of
305 pascal classes if needed.
306 (THIS): Set current_type.
307 Automatically dereference pascal classes.
308 (typebase rule): Add ^typebase recognition.
309
82eeeb94
AF
3102002-11-18 Adam Fedor <fedor@gnu.org>
311
312 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
313 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
314 (op_name): Handle OP_OBJC_SELF.
315 * Makefile.in (expprint.o): Add additional depends.
316
646df18d
AF
3172002-11-18 Adam Fedor <fedor@gnu.org>
318
319 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
320 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
321 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
322 * objc-exp.y: Likewise.
323
379b85df
AF
3242002-11-18 Adam Fedor <fedor@gnu.org>
325
326 * gdb/parser-defs.h: (struct objc_class_str): New structure
327 for parsing ObjC classes.
328
85cf597a
AC
3292002-11-18 Andrew Cagney <ac131313@redhat.com>
330
331 * stack.c (frame_relative_level): Copy function from here ...
332 * frame.c (frame_relative_level): ...to here.
333
5a203e44
AC
3342002-11-18 Andrew Cagney <ac131313@redhat.com>
335
336 * frame.h (enum frame_type): Define.
337 (get_frame_type): Declare.
338 (struct frame_info): Add field `type'. Delete field
339 signal_handler_caller.
340 (deprecated_set_frame_signal_handler_caller): Declare.
341 * frame.c (get_frame_type): New function.
342 (deprecated_set_frame_type): New function.
343 (create_new_frame): Set the frame's type.
344 (get_prev_frame): Similar.
345 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
346 * s390-tdep.c: Ditto.
347 * m68klinux-nat.c: Ditto.
348 * ns32k-tdep.c: Ditto.
349 * x86-64-linux-tdep.c: Ditto.
350 * vax-tdep.c: Ditto.
351 * rs6000-tdep.c: Ditto.
352 * ppc-linux-tdep.c: Ditto.
353 * i386-interix-tdep.c: Ditto.
354 * mips-tdep.c: Ditto.
355 * m68k-tdep.c: Ditto.
356 * hppa-tdep.c: Ditto.
357 * ia64-tdep.c: Ditto.
358 * cris-tdep.c: Ditto.
359 * arm-tdep.c: Ditto.
360 * alpha-tdep.c: Ditto.
361 * i386-tdep.c: Ditto.
362 * stack.c: Ditto.
363 * ada-lang.c: Ditto.
364 * blockframe.c: Update.
365 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
366 deprecated_set_frame_type instead of signal_handler_caller.
367 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
368 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
369 * breakpoint.h: Delete FIXME suggesting get_frame_type.
370
bf4ae8b2
KD
3712002-11-18 Klee Dienes <kdienes@apple.com>
372
373 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
374
a672ef13
KD
3752002-11-18 Klee Dienes <kdienes@apple.com>
376
377 * buildsym.c (pop_context): Add comment.
378
0c5e171a
KD
3792002-11-18 Klee Dienes <kdienes@apple.com>
380
381 * buildsym.h (pop_context): Convert to function, defined in
382 buildsym.c.
383 * buildsym.c: Include gdb_assert.h.
384 (pop_context): Implement as C function. Add check for stack
385 underflow.
386 * dbxread.c (process_one_symbol): Complain and stop processing
387 that symbol if we are already at the top of the context stack for
388 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
389 when processing N_RBRAC.
390
8a1f4c4c
DJ
3912002-11-16 Daniel Jacobowitz <drow@mvista.com>
392
393 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
394 define.
395 (struct target_waitstatus): Add opaque definition.
396 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
397 * exec.c (init_exec_ops): Likewise.
398 * fork-child.c (clone_and_follow_inferior): Remove.
399 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
400 * inferior.h (clone_and_follow_inferior): Remove prototype.
401 * infrun.c (follow_fork_mode_both): Remove.
402 (follow_fork_mode_kind_names): Remove commented out "both".
403 (follow_inferior_fork): Remove follow_fork_mode_both support.
404 * inftarg.c (child_clone_and_follow_inferior): Remove.
405 (child_post_follow_inferior_by_clone): Remove.
406 (init_child_ops): Don't set to_clone_and_follow_inferior
407 or to_post_follow_inferior_by_clone.
408 * target.c (default_clone_and_follow_inferior): Remove.
409 (cleanup_target): Don't set to_clone_and_follow_inferior
410 or to_post_follow_inferior_by_clone.
411 (find_default_clone_and_follow_inferior): Remove.
412 (init_dummy_target): Don't set to_clone_and_follow_inferior.
413 (debug_to_clone_and_follow_inferior): Remove.
414 (debug_to_post_follow_inferior_by_clone): Remove.
415 (setup_target_debug): Don't set to_clone_and_follow_inferior
416 or to_post_follow_inferior_by_clone.
417 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
418 and to_post_follow_inferior_by_clone.
419 (child_clone_and_follow_inferior): Remove prototype.
420 (child_post_follow_inferior_by_clone): Remove prototype.
421 (target_clone_and_follow_inferior): Remove macro.
422 (target_post_follow_inferior_by_clone): Remove macro.
423 (find_default_clone_and_follow_inferior): Remove prototype.
424
47932f85
DJ
4252002-11-16 Daniel Jacobowitz <drow@mvista.com>
426
427 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
428 inferior_has_vforked, and inferior_has_execd instead of
429 target_has_forked, target_has_vforked, and target_has_execd.
430 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
431 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
432 (CHILD_WAIT): Define.
433 (child_wait): Add prototype.
434 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
435 Add prototype.
436 (hpux_has_vforked): Likewise, from child_has_vforked.
437 (hpux_has_execd): Likewise, from child_has_execd.
438 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
439 (not_same_real_pid, child_wait): New, copied from inftarg.c.
440 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
441 and hpux_has_syscall_event instead of the target hooks.
442 * infrun.c (inferior_has_forked, inferior_has_vforked)
443 (inferior_has_execd): New functions.
444 * inftarg.c (not_same_real_pid): Remove.
445 (child_wait): Remove references to not_same_real_pid,
446 target_has_forked, target_has_vforked, target_has_execd,
447 and target_has_syscall_event.
448 (child_has_forked, child_has_vforked, child_has_execd)
449 (child_has_syscall_event): Remove.
450 (init_child_ops): Remove references to child_has_forked,
451 child_has_vforked, child_has_execd, and child_has_syscall_event.
452 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
453 (hpux_has_vforked): Likewise, from child_has_vforked.
454 (hpux_has_execd): Likewise, from child_has_execd.
455 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
456 * target.c (cleanup_target): Remove references to
457 to_has_forked, to_has_vforked, to_has_execd, and
458 to_has_syscall_event.
459 (update_current_target): Likewise.
460 (setup_target_debug): Likewise.
461 (debug_to_has_forked): Remove.
462 (debug_to_has_vforked): Remove.
463 (debug_to_has_execd): Remove.
464 (debug_to_has_syscall_event): Remove.
465 * target.h (struct target_ops): Remove to_has_forked.
466 to_has_vforked, to_has_execd, and to_has_syscall_event.
467 (child_has_forked, child_has_vforked, child_has_execd)
468 (child_has_syscall_event): Remove prototypes.
469 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
470 prototypes.
471 (target_has_forked, target_has_vforked, target_has_execd)
472 (target_has_syscall_event): Remove macros.
473
4088142a
DJ
4742002-11-16 Daniel Jacobowitz <drow@mvista.com>
475
476 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
477 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
478 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
479 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
480 * target.c (cleanup_target): Remove reference to
481 to_can_follow_vfork_prior_to_exec.
482 (update_current_target): Likewise.
483 (debug_to_can_follow_vfork_prior_to_exec): Remove.
484 (setup_target_debug): Remove reference to
485 to_can_follow_vfork_prior_to_exec.
486 * target.h (struct target_ops): Remove
487 to_can_follow_vfork_prior_to_exec.
488 (child_can_follow_vfork_prior_to_exec): Remove prototype.
489 (target_can_follow_vfork_prior_to_exec): Remove definition.
490 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
491 define.
492 * infrun.c (follow_vfork_when_exec): Remove.
493 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
494 (follow_exec): Likewise.
495 (handle_inferior_event): Likewise.
496 (keep_going): Likewise.
497
18cde8d5
AC
4982002-11-15 Andrew Cagney <cagney@redhat.com>
499
500 * frame.c (generic_unwind_get_saved_register): Make static.
501 * frame.h (generic_unwind_get_saved_register): Delete declaration.
502 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
503 defaults to generic_unwind_get_saved_register.
504 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
506 * frv-tdep.c (frv_gdbarch_init): Ditto.
507 * i386-tdep.c (i386_gdbarch_init): Ditto.
508 * s390-tdep.c (s390_gdbarch_init): Ditto.
509 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
510 * v850-tdep.c (v850_gdbarch_init): Ditto.
511 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
512 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
513 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
514
a6b063af
AC
5152002-11-15 Andrew Cagney <cagney@redhat.com>
516
517 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
518 i386-tdep.c.
519
f407986f
AC
5202002-11-15 Andrew Cagney <cagney@redhat.com>
521
522 * frame.h (sigtramp_saved_pc): Delete declaration.
523 * blockframe.c (sigtramp_saved_pc): Delete function.
524 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
525 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
526 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
527 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
528
f18c5a73
AC
5292002-11-15 Andrew Cagney <ac131313@redhat.com>
530
531 * frame.c (frame_pc_unwind): New function.
532 (frame_saved_regs_pc_unwind): New function.
533 (frame_register_unwind): Pass unwind_cache instead of
534 register_unwind_cache.
535 (set_unwind_by_pc): Add unwind_pc parameter, set.
536 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
537 (get_prev_frame): Ditto.
538 * frame.h (frame_pc_unwind_ftype): Declare.
539 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
540 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
541 (frame_pc_unwind): Declare.
542 * dummy-frame.c (dummy_frame_pc_unwind): New function.
543 (struct dummy_frame): Add comment mentioning that values are for
544 previous frame.
545 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
546 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
547 (generic_file_frame_chain_valid): Ditto.
548 * stack.c (frame_info): Ditto.
549
d9285969 5502002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
551
552 * linespec.c (locate_first_half): New function.
553 (decode_line_1): Move code into locate_first_half.
554
d741b867
AC
5552002-11-15 Andrew Cagney <ac131313@redhat.com>
556
557 * complaints.h: Add comment explaining how to eliminate a
558 deprecated_complain call.
24382c5c 559 * complaints.h: Fix spelling errors.
d741b867 560
82d03c99
DC
5612002-11-15 David Carlton <carlton@math.stanford.edu>
562
563 * printcmd.c: Remove #include "disasm.h".
564
c97eb5d9
AC
5652002-11-14 Andrew Cagney <ac131313@redhat.com>
566
567 * frame.h: Move the most relevant interface functions to the start
568 of the file.
569
524d7c18
AC
5702002-11-14 Andrew Cagney <ac131313@redhat.com>
571
572 * regcache.h (deprecated_registers): Rename registers.
573 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
574 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
575 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
576 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
577 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
578 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
579 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
580 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
581 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
582 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
583 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
584 * v850ice.c: Update.
585
6411e720
AC
586Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
587
588 * utils.c (gdb_realpath): Add comment mentioning realpath with a
589 NULL buffer.
590
73937e03
AC
5912002-11-13 Andrew Cagney <cagney@redhat.com>
592
593 * regcache.h (deprecated_read_register_bytes): Rename
594 read_register_bytes.
595 (deprecated_write_register_bytes): Rename write_register_bytes.
596 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
597 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
598 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
599 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
600 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
601 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
602 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
603 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
604 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
605 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
606 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
607 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
608 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
609 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
610
fb0cd46e
JB
6112002-11-13 Jim Blandy <jimb@redhat.com>
612
613 * findvar.c (read_var_value): Doc fix.
614
2d28509a
AC
6152002-11-13 Andrew Cagney <cagney@redhat.com>
616
617 * regcache.c (struct regcache): Replace passthough_p with
618 readonly_p.
619 (regcache_xmalloc): Initialize readonly_p.
620 (build_regcache): Initialize readonly_p.
621 (regcache_save): New function.
622 (regcache_restore): New function.
623 (regcache_cpy): Re-implement using regcache_save and
624 regcache_restore.
625 (regcache_raw_read): Update.
626 (regcache_cooked_read): When a read-only cache, checked for cached
627 pseudo register values.
628 (regcache_raw_write): Assert that the cache is not read-only.
629 Remove code handling a non-passthrough cache.
630 * regcache.h (regcache_save): Declare.
631 (regcache_restore): Declare.
632
067df2e5
AC
6332002-11-13 Andrew Cagney <cagney@redhat.com>
634
635 * regcache.c (struct regcache_descr): Add fields
636 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
637 (init_legacy_regcache_descr): Compute the size of a cooked
638 register cache and then assign that to sizeof_raw_registers. Set
639 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
640 (init_legacy_regcache_descr): Ditto.
641
51b1fe4e
AC
6422002-11-13 Andrew Cagney <cagney@redhat.com>
643
644 * regcache.c (register_buffer): Move to near start of file, update
645 description.
646 (regcache_raw_read): Use.
647 (regcache_raw_write): Use.
648 (struct regcache): Rename raw_registers to registers and
649 raw_register_valid_p to register_valid_p.
650 (regcache_xmalloc): Update.
651 (regcache_xfree): Update.
652 (register_buffer): Update.
653 (regcache_cpy): Update.
654 (regcache_cpy_no_passthrough): Update.
655 (regcache_valid_p): Update.
656 (deprecated_grub_regcache_for_registers): Update.
657 (deprecated_grub_regcache_for_register_valid): Update.
658 (set_register_cached): Update.
659 (regcache_raw_write): Update.
660
80b4c677
PM
6612002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
662
663 * p-exp.y (name_not_typename): Use copy_name to
664 set current_type variable for fields of THIS.
665
0f3fafde
DJ
6662002-11-12 Daniel Jacobowitz <drow@mvista.com>
667
668 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
669 * monitor.c (init_base_monitor_ops): Likewise.
670 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
671 * remote-array.c (init_array_ops): Likewise.
672 * remote-e7000.c (init_e7000_ops): Likewise.
673 * remote-es.c (init_es1800_ops): Likewise.
674 (init_es1800_child_ops): Likewise.
675 * remote-rdp.c (init_remote_rdp_ops): Likewise.
676 * remote-sim.c (init_gdbsim_ops): Likewise.
677 * remote-st.c (init_st2000_ops): Likewise.
678 * sol-thread.c (init_sol_core_ops): Likewise.
679 (init_sol_thread_ops): Likewise.
680 * v850ice.c (init_850ice_ops): Likewise.
681 * win32-nat.c (init_child_ops): Likewise.
682 * wince.c (init_child_ops): Likewise.
683
82c0260e
AC
6842002-11-12 Andrew Cagney <ac131313@redhat.com>
685
686 * utils.c (gdb_realpath): Make rp a constant pointer.
687
70d35819
AC
6882002-11-12 Andrew Cagney <ac131313@redhat.com>
689
690 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
691 a constant buffer; cannonicalize_file_name(); realpath() with a
692 pathconf() defined buffer, xstrdup().
693
9835a8b0
AC
6942002-11-12 Andrew Cagney <ac131313@redhat.com>
695
696 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
697 to hang2.C; hang3.c to hang3.C.
698
3f47be5c
EZ
6992002-11-11 Elena Zannoni <ezannoni@redhat.com>
700
701 * findvar.c (read_var_value): Reenable TLS code.
702
7032002-11-11 Elena Zannoni <ezannoni@redhat.com>
704 Jim Blandy <jimb@redhat.com>
705
706 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
707 * target.c (update_current_target): Add
708 to_get_thread_local_address.
709 * target.h (to_get_thread_local_address): Export.
710 (target_get_thread_local_address): Define.
711 (target_get_thread_local_address_p): Define.
712 * thread-db.c: Include solib-svr4.h.
713 (td_thr_tls_get_addr_p): Define.
714 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
715 (thread_db_get_thread_local_address): New function.
716 (init_thread_db_ops): Initialize to_get_thread_local_address.
717 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
718 * configure: Regenerate.
719 * config.in: Regenerate.
720
636b1a6d
DC
7212002-11-11 David Carlton <carlton@math.stanford.edu>
722
723 * linespec.c (set_flags): New function.
724 (decode_line_1): Move code into set_flags.
725
44fe14ab
DC
7262002-11-11 David Carlton <carlton@math.stanford.edu>
727
728 * linespec.c (decode_line_1): Move chunks of code to separate
729 functions.
730 (initialize_defaults): New function.
731 (decode_indirect): New function.
732
e6f181f5
AC
7332002-11-11 Andrew Cagney <ac131313@redhat.com>
734
8971b011
AC
735 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
736 instead of void_code_ptr.
737 (sigtramp_saved_pc): Ditto.
738
e6f181f5
AC
739 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
740 i386_fp_regnum_p.
741
01ad7f36
DJ
7422002-11-10 Daniel Jacobowitz <drow@mvista.com>
743
744 * gdbtypes.h (struct main_type): Move artificial flag out of
745 loc. New member of ``struct field'' named static_kind. Reduce
746 overloaded meaning of bitsize.
747 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
748 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
749 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
750
751 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
752 new fields.
753 (template_to_fixed_record_type, template_to_static_fixed_type)
754 (to_record_with_fixed_variant_part): Likewise.
755 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
756 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
757 * dwarfread.c (struct_type, enum_type): Likewise.
758 * hpread.c (hpread_read_enum_type)
759 (hpread_read_function_type, hpread_read_doc_function_type)
760 (hpread_read_struct_type): Likewise.
761 * mdebugread.c (parse_symbol): Likewise.
762
bf1e52be
AC
7632002-11-10 Andrew Cagney <ac131313@redhat.com>
764
765 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
766 * stack.c (print_frame_info_base): Update.
767 (print_frame_info_base, frame_info): Update.
768 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
769 (sparc_frame_saved_pc): Update.
770 * ada-lang.c (find_printable_frame): Update.
771 * breakpoint.c (deprecated_frame_in_dummy): Update.
772
ce556f85
MK
7732002-11-09 Mark Kettenis <kettenis@gnu.org>
774
775 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
776 defined.
777 (regmap): Extend to cover all registers.
778 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
779 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
780 definitions.
781 (fetch_register, sore_register): Simplify.
782 (old_fetch_inferior_registers, old_store_inferior_registers):
783 Remove functions.
784 (cannot_fetch_register, cannot_store_register): Change
785 implementation to use regmap array to decide which registers
786 cannot be fetched/stored. This removes $orig_eax from the
787 registers that cannot be fetched/stored.
788 (fetch_inferior_registers): Call fetch_register directly instead
789 of calling old_fetch_inferior_registers.
790 (store_inferior_registers): Call store_register directly instead
791 of calling old_store_inferior_registers.
792 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
793 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
794 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
795
932bb524
KD
7962002-11-09 Klee Dienes <kdienes@apple.com>
797
798 * i387-tdep.c (i387_supply_register): When called with NULL as a
799 buffer, mark the register as not provided (to mirror the behavior
800 of supply_register).
801 (i387_supply_fxsave): Ditto.
802 (i387_supply_fsave): Ditto (inherits the behavior from
803 i387_supply_register).
804
ebe68b27
KD
8052002-11-09 Klee Dienes <kdienes@apple.com>
806
807 * blockframe.c (sigtramp_saved_pc): Use
808 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
809 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
810 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
811
15220c65
AC
8122002-11-09 Andrew Cagney <ac131313@redhat.com>
813
814 * frame.c (get_prev_frame): Test prev_p to identify a previously
815 unwound frame. Initialize prev_p.
816 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
817 comment.
818
95adb866
AC
8192002-11-09 Andrew Cagney <ac131313@redhat.com>
820
821 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
822 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
823 more comments. Zap dead code.
824
e71ecd70
MK
8252002-11-09 Mark Kettenis <kettenis@gnu.org>
826
827 * infcmd.c (print_vector_info, print_float_info): Move code that
828 checks whether the target has any registers and whether there is a
829 selected frame up, such that it is also used if a target provides
830 multi-arch definitions of these functions.
831
c525330d
AC
8322002-11-08 Andrew Cagney <ac131313@redhat.com>
833
72bdd927
AC
834 * Makefile.in (DESTDIR): Define.
835 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
836 prefix.
837
c525330d
AC
838 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
839 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
840
38c968cf
AC
8412002-11-08 Andrew Cagney <ac131313@redhat.com>
842
843 * i386-linux-tdep.c: Include "reggroups.h".
844 (i386_linux_register_reggroup_p): New function.
845 (i386_linux_init_abi): Set register_reggroup_p to
846 i386_linux_register_reggroup_p.
847 * i386-tdep.h (i386_register_reggroup_p): Declare.
848 * i386-tdep.c: Include "reggroups.h".
849 (i386_init_reggroups): New function.
850 (i386_add_reggroups): New function.
851 (i386_register_reggroup_p): New function.
852 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
853 (_initialize_i386_tdep): Call i386_init_reggroups.
854 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
855 specific reggroups.
856
19e33363
MK
8572002-11-09 Mark Kettenis <kettenis@gnu.org>
858
371a6e84
MK
859 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
860 request that's available in *BSD.
861
94ba925a
MK
862 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
863
19e33363
MK
864 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
865 FDOFF_REGNUM.
866
8779790c
AC
8672002-11-08 Andrew Cagney <ac131313@redhat.com>
868
869 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
870 * dummy-frame.c (find_dummy_frame): Rename
871 generic_find_dummy_frame, make static. Return the dummy frame
872 instead of the regcache.
873 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
874 (cached_find_dummy_frame): New function. Use find_dummy_frame.
875 (dummy_frame_register_unwind): Rename
876 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
877 * dummy-frame.h (dummy_frame_register_unwind): Rename
878 generic_call_dummy_register_unwind.
879
8674b74f
MK
8802002-11-08 Mark Kettenis <kettenis@gnu.org>
881
882 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
883 except the inclusion of "i386/tm-i386.h", to...
884 * config/i386/nm-i386v42mp.h: ...here.
885 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
886
4c1e7e9d
AC
8872002-11-08 Andrew Cagney <ac131313@redhat.com>
888
889 * Makefile.in (frame.o): Update dependencies.
890 * blockframe.c (current_frame, frame_obstack_alloc)
891 (frame_saved_regs_zalloc, get_current_frame)
892 (set_current_frame, create_new_frame)
893 (set_unwind_by_pc, get_next_frame)
894 (flush_cached_frames, reinit_frame_cache)
895 (frame_saved_regs_register_unwind)
896 (deprecated_generic_get_saved_register)
897 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
898 (_initialize_blockframe): Move frame code from here...
899 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
900 "annotate.h" and "dummy-frame.h".
901 (_initialize_frame): New function.
902
921e78cf
JB
9032002-11-08 Jim Blandy <jimb@redhat.com>
904
905 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
906 when we finish a function a context.
907 * buildsym.h (outermost_context_p): New macro.
908 (Bug analyzed by David Edelsohn.)
909
9c1412c1
AC
9102002-11-08 Andrew Cagney <ac131313@redhat.com>
911
912 * blockframe.c: Include "dummy-frame.h".
913 (struct dummy_frame, dummy_frame_stack)
914 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
915 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
916 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
917 (generic_save_call_dummy_addr, generic_pop_current_frame)
918 (generic_pop_dummy_frame, generic_fix_call_dummy)
919 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
920 dummy frame code from here...
921 * dummy-frame.c: ...to here. New file.
922 * dummy-frame.h: New file.
923 (generic_call_dummy_register_unwind): Declare.
924 (generic_find_dummy_frame): Declare.
925 * Makefile.in (SFILES): Add dummy-frame.c.
926 (dummy-frame.o): Specify dependencies.
927 (dummy_frame_h): Define.
928 (COMMON_OBS): Add dummy-frame.o.
929 (blockframe.o): Update dependencies.
930
208d8187
JB
9312002-11-08 Jim Blandy <jimb@redhat.com>
932
933 * dwarf2read.c (read_func_scope): Restore local_symbols and
934 param_symbols after we finish the function context. (Based on a
935 patch from David Edelsohn.)
936
413dad4d
DC
9372002-11-08 David Carlton <carlton@math.stanford.edu>
938
939 * linespec.c (symbol_found): New function.
940 (minsym_found): New function.
941 (decode_line_1): Separate out some code into separate functions.
942
5512c44a
JB
9432002-11-08 Joel Brobecker <brobecker@gnat.com>
944
945 * i386-tdep.c (i386_frameless_signal_p): Make non static for
946 the benefit of the interix target.
947 * i386-tdep.h (i386_frameless_signal_p): Declare.
948
1b33ef47
AC
9492002-11-08 Andrew Cagney <ac131313@redhat.com>
950
951 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
952 declaration that snuck in from change below.
953
23a34459
AC
9542002-11-06 Andrew Cagney <cagney@redhat.com>
955
956 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
957 all callers.
958 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
959 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
960 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
961 (i386_mxcsr_regnum_p): new function. Use instead of
962 MXCSR_REGNUM_P.
963 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
964 (i386_sse_regnum_p): Declare.
965 (i386_mxcsr_regnum_p): Declare.
966 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
967 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
968 (IS_FP_REGNUM): Update definition.
969 (IS_FPU_CTRL_REGNUM): Update definition..
970 (IS_SSE_REGNUM): Update definition..
971 * i386v-nat.c (register_u_addr): Update.
972 * go32-nat.c (fetch_register): Update.
973 (store_register): Update.
974
d709c020
JB
9752002-11-07 Joel Brobecker <brobecker@gnat.com>
976
977 Preparation work to convert the hppa targets to multiarch partial.
978
979 * hppa-tdep.c: Add new functions replacing macro bodies from
980 config/pa/tm-hppa.h. These function will be used to initialize
981 the gdbarch structure. Import some comments from tm-hppa.h,
982 and place them where appropriate, to avoid loosing them when
983 we cleanup this file.
984 (hppa_reg_struct_has_addr): New function.
985 (hppa_inner_than): New function.
986 (hppa_stack_align): New function.
987 (hppa_pc_requires_run_before_use): New function.
988 (hppa_instruction_nullified): New function.
989 (hppa_register_byte): New function.
990 (hppa_register_virtual_type): New function.
991 (hppa_store_struct_return): New function.
992 (hppa_cannot_store_register): New function.
993 (hppa_frame_args_address): New function.
994 (hppa_frame_locals_address): New function.
995 (hppa_smash_text_address): New function.
996 (hppa_coerce_float_to_double): New function. Requires the inclusion
997 of "language.h".
998
999 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1000
1001 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1002 gdbarch-eligible macro to a call to the new associated function
1003 created in hppa-tdep.c.
1004 (INNER_THAN): Likewise.
1005 (STACK_ALIGN): Likewise.
1006 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1007 (INSTRUCTION_NULLIFIED): Likewise.
1008 (REGISTER_BYTE): Likewise.
1009 (REGISTER_VIRTUAL_TYPE): Likewise.
1010 (STORE_STRUCT_RETURN): Likewise.
1011 (CANNOT_STORE_REGISTER): Likewise.
1012 (FRAME_ARGS_ADDRESS): Likewise.
1013 (FRAME_LOCALS_ADDRESS): Likewise.
1014 (SMASH_TEXT_ADDRESS): Likewise.
1015 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1016 (ABOUT_TO_RETURN): Delete, as no longer used.
1017
83c31e7d
FN
10182002-11-07 Fernando Nasser <fnasser@redhat.com>
1019
1020 * printcmd.c (disassemble_command): Remove obsolete function.
1021 (_initialize_printcmd): Do not create disassemble command here.
1022 * cli/cli-cmds.c (disassemble_command): New function. Implements
1023 disassemble command.
1024 (init_cli_cmds): Create disassemble command here instead.
1025
0ec30a36
AC
10262002-11-07 Andrew Cagney <ac131313@redhat.com>
1027
1028 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1029
e600bd34
AC
10302002-11-07 Andrew Cagney <ac131313@redhat.com>
1031
1032 * regcache.h (regcache_cooked_read_using_offset_hack)
1033 (regcache_cooked_write_using_offset_hack): Delete declarations.
1034 (register_changed): Delete declaration.
1035 * regcache.c (regcache_cooked_read_using_offset_hack)
1036 (regcache_cooked_write_using_offset_hack): Delete functions.
1037 (cooked_xfer_using_offset_hack): Delete function.
1038 (register_changed): Delete function.
1039
568f8739
JB
10402002-11-07 Jim Blandy <jimb@redhat.com>
1041
1042 * macroscope.c: #include "complaints.h".
1043 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1044 but not in the macro table.
1045 * Makefile.in (macroscope.o): Record dependency.
1046
b0718b7b
JB
10472002-11-07 Joel Brobecker <brobecker@gnat.com>
1048
1049 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1050
2b9e5f3f
AC
10512002-11-07 Andrew Cagney <ac131313@redhat.com>
1052
1053 * regcache.c (deprecated_registers_fetched): Update.
1054 * regcache.h (deprecated_registers_fetched): Rename
1055 registers_fetched.
1056 * remote-vxsparc.c (vx_read_register): Update.
1057 * remote-vxmips.c (vx_read_register): Update.
1058 * remote-vx68.c (vx_read_register): Update.
1059 * irix5-nat.c (fetch_core_registers): Update.
1060 * mipsm3-nat.c (fetch_inferior_registers): Update.
1061 * sun3-nat.c (fetch_inferior_registers): Update.
1062 * symm-nat.c (fetch_inferior_registers): Update.
1063 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1064 (fetch_core_registers): Update.
1065 (fetch_kcore_registers): Update.
1066 * mips-nat.c (fetch_inferior_registers): Update.
1067 * corelow.c (get_core_registers): Update.
1068 * a68v-nat.c (fetch_inferior_registers): Update.
1069
e6e68f1f
JB
10702002-11-06 Joel Brobecker <brobecker@gnat.com>
1071
1072 Put in place the framework necessary for multiarching the hppa targets.
1073 * hppa-tdep.c (hppa_gdbarch_init): New function.
1074 (hppa_dump_tdep): New function.
1075 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1076 tdep structure dumper.
1077 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1078 until the multi-arching conversion has partially been completed.
1079
492254e9
AC
10802002-11-06 Andrew Cagney <ac131313@redhat.com>
1081
1082 * valops.c (value_assign): Merge lval_register case into
1083 lval_reg_frame_relative. Use frame_register and
1084 regcache_cooked_write instead of get_saved_register and
1085 write_register_bytes. After flushing the register cache, try to
1086 re-select the selected frame.
1087
8262ee23
AC
10882002-11-06 Andrew Cagney <ac131313@redhat.com>
1089
1090 * regcache.h (deprecated_register_valid): Rename register_valid.
1091 * regcache.c: Update.
1092 * ia64-aix-nat.c: Update.
1093 * i386gnu-nat.c: Update.
1094 * alpha-nat.c: Update.
1095 * sparc-nat.c: Update.
1096 * lynx-nat.c: Update.
1097 * remote-mips.c: Update.
1098
4facf7e8
JB
10992002-11-06 Joel Brobecker <brobecker@gnat.com>
1100
1101 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1102 to end of file, to be more consistent with the pratice followed
1103 by other targets.
1104
f9418c0f
AC
11052002-11-06 Andrew Cagney <ac131313@redhat.com>
1106
1107 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1108 (print_float_info): Print registers in float_reggroup.
1109 (print_vector_info): Print registers in vector_reggroup.
1110 (default_print_registers_info): When all, print registers in
1111 all_reggroup. Otherwize, print registers in general_reggroup.
1112 (registers_info): Rewrite. Add support for register groups.
1113 Eliminate a goto.
1114
3fe235a7
EZ
11152002-11-06 Elena Zannoni <ezannoni@redhat.com>
1116
1117 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1118 ages.
1119 (symtab_symbol_info): Remove eons old ifdeffed out code.
1120 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1121 command.
1122
ef944135
TR
11232002-11-06 Theodore A. Roth <troth@openavr.org>
1124
1125 * c-exp.y: Add missing semi-colons.
1126 * f-exp.y: Add missing semi-colons.
1127 * m2-exp.y: Add missing semi-colons.
1128 * p-exp.y: Add missing semi-colons.
1129 Add empty action to start rule to avoid a type clash error when
1130 building with bison >= 1.50.
1131
f8302a57
JB
11322002-11-06 Jim Blandy <jimb@redhat.com>
1133
1134 * macrotab.h (struct macro_source_file): Doc fix.
1135
6e382aa3
JJ
11362002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1137
1138 * varobj.c (child_exists, cplus_number_of_children): Change
1139 STREQ macro references to strcmp.
1140 (cplus_name_of_child): Change code to handle the fact that
1141 fields are not necessarily contiguous with regards to their
1142 access control. This is a fix for PR gdb/792.
1143
a216a322
AC
11442002-11-05 Andrew Cagney <ac131313@redhat.com>
1145
1146 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1147 * gdbarch.h, gdbarch.c: Regnerate.
1148 * frame.h (frame_register): Declare.
1149 * frame.c (frame_register): New function.
1150 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1151 GET_SAVED_REGISTER, otherwize call
1152 generic_unwind_get_saved_register.
1153 (frame_register_read): Use frame_register instead of
1154 get_saved_register.
1155
7d5b6fdd
EZ
11562002-11-05 Elena Zannoni <ezannoni@redhat.com>
1157
1158 From Jim Ingham <jingham@apple.com>:
1159 * event-top.c (gdb_disable_readline): New function.
1160 (_initialize_event_loop): Move comment.
1161
b7c64260
EZ
11622002-11-05 Elena Zannoni <ezannoni@redhat.com>
1163
1164 * event-loop.c (start_event_loop): Add comment.
1165 Update copyright.
1166
c2e1b8f2
AC
11672002-11-05 Andrew Cagney <ac131313@redhat.com>
1168
1169 * infcmd.c (default_print_registers_info): Do not call
1170 PRINT_REGISTER_HOOK.
1171
87647bb0
AC
11722002-11-05 Andrew Cagney <ac131313@redhat.com>
1173
1174 * sparc-tdep.c (sparc_print_register_hook): Make static.
1175 (sparc_print_registers_info): New function.
1176 (sparc_do_registers_info): New function.
1177 (sparclet_print_registers_info): New function.
1178 (sparclet_do_registers_info): New function.
1179 (do_sparc_print_registers_info): New function.
1180 (sparc_print_registers): New static function, clone of infcmd.c's
1181 default_print_registers_info.
1182 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1183 (sparclet_do_registers_info): Declare.
1184 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1185 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1186 Re-define.
1187 (sparc_do_registers_info): Declare.
1188 (PRINT_REGISTER_HOOK): Delete macro.
1189 (sparc_print_register_hook): Delete declaration.
1190
8155455b
DC
11912002-11-05 David Carlton <carlton@math.stanford.edu>
1192
1193 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1194 functions.
1195 (lookup_symbol_aux_local): New function.
1196 (lookup_symbol_aux_symtabs): New function.
1197 (lookup_symbol_aux_psymtabs): New function.
1198
29924310
DC
11992002-11-05 David Carlton <carlton@math.stanford.edu>
1200
1201 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1202 previous values of 'objfile' and 'block'.
1203
cc303028
PM
12042002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1205
1206 * values.c (value_change_enclosing_type): Set
1207 enclosing_type field correctly also for the case where
1208 more memory needs to be allocated.
1209
1d70089a
MK
12102002-11-03 Mark Kettenis <kettenis@gnu.org>
1211
f16a25ae
MK
1212 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1213 of puts_filtered.
1214
1d70089a
MK
1215 * i387-tdep.c (i387_print_float_info): Replace calls to
1216 register_read and deprecated_read_register_gen with calls to
1217 frame_register_read, and make the necessary adjustments to the
1218 surrounding code.
1219
7e20f3fb
AC
12202002-11-02 Andrew Cagney <ac131313@redhat.com>
1221
1222 * gdbarch.sh (register_reggroup_p): Allow default value.
1223 * gdbarch.h, gdbarch.c: Regenerate.
1224
192dbe33
AC
12252002-11-02 Andrew Cagney <ac131313@redhat.com>
1226
1227 * regcache.h: Add coment indicating replacements for deprecated
1228 functions.
1229
b59ff9d5
AC
12302002-11-02 Andrew Cagney <cagney@redhat.com>
1231
1232 * reggroups.h, reggroups.c: New files.
1233 * regcache.c: Include "reggroups.h".
1234 (enum regcache_dump_what): Add `regcache_dump_groups'.
1235 (regcache_dump): Contract size of the "Type" column. When
1236 specified, dump the register's groups.
1237 (maintenance_print_register_groups): New function.
1238 (_initialize_regcache): Add command `maint print register-groups'.
1239 * Makefile.in (COMMON_OBS): Add reggroups.o
1240 (SFILES): Add reggroups.c.
1241 (reggroups_h): Define.
1242 (regcache.o, gdbarch.o): Update dependencies.
1243 (reggroups.o): Specify dependencies.
1244 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1245 Add opaque declaration for `struct reggroup' in generated .h file.
1246 Include "reggroups.h" in generated .c file.
1247 gdbarch.h, gdbarch.c: Re-generate.
1248
4caf0990
AC
12492002-11-02 Andrew Cagney <cagney@redhat.com>
1250
1251 * regcache.h (deprecated_read_register_gen): Rename
1252 read_register_gen.
1253 (deprecated_write_register_gen): Rename write_register_gen.
1254 * i387-tdep.c: Update.
1255 * x86-64-linux-nat.c: Update
1256 * wince.c: Update.
1257 * thread-db.c: Update.
1258 * win32-nat.c: Update.
1259 * mips-tdep.c: Update.
1260 * d10v-tdep.c: Update.
1261 * cris-tdep.c: Update.
1262 * remote-sim.c: Update.
1263 * remote-rdi.c: Update.
1264 * remote-rdp.c: Update.
1265 * frame.c: Update.
1266 * target.c: Update.
1267 * blockframe.c: Update.
1268 * x86-64-tdep.c: Update.
1269 * xstormy16-tdep.c: Update.
1270 * sh-tdep.c: Update.
1271 * s390-tdep.c: Update.
1272 * rs6000-tdep.c: Update.
1273 * sparc-tdep.c: Update.
1274 * i386-tdep.c: Update.
1275 * dwarf2cfi.c: Update.
1276 * regcache.c: Update.
1277
7a7adcdf
JB
12782002-11-01 Joel Brobecker <brobecker@gnat.com>
1279
1280 New interix-specific files:
1281 * config/i386/nm-interix.h: New file.
1282 * config/i386/interix.mh: New file.
1283 * config/i386/interix.mt: New file.
1284 * i386-interix-nat.c: New file.
1285 * i386-interix-tdep.c: New file.
1286
bdcdd535
AC
12872002-11-01 Andrew Cagney <cagney@redhat.com>
1288
1289 * frame.h (deprecated_generic_get_saved_register): Rename
1290 generic_get_saved_register.
1291 * blockframe.c (deprecated_generic_get_saved_register): Update.
1292 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1293 (xstormy16_frame_saved_register): Update.
1294 * sh-tdep.c (sh_gdbarch_init): Update.
1295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1296 * ia64-tdep.c (ia64_get_saved_register): Update.
1297 * cris-tdep.c (cris_gdbarch_init): Update.
1298 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1299 * arm-tdep.c (arm_gdbarch_init): Update.
1300
2a4b7c45
DJ
13012002-10-31 Daniel Jacobowitz <drow@mvista.com>
1302
1303 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1304
ef17e74b
DJ
13052002-10-31 Daniel Jacobowitz <drow@mvista.com>
1306
1307 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1308 trampolines in sigaction.
1309
4904ba5b
AC
13102002-10-31 Andrew Cagney <cagney@redhat.com>
1311
1312 * h8300-tdep.c: Include "gdb_assert.h".
1313 (h8300_print_register): Add gdbarch, file and frame parameters.
1314 Use frame_read_unsigned_register to read the register's value.
1315 Use fprintf_filtered to display output.
1316 (h8300_print_registers_info): Replace h8300_do_registers_info.
1317 (h8300_gdbarch_init): Set print_registers_info.
1318
f908a0eb
AC
13192002-10-31 Andrew Cagney <cagney@redhat.com>
1320
1321 * frame.c (frame_read_unsigned_register): New function.
1322 (frame_read_signed_register): New function.
1323 * frame.h (frame_read_unsigned_register): Declare.
1324 (frame_read_signed_register): Declare.
1325
c5646e11
AC
13262002-10-31 Andrew Cagney <cagney@redhat.com>
1327
1328 * h8500-tdep.c (h8500_print_registers_info): New static function,
1329 clone of infcmd.c's default_print_registers_info.
1330 (h8500_do_registers_info): New funtion.
1331 (h8500_print_register_hook): Rename print_register_hook, make
1332 static.
1333
1334 * config/h8500/tm-h8500.h: Update copyright.
1335 (DEPRECATED_DO_REGISTERS_INFO): Define.
1336 (h8500_do_registers_info: Declare.
1337 (PRINT_REGISTER_HOOK): Delete macro.
1338 (print_register_hook): Delete function.
1339
0bdd672b
AC
13402002-10-31 Andrew Cagney <cagney@redhat.com>
1341
1342 * z8k-tdep.c (z8k_print_register_hook): Make static.
1343 (z8k_print_registers_info): New static function, clone of
1344 infcmd.c's default_print_registers_info.
1345 (z8k_do_registers_info): New function. Wrap
1346 z8k_print_registers_info.
1347 * config/z8k/tm-z8k.h: Update copyright.
1348 (PRINT_REGISTER_HOOK): Delete macro.
1349 (z8k_print_register_hook): Delete declaration.
1350 (DEPRECATED_DO_REGISTERS_INFO): Define.
1351 (z8k_do_registers_info): Declare.
1352
bf9c25dc
JB
13532002-10-30 Joel Brobecker <brobecker@gnat.com>
1354
1355 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1356 as this is already provided by value.h, and was actually causing
1357 a compilation error because of a conflict in parameter type
1358 declaration due to a missing const keyword.
1359 (low_text_segment_addres): Fix a compilation warning.
1360
2c665b51
DJ
13612002-10-29 Daniel Jacobowitz <drow@mvista.com>
1362
1363 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1364 registers without a name.
1365 (mips_linux_cannot_store_register): Don't store registers without
1366 a name.
1367
e70ea697
DC
13682002-10-28 David Carlton <carlton@math.stanford.edu>
1369
1370 * symtab.c (find_addr_symbol): Delete. (It was already commented
1371 out.)
1372 * symtab.h: Delete prototype for find_addr_symbol.
1373
903ad3a6
AC
13742002-10-26 Andrew Cagney <cagney@redhat.com>
1375
1376 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1377 DO_REGISTERS_INFO.
1378 gdbarch.h, gdbarch.c: Re-generate.
1379 * infcmd.c (default_print_registers_info): Update reference.
1380 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1381 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1382 * sh-tdep.c (sh_gdbarch_init): Ditto.
1383 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1385
ab91194c
MK
13862002-10-26 Mark Kettenis <kettenis@gnu.org>
1387
e3033f15
MK
1388 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1389 cfi_init_extra_frame_info.
1390 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1391 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1392
b83b026c
MK
1393 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1394 target where necessary. Add more comments and remove the ones
1395 that don't provide any useful information.
1396
267bf4bb
MK
1397 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1398 deprecated_read_register_dummy with
1399 frame_unwind_unsigned_register.
1400
751f1375
MK
1401 * i386-tdep.c (i386_extract_struct_value_address): Use
1402 regcache_raw_read_unsigned instead of
1403 regcache_cooked_read_unsigned since we know that the register
1404 we're reading isn't a pseudo register. Rename variable 'val' into
1405 the more descriptive 'addr'.
1406
26abbdc4
MK
1407 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1408 (x86_64_push_return_address): Add comment.
1409 (x86_64_pop_frame): Make static.
1410 (examine_argument): Clarify comment.
1411 (x86_64_skip_prologue): Make prolog_expact variable static.
1412
9f1549cc
MK
1413 * dwarf2cfi.c: Fix some formatting problems.
1414 (context_cpy, read_encoded_pointer): Clarify comments.
1415
ab91194c
MK
1416 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1417 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1418 i386 target back into x86_64_gdbarch_init. Add some comments and
1419 remove meaningless ones.
1420
72367fb4
AC
14212002-10-25 Andrew Cagney <cagney@redhat.com>
1422
1423 * complaints.h (struct deprecated_complaint): Rename `struct
1424 complaint'.
1425 * complaints.c (complain): Update.
1426 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1427 incorrect comment indicating that "symfile.h" was being included
1428 for the `struct complaint' definition.
1429 * remote-vx.c: Update.
1430 * objc-lang.c: Update.
1431 * xcoffread.c: Update.
1432 * hpread.c: Update.
1433 * mdebugread.c: Update.
1434 * stabsread.c: Update.
1435 * dwarf2read.c: Update.
1436 * dwarfread.c: Update.
1437 * elfread.c: Update.
1438 * coffread.c: Update.
1439 * stabsread.h: Update.
1440 * dbxread.c: Update.
1441 * buildsym.c: Update.
1442 * gdbtypes.c: Update.
1443 * macrotab.c: Update.
1444
1f2baacc
MK
14452002-10-25 Mark Kettenis <kettenis@gnu.org>
1446
0c1a73d6
MK
1447 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1448 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1449 (x86_64_init_abi): ...new function.
1450
6aee4d54 1451 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1452 * i386v-nat.c: Include "i386-tdep.h".
1453
8f9cbe01
AC
14542002-10-25 Andrew Cagney <cagney@redhat.com>
1455
5f11f355
AC
1456 * gdbtypes.c (address_space_name_to_int): Update.
1457 (address_space_int_to_name): Update.
1458 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1459 multi-arch predicate.
1460 (address_class_name_to_type_flags): Ditto.
1461 * gdbarch.h, gdbarch.c: Re-generate.
1462
8f9cbe01
AC
1463 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1464
e8d96a5d
MH
14652002-10-24 Martin M. Hunt <hunt@redhat.com>
1466
1467 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1468
fe39c653
EZ
14692002-10-24 Elena Zannoni <ezannoni@redhat.com>
1470
1471 * symtab.h (INIT_SAL): Delete macro.
1472 (init_sal): Export.
1473 * symtab.c (init_sal): New function.
1474
1475 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1476 to init_sal function call.
1477 (find_sal_from_funcs_and_line): Ditto.
1478 (all_sals_for_line): Ditto.
1479 * breakpoint.c (create_internal_breakpoint): Ditto.
1480 (create_fork_vfork_event_catchpoint): Ditto.
1481 (create_exec_event_catchpoint): Ditto.
1482 (parse_breakpoint_sals): Ditto.
1483 (watch_command_1): Ditto.
1484 (handle_gnu_4_16_catch_command): Ditto.
1485 (clear_command): Ditto.
1486 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1487 * infcmd.c (run_stack_dummy): Ditto.
1488 * infrun.c (process_event_stop_test): Ditto.
1489 (check_sigtramp2): Ditto.
1490 (step_over_function): Ditto.
1491 * linespec.c (decode_line_2): Ditto.
1492 (decode_line_1): Ditto.
1493 * source.c (line_info): Ditto.
1494 * symtab.c (find_pc_sect_line): Ditto.
1495
baed091b
ML
14962002-10-24 Michal Ludvig <mludvig@suse.cz>
1497
1498 * dwarf2cfi.c (struct context)
1499 (struct context_reg): Moved to dwarf2cfi.h
1500 (context_alloc, frame_state_alloc, context_cpy):
1501 Made extern instead of static, removed prototypes.
1502 * dwarf2cfi.h (struct context)
1503 (struct context_reg): New, moved from dwarf2cfi.c
1504 (context_alloc, frame_state_alloc, context_cpy):
1505 New prototypes.
1506 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1507 Changed from static to extern.
1508 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1509 (LINUX_SIGCONTEXT_FP_OFFSET)
1510 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1511 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1512 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1513 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1514 set_gdbarch_*() calls now use x86-64 specific functions
1515 instead of DWARF2 CFI ones.
1516 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1517 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1518 (x86_64_init_extra_frame_info): New prototypes.
1519
c38da1af
DC
15202002-10-23 David Carlton <carlton@math.stanford.edu>
1521
1522 * linespec.c: #include "parser-defs.h".
1523 Delete prototype for find_template_name_end.
1524 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1525
fb9b6b35
JJ
15262002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1527
1528 * NEWS: add recent mi fixes.
1529 * varobj.c (struct varobj): Add new "updated" flag.
1530 (new_variable): Default "updated" flag to 0.
1531 (varobj_set_value): Set "updated" flag to 1 if value
1532 changes.
1533 (varobj_update): Check varobj "updated" flag before
1534 comparing old and refreshed values. Fix for
1535 PR gdb/702.
1536
8da065d5
DC
15372002-10-23 David Carlton <carlton@math.stanford.edu>
1538
1539 * parse.c (parse_exp_1): Use BLOCK_START.
1540 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1541 SYMBOL_BLOCK_VALUE.
1542 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1543
87f2f08c
DC
15442002-10-23 David Carlton <carlton@math.stanford.edu>
1545
1546 * symtab.c: Delete cplusplus_hint.
1547 Delete prototype for find_template_name_end.
1548
88cda038
EZ
15492002-10-23 Elena Zannoni <ezannoni@redhat.com>
1550
1551 * symtab.h: Update comment.
1552
2625d86c
MS
15532002-10-23 Michael Snyder <msnyder@redhat.com>
1554
1555 * printcmd.c (address_info): Restore quotes in output.
1556 * valops.c (value_of_local): Restore quotes in error message.
1557
9cc0d196
EZ
15582002-10-23 Elena Zannoni <ezannoni@redhat.com>
1559
1560 * symtab.c (symbol_demangled_name): New function.
1561 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1562 turning most of it into a function.
1563 (symbol_demangled_name): Export.
1564
19de93d0
MS
15652002-10-23 Michael Snyder <msnyder@redhat.com>
1566
1567 * valops.c (value_of_local): Restore quotes in error message.
1568
89aad1f9
EZ
15692002-10-23 Elena Zannoni <ezannoni@redhat.com>
1570
1571 * symtab.c (symbol_init_language_specific): New function.
1572 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1573 turning most of it into a function.
1574 (symbol_init_language_specific): Export.
1575
d9fa45fe
DC
15762002-10-23 David Carlton <carlton@math.stanford.edu>
1577
1578 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1579 (dwarf_attr_name): Ditto.
1580 (dwarf_type_encoding_name): Ditto.
1581 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1582 (process_die): Handle DW_TAG_namespace,
1583 DW_TAG_imported_declaration, DW_TAG_imported_module.
1584 (read_namespace): New function.
1585
1045b512
JB
15862002-10-22 Joel Brobecker <brobecker@gnat.com>
1587
1588 * configure.in: Define NEW_PROC_API on Interix too.
1589 * configure: Regenerate.
1590
15912002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1592
1593 * configure: Regenerate using the proper version of autoconf.
1594
3987b9d4
EZ
15952002-10-21 Elena Zannoni <ezannoni@redhat.com>
1596
1597 * findvar.c (read_var_value): Temporarily disable TLS code, until
1598 complete TLS support is added.
1599
9d774e44
EZ
16002002-10-21 Jim Blandy <jimb@redhat.com>
1601 Elena Zannoni <ezannoni@redhat.com>
1602
1603 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1604 for thread local storage locations.
1605 (struct symbol): Add objfile field.
1606 (SYMBOL_OBJFILE): Define.
1607 * dwarf2read.c (is_thread_local): New static variable.
1608 (new_symbol): If variable is in thread local fill in address class
1609 and objfile appropriately.
1610 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1611 stack operation.
1612 * printcmd.c (address_info): Print the information for thread
1613 local storage variable.
1614 * findvar.c (read_var_value): In case of thread local variable,
1615 defer to the target vector code to compute address.
1616
bc4a16ae
EZ
16172002-10-21 Elena Zannoni <ezannoni@redhat.com>
1618
1619 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1620 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1621
407caf07
EZ
16222002-10-21 Elena Zannoni <ezannoni@redhat.com>
1623
1624 * symtab.h (address_class): Rename
1625 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1626 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1627 * printcmd.c (address_info): Ditto.
1628 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1629
005328e3
MK
16302002-10-20 Mark Kettenis <kettenis@gnu.org>
1631
afdb036a
MK
1632 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1633 DBREG_DRX macro to acces debug registers.
1634
ca02e098
MK
1635 * Makefile.in (i386obsd-tdep.o): New target.
1636
03cc47f7
MK
1637 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1638 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1639
005328e3
MK
1640 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1641 * config/i386/obsd.mt: New file.
1642 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1643 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1644 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1645 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1646 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1647 * i386obsd-tdep.c: New file.
1648
9c96f9f2
AF
16492002-10-19 Adam Fedor <fedor@gnu.org>
1650
1651 * objc-exp.y (name_not_typename): Fix invalid comment.
1652
ce1ed485
MK
16532002-10-20 Mark Kettenis <kettenis@gnu.org>
1654
1655 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1656 to allocate partial syms and macro byte caches.
1657
1efc7aaa
DC
16582002-10-18 David Carlton <carlton@math.stanford.edu>
1659
1660 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1661
7e1d63ec
AF
16622002-10-18 Adam Fedor <fedor@gnu.org>
1663
1664 * stabsread.c (find_name_end): New function.
1665 (define_symbol): Use it.
1666
6e8d29a9
DJ
16672002-10-18 Daniel Jacobowitz <drow@mvista.com>
1668
1669 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1670 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1671 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1672 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1673
1efc7aaa 16742002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1675
1676 * symfile.h: Add opaque declaration for struct obstack.
1677 Declare obsavestring to take a const char *.
1678 * symfile.c (obsavestring): Make first argument a const char *.
1679
1aeae86e
AF
16802002-10-16 Adam Fedor <fedor@gnu.org>
1681
1682 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1683 names when matching breakpoints in current file.
1684
8b2dbe47
KB
16852002-10-16 Kevin Buettner <kevinb@redhat.com>
1686
1687 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1688 (read_tag_pointer_type): Add address class support.
1689 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1690 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1691 New methods.
1692 * gdbarch.h, gdbarch.c: Regenerate.
1693 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1694 (make_type_with_address_space, recursive_type_dump): Add address
1695 class support.
1696 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1697 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1698 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1699
74451869
KD
17002002-10-16 Klee Dienes <kdienes@apple.com>
1701
1702 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1703 to get the last character of a char[] buffer, not
1704 name[sizeof(vptr_name)-1].
1705
ff4cb3e8
AF
17062002-10-14 Adam Fedor <fedor@gnu.org>
1707
1708 * symtab.h: New objc_specific struct.
1709 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1710 (SYMBOL_DEMANGLED_NAME): Likewise.
1711
da2cf7e0
AF
17122002-10-14 Adam Fedor <fedor@gnu.org>
1713
1714 * symfile.c (init_filename_language_table): Add ObjC file extension.
1715
4a351cef
AF
17162002-10-14 Adam Fedor <fedor@gnu.org>
1717
1718 * utils.c (puts_filtered_tabular): New function.
1719 (fprintf_symbol_filtered): Get ObjC demangled name.
1720 * defs.h (puts_filtered_tabular): Declared.
1721
9750e763
KB
17222002-10-14 Kevin Buettner <kevinb@redhat.com>
1723
1724 * c-lang.h (c_type_print_varspec_prefix): Delete.
1725 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1726 ``need_post_space'' parameter. Adjust all callers.
1727
eee771c1
DJ
17282002-10-14 Daniel Jacobowitz <drow@mvista.com>
1729
1730 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1731 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1732 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1733 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1734
46c82446
AF
17352002-10-13 Adam Fedor <fedor@gnu.org>
1736
1737 * source.c (print_source_lines): Update comments.
1738
d069f99d
AF
17392002-10-13 Adam Fedor <fedor@gnu.org>
1740
1741 * valops.c (value_of_local): New function.
1742 (value_of_this): Use it.
1743 * value.h (value_of_local): Declared.
1744
53c551b7
AF
17452002-10-13 Adam Fedor <fedor@gnu.org>
1746
1747 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1748 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1749
eb392fbf
AF
17502002-10-12 Adam Fedor <fedor@gnu.org>
1751
1752 * language.c (binop_result_type): Add language_objc to case.
1753 (integral_type): Likewise.
1754 (character_type): Likewise.
1755 (string_type): Likewise.
1756 (boolean_type): Likewise.
1757 (structured_type): Likewise.
1758 (binop_type_check): Likewise.
1759
e2b23ee9
AF
17602002-10-11 Adam Fedor <fedor@gnu.org>
1761
1762 * printcmd.c (address_info): Print 'self' for ObjC.
1763
b01ab485
AF
17642002-10-11 Adam Fedor <fedor@gnu.org>
1765
1766 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1767 OP_SELF.
1768
806e6073
AF
17692002-10-11 Adam Fedor <fedor@gnu.org>
1770
1771 * language.h (CAST_IS_CONVERSION): Add language_objc.
1772
50f85cdf
AF
17732002-10-11 Adam Fedor <fedor@gnu.org>
1774
1775 * defs.h (enum language): Add language_objc.
1776
0d540cdf
KD
17772002-10-11 Klee Dienes <kdienes@apple.com>
1778
69266111 1779 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1780 * gdbcore.h (read_memory_typed_address): Add prototype.
1781 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1782 to read a value destined for a CORE_ADDR, not read_memory_integer.
1783 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1784 (f77_get_dynamic_lowerbound): Ditto.
1785
d5dc7960
MH
17862002-10-11 Martin M. Hunt <hunt@redhat.com>
1787
1788 * utils.c (string_to_core_addr): After turning string into
1789 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1790 which will do necessary sign-extension, etc.
1791
8343f86c
DJ
17922002-10-11 Daniel Jacobowitz <drow@mvista.com>
1793
1794 * c-exp.y (THIS): Delete token and grammar rule.
1795 (yylex): Don't return THIS.
1796 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1797 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1798 * demangle.c (cplus_markers): Update comment. Put '$'
1799 first. Remove CPLUS_MARKER.
1800 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1801 * jv-exp.y (THIS): Delete token and grammar rule.
1802 (yylex): Don't return THIS.
1803 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1804 * objc-exp.y (THIS): Delete token and grammar rule.
1805 (yylex): Don't return THIS.
1806 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1807 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1808 (read_member_functions): Likewise for opname.
1809 (read_tilde_fields): Use is_cplus_marker.
1810
1811 * defs.h (CPLUS_MARKER): Don't define.
1812 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1813 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1814 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1815 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1816 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1817
1818 * config/i386/tm-i386v4.h: Delete file.
1819 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1820 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1821 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1822 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1823 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1824 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1825 * config/i386/i386v4.mt (TM_FILE): Likewise.
1826 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1827
967c0d83
MM
18282002-10-10 Marko Mlinar <markom@opencores.org>
1829
1830 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1831 accidentially not commited 2002-10-09
1832 * gdbarch.h, gdbarch.c: Re-generate.
1833
f74fa174
MM
18342002-10-09 Marko Mlinar <markom@opencores.org>
1835
1836 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1837 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1838 * gdbarch.h, gdbarch.c: Re-generate.
1839
57349743
JB
18402002-10-08 Petr Sorfa <petrs@caldera.com>
1841
1842 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1843
1844 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1845 so we can work on more than one compilation unit at a time. This
1846 helps prepare GDB to handle inter-CU die references.
1847 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1848 the code to be defined before struct comp_unit_head.
1849 (comp_unit_head): Added new members - offset, cu_head,
1850 begin_die, next and dwarf2_abbrevs.
1851 (dwarf2_abbrevs): Removed single static var; now member of
1852 struct comp_unit_head.
1853 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1854 members.
1855 (psymtab_to_symtab_1): Changed to work with the new
1856 struct comp_unit_head.
1857 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1858 constructs the dwarf2_abbrevs[] inside the cu_header.
1859 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1860 dwarf2_abbrev table to clean up.
1861 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1862 handling of dwarf2_abbrevs inside the cu_header.
1863 (read_partial_die): Now supports the call to the new
1864 dwarf2_lookup_abbrev.
1865 (read_full_die): Now supports the call to the new
1866 dwarf2_lookup_abbrev.
1867
4092aadb
CF
18682002-10-06 Christopher Faylor <cgf@redhat.com>
1869
1870 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1871 insure that shell variables, such as "transformed_name" are propagated
1872 to later shell statements in rule.
1873
af0b2512
MK
18742002-10-06 Mark Kettenis <kettenis@gnu.org>
1875
1876 * config/i386/nm-i386sco.h: Add protection against
1877 multiple-inclusion. Include "i386/nm-i386v.h".
1878 (REGISTER_U_ADDR): Remove define.
1879 (i386_register_u_addr): Remove prototype.
1880
d6020d45
MS
18812002-10-04 Michael Snyder <msnyder@redhat.com>
1882
1883 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1884 before treating it as a single-step event.
1885
7248f48e
AF
18862002-10-03 Adam Fedor <fedor@gnu.org>
1887
1888 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1889 (objc_demangle): Remove assignment in if statements, Replace
1890 free with xfree.
1891 (add_msglist): Likewise.
1892 (end_msglist): Likewise.
1893 (complare_selectors): Likewise.
1894 (selectors_info): Likewise.
1895 (compare_classes): Likewise.
1896 (classes_info): Likewise.
1897 (print_object_command): Likewise.
1898 (find_objc_msgcall_submethod): Replace PTR with void *.
1899 * objc-lang.h: Remove check for __STDC__.
1900
52c6a6ac
JJ
19012002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1902
1903 * ui-out.h (ui_out_field_fmt_int): New prototype.
1904 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1905 of field width and alignment.
1906 * stack.c (print_frame_info_base): When printing frame level, use
1907 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1908 PR gdb/192
1909
7e3cec17
JJ
19102002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1911
1912 * MAINTAINERS: Add self to Write After Approval list.
1913
a58dd373
EZ
19142002-10-02 Elena Zannoni <ezannoni@redhat.com>
1915
1916 * infcmd.c (interrupt_target_command_wrapper): Delete.
1917 (interrupt_target_command): Make non static.
1918 (nofp_registers_info): Make static.
1919 * stack.c (return_command_wrapper): Delete.
1920 (return_command): Make non static.
1921
cee6ddeb
EZ
19222002-10-02 Elena Zannoni <ezannoni@redhat.com>
1923
1924 * event-top.c (gdb_setup_readline): New function. Code moved from
1925 _initialize_event_loop().
1926 (_initialize_event_loop): Call gdb_setup_readline().
1927
c4ed33b9
AC
19282002-10-02 Andrew Cagney <ac131313@redhat.com>
1929
1930 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1931 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1932 * gdbarch.h, gdbarch.c: Re-generate.
1933
cef4f5dd
DJ
19342002-10-02 Daniel Jacobowitz <drow@mvista.com>
1935
1936 Fix PR gdb/778
1937 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1938 before recursing.
1939 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1940 of fill_in_vptr_fieldno.
1941
36dc181b 19422002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1943
36dc181b
EZ
1944 * inferior.h (registers_info, stepi_command, nexti_command,
1945 continue_command, interrupt_target_command): Export from infcmd.c.
1946 * frame.h (args_info, selected_frame_level_changed_hook,
1947 return_command): Export from stack.c.
1948 * v850ice.c (stepi_command, nexti_command, continue_command): use
1949 prototypes from inferior.h.
1950 * tracepoint.c (registers_info, args_info, locals_info): Use
1951 prototypes from frame.h and inferior.h.
1952 * Makefile.in (mi-main.o): Add dependency on frame.h.
1953
6f99cb26
AC
19542002-10-02 Andrew Cagney <ac131313@redhat.com>
1955
da3eff49
AC
1956 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1957 value in register 3 adjusted by ppc_gp0_regnum.
1958
6f99cb26
AC
1959 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1960
da615bee
MM
19612002-10-02 Marko Mlinar <markom@opencores.org>
1962
1963 * MAINTAINERS: Add myself to the Write After Approval list.
1964
d154bee2
AO
19652002-10-01 Alexandre Oliva <aoliva@redhat.com>
1966
62a49b2c
AO
1967 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1968 of the section for the N64 ABI, fixed.
1969
d154bee2
AO
1970 * config/mips/tm-irix6.h: Include solib.h.
1971
ed348acc
EZ
19722002-10-01 Elena Zannoni <ezannoni@redhat.com>
1973
1974 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1975 GNU operators.
1976
da0f9dcd
AC
19772002-10-01 Andrew Cagney <ac131313@redhat.com>
1978
1979 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1980 and that "mi0" syntax has been removed.
1981
bdf64bac
DC
19822002-09-30 David Carlton <carlton@math.stanford.edu>
1983
1984 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1985 * ppc-sysv-tdep.c: #include "gdb_string.h".
1986 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1987 pacify GCC.
1988
54c2a1e6
AC
19892002-10-01 Andrew Cagney <ac131313@redhat.com>
1990
1991 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1992 "vrsave"'s register number.
1993
cedea778
AC
19942002-09-30 Andrew Cagney <ac131313@redhat.com>
1995
1996 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1997 use frame_unwind_signed_register to obtain the PC.
1998 (mips_frame_chain): Handle a generic dummy frame.
1999 (mips_init_extra_frame_info): When a generic dummy frame, don't
2000 re-compute the frame base.
2001 (mips_pop_frame): Handle generic dummy frames.
2002 (mips_gdbarch_init): When generic dummy frames, set
2003 use_generic_dummy_frames, push_dummy_frame to
2004 generic_push_dummy_frame, pc_in_call_dummy to
2005 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2006 generic_save_dummy_frame_tos.
2007
68315eb8
AC
20082002-09-30 Andrew Cagney <ac131313@redhat.com>
2009
2010 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2011 against TOP when TOP was explictly set.
2012 (generic_push_dummy_frame): Set TOP to zero.
2013
3b8630c3
EZ
20142002-09-30 Elena Zannoni <ezannoni@redhat.com>
2015
2016 * event-loop.c (start_event_loop): Rename variable 'result' to
2017 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2018
28ee05e9
KS
20192002-09-30 Keith Seitz <keiths@redhat.com>
2020
2021 * gdb-events.sh (selected_thread_changed): New event.
2022 * gdb-events.c: Regenerated.
2023 * gdb-events.h: Regenerated.
2024
6eecb1c8
HPN
20252002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2026
2027 * MAINTAINERS: Add self to Write After Approval list.
2028
92df71f0
FN
20292002-09-30 Fernando Nasser <fnasser@redhat.com>
2030
3b8630c3
EZ
2031 * disasm.c: New file.
2032 * disasm.h: New file.
92df71f0
FN
2033 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2034 (compare_lines): Ditto.
2035 (dump_insns): Ditto.
3b8630c3
EZ
2036 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2037 argument.
92df71f0 2038 (do_assembly_only): Ditto.
3b8630c3
EZ
2039 (do_disassembly): Renamed to gdb_disassembly and moved to
2040 disasm.c. Sdded uiout argument.
2041 * Makefile.in: Add new files. Reorder SFILES list. Update
2042 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2043
0c22854d
AC
20442002-09-29 Andrew Cagney <ac131313@redhat.com>
2045
2046 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2047 bfd/elf64-alpha-fbsd.c.
2048
e67f2023
AC
20492002-09-29 Andrew Cagney <ac131313@redhat.com>
2050
2051 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2052 i386gnu-tdep.c.
2053
89396210
AC
20542002-09-29 Andrew Cagney <ac131313@redhat.com>
2055
2056 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2057 __FUNCTION__.
2058 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2059 function name.
2060 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2061 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2062 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2063 (S_msg_sig_post_reply): Ditto.
2064
7079c36c
CV
20652002-09-28 Corinna Vinschen <vinschen@redhat.com>
2066
89396210
AC
2067 * sh-tdep.c (sh_use_struct_convention): Use definition according
2068 to ABI.
7079c36c
CV
2069 (sh_push_arguments): Store in register with correct endianess.
2070 (sh_default_store_return_value): Ditto.
2071 (sh_gdbarch_init): Set sizeof long double to 8.
2072
975ac915
MK
20732002-09-27 Mark Kettenis <kettenis@gnu.org>
2074
2075 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2076 Fix some whitespace problems.
2077
9bbe19fb
DC
20782002-09-27 David Carlton <carlton@math.stanford.edu>
2079
2080 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2081 (mcore-tdep.o): Ditto.
2082 (ns32k-tdep.o): Ditto.
2083 (ns32knbsd-tdep.o): Ditto.
2084 (sh3-rom.o): Ditto.
2085 (vax-tdep.o): Ditto.
2086 * cris-tdep.c: #include "gdb_string.h"
2087 * mcore-tdep.c: Ditto.
2088 * ns32k-tdep.c: Ditto.
2089 * ns32knbsd-tdep.c: Ditto.
2090 * sh3-rom.c: Ditto.
2091 * vax-tdep.c: Ditto.
2092
43b2fdc7
DC
20932002-09-27 David Carlton <carlton@math.stanford.edu>
2094
2095 * config/djgpp/fnchange.lst: Add entries for
2096 gdb/testsuite/gdb.c++/m-static files.
2097
e8cfbbd9
JW
20982002-09-27 Jim Wilson <wilson@redhat.com>
2099
2100 * MAINTAINERS: Add myself to the Write After Approval list.
2101
43b2fdc7 21022002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2103
2104 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2105
2106
9f3b7f07
AC
21072002-09-26 Andrew Cagney <ac131313@redhat.com>
2108
2109 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2110 frame.
2111
11269d7e
AC
21122002-09-26 Andrew Cagney <ac131313@redhat.com>
2113
2114 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2115 (rs6000_struct_return_address): Delete variable.
2116 (rs6000_store_struct_return): Update.
2117 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2118 deprecated_extract_struct_value_address.
2119 (rs6000_frame_align): New function.
2120 (rs6000_gdbarch_init): Set frame_align.
2121
f15ab4a7
AC
21222002-09-26 Andrew Cagney <ac131313@redhat.com>
2123
2124 From Grace Sainsbury <graces@redhat.com>:
2125 * Makefile.in (gdbtk-main.o): New target.
2126 (gdb.o): New target.
2127 (main_h): Define.
2128 (main.o): Update dependencies.
2129 (gdb$(EXEEXT)): Add gdb.o.
2130 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2131 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2132 (SUBDIR_GDBTK_CLEAN): Set.
2133 (install-gdbtk): Install the insight binary.
2134 (uninstall-gdbtk): New target.
2135 (all-gdbtk, clean-gdbtk): New rule.
2136 * top.c (use_windows): Default to zero.
2137 * main.c: Include "main.h".
2138 (main): Delete.
2139 (struct captured_main_args): Delete.
2140 (gdb_main): New function.
2141 * main.h: New file.
2142 * gdb.c: New File.
2143
e36180d7
AC
21442002-09-25 Andrew Cagney <cagney@redhat.com>
2145
2146 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2147 (frame_map_regnum_to_name): New function.
2148 (frame_map_name_to_regnum): New function.
2149 * frame.h (frame_map_name_to_regnum): Declare.
2150 (frame_map_regnum_to_name): Declare.
2151 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2152 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2153 * parse.c: Do not include "builtin-regs.h".
2154 (target_map_name_to_register): Delete function.
2155 (write_dollar_variable): Use frame_map_name_to_regnum.
2156 * parser-defs.h (target_map_name_to_register): Delete declaration.
2157 * expprint.c: Include "frame.h".
2158 (print_subexp): Use frame_map_regnum_to_name.
2159 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2160 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2161
8b69000d
AC
21622002-09-25 Andrew Cagney <ac131313@redhat.com>
2163
2164 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2165 wasn't saved, and the next innermost frame is a dummy, return the
2166 dummy frame's link register.
2167
046ca86a
JB
21682002-09-24 Jim Blandy <jimb@redhat.com>
2169
2170 Fix from Paul Breed:
2171 * main.c (captured_main): Add a `break' after the case for 'b'.
2172
94b66fa7
KS
21732002-09-24 Keith Seitz <keiths@redhat.com>
2174
2175 * varobj.c (c_type_of_child): Use get_target_type instead
2176 of TYPE_TARGET_TYPE.
2177
c214a6fd
FN
21782002-09-22 Fernando Nasser <fnasser@redhat.com>
2179
53cb0458
FN
2180 * source.c (get_current_or_default_source_symtab_and_line): Remove
2181 function.
2182 (set_default_source_symtab_and_line): New function. Attempts to
2183 determine a source file to list lines from if one is not currently
2184 defined.
2185 (get_current_source_symtab_and_line): Initialize sal.pc and
2186 sal.end fields.
2187 (set_current_source_symtab_and_line): Mark argument as const.
2188 * source.h: Update declarations and comments.
2189 * linespec.c (decode_line_1): Replace call to removed routine above.
2190 * stack.c (print_frame_info_base): Ditto.
2191 * cli/cli-cmds.c (edit_command): Ditto.
2192 (list_command): Ditto.
2193
21942002-09-22 Fernando Nasser <fnasser@redhat.com>
2195
d6020d45 2196 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2197 sal.pc and sal.end fields.
c214a6fd
FN
2198 (get_current_or_default_source_symtab_and_line): Ditto.
2199 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2200 so we do not cause a new source symtab to be searched for (reverting an
2201 unintentional change from the 2002-09-20 patch).
2202 * scm-lang.c (scm_unpac): Ditto.
2203
cc3b68a5
AC
22042002-09-21 Andrew Cagney <cagney@redhat.com>
2205
2206 * complaints.c (symfile_explanations): Remove new-line from
2207 ``isolated_message''.
2208 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2209 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2210
5835abe7
NC
22112002-09-20 Nick Clifton <nickc@redhat.com>
2212
2213 * NEWS: Announce that V850EA ISA is no longer supported.
2214 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2215
a15ef5f5
DC
22162002-09-20 David Carlton <carlton@math.stanford.edu>
2217
06ba1b39
DC
2218 * Makefile.in (c-lang.o): Correct dependencies.
2219 (utils.o): Gather dependencies.
2220 (charset.o): Move.
a15ef5f5
DC
2221 * c-lang.c: #include "gdb_string.h"
2222
87885426
FN
22232002-09-20 Fernando Nasser <fnasser@redhat.com>
2224
2225 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2226 * cli/cli-cmds.c (list_command): New function. Implements the new
2227 cli edit command.
2228 (_init_cli_cmds): Add new command definition.
2229 * gdb.1: Document edit command.
2230 * doc/gdb.texinfo: Document edit command.
2231
22322002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2233
2234 * source.c: Make global variables current_source_symtab and
2235 current_source_line static.
2236 (list_command): Moved to cli/cli-cmds.c.
2237 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2238 (get_first_line_listed): New accessor function.
2239 (get_lines_to_list): New accessor function.
2240 (get_current_source_symtab_and_line): New function. Retrieves the
2241 position in the source code that we consider current.
2242 (get_current_or_default_source_symtab_and_line): New function.
2243 Like the above but attempts to determine a default position if one
2244 is not currently defined.
2245 (set_current_source_symtab_and_line): New function. Sets the source
2246 code position considered current and returns the previously set one.
2247 (clear_current_source_symtab_and_line): Reset stored information about
2248 a current source line.
2249 (_initialize_source): Remove registration for the "list" command and
2250 its alias.
2251 * source.h: Add declarations for the new functions above.
2252 * symtab.h: Remove declarations for the global variables mentioned
2253 above.
2254 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2255 obtain current source line.
2256 * linespec.c (decode_line_1): Ditto.
2257 * macroscope.c (default_macro_scope): Ditto.
2258 * scm-lang.c (scm_unpac): Ditto.
2259 * stack.c (print_frame_info_base): Ditto.
2260 * symfile.c (clear_symtab_users): Ditto.
2261 * symtab.c (decode_line_spec): Ditto.
2262 * cli/cli-cmds.c (list_command): Moved here from source.c.
2263 (ambiguous_line_spec): Moved here from source.c.
2264 (_init_cli_cmds): Add definition for "list" and its alias.
2265 * Makefile.in: Update dependencies.
2266
ddd216ea
CV
22672002-09-20 Corinna Vinschen <vinschen@redhat.com>
2268
2269 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2270 with what gcc thinks is correct.
2271
6d305052
CV
22722002-09-20 Corinna Vinschen <vinschen@redhat.com>
2273
2274 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2275 multiple register push instruction.
2276
234b45d4
KB
22772002-09-19 Jim Blandy <jimb@redhat.com>
2278
2279 Add support for distinct host and target character sets.
2280 * charset.c, charset.h: New files.
2281 * c-exp.y: #include "charset.h".
2282 (yylex): Convert character and string literals to the target
2283 character set, before returning them as the semantic value of the
2284 token.
2285 * c-lang.c: #include "charset.h".
2286 (c_emit_char): Use charset-specific methods to recognize
2287 characters with backslash escape forms, to decide which characters
2288 to print literally and which to print using numeric escape
2289 sequences, and to convert target characters to host characters
2290 before printing.
2291 * utils.c: #include "charset.h".
2292 (no_control_char_error): New function.
2293 (parse_escape): Use charset-specific methods to recognize
2294 backslash escapes, parse `control character' notation, and convert
2295 characters from the host character set to the target character set.
2296 * configure.in: Set the default host character set.
2297 Check where to find iconv, and what its argument types might be.
2298 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2299 * Makefile.in (SFILES): List charset.c.
2300 (COMMON_OBS): List charset.o.
2301 (charset.o): New rule.
2302 (charset_h): New header dependency variable.
2303 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2304 (LIBICONV): New variable, set by configure.
2305 (CLIBS): Include $(LIBICONV) here.
2306 * aclocal.m4, config.in, configure: Regenerated.
2307
525d6a61
JB
23082002-09-19 Joel Brobecker <brobecker@gnat.com>
2309
2310 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2311 bison 1.35 warning.
2312
3ed93867
RE
23132002-09-19 Richard Earnshaw <rearnsha@arm.com>
2314
2315 * gdb_mbuild.sh: New file.
2316
437666f8
AC
23172002-09-19 Andrew Cagney <ac131313@redhat.com>
2318
2319 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2320
389e51db
AC
23212002-09-18 Andrew Cagney <ac131313@redhat.com>
2322
2323 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2324 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2325 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2326 valops.c, value.h: Revert previous change.
2327
3b4efeaa
MS
23282002-09-18 Michael Snyder <msnyder@redhat.com>
2329
2330 Preliminary support for Objective-C:
2331 * defs.h (language_objc): New enum value.
2332 (puts_filtered_tabular): Declaration only, exported from utils.c.
2333 (skip_quoted): Delete, declared in completer.h.
2334 * c-exp.y: Include completer.h.
2335 * p-exp.y: Ditto.
2336 * jv-exp.y: Ditto.
2337 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2338 New operator enum values.
2339 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2340 * language.c (binop_result_type): Handle language_objc case.
2341 (integral_type, character_type, string_type, boolean_type,
2342 structured_type, binop_type_check): Ditto.
2343 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2344 (struct objc_specific): Add to general_symbol_info.
2345 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2346 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2347 * parser-defs.h (struct objc_class_str): New struct type.
2348 (start_msglist, end_msglist, add_msglist): Declaration only,
2349 exported from objc-lang.c.
2350 * value.h (value_of_local, value_nsstring,
2351 call_function_by_hand_expecting_type): Exported from valops.c.
2352 * valops.c (find_function_addr): Export.
2353 (call_function_by_hand_expecting_type): New function.
2354 (value_of_local): New function.
2355 * symfile.c (init_filename_language_table): Add ".m" extension
2356 for Objective-C.
2357 * utils.c (puts_filtered_tabular): New function.
2358 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2359 (set/show demangle): Extend help-string to refer to ObjC.
2360 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2361 * stabsread.c (symbol_reference_defined): Objective-C symbols
2362 may contain colons: make allowances when scanning stabs strings
2363 for colons.
2364 (objc_find_colon): New function.
2365 * printcmd.c (address_info): If language == objc then print
2366 "self" instead of "this".
2367 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2368 OP_NSSTRING, and OP_SELF.
2369 (prefixify_subexp): Ditto.
2370 * source.c (print_source_lines): Mention objc in comment.
2371 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2372 method names.
2373
b9caf505
AC
23742002-09-18 Andrew Cagney <ac131313@redhat.com>
2375
2376 * complaints.h: Update copyright.
2377 (struct complaints): Declare.
2378 (struct complaint): Make `message' constant.
2379 (internal_complaint): Declare.
2380 (complaint): Declare.
2381 (complaint_root): Delete declaration.
2382 (symfile_complaints): Delete declaration.
2383 (struct complaints): Add opaque declaration.
2384 (clear_complaints): Add a complaints parameter.
2385 * complaints.c: Update copyright.
2386 (enum complaint_series): Define.
2387 (complaint_root): Delete.
2388 (struct complaints): Define.
2389 (complaint_sentinel, symfile_complaint_book): New variables.
2390 (symfile_explanations, symfile_complaints): New variables.
2391 New variables.
2392 (get_complaints): New function.
2393 (vcomplaint): New function.
2394 (complaint): New function.
2395 (internal_complaint): New function.
2396 (complain): Call vcomplain with symfile_complaint.
2397 (clear_complaints): Rewrite.
2398 (_initialize_complaints): Use add_setshow_command.
2399 * Makefile.in (complaints.o): Update dependencies.
2400 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2401 to call to clear_complaints.
2402 (new_symfile_objfile, reread_symbols): Ditto.
2403 (oldsyms_complaint): Delete.
2404 (empty_symtab_complaint, unknown_option_complaint): Delete.
2405 (free_named_symtabs): Use complaint instead of complain.
2406
d2e6263c
MS
24072002-09-18 Michael Snyder <msnyder@redhat.com>
2408
5fb2031a
AC
2409 Contributed by Apple Computer, Inc. Merged with current sources
2410 by Adam Fedor <fedor@doc.com> [cagney].
2411
d2e6263c
MS
2412 * objc-lang.c: First clean-up round: comments, indentation.
2413 * objc-lang.h: Ditto.
2414 * objc-lang.y: Ditto.
2415
dec43320
AC
24162002-09-18 Andrew Cagney <ac131313@redhat.com>
2417
2418 * maint.c (maintenance_internal_error): Print the parameter as the
2419 error message.
2420 (maintenance_internal_warning): New function.
2421 (_initialize_maint_cmds): Add command `maint internal-warning'.
2422
2423 * defs.h (internal_warning, internal_vwarning): Declare.
2424 * utils.c (struct internal_problem): Define.
2425 (internal_vproblem): New function.
2426 (internal_warning): New function.
2427 (internal_vwarning): New function.
2428 (internal_warning_problem, internal_error_problem): New variables.
2429 (internal_verror): Just call internal_vproblem.
2430
b81654f1
MS
24312002-09-18 Michael Snyder <msnyder@redhat.com>
2432
2433 * objc-lang.c: New file, support for Objective-C.
2434 Preliminary check-in, not yet integrated into gdb.
2435 * objc-lang.h: New file.
2436 * objc-exp.y: New file.
2437
0542c381
AC
24382002-09-18 Andrew Cagney <ac131313@redhat.com>
2439
7bda5e4a
AC
2440 * infrun.c (signal_stop_update): Convert definition to ISO C.
2441 (signal_print_update): Ditto.
2442 (signal_pass_update): Ditto.
2443 * inflow.c (terminal_save_ours): Ditto.
2444
5247b418
AC
2445 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2446 comments.
2447
fc60962c
AC
2448 * config/djgpp/fnchange.lst: Handle name clashes between
2449 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2450 bfd/coff-tic80.c.
2451
0542c381
AC
2452 * i386-linux-tdep.h: Fix tipo.
2453
5b924b9b
AF
24542002-09-18 Adam Fedor <fedor@gnu.org>
2455
2456 * MAINTAINERS: Add myself to the Write After Approval list.
2457
5afc051b
JB
24582002-09-18 Jim Blandy <jimb@redhat.com>
2459
2460 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2461 texthigh and textlow to reader-specific structs caused
2462 objfile_relocate to miss them. This is fixable, but the work that
2463 the change was supposed to prepare GDB for never got done anyway.
2464
eb944380
DC
24652002-09-18 David Carlton <carlton@math.stanford.edu>
2466
2467 * MAINTAINERS: Alphabetize Write After Approval list.
2468
948e66d9
DJ
24692002-09-18 Daniel Jacobowitz <drow@mvista.com>
2470
2471 Fix PR gdb/709
2472 * values.c (value_static_field): Call read_var_value.
2473
dc604539
AC
24742002-09-18 Andrew Cagney <ac131313@redhat.com>
2475
2476 * valops.c (hand_function_call): Align the initial stack pointer
2477 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2478 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2479 return value.
2480 * mips-tdep.c (mips_frame_align): New function.
2481 (mips_gdbarch_init): Set frame_align.
2482 * gdbarch.sh (FRAME_ALIGN): New method.
2483 * gdbarch.h, gdbarch.c: Re-generate.
2484
cb7e422f
ML
24852002-09-18 Michal Ludvig <mludvig@suse.cz>
2486
2487 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2488 registers.
2489
a094c6fb
AC
24902002-09-17 Andrew Cagney <ac131313@redhat.com>
2491
2492 * NEWS: Mention that MIPS $fp behavior changed.
2493 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2494 reference to FP_REGNUM.
2495 (mipsnbsd_cannot_store_register): Ditto.
2496 * mips-linux-nat.c: Update copyright.
2497 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2498 (mips_linux_cannot_store_register): Ditto.
2499 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2500 * config/mips/tm-mips.h: Update copyright.
2501 (FP_REGNUM): Delete macro.
2502 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2503 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2504 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2505 (mips_r3041_reg_names, mips_r3051_reg_names)
2506 (mips_r3081_reg_names): Replace "fp" with "".
2507 Fix PR gdb/480.
2508
45cf40d1
TR
25092002-09-17 Theodore A. Roth <troth@verinet.com>
2510
2511 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2512 generic_read_register_dummy() (PR gdb/703).
2513 (avr_push_return_address): #if 0 out unused vars.
2514 (avr_gdbarch_init): Enable use of avr_push_return_address().
2515
c7e701b5
MS
25162002-09-17 Michael Snyder <msnyder@redhat.com>
2517
d76ba2a5 2518 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2519 RTE will take care of it.
2520
20bcf01c
AC
25212002-09-17 Andrew Cagney <ac131313@redhat.com>
2522
2523 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2524 invalid, return SP_REGNUM.
2525
009a9971 25262002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2527
2528 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2529 point registers without sign extension.
2530
135c175f
AC
25312002-09-17 Andrew Cagney <cagney@redhat.com>
2532
2533 * blockframe.c (deprecated_read_register_dummy): Rename
2534 generic_read_register_dummy.
2535 * frame.c (frame_unwind_signed_register): New function.
2536 (frame_unwind_unsigned_register): New function.
2537 * frame.h (frame_unwind_signed_register): Declare.
2538 (frame_unwind_unsigned_register): Declare.
2539 (deprecated_read_register_dummy): Rename
2540 generic_read_register_dummy.
2541
2542 * h8300-tdep.c (h8300_frame_chain): Update.
2543 (h8300_frame_saved_pc): Update.
2544 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2545 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2546 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2547 (s390_frame_chain): Update.
2548 * v850-tdep.c (v850_find_callers_reg): Update.
2549 (v850_frame_saved_pc): Update.
2550 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2551 (m32r_find_callers_reg): Update.
2552 (m32r_frame_saved_pc): Update.
2553 * sh-tdep.c (sh_find_callers_reg): Update.
2554 (sh64_get_saved_pr): Update.
2555 (sh_init_extra_frame_info): Update.
2556 (sh_init_extra_frame_info): Update.
2557 (sh64_init_extra_frame_info): Update.
2558 (sh64_init_extra_frame_info): Update.
2559 * mcore-tdep.c (mcore_find_callers_reg): Update.
2560 (mcore_frame_saved_pc): Update.
2561 (mcore_init_extra_frame_info): Update.
2562 * i386-tdep.c (i386_frame_saved_pc): Update.
2563 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2564 (ia64_init_extra_frame_info): Update.
2565 (ia64_init_extra_frame_info): Update.
2566 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2567 * cris-tdep.c (cris_init_extra_frame_info): Update.
2568 * avr-tdep.c (avr_frame_chain): Update.
2569 (avr_init_extra_frame_info): Update.
2570 (avr_frame_saved_pc): Update.
2571 * arm-tdep.c (arm_find_callers_reg): Update.
2572 (arm_init_extra_frame_info): Update.
2573 (arm_frame_saved_pc): Update.
2574
a741e514
TT
25752002-09-17 Tom Tromey <tromey@redhat.com>
2576
2577 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2578 is "'".
2579
d1a8e808
CV
25802002-09-17 Corinna Vinschen <vinschen@redhat.com>
2581
2582 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2583 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2584 NEXT_PROLOGUE_INSN.
2585 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2586 NEXT_PROLOGUE_INSN.
2587
d9025a18
JB
25882002-09-16 Joel Brobecker <brobecker@gnat.com>
2589
2590 * osfsolib.c: Remove file, replaced by solib-osf.c.
2591 * Makefile.in: Remove compilation rules for osfsolib.c.
2592
1b2ef1b6
DC
25932002-09-16 David Carlton <carlton@math.stanford.edu>
2594
2595 * cp-valprint.c (cp_print_class_method): Correct args to
2596 check_stub_method_group.
2597
928e48af
CV
25982002-09-16 Corinna Vinschen <vinschen@redhat.com>
2599
2600 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2601 `set architecture'. Unify naming convention of functions.
2602 (h8300_skip_prologue): Improve prologue analysis.
2603 (h8300_push_arguments): Rewritten to more closely match GCC's
2604 bizarre argument-passing behavior, along with the comment describing
2605 said behavior.
2606 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2607 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2608 sim, remote-e7000.c, remote-hms.c and remote.c
2609
5e3397bb
MK
26102002-09-15 Mark Kettenis <kettenis@gnu.org>
2611
2612 * i386-tdep.c (gdb_print_insn_i386): Removed.
2613 (i386_print_insn): New function.
2614 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2615 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2616 tm_print_insn_info.
2617
f710f4fc
MK
26182002-09-14 Mark Kettenis <kettenis@gnu.org>
2619
2620 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2621 zero.
2622
db54fef4
CV
26232002-09-14 Corinna Vinschen <vinschen@redhat.com>
2624
2625 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2626 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2627 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2628
2becadee
CF
26292002-09-13 Christopher Faylor <cgf@redhat.com>
2630
2631 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2632
de17c821
DJ
26332002-09-13 Daniel Jacobowitz <drow@mvista.com>
2634
2635 * gdbtypes.c (check_stub_method): Make static.
2636 (check_stub_method_group): New function.
2637 * gdbtypes.h: Update prototypes.
2638 * cp-support.c: New file.
2639 * cp-support.h: New file.
2640
2641 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2642 (update_method_name_from_physname): New function.
2643 (read_member_functions): Correct method names for operators
2644 and v3 constructors/destructors. Separate v2 constructors and
2645 destructors.
2646 * Makefile.in (stabsread.o): Update dependencies.
2647 (SFILES): Add cp-support.c.
2648 (COMMON_OBS): Add cp-support.o.
2649 (cp_support_h, cp-support.o): Add.
2650
2651 * cp-valprint.c (cp_print_class_method): Call
2652 check_stub_method_group instead of check_stub_method. Remove
2653 extraneous QUITs.
2654 * p-valprint.c (pascal_object_print_class_method): Likewise.
2655 * valops.c (search_struct_method): Likewise.
2656 (find_method_list, value_struct_elt_for_reference): Likewise.
2657
e76cff22
AC
26582002-09-13 Andrew Cagney <cagney@redhat.com>
2659
2660 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2661 * gdbarch.h, gdbarch.c: Regenerate.
2662
905abb3f
AC
26632002-09-13 Andrew Cagney <ac131313@redhat.com>
2664
2665 * frame.c (find_saved_register): Delete function.
2666 * frame.h (find_saved_register): Delete declaration.
2667 Fix PR gdb/631.
2668
64159455
AC
2669Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2670
2671 * mips-tdep.c (read_next_frame_reg): Re-hack using
2672 frame_register_unwind.
2673
795e1e11
AC
2674Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2675
2676 * mips-tdep.c (mips_get_saved_register): Re-hack using
2677 frame_register_unwind.
2678
5720643c
JB
26792002-09-12 Joel Brobecker <brobecker@gnat.com>
2680
2681 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2682 vector. Will be useful for Interix.
2683 * gdbarch.h, gdbarch.c: Regenerate.
2684
2685 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2686 name of the malloc function by NAME_OF_MALLOC.
2687
3bada2a2
JB
26882002-09-12 Joel Brobecker <brobecker@gnat.com>
2689
2690 * value.h (find_function_in_inferior): Add const keyword to
2691 one of the parameters. Allows us to invoke this function with
2692 a const char *.
2693 * valops.c (find_function_in_inferior): Likewise.
2694
3db26b01
JB
26952002-09-12 Joel Brobecker <brobecker@gnat.com>
2696
2697 * exec.c (xfer_memory): Fix compilation warning with old versions
2698 of GCC.
2699 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2700
17c5ed2c
DC
27012002-09-12 David Carlton <carlton@math.stanford.edu>
2702
2703 * symtab.h: Run through gdb_indent.h.
2704 Add 2002 to Copyright year list.
2705
ecd1107e
AM
27062002-09-12 Alan Modra <amodra@bigpond.net.au>
2707
2708 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2709 mach constants.
2710 * MAINTAINERS: Add myself to write after approval list.
2711
e64f66d1
JB
27122002-09-11 J. Brobecker <brobecker@gnat.com>
2713
2714 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2715
f9395794
JB
27162002-09-11 J. Brobecker <brobecker@gnat.com>
2717
2718 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2719 Interix.
2720
1a303dec
MS
27212002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2722
2723 * procfs.c (do_detach): Clear current signal, not just fault.
2724 Corrects problem with breakpoint trap signal leaking to detached
2725 process on Tru64.
2726
c0219d42
MS
27272002-09-10 Michael Snyder <msnyder@redhat.com>
2728
2729 * buildsym.c (finish_block): Protect against null pointer.
2730
9d84ac84
AC
27312002-09-10 Andrew Cagney <cagney@redhat.com>
2732
2733 * infcmd.c (default_print_registers_info): Send all output to
2734 ``file'' instead of ``gdb_stdout''.
2735
77d8f2b4
MS
27362002-09-10 Michael Snyder <msnyder@redhat.com>
2737
2738 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2739 LONGEST, and use signed register read (addresses are sign-
2740 extended for mips).
2741
99656a61
SC
27422002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2743
2744 * event-loop.c (gdb_do_one_event): Make public.
2745 * event-loop.h (gdb_do_one_event): Declare.
2746
da12f4d8
JL
27472002-09-10 Jeff Law <law@redhat.com>
2748
2749 * infttrace.c (child_resume): Simplify and rework to avoid
2750 TT_PROC_CONTINUE.
2751
d0aee0c4
FF
27522002-09-09 Fred Fish <fnf@intrinsity.com>
2753
2754 * printcmd.c (print_scalar_formatted): "len" is the number of
2755 target bytes, NOT the number of target bits.
2756
7cb3ec5e
EZ
27572002-09-09 Elena Zannoni <ezannoni@redhat.com>
2758
2759 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2760 * top.c (init_main): Set rl_terminal_name.
2761
4dc81987
AS
27622002-09-08 Aidan Skinner <aidan@velvet.net>
2763
2764 * ada-lang.c (ada_array_bound, ada_type_match,
2765 _initialize_ada_language): Fix K&R definitions.
2766 * ada-tasks.c (get_current_task): Fix K&R definitions.
2767 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2768
842330b4
CF
27692002-09-07 Christopher Faylor <cgf@redhat.com>
2770
2771 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2772 Add XP.
2773
43156d82
MK
27742002-09-06 Mark Kettenis <kettenis@gnu.org>
2775
66da5fd8
MK
2776 * i386-tdep.c (i386_register_virtual_type,
2777 i386_register_convertible, i386_register_convert_to_virtual,
2778 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2779 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2780 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2781 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2782 Don't set push_arguments twice.
2783
4b218c18
MK
2784 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2785 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2786 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2787 sigtramp_end to NULL.
2788 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2789 defines.
2790 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2791
4cc314d5
MK
2792 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2793 whitespace.
2794
43156d82
MK
2795 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2796 * gdbarch.h, gdbarch.c: Re-generate.
2797 * blockframe.c (find_pc_sect_partial_function): Convert to use
2798 SIGTRAMP_START_P predicate.
2799
6672060b
MS
28002002-09-05 Michael Snyder <msnyder@redhat.com>
2801
a90c3637
MS
2802 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2803 generic_dummy_frame method and old method. Also distinguish
2804 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2805 (arm_extract_return_value): Use new regcache method.
a90c3637 2806
6672060b
MS
2807 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2808 adjustment that doesn't conform to the ABI.
2809 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2810 saved regcache, not from current regcache.
2811
299ffc64
AC
28122002-09-05 Andrew Cagney <ac131313@redhat.com>
2813
2814 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2815 * README: Update.
2816
a3a2ee65
JT
28172002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2818
2819 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2820 if arm_apcs_32 is false.
2821
2bc7eea9
AC
28222002-09-04 Andrew Cagney <ac131313@redhat.com>
2823
2824 GDB 5.3 branch created.
2825
8a55a7c5
TR
28262002-09-03 Theodore A. Roth <troth@verinet.com>
2827
2828 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2829 generic_unwind_get_saved_register.
2830
e26fb1d7
DC
28312002-09-03 David Carlton <carlton@math.stanford.edu>
2832
2833 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2834 argument (PR gdb/653). Update call to smash_to_method_type.
2835 (read_structure_scope): Update call to dwarf2_add_member_fn.
2836
30d52491
ML
28372002-09-03 Michal Ludvig <mludvig@suse.cz>
2838
2839 * x86-64-linux-tdep.c: Include gdb_string.h
2840 * x86-64-linux-nat.c: Ditto.
2841
06891d83
JT
28422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2843
2844 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2845 when YYDEBUG is set to 1.
2846 * c-exp.y: Likewise.
2847 * f-exp.y: Likewise.
2848 * jv-exp.y: Likewise.
2849 * m2-exp.y: Likewise.
2850 * p-exp.y: Likewise.
2851
7d400e77
JT
28522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2853
2854 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2855 dependency list.
2856 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2857 solib_svr4_fetch_link_map_offsets to
2858 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2859 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2860 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2861 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2862 solib-svr4.o, and solib-legacy.o.
2863 * config/i386/tm-nbsd.h: Include solib.h.
2864
704a27c4
JT
28652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2866
2867 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2868 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2869 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2870 comment noting that this needs its own target configuration.
2871 * config/i386/nbsd.mt: New file.
2872 * config/i386/nbsdaout.mt: Remove.
2873 * config/i386/nbsdelf.mt: Ditto.
2874 * config/i386/tm-nbsdaout.h: Ditto.
2875
d66198e1
JT
28762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2877
2878 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2879 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2880 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2881 tdep->sigtramp_end.
2882 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2883 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2884 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2885
3cac699e
JT
28862002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2887
2888 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2889 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2890 * i386-tdep.h (i386bsd_init_abi): New prototype.
2891 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2892 function declaration.
2893 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2894 for NetBSD-a.out or NetBSD-ELF.
2895 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2896 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2897 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2898 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2899 and nbsd-tdep.h.
2900 (i386nbsd_pc_in_sigtramp): New function.
2901 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2902 i386nbsd_pc_in_sigtramp.
2903 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2904 and i386nbsdelf_init_abi OS ABI handlers.
2905 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2906 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2907
7010ca0a
MK
29082002-09-02 Mark Kettenis <kettenis@gnu.org>
2909
2910 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2911 registers if the target really has them.
2912
6dd93b72
JT
29132002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2914
2915 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2916 than nbsd-tdep.h.
2917
2ca8ae21
JT
29182002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2919
2920 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2921 list.
2922 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2923 (alphanbsd_skip_sigtramp_frame): New functions.
2924 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2925 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2926 to alphanbsd_sigcontext_addr.
2927
3d9b49b0
JT
29282002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2929
2930 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2931 list.
2932 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2933 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2934 nbsd_pc_in_sigtramp.
2935 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2936 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2937 * nbsd-tdep.c: Include gdb_string.h.
2938 (nbsd_pc_in_sigtramp): New function.
2939 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2940 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2941 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2942 ppcnbsd_pc_in_sigtramp.
2943 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2944 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2945 shnbsd_pc_in_sigtramp.
2946 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2947 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2948 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2949
c860120c
PM
29502002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2951
2952 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2953 watchpoints to NULL.
2954 (insert_breakpoints): set val field of watchpoints if NULL.
2955
2956
c7612d53
JB
29572002-08-29 Jim Blandy <jimb@redhat.com>
2958
2959 * symtab.c (lookup_symbol_aux): In the cases where we find a
2960 minimal symbol of an appropriate name and use its address to
2961 select a symtab to read and search, use `name' (as passed to us)
2962 as the demangled name when searching the symtab's global and
2963 static blocks, not the minsym's name.
2964
66609862
KS
29652002-08-29 Keith Seitz <keiths@redhat.com>
2966
2967 * stack.c (print_frame_info_base): Always set current_source_symtab
2968 and current_source_line.
2969
151fefe2
JB
29702002-08-29 Donn Terry <donnte@microsoft.com>
2971
2972 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2973
bfb3754e
KS
29742002-08-28 Keith Seitz <keiths@redhat.com>
2975
2976 * stack.c (select_frame): Add FIXME concerning selected-frame
2977 events.
2978 (select_frame_command): Send selected-frame-level-changed
2979 event notification, but only if the level actually changed.
2980 (up_silently_base): Add selected-frame-level-changed event
2981 notification.
2982 (down_silently_base): Likewise.
2983
e822a2a0
AC
29842002-08-28 Andrew Cagney <ac131313@redhat.com>
2985
2986 * Makefile.in: Update dependencies for all gdb/*.c files.
2987
309367d4
TT
29882002-08-27 Tom Tromey <tromey@redhat.com>
2989
2990 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2991 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2992 Update dependencies.
2993 * i387-tdep.c: Include gdb_string.h.
2994 * osabi.c: Likewise.
2995 * i386-linux-nat.c: Likewise.
2996 * lin-lwp.c: Likewise.
2997 * ax-gdb.c: Likewise.
2998 * signals/signals.c: Likewise.
2999 * jv-valprint.c: Likewise.
3000 * p-lang.c: Likewise.
3001 * c-valprint.c: Likewise.
3002 * cp-abi.c: Likewise.
3003
e1507482
EZ
30042002-08-27 Elena Zannoni <ezannoni@redhat.com>
3005
3006 * cli/cli-script.h (copy_command_lines): Export.
3007 * breakpoint.c: Include cli/cli-script.h.
3008 * Makefile.in (breakpoint.o): Update dependencies.
3009
c6510018
MS
30102002-08-26 Michael Snyder <msnyder@redhat.com>
3011
3012 * breakpoint.c (insert_breakpoints): Protect all references
3013 to 'process_warning'. Shorten long lines.
3014
c2b8ed2c
MS
30152002-08-26 Joel Brobecker <brobecker@gnat.com>
3016
3017 * cli/cli-script.c (copy_command_lines): New function.
3018 * defs.h (copy_command_lines): Export.
3019 * testsuite/gdb.base/commands.exp: New tests for commands
3020 attached to a temporary breakpoint, and for commands that
3021 delete the breakpoint they are attached to.
3022
30232002-08-26 Michael Snyder <msnyder@redhat.com>
3024
3025 * breakpoint.c (bpstat_stop_status): Instead of copying the
3026 pointer to the breakpoint commands struct, make a new copy
3027 of the struct and point to that.
3028 (bpstat_clear): Free the commands struct.
3029 (bpstat_clear_actions): Free the commands struct.
3030 (bpstat_do_actions): Free the command actions. Also execute
3031 the local cleanups, instead of deleting them.
3032 (delete_breakpoint): Leave the commands field of the bpstat
3033 chain alone -- it will be freed later.
3034
64b84175
KB
30352002-08-26 Kevin Buettner <kevinb@redhat.com>
3036
3037 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3038 deleted in 2002-08-20 commit. This function is still used by
3039 ppc-linux-nat.c.
3040
55970da6
KS
30412002-08-26 Keith Seitz <keiths@redhat.com>
3042
3043 * gdb-events.sh: Add selected-frame-level-changed event.
3044 * gdb-events.c: Regenerated.
3045 * gdb-events.h: Regenerated.
3046
a790ad35
SC
30472002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3048
3049 Fix PR gdb/393:
3050 * inflow.c (terminal_save_ours): New function to save terminal
3051 settings.
3052 * inferior.h (terminal_save_ours): Declare.
3053 * target.c (debug_to_terminal_save_ours): New function.
3054 (cleanup_target): Defaults to_terminal_save_ours.
3055 (update_current_target): Inherit to_terminal_save_ours.
3056 (setup_target_debug): Set to_terminal_save_ours.
3057 * target.h (target_terminal_save_ours): New to save terminal settings.
3058 (target_ops): New member to_terminal_save_ours.
3059 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3060 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3061 * inftarg.c (init_child_ops): Likewise.
3062 * m3-nat.c (init_m3_ops): Likewise.
3063 * procfs.c (init_procfs_ops): Likewise.
3064 * wince.c (init_child_ops): Likewise.
3065 * win32-nat.c (init_child_ops): Likewise.
3066 * sol-thread.c (init_sol_thread_ops): Likewise.
3067
c00dcbe9
MK
30682002-08-26 Mark Kettenis <kettenis@gnu.org>
3069
3d7f4f49
MK
3070 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3071 use regcache_* functions.
3072 (i386_gdbarch_init): Set store_return_value instead of
3073 deprecated_store_return_value.
3074
c00dcbe9
MK
3075 * regcache.c (regcache_raw_write_signed,
3076 regcache_raw_write_unsigned): New functions.
3077 * regcache.h (regcache_raw_write_signed,
3078 regcache_raw_write_unsigned): New prototypes.
3079
0e0d15ca
AC
30802002-08-25 Andrew Cagney <ac131313@redhat.com>
3081
3082 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3083 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3084 source file dependencies. Cleanup corresponding generator rules.
3085
d3b22ed5
AC
30862002-08-25 Andrew Cagney <ac131313@redhat.com>
3087
3088 * regcache.h (register_offset_hack): Declare.
3089 (regcache_cooked_read_using_offset_hack): Declare.
3090 (regcache_cooked_write_using_offset_hack): Declare.
3091
3092 * regcache.c (register_offset_hack): New function.
3093 (regcache_cooked_read_using_offset_hack): New function.
3094 (regcache_cooked_write_using_offset_hack): New function.
3095 (regcache_dump): Check that the registers, according to their
3096 offset, are packed hard against each other.
3097 (cooked_xfer_using_offset_hack): New function.
3098
bb425013
AC
30992002-08-25 Andrew Cagney <ac131313@redhat.com>
3100
3101 * regcache.c (struct regcache_descr): Add field register_type.
3102 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3103 in as a parameter
3104 (init_regcache_descr): Initialize register_type. Pass the descr
3105 to init_legacy_regcache_descr. Use register_type instead of
3106 REGISTER_VIRTUAL_TYPE.
3107 (register_type): New function.
3108 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3109 * regcache.h (register_type): Declare.
3110
d0403e00
AC
31112002-08-25 Andrew Cagney <ac131313@redhat.com>
3112
3113 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3114 instead of deprecated_store_return_value. Fix fallout from
3115 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3116
0ed04cce
AC
31172002-08-25 Andrew Cagney <ac131313@redhat.com>
3118
3119 * regcache.c (max_register_size): New function.
3120 (init_legacy_regcache_descr): Ensure that max_register_size is
3121 large enough for REGISTER_VIRTUAL_SIZE.
3122 * regcache.h (max_register_size): Declare.
3123
46d79c04
AC
31242002-08-24 Andrew Cagney <ac131313@redhat.com>
3125
3126 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3127 store_return_value.
3128 (e500_extract_return_value): Change type of valbuf pointer to
3129 void.
3130
853c7bd0
MK
31312002-08-24 Mark Kettenis <kettenis@gnu.org>
3132
cd87e769
MK
3133 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3134 workaround.
3135
853c7bd0
MK
3136 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3137 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3138 long long) to prevent compiler warning on 64-bit systems.
3139
ebba8386
AC
31402002-08-23 Andrew Cagney <cagney@redhat.com>
3141
3142 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3143 (DEPRECATED_STORE_RETURN_VALUE): New method.
3144 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3145 * gdbarch.h, gdbarch.c: Re-generate.
3146
3147 * values.c (set_return_value): Pass current_regcache to
3148 STORE_RETURN_VALUE.
3149 * arch-utils.h (legacy_store_return_value): Declare.
3150 * arch-utils.c (legacy_store_return_value): New function.
3151 (legacy_extract_return_value): Update parameters.
3152
3153 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3154 STORE_RETURN_VALUE.
3155 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3156 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3157 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3158 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3159 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3160 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3161 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3162 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3163 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3164 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3165
3166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3167 * i386-tdep.c (i386_extract_return_value): Update.
3168 * arch-utils.c (legacy_extract_return_value): Update.
3169 * frv-tdep.c (frv_gdbarch_init): Update.
3170 * cris-tdep.c (cris_gdbarch_init): Update.
3171 * d10v-tdep.c (d10v_gdbarch_init): Update.
3172 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3173 * m68k-tdep.c (m68k_gdbarch_init): Update.
3174 * mcore-tdep.c (mcore_gdbarch_init): Update.
3175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3176 * s390-tdep.c (s390_gdbarch_init): Update.
3177 * sparc-tdep.c (sparc_gdbarch_init): Update.
3178 * sh-tdep.c (sh_gdbarch_init): Update.
3179 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3180 * v850-tdep.c (v850_gdbarch_init): Update.
3181 * avr-tdep.c (avr_gdbarch_init): Update.
3182 * ia64-tdep.c (ia64_gdbarch_init): Update.
3183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3184 * vax-tdep.c (vax_gdbarch_init): Update.
3185 * alpha-tdep.c (alpha_gdbarch_init): Update.
3186 * arm-tdep.c (arm_gdbarch_init): Update.
3187 * mips-tdep.c (mips_gdbarch_init): Update.
3188 * i386-tdep.c (i386_gdbarch_init): Update.
3189
5bd8c6d0
AC
31902002-08-23 Andrew Cagney <ac131313@redhat.com>
3191
3192 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3193 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3194
e73e1724
MK
31952002-08-24 Mark Kettenis <kettenis@gnu.org>
3196
3197 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3198 problems.
3199
3e6564e1
JB
32002002-08-23 Joel Brobecker <brobecker@gnat.com>
3201
3202 * infrun.c (handle_inferior_event): Move a comment outside of a
3203 function call, in order to avoid indent reformatting this part
3204 of the code in an unreadable way.
3205
81d0cc19
GS
32062002-08-23 Grace Sainsbury <graces@redhat.com>
3207
3208 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3209 when breakpoints fail. Move general breakpoint error messages to
3210 insert_breakpoints.
3211 * breakpoint.c (insert_breakpoints): Change warnings when
3212 breakpoints are nto inserted to specify the type. Remove call to
3213 memory_error when hardware breakpoints can't be inserted. Remove
3214 multiple calls to warning so all messages are sent to the user at
3215 once.
3216 (delete_breakpoints): Make insert error messsages more explicit.
3217
17574093
DJ
32182002-08-23 Daniel Jacobowitz <drow@mvista.com>
3219
3220 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3221 gdbserver/ChangeLog.
3222
8acc2935
MK
32232002-08-23 Mark Kettenis <kettenis@gnu.org>
3224
dfe01d39
MK
3225 * i386-tdep.c: Include "objfiles.h".
3226 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3227 skip_trampoline_code.
3228 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3229 (CPLUS_MARKER): Define to '.'.
3230
8acc2935
MK
3231 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3232 member.
3233 (linux_corefile_thread_callback): Increase args->num_notes.
3234 (linux_make_note_section): Initialize thread_args.num_notes, and
3235 use it to determine whether notes for any threads were created.
3236
151fefe2 32372002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3238
3239 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3240 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3241 and PCUNKILL.
3242 (write_with_trace): Conditionalize out the switch branch handling
3243 PCSHOLD if the corresponding macro is not defined. Likewise for
3244 PRSABORT and PRSTOP.
3245 This change will be needed by the Interix port.
3246
e1507482
EZ
32472002-08-22 Elena Zannoni <ezannoni@redhat.com>
3248
3249 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3250 write_register wherever possible instead of manipulating the
3251 register bytes directly.
3252 Assign VALUE_CONTENTS to a variable and use that.
3253 The GPR numbers are now dependent on the architecture.
3254
96ff0de4
EZ
32552002-08-22 Elena Zannoni <ezannoni@redhat.com>
3256
3257 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3258 ev_offset fields.
3259 (skip_prologue): Add support for BookE/e500 instructions.
3260 (e500_extract_return_value): New function.
3261 (frame_get_saved_regs): Add support for saving ev registers and
3262 pseudo gpr's.
3263 (e500_store_return_value): New function.
3264 (rs6000_gdbarch_init): Move up default intializations of
3265 deprecated_extract_return_value and store_return_value. Overwrite
3266 init of store_return_value with e500 specific version.
3267 Set extract_return_value for e500.
3268
fbefca5b
EZ
32692002-08-22 Elena Zannoni <ezannoni@redhat.com>
3270
3271 * blockframe.c (generic_call_dummy_register_unwind): Use
3272 regcache_cooked_read to catch cases in which the variable is
3273 stored in a pseudo register.
3274
4d210288
AC
32752002-08-22 Andrew Cagney <cagney@redhat.com>
3276
3277 * NEWS: Mention that the i960 has been made obsolete.
3278 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3279 i960-tdep.c
3280 (remote-nrom.o): Obsolete target.
3281 (remote-nindy.o, i960-tdep.o): Ditto.
3282 * remote-nrom.c: Make file obsolete.
3283 * remote-nindy.c, remote-vx960.c: Ditto.
3284 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3285 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3286 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3287 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3288 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3289 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3290 i960-*-vxworks* obsolete.
3291 * MAINTAINERS: Note that the i960 is obsolete.
3292
6c0c456d
CV
32932002-08-21 Corinna Vinschen <vinschen@redhat.com
3294
3295 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3296 detach to allow reinitialization.
3297
9f9d12b3
AC
32982002-08-22 Andrew Cagney <ac131313@redhat.com>
3299
3300 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3301 attempt).
3302
ebeb39fe
JB
33032002-08-22 Jim Blandy <jimb@redhat.com>
3304
3305 * coffread.c (coff_symfile_read): Don't try to read the line
3306 number table from disk if the image file doesn't have a symbol
3307 table; we'll never actually look at the info anyway, and Windows
3308 ships DLL's with bogus file offsets for the line number data.
3309
5bf1c677
EZ
33102002-08-21 Elena Zannoni <ezannoni@redhat.com>
3311
3312 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3313 an e500 executable.
3314
71b8ef93
MS
33152002-08-21 Michael Snyder <msnyder@redhat.com>
3316
3317 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3318 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3319 (DEFAULT_MIPS_TYPE): Delete unused macro.
3320 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3321 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3322
d174216d
JB
33232002-08-21 Jim Blandy <jimb@redhat.com>
3324
3325 * valops.c (value_cast): Simplify and correct logic for doing a
3326 static cast from a pointer to a base class to a pointer to a
3327 derived class.
3328
0ab7a791
AC
33292002-08-21 Andrew Cagney <ac131313@redhat.com>
3330
3331 * infcmd.c (default_print_registers_info): Replace
3332 do_registers_info.
3333 (registers_info): Use gdbarch_print_registers_info instead of
3334 DO_REGISTERS_INFO.
3335 * inferior.h (default_print_registers_info): Replace
3336 do_registers_info.
3337 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3338 (DO_REGISTERS_INFO): Change to a predicate function.
3339 * gdbarch.h, gdbarch.c: Regenerate.
3340
e23792cc
KS
33412002-08-21 Keith Seitz <keiths@redhat.com>
3342
3343 * gdb-events.sh: Add target-changed event.
3344 * gdb-events.c: Regenerated.
3345 * gdb-events.c: Regenerated.
3346 * valops.c (value_assign): Add target-changed event notification
3347 to inlval_register, lval_memory, and lval_reg_frame_relative.
3348
9fb14e79
JB
33492002-08-21 Joel Brobecker <brobecker@gnat.com>
3350
3351 * NEWS: Add an entry regarding the improvement of the next/step
3352 operation on Alpha Tru64 multi-processor machines.
3353
6d39a69f
AC
33542002-08-21 Andrew Cagney <ac131313@redhat.com>
3355
72acd513
AC
3356 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3357 directores.
342af04b 3358 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3359 * Makefile.in (install-gdbtk): Move to install section.
3360 (rdi-share/libangsd.a): Move to end of file.
3361
fa5f27c7
AC
33622002-08-19 Andrew Cagney <ac131313@redhat.com>
3363
3364 * frame.c (frame_register_unwind): When a register, set addrp to
3365 the register's byte.
3366
5a89d8aa
MS
33672002-08-20 Michael Snyder <msnyder@redhat.com>
3368
3369 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3370 used locally, so move them from the target machine header to here.
3371 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3372 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3373 Make static.
3374 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3375
822e978b
AC
33762002-08-20 Andrew Cagney <cagney@redhat.com>
3377
3378 * NEWS: Mention that the Apollo line was made obsolete.
3379 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3380 m68*-hp-hpux* obsolete.
3381 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3382 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3383 * buildsym.c (make_blockvector): Make static.
3384 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3385 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3386 (ALLDEPFILES): Remove dstread.c.
3387 (dstread.o): Obsolete make rule.
3388 * dstread.c: Makefile obsolete.
3389 * dst.h: Ditto.
3390 * config/m68k/hp300hpux.mt: Ditto.
3391 * config/m68k/hp300hpux.mh: Ditto.
3392 * config/m68k/hp300bsd.mt: Ditto.
3393 * config/m68k/hp300bsd.mh: Ditto.
3394 * config/m68k/apollo68b.mt: Ditto.
3395 * config/m68k/apollo68v.mh: Ditto.
3396 * config/m68k/apollo68b.mh: Ditto.
3397
e41b17f0
MS
33982002-08-20 Michael Snyder <msnyder@redhat.com>
3399
3400 * mips-tdep.c (mips_in_return_stub): Make static.
3401 (mips_gdbarch_init): Set in_solib_return_trampoline.
3402 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3403
d50355b6
MS
34042002-08-20 Michael Snyder <msnyder@redhat.com>
3405
3406 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3407 * gdbarch.c, gdbarch.h: Regenerate.
3408 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3409 Add.
3410 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3411
757a7cc6
MS
34122002-08-20 Michael Snyder <msnyder@redhat.com>
3413
3414 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3415 (mips_gdbarch_init): Set skip_trampoline_code,
3416 in_solib_call_trampoline.
3417 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3418 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3419
c8001721
EZ
34202002-08-20 Elena Zannoni <ezannoni@redhat.com>
3421
3422 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3423
3424 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3425 vector type for ev registers.
3426 (e500_pseudo_register_read): New function.
3427 (e500_pseudo_register_write): New function.
3428 (e500_dwarf2_reg_to_regnum): New function.
3429 (PPC_UISA_NOFP_SPRS): New macro.
3430 (PPC_EV_REGS): New macro.
3431 (PPC_GPRS_PSEUDO_REGS): New macro.
3432 (registers_e500): New register set for e500.
3433 (variants): Add e500 variant.
3434 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3435 before setting architectural dependent variations. Initialize ev
3436 registers numbers. Add case for e500 architecture. Set the
3437 number of pseudo registers.
3438
64366f1c
EZ
34392002-08-20 Elena Zannoni <ezannoni@redhat.com>
3440
3441 * rs6000-tdep.c: Clean up comments.
3442
7e78f0ca
AC
34432002-08-20 Andrew Cagney <cagney@redhat.com>
3444
3445 * h8300-tdep.c: Re-indent file.
3446
697f7479
JB
34472002-08-20 Jim Blandy <jimb@redhat.com>
3448
3449 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3450 default for this.
697f7479 3451
e86ae29f
KS
34522002-08-20 Keith Seitz <keiths@redhat.com>
3453
3454 * breakpoints.c (watch_command_1): Use internal breakpoint
3455 when setting a watchpoint_scope breakpoint.
3456
216b504f
EZ
34572002-08-20 Elena Zannoni <ezannoni@redhat.com>
3458
3459 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3460 (build_builtin_type_vec64i): Ditto.
3461 (build_builtin_type_vec128): Ditto.
3462 (build_builtin_type_vec128i): Ditto.
3463
f7ab6ec6
MS
34642002-08-19 Michael Snyder <msnyder@redhat.com>
3465
3466 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3467 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3468 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3469 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3470 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3471 CALL_DUMMY_ADDRESS): Delete.
3472 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3473 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3474 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3475 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3476 push_return_address.
3477 (mips_register_raw_size, mips_eabi_use_struct_convention,
3478 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3479 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3480 mips_init_extra_frame_info, mips_eabi_push_arguments,
3481 mips_n32n64_push_arguments, mips_push_return_address,
3482 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3483 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3484
b5d1566e
MS
34852002-08-19 Michael Snyder <msnyder@redhat.com>
3486
3487 * mips-tdep.c (mips_frame_num_args): New function.
3488 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3489 frame_saved_pc, frame_args_address, frame_locals_address,
3490 frame_num_args, and frame_args_skip.
3491 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3492 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3493 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3494 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3495
2f1488ce
MS
34962002-08-20 Michael Snyder <msnyder@redhat.com>
3497
3498 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3499 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3500 * mips-tdep.c (mips_store_struct_return): New function.
3501 (mips_extract_struct_value_address): New function.
3502 (mips_gdbarch_init): Set store_struct_return and
3503 extract_struct_value_address.
3504
41ff2da1
DC
35052002-08-20 David Carlton <carlton@math.stanford.edu>
3506
3507 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3508 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3509 (read_file_scope): Check that line_header is nonzero before
3510 decoding macro information.
3511
e5451d58
MK
35122002-08-20 Mark Kettenis <kettenis@gnu.org>
3513
3514 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3515 flag the general-purpose registers as floating-point on targets
3516 that don't support the floating-point registers.
3517
4a6daafa
EZ
35182002-08-20 Elena Zannoni <ezannoni@redhat.com>
3519
3520 * rs6000-tdep.c (altivec_register_p): Delete.
3521 (rs6000_do_altivec_registers): Delete.
3522 (rs6000_altivec_registers_info): Delete.
3523 (rs6000_do_registers_info): Delete.
3524 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3525 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3526
ab4327e0
EZ
35272002-08-20 Elena Zannoni <ezannoni@redhat.com>
3528
3529 * infcmd.c (do_registers_info): Print vector registers in hex
3530 format only.
3531 (print_vector_info): Check that printing registers
3532 makes sense.
3533 (print_float_info): Ditto.
3534
cb1d2653
AC
35352002-08-20 Andrew Cagney <ac131313@redhat.com>
3536
3537 * mips-tdep.c (mips_gdbarch_init): Update.
3538 (mips_o32_extract_return_value): Rewrite.
3539 (mips_o32_store_return_value): Rewrite.
3540 (mips_o32_xfer_return_value): New function.
3541 (mips_xfer_register): Tweak debug print message. Allow for
3542 buf_offset when dumping the value transfered.
3543
dfc3d9b2
AC
35442002-08-20 Andrew Cagney <ac131313@redhat.com>
3545
3546 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3547 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3548 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3549 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3550 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3551
7807aa61
MS
35522002-08-14 Michael Snyder <msnyder@redhat.com>
3553
3554 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3555
489461e2
EZ
35562002-08-19 Elena Zannoni <ezannoni@redhat.com>
3557
3558 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3559 register.
3560 (P): New macro to define a register as a pseudo register.
3561 (R, R4, R8, R16, FR32, R64, R0): Updated.
3562 (struct variant): Add new fields for number of pseudo registers
3563 and number of total registers.
3564 (tot_num_registers): New macro replacing....
3565 (num_registers): ...deleted macro.
3566 (num_registers): New function.
3567 (num_pseudo_registers): New function.
3568 (variants): Update all variants to intialize new fields correctly.
3569 Postpone initialization of number of pseudo regs and real regs.
3570 (init_variants): New function.
3571 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3572 registers offsets.
3573
fcaffe4c
DC
35742002-08-19 David Carlton <carlton@math.stanford.edu>
3575
2c2738a0
DC
3576 * valops.c (search_struct_field): Change error message to treat
3577 return value of 0 from value_static_field as meaning that field is
3578 optimized out.
3579 (value_struct_elt_for_reference): Ditto.
3580 * values.c (value_static_field): Treat an unresolved location the
3581 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3582 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3583 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3584 * MAINTAINERS: Add self to Write After Approval list.
3585
88658117
AC
35862002-08-19 Andrew Cagney <ac131313@redhat.com>
3587
3588 * mips-tdep.c (mips_xfer_register): New function.
3589 (mips_n32n64_extract_return_value): Rewrite.
3590 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3591 instead of deprecated_extract_return_value.
3592
21283beb
EZ
35932002-08-19 Elena Zannoni <ezannoni@redhat.com>
3594
3595 * rs6000-tdep.c (TDEP): Delete macro.
3596 (branch_dest): Replace use of TDEP macro with its body.
3597 (rs6000_pop_frame): Ditto.
3598 (rs6000_push_arguments): Ditto.
3599 (rs6000_skip_trampoline_code): Ditto.
3600 (rs6000_frame_saved_pc): Ditto.
3601 (rs6000_frame_chain): Ditto.
3602 (rs6000_register_name): Ditto.
3603 (rs6000_register_byte): Ditto.
3604 (rs6000_register_raw_size): Ditto.
3605 (rs6000_register_virtual_type): Ditto.
3606 (rs6000_register_convertible): Ditto.
3607 (rs6000_convert_from_func_ptr_addr): Ditto.
3608
bf072999
DJ
36092002-08-19 Daniel Jacobowitz <drow@mvista.com>
3610
3611 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3612 conditionally.
3613 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3614 MIPS_LINUX_JB_ELEMENT_SIZE.
3615 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3616 for MAX_REGISTER_RAW_SIZE arrays.
3617 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3618 MIPS_LINUX_JB_ELEMENT_SIZE.
3619
9b949a49
PM
36202002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3621
3622 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3623
6d3e79c6
AS
36242002-08-19 Aidan Skinner <aidan@velvet.net>
3625
3626 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3627 ada-valprint.c ada-tasks.c.
3628 (YYFILES): Add ada-exp.y.
3629 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3630 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3631 (ada-exp.tab.o): New target.
3632
06c0b04e
AC
36332002-08-18 Andrew Cagney <ac131313@redhat.com>
3634
3635 * regcache.c (regcache_xfer_part): New function.
3636 (regcache_raw_read_part): New function.
3637 (regcache_raw_write_part): New function.
3638 (regcache_cooked_read_part): New function.
3639 (regcache_cooked_write_part): New function.
3640 * regcache.h (regcache_raw_read_part): Declare.
3641 (regcache_raw_write_part): Declare.
3642 (regcache_cooked_read_part): Declare.
3643 (regcache_cooked_write_part): Declare.
3644
92d1e331
DJ
36452002-08-18 Daniel Jacobowitz <drow@mvista.com>
3646
3647 * remote.c (remote_open_1): Add async_p.
3648 (remote_async_open_1): Delete.
3649 (open_remote_target): Delete.
3650 (remote_open, extended_remote_open): Update calls to remote_open_1.
3651 (remote_async_open, extended_remote_async_open): Call
3652 remote_open_1 instead of remote_async_open_1.
3653
247055de
MK
36542002-08-19 Mark Kettenis <kettenis@gnu.org>
3655
3656 * blockframe.c: Fix a few coding standard violations.
3657
641eda39
MK
36582002-08-19 Mark Kettenis <kettenis@gnu.org>
3659
0b717710
MK
3660 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3661 here from ...
3662 * config/i386/tm-i386sco5.h: ... here. File removed.
3663 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3664
26d28e12 3665 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3666 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3667 (TM_FILE): Set to tm-i386.h.
3668 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3669 * config/i386/tm-i386v.h: Remove file.
3670 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3671 instead of "i386/tm-i386v.h".
3672 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3673 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3674 "i386/tm-i386v.h".
3675 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3676 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3677 "i386/tm-i386.h".
3678
d4e0bab4
MK
36792002-08-18 Mark Kettenis <kettenis@gnu.org>
3680
3681 * config/i386/nm-i386v.h: Add protection against
3682 multiple-inclusion.
3683 (i386_register_u_addr): Remove prototype.
3684 (register_u_addr): New prototype.
3685 (REGISTER_U_ADDR): Redefine accordingly.
3686 * i386v-nat.c: Improve several comments.
3687 (i386_register_u_addr): Change signature and rename to
3688 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3689 ubase variable.
3690
46cac009
AC
36912002-08-18 Andrew Cagney <ac131313@redhat.com>
3692
3693 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3694 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3695 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3696 deprecated_extract_return_value.
3697 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3698 rename mips_o32o64_push_arguments.
3699 (mips_gdbarch_init): Update.
3700 (mips_extract_return_value): Delete.
3701 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3702 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3703 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3704 (mips_n32n64_extract_return_value): Clone
3705 mips_extract_return_value.
3706 (mips_store_return_value): Delete.
3707 (mips_o32_store_return_value): Clone mips_store_return_value.
3708 (mips_o64_store_return_value): Clone mips_store_return_value.
3709 (mips_eabi_store_return_value): Clone mips_store_return_value.
3710 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3711
d2e4a39e
AS
37122002-08-18 Aidan Skinner <aidan@velvet.net>
3713
0c30c098
AS
3714 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3715 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3716
37172002-08-18 Aidan Skinner <aidan@velvet.net>
3718
3719 * ada-lang.c: Run through gdb_indent.sh.
3720 * ada-lang.h: Run through gdb_indent.sh.
3721 * ada-tasks.c: Run through gdb_indent.sh.
3722 * ada-typeprint.c: Run through gdb_indent.sh.
3723 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3724
01fc4e33
AC
37252002-08-18 Andrew Cagney <ac131313@redhat.com>
3726
3727 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3728 ABI.
3729
d8ee244c
MK
37302002-08-18 Mark Kettenis <kettenis@gnu.org>
3731
c38d8261
MK
3732 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3733
222db64c
MK
3734 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3735 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3736
c2848c82
MK
3737 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3738 write_register_gen instead of write_register_bytes.
3739
d8ee244c
MK
3740 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3741 i[3456]-*-osf1mk* configurations have been made obsolete.
3742 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3743 i[3456]86-*-osf1mk* hosts obsolete.
3744 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3745 targets obsolete.
3746 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3747 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3748 config/i386/i386m3.mt, config/i386/nm-m3.h,
3749 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3750 config/i386/i386mk.mh, config/i386/i386mk.mt,
3751 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3752 obsolete.
3753 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3754 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3755 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3756
61d8d407
AC
37572002-08-18 Andrew Cagney <ac131313@redhat.com>
3758
3759 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3760 (hppa_value_returned_from_stack): Declare.
3761 (hppa_extract_return_value): Declare.
3762 * config/pa/hppa.mt: New file.
3763 * configure.tgt: Recognize hppa*-*-*.
3764 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3765
0c52bd59
MK
37662002-08-18 Mark Kettenis <kettenis@gnu.org>
3767
3768 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3769 comment.
3770
b5686e99
MK
37712002-08-17 Mark Kettenis <kettenis@gnu.org>
3772
3773 * top.c (gdb_rl_operate_and_get_next): Make sure
3774 operate-and-get-next functions correctly even when the history
3775 list is completely filled.
3776
c1bab85b
AC
37772002-08-18 Andrew Cagney <ac131313@redhat.com>
3778
3779 * MAINTAINERS (Target Instruction Set Architectures): Rename
3780 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3781 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3782 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3783 already listed under Host/Native.
3784
3785 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3786 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3787 mips*-*-*.
3788
32089c7c
AC
37892002-08-17 Andrew Cagney <ac131313@redhat.com>
3790
3791 * config/ia64/ia64.mt: New file.
3792 * config/alpha/alpha.mt: New file.
3793 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3794 ia64-linux-gnu. Mention that ia64-elf is broken.
3795 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3796
b4671f85
MK
37972002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3798
3799 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3800 generic_func_frame_valid instead of func_frame_valid.
3801
c8edd8b4
JB
38022002-08-16 Joel Brobecker <brobecker@gnat.com>
3803
3804 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3805 procfs appears to be broken when debugging on multi-processor
3806 machines. So enable software single stepping in order to avoid
3807 using the procfs interface to do next/step operations, using
3808 internal breakpoints instead.
3809
3810 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3811 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3812 make this pc address equal to the value it would have if the
3813 system stepping capability was used. Also set a new flag used
3814 to ensure that we don't readjust the PC one more time later.
3815
3816 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3817 address by DECR_PC_AFTER_BREAK when software single step is
3818 in use for this architecture, as this has already been taken
3819 care of in handle_inferior_event().
3820
238617f6
JB
38212002-08-16 Joel Brobecker <brobecker@gnat.com>
3822
3823 * infrun.c (handle_inferior_event): Minor reformatting, to make
3824 a rather long condition expression easier to read.
3825
541a7aac
AC
38262002-08-16 Andrew Cagney <ac131313@redhat.com>
3827
3828 * Makefile.in (gdbtk.o): Move to end of file.
3829 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3830 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3831 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3832 (gdbtk-wrapper.o, gdbres.o): Ditto.
3833
f92d4a7b
AC
38342002-08-16 Andrew Cagney <ac131313@redhat.com>
3835
3836 * Makefile.in (copying.o): Separate out compile rule.
3837 (hpux-thread.o, procfs.o, signals.o): Ditto.
3838 (v850ice.o, z8k-tdep.o): Ditto.
3839 (tui-file.o): Move to TUI section.
3840 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3841 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3842
1cce71eb
JB
38432002-08-16 Joel Brobecker <brobecker@gnat.com>
3844
3845 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3846 skip_trampoline_code, for better namespace-proofing.
3847
3848 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3849
0851f23d
JB
38502002-08-16 Joel Brobecker <brobecker@gnat.com>
3851
3852 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3853
f8d40ec8
JB
38542002-08-16 Joel Brobecker <brobecker@gnat.com>
3855
3856 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3857 signal, check whether we hit a breakpoint before checking for a
3858 single step breakpoint. Otherwise, GDB fails to notice that a
3859 breakpoint has been hit when stepping onto a breakpoint.
3860
63d022e0
KS
38612002-08-16 Keith Seitz <keiths@redhat.com>
3862
3863 * gdb-events.sh (clear_gdb_event_hooks): New function.
3864 * gdb-events.c: Regenerate.
3865 * gdb-events.h: Regenerate.
3866
6e31adb3
AC
38672002-08-16 Andrew Cagney <ac131313@redhat.com>
3868
3869 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3870 not_a_sw_breakpoint.
3871 * breakpoint.h (bpstat_stop_status): Add parameter names.
3872
c8189ed1
GS
38732002-08-16 Grace Sainsbury <graces@redhat.com>
3874
3875 * remote.c (remote_insert_hw_breakpoint)
3876 (remote_remove_hw_breakpoint): Fix calculation of length field
3877 for Z-packet.
3878
d05285fa
MS
38792002-08-15 Michael Snyder <msnyder@redhat.com>
3880
466d7106
MS
3881 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3882 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3883 (supply_fpregset): Ditto.
3884
d05285fa
MS
3885 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3886 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3887 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3888 (TARGET_READ_SP): Delete.
bf1f5b4c 3889 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3890 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3891 Delete.
3892 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3893 from macros to functions.
bf1f5b4c 3894
d05285fa
MS
3895 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3896 (mips_register_convertible, mips_register_convert_to_virtual,
3897 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3898 (mips_read_sp): New function.
3899 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3900 (mips_do_registers_info): Make static.
3901 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3902 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3903 (mips_register_convert_from_type, mips_register_convert_to_type):
3904 New functions.
3905 (mips_gdbarch_init): Set up function_start_offset,
3906 register_virtual_size, pc_in_sigtramp.
d05285fa 3907
e76f1f2e
AC
39082002-08-15 Andrew Cagney <ac131313@redhat.com>
3909
3910 * infcmd.c (vector_info): New function.
3911 (_initialize_infcmd): Add command "info vector".
3912 (print_vector_info): New function.
3913
3914 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3915 * gdbarch.h, gdbarch.c: Regenerate.
3916
4782dc19
AC
39172002-08-15 Andrew Cagney <ac131313@redhat.com>
3918
3919 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3920 ``print_all''. Only print vector registers when ``print_all''.
3921
23e3a7ac
AC
39222002-08-15 Andrew Cagney <ac131313@redhat.com>
3923
8e186fd6
AC
3924 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3925 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3926
23e3a7ac
AC
3927 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3928 Add `args' parameter.
3929 * gdbarch.h, gdbarch.c: Regenerate.
3930
3931 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3932
3933 * infcmd.c (float_info): Call print_float_info.
3934 (print_float_info): New function. By default, print the
3935 floating-point registers.
3936
3937 * arch-utils.h (default_print_float_info): Delete declaration.
3938 * arch-utils.c (default_print_float_info): Delete function.
3939
e0ca2bb9
MK
39402002-08-16 Mark Kettenis <kettenis@gnu.org>
3941
3f733acc
MK
3942 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3943 out define.
3944
7d8d2918
MK
3945 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3946 FRAME.
3947
1c7cc583
MK
3948 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3949 * configure.host: Make i[3456]86-*-aix host obsolete.
3950 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3951 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3952 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3953 config/i386/xm-i386aix.h: Make files obsolete.
3954 * i386aix-nat.c: Make file obsolete.
3955 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3956 (i386aix-nat.o): Make target obsolete.
3957
e0ca2bb9
MK
3958 * config/i386/nm-gnu.h: Removed.
3959 * config/i386/nm-i386gnu.h: New file.
3960 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3961 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3962 Moved here from ...
3963 * config/i386/tm-i386gnu.h: ... here. Removed.
3964 * config/i386/xm-i386gnu.h: Removed.
3965 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3966 (NAT_FILE): Set to nm-i386gnu.h.
3967 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3968 * i386-tdep.c: New file.
3969 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3970 (i386gnu-tdep.o): Specify dependencies.
3971
16057ec7 39722002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3973
6b99ee2e
MK
3974 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3975 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3976 Adjust a few comments to reflect reality a bit closer.
3977 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3978 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3979 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3980 target_insert_watchpoint, target_remove_watchpoint):
3981 Move defines to ...
3982 * config/i386/nm-i386sco5.h: ... here.
3983 (kernel_u_size): Add prototype. Improve a few comments and add
3984 protection against multiple inclusion.
3985
d9a6f65c
MK
3986 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3987 out define.
3988
047eff6a
MK
3989 * uw-thread.c (SP_ARG0): Define if not already defined.
3990 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3991
dcdb1290
MK
3992 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3993
5d2d0b2a
MK
3994 * config/i386/tm-i386.h: Don't include "regcache.h".
3995
61113f8b
MK
3996 * i387-tdep.h (i387_print_float_info): New prototype.
3997 * i387-tdep.c (print_i387_value, print_i387_ext,
3998 print_i387_status_word, print_i387_control_word): Add `struct
3999 ui_file *' argument and use it for output.
4000 (i387_print_float_info): Renamed from i387_float_info. Add
4001 `struct gdbarch *' and `struct ui_file *' arguments and use the
4002 latter for output.
4003 * i386-tdep.c: Include "i387-tdep.h".
4004 (i386_gdbarch_init): Set print_float_info.
4005 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4006 (FLOAT_INFO): Remove define.
4007
46e0f506
MS
40082002-08-13 Michael Snyder <msnyder@redhat.com>
4009
4010 * mips-tdep.c (mips_push_arguments): Rename to
4011 mips_eabi_push_arguments, and tune for EABI.
4012 (MIPS_REGS_HAVE_HOME_P): Delete.
4013 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4014 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4015 Delete references to mips_regs_have_home_p.
4016
409268de
KS
40172002-08-14 Keith Seitz <keiths@redhat.com>
4018
4019 * Makefile.in (install-gdbtk): Create insight plugin directory.
4020 Install plugins.tcl file.
4021
ffc6a242
KS
40222002-08-14 Keith Seitz <keiths@redhat.com>
4023
4024 * configure.in: Move SUBDIRS to near top of the file so that
4025 --enable options may add things to it.
4026 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4027 * configure: Regenerate.
4028
ebafbe83
MS
40292002-08-13 Michael Snyder <msnyder@redhat.com>
4030
4031 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4032 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4033 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4034
32f6f25d
AC
40352002-08-13 Andrew Cagney <ac131313@redhat.com>
4036
4037 * vax-tdep.c (vax_get_saved_register): Delete function.
4038 (vax_gdbarch_init): Update.
4039 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4040 (ns32k_gdbarch_init): Update.
4041 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4042 (alpha_gdbarch_init): Update.
4043
53826de9
AC
40442002-08-13 Andrew Cagney <cagney@redhat.com>
4045
4046 * regcache.c (init_regcache_descr): Overallocate the
4047 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4048 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4049 nr_raw_registers.
4050 (set_register_cached): Add range checking assertions. Use
4051 current_regcache.
4052
16057ec7 40532002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4054
4055 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4056 numbers for MMX registers.
4057
7b4c2dce
AC
40582002-08-13 Andrew Cagney <cagney@redhat.com>
4059
4060 * i386-tdep.c (i386_gdbarch_init): Use
4061 generic_unwind_get_saved_register.
4062
1e03ad20
KB
40632002-08-13 Kevin Buettner <kevinb@redhat.com>
4064
4065 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4066 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4067 target vector.
4068 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4069 Delete. Add comment regarding this now-deleted target method.
4070
548bcbec
SC
40712002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4072
4073 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4074 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4075 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4076 real PC and the page number (if it's within the memory bank window).
4077 (m68hc11_pseudo_register_write): Likewise when saving.
4078 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4079 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4080 (m68hc11_register_raw_size): And use 32-bit for it.
4081 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4082 16K memory bank is used by the prog; also use the virtual pc.
4083
7df11f59
SC
40842002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4085
4086 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4087 (m68hc11_gdbarch_init): Install it in gdbarch.
4088 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4089 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4090 (MSYMBOL_SIZE): New for documentation.
4091 (insn_return_kind): Enum to specify how a function returns.
4092 (frame_extra_info): Cleanup and record the return mode.
4093 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4094 register in address computation.
4095 (m68hc11_get_return_insn): New to obtain the return instruction used
4096 by the function.
4097 (m68hc11_frame_init_saved_regs): Take into account the return
4098 instruction used by the function for far and interrupt functions.
4099 (m68hc11_init_extra_frame_info): Take into account page register.
4100 (m68hc11_frame_args_address): Adjust according to the return mode.
4101 (show_regs): Print page register only when it's used.
4102
5706502a
SC
41032002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4104
4105 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4106 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4107 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4108 registers.
4109 (m68hc11_register_raw_size): Likewise.
4110
28fc6740
AC
41112002-08-13 Andrew Cagney <cagney@redhat.com>
4112
4113 * i386-tdep.c (i386_register_name): Handle mmx registers.
4114 (mmx_regnum_p): New function.
4115 (i386_mmx_names): New array.
4116 (mmx_num_regs): New variable.
4117 (i386_pseudo_register_read): New function.
4118 (i386_pseudo_register_write): New function.
4119 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4120
4121 * regcache.c (regcache_raw_read_unsigned): New function.
4122 (regcache_raw_read_signed): New function.
4123 * regcache.h (regcache_raw_read_unsigned): Declare.
4124 (regcache_raw_read_signed): Declare.
4125
a378f419
AC
41262002-08-13 Andrew Cagney <cagney@redhat.com>
4127
4128 * regcache.c (regcache_raw_read_as_address): Delete function.
4129 (regcache_cooked_read_signed): New function.
4130 (regcache_cooked_read_unsigned): New function.
4131 * regcache.h (regcache_cooked_read_signed): Declare.
4132 (regcache_cooked_read_unsigned): Declare.
4133 (regcache_raw_read_as_address): Delete declaration.
4134
4135 * blockframe.c (generic_read_register_dummy): Use
4136 regcache_cooked_read_unsigned.
4137 * i386-tdep.c (i386_extract_struct_value_address): Use
4138 regcache_cooked_read_unsigned.
4139
81967506
SC
41402002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4141
4142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4143 double sizes according to ELF ABI flags.
4144 (gdbarch_tdep): Record elf_flags.
4145
ffe1f3ee
SC
41462002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4147
4148 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4149 (m6812_prolog): They can appear in 68HC12 function prologue.
4150 (m68hc11_frame_chain): Cleanup.
4151
98216c5d
AC
41522002-08-12 Andrew Cagney <cagney@redhat.com>
4153
4154 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4155 declarations.
4156 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4157 (i386_linux_register_raw_size): Delete function.
4158 (i386_linux_init_abi): Update.
4159 * i386-tdep.c (i386_register_raw_size): Delete function.
4160 (i386_register_byte): Delete function.
4161 (i386_gdbarch_init): Update.
4162 (i386_register_size): Delete array.
4163 (i386_register_offset): Delete array.
4164
4165 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4166 (REGISTER_RAW_SIZE): Delete macro.
4167 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4168 (REGISTER_BYTE): Delete macro.
4169
3b19021e
AS
41702002-08-11 Aidan Skinner <aidan@velvet.net>
4171
4172 * ada-lang.c (ada_lookup_partial_symbol)
4173 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4174 prototype names so that grep ^func works properly.
4175
4176 * ada-lang.c (ada_array_element_type)
4177 (ada_lookup_partial_symbol): Fix typos in parameter list.
4178
4179 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4180 Fix prototype names so that grep ^func works properly.
4181
b063e7a2
AC
41822002-08-10 Andrew Cagney <cagney@redhat.com>
4183 Elena Zannoni <ezannoni@redhat.com>
4184 Martin M. Hunt <hunt@redhat.com>
4185
4186 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4187 (build_builtin_type_vec128i): Set the vector bit.
4188 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4189 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4190 (build_builtin_type_vec64): New function.
4191 (build_builtin_type_vec64i): New function.
4192 (build_gdbtypes): Initialize builtin_type_vec64 and
4193 builtin_type_vec64i.
4194
a7e3c2ad
AC
41952002-08-09 Andrew Cagney <cagney@redhat.com>
4196
4197 * regcache.c (regcache_dump): Compare the register offset
4198 with REGISTER_BYTE.
4199 * arch-utils.c (generic_register_byte): New function.
4200 * arch-utils.h (generic_register_byte): Declare.
4201 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4202 * gdbarch.h, gdbarch.c: Regenerate.
4203
af030b9a
AC
42042002-08-09 Andrew Cagney <cagney@redhat.com>
4205
4206 * regcache.c: Include "gdbcmd.h"
4207 (_initialize_regcache): Add commands "maintenance print
4208 registers", "maintenance print raw-registers" and "maintenance
4209 print cooked-registers".
4210 (enum regcache_dump_what): Define.
4211 (dump_endian_bytes): New function.
4212 (regcache_dump): New function.
4213 (regcache_print): New function.
4214 (maintenance_print_registers): New function.
4215 (maintenance_print_raw_registers): New function.
4216 (maintenance_print_cooked_registers): New function.
4217 * Makefile.in (regcache.o): Update dependencies.
4218
cb3d25d1
MS
42192002-08-09 Michael Snyder <msnyder@redhat.com>
4220
4221 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4222 (mips_push_arguments): Correct some comments. Use paddr_nz
4223 for printing addresses in debug output. Replace static
4224 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4225 (mips_n32n64_push_arguments): New function, cloned from
4226 mips_push_arguments and tuned for the n32/n64 ABI.
4227 (mips_push_register): Buffer needs dynamic allocation.
4228 (mips_print_register): Ditto.
4229 (do_gp_register_row): Ditto.
4230 (mips_store_return_value): Ditto.
4231 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4232
2163ab9d
DH
42332002-08-09 Don Howard <dhoward@redhat.com>
4234
4235 * memattr.c (mem_info_command): Print special case of upper bound
4236 as max CORE_ADDR + 1.
4237
b78bcb18
MS
42382002-08-08 Michael Snyder <msnyder@redhat.com>
4239
4240 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4241 returns structs by ref if they're too big to fit in two registers.
4242
ffabd70d
KB
42432002-08-09 Kevin Buettner <kevinb@redhat.com>
4244
4245 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4246 saved regs value.
4247 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4248 mips_find_saved_regs().
4249 (mips_pop_frame): Likewise.
4250
fbcdb4a3
KB
42512002-08-09 Kevin Buettner <kevinb@redhat.com>
4252
4253 * blockframe.c (frame_saved_regs_register_unwind): Revise
4254 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4255 frames are in use.
4256
3c3bea1c
GS
42572002-08-09 Grace Sainsbury <graces@redhat.com>
4258
4259 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4260 T-packets; the 'a' is not taken as a register number.
4261 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4262 (remote_stopped_data_address): New functions; add to target
4263 vector.
4264 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4265 prototypes to match other implementations of this
4266 function. replace integer argument with pointer -- the length
4267 field in the Z-packet is the length of what is pointed to or 1 if
4268 pointer is null. Add to target vector.
4269 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4270 target vector.
4271
4272 From Mark Salter:
4273 * remote.c (remote_wait): Add support to extract optional
4274 watchpoint information from T-packet. Ignore unrecognized
4275 optional info in T-packet.
4276 (remote_async_wait): Ditto.
4277
5d1d95de
CV
42782002-08-09 Corinna Vinschen <vinschen@redhat.com>
4279
4280 * cli/cli-dump.c: Change fopen modes to use binary open modes
4281 as defined in include/fopen-bin.h throughout.
4282
c86b5b38
MS
42832002-08-08 Michael Snyder <msnyder@redhat.com>
4284
4285 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4286
b30590dc
KB
42872002-08-08 Kevin Buettner <kevinb@redhat.com>
4288
4289 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4290 assertion failure by returning early after a warning.
4291
498868ed
KB
42922002-08-08 Kevin Buettner <kevinb@redhat.com>
4293
4294 * mips-tdep.c (mips_find_saved_regs): Make static.
4295 (mips_frame_init_saved_regs): New function.
4296 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4297 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4298 (mips_find_saved_regs): Delete declaration.
4299
b2dd6311
GS
43002002-08-08 Grace Sainsbury <graces@redhat.com>
4301
3c3bea1c
GS
4302 * remote.c (remote_wait, remote_async_wait): Change
4303 thread_num from int to ULONGEST.
4304 (unpack_varlen_hex): Change result parameter from
4305 int * to ULONGEST *.
b2dd6311 4306
ea47855f
AC
43072002-08-08 Andrew Cagney <ac131313@redhat.com>
4308
4309 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4310 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4311 powerpc*-*-*.
4312 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4313
69db8bae
AC
43142002-08-08 Andrew Cagney <cagney@redhat.com>
4315
4316 * gcore.c (override_derive_stack_segment): Delete variable.
4317 (preempt_derive_stack_segment): Delete function.
4318 (derive_stack_segment): Delete function.
4319 (default_derive_stack_segment): Renamed to derive_stack_segment.
4320 (override_derive_heap_segment): Delete variable.
4321 (preempt_derive_heap_segment): Delete function.
4322 (derive_heap_segment): Delete function.
4323 (default_derive_heap_segment): Rename to derive_heap_segment.
4324
cb811fe7
MS
43252002-08-06 Michael Snyder <msnyder@redhat.com>
4326
4327 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4328 * mips-tdep.c (mips_EABI_use_struct_convention,
4329 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4330 New functions. (mips_use_struct_convention): Delete.
4331 (mips_gdbarch_init): set use_gdbarch_convention.
4332
8b389c40
MS
43332002-08-06 Michael Snyder <msnyder@redhat.com>
4334
4335 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4336 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4337 mips_o32_reg_struct_has_addr): New functions.
4338 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4339
5c27f28a
AC
43402002-08-07 Andrew Cagney <ac131313@redhat.com>
4341
4342 * regcache.c (pseudo_register): Delete function.
4343 (fetch_register): Delete function.
4344 (store_register): Delete function.
4345 (regcache_raw_read, legacy_read_register_gen): Use
4346 target_fetch_registers instead of fetch_register.
4347 (legacy_write_register_gen, regcache_raw_write): Use
4348 target_store_register instead of store_register.
4349 (write_register_bytes): Ditto.
4350
4351 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4352 (STORE_PSEUDO_REGISTER): Delete.
4353 * gdbarch.h, gdbarch.c: Regenerate.
4354
5b331675
CV
43552002-08-06 Corinna Vinschen <vinschen@redhat.com>
4356
4357 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4358 write dump file binary.
4359
6acdf5c7
MS
43602002-08-05 Michael Snyder <msnyder@redhat.com>
4361
4362 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4363 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4364 (mips_gdbarch_init): Set N32 target to be mips64.
4365
b2f01c35
KB
43662002-08-06 Kevin Buettner <kevinb@redhat.com>
4367
4368 * frame.c (find_saved_register): Break out of loop once saved
4369 register address is found. Don't mention sparc in loop comment
4370 anymore.
4371
63db5580
KB
43722002-08-06 Kevin Buettner <kevinb@redhat.com>
4373
4374 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4375 mips_default_saved_regsize to 8.
4376
5e34e75e
AC
43772002-08-06 Andrew Cagney <ac131313@redhat.com>
4378
4379 * gcore.c: Do not include <sys/procfs.h>.
4380 * Makefile.in (gcore.o): Update dependencies.
4381
eb4c54a2
AC
43822002-08-06 Andrew Cagney <cagney@redhat.com>
4383
4384 * configure.tgt: Make arc-*-* obsolete.
4385 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4386 * MAINTAINERS: Make arc-elf obsolete.
4387 * arc-tdep.c: Make file obsolete.
4388 * config/arc/arc.mt: Ditto.
4389 * config/arc/tm-arc.h: Ditto.
4390
ced15480
TR
43912002-08-05 Theodore A. Roth <troth@verinet.com>
4392
c1bab85b 4393 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4394
b4743822
AC
43952002-08-05 Andrew Cagney <ac131313@redhat.com>
4396
4397 * mcore-tdep.c (mcore_gdbarch_init): Use
4398 generic_unwind_get_saved_register instead of
4399 generic_get_saved_register.
4400 * v850-tdep.c (v850_gdbarch_init): Ditto.
4401 * frv-tdep.c (frv_gdbarch_init): Ditto.
4402 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4403 * s390-tdep.c (s390_gdbarch_init): Ditto.
4404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4405 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4406 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4407
3956d554
JB
44082002-08-05 Joel Brobecker <brobecker@gnat.com>
4409
4410 * objfiles.h: Add missing #include "symfile.h"
4411
4412 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4413
8249c0d6
AC
44142002-08-04 Andrew Cagney <ac131313@redhat.com>
4415
4416 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4417 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4418 of FIELD_BITSIZE.
4419
b9d14705
DJ
44202002-08-04 Daniel Jacobowitz <drow@mvista.com>
4421
4422 * NEWS: Cleanup and nitpick.
4423
dd73b9bb
AC
44242002-08-03 Andrew Cagney <ac131313@redhat.com>
4425
4426 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4427
043a27f8
AC
44282002-08-03 Andrew Cagney <ac131313@redhat.com>
4429
4430 * Makefile.in (gdbtk-bp.o): Update dependencies.
4431 (gdbtk-register.o): Ditto.
4432 (gdbtk-varobj.o): Ditto.
4433
46ce284d
AC
44342002-08-03 Andrew Cagney <cagney@redhat.com>
4435
4436 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4437 m68hc11_fetch_pseudo_register.
4438 (m68hc11_pseudo_register_write): Replace
4439 m68hc11_store_pseudo_register.
4440 (m68hc11_gdbarch_init): Update.
4441
b66d6d2e
AC
4442Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4443
4444 * gdbarch.sh: Include "gdb_string.h".
4445 * gdbarch.c: Regenerate.
4446
4447 * regcache.c: Include "gdb_string.h".
4448 * ax-general.c: Ditto.
4449 * varobj.c: Ditto.
4450 * std-regs.c: Ditto.
4451 * fbsd-proc.c: Ditto.
4452 * thread.c: Ditto.
4453
4454 * Makefile.in (regcache.o): Update dependencies.
4455 (thread.o, gdbarch.o): Ditto.
4456 (ax-general.o, gdbarch.o): Ditto.
4457 (varobj.o, std-regs.o): Ditto.
4458 (fbsd-proc.o): Specify dependencies.
4459
29e1842b
AC
44602002-08-02 Andrew Cagney <cagney@redhat.com>
4461
4462 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4463 regnum.
4464 (regcache_cooked_write): Ditto.
4465
68365089
AC
44662002-08-02 Andrew Cagney <ac131313@redhat.com>
4467
4468 * regcache.c (regcache_cooked_read): New function.
4469 (regcache_cooked_write): New function.
4470 (read_register_gen): Rewrite using regcache_cooked_read.
4471 (write_register_gen): Rewrite using regcache_cooked_write.
4472
4473 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4474 Declare.
4475
d8124050
AC
44762002-08-02 Andrew Cagney <cagney@redhat.com>
4477
4478 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4479 Replace the architecture methods register_read and register_write.
4480 * gdbarch.h, gdbarch.c: Regenerate.
4481 * regcache.c (init_regcache_descr): Update.
4482 (read_register_gen): Update.
4483 (write_register_gen): Update.
4484 (supply_register): Update comment.
4485
4486 * sh-tdep.c (sh_gdbarch_init): Update.
4487 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4488 `regcache' and `gdbarch' parameters. Make `buffer' a void
4489 pointer. Update code.
4490 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4491 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4492 void pointer. Update code.
4493 (sh64_register_write): Delete.
4494 (sh4_register_read): Delete.
4495 (sh64_register_read): Delete.
4496 (sh4_register_write): Delete.
4497 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4498 void pointer, `to' parameter a void pointer.
4499 (sh_sh64_register_convert_to_raw): Ditto.
4500
a6425924
KB
45012002-08-01 Kevin Buettner <kevinb@redhat.com>
4502
4503 * mips-tdep.c (mips_register_virtual_type): Use architecture
4504 invariant return values.
4505
ff5922b5
AC
45062002-08-01 Andrew Cagney <cagney@redhat.com>
4507
4508 * linux-proc.c: Include "gdb_string.h".
4509 * Makefile.in (linux-proc.o): Update dependency list.
4510
32a6503c
KB
45112002-08-01 Kevin Buettner <kevinb@redhat.com>
4512
4513 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4514 comment.
4515
ccaa32c7
GS
45162002-08-01 Grace Sainsbury <graces@redhat.com>
4517
4518 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4519 to_insert_watchpoint, to_remove_watchpoint,
4520 to_stopped_by_watchpoint, to_stopped_data_address,
4521 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4522 target vecctor. Define their corresponding macros so they call
4523 them.
4524
4525 * target.c: Add default and debug versions of for
4526 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4527 to_insert_watchpoint, to_remove_watchpoint,
4528 to_stopped_by_watchpoint, to_stopped_data_address,
4529 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4530
78fde5f8
KB
45312002-08-01 Kevin Buettner <kevinb@redhat.com>
4532
4533 * mips-tdep.c (mips_register_virtual_type): New function.
4534 (mips_gdbarch_init): Register mips_register_virtual_type()
4535 with gdbarch machinery.
4536 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4537 this file instead of tm-bigmips.h.
4538 (MIPS_REGSIZE): Delete this macro.
4539 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4540 multiarch version in mips-tdep.c will be found.
4541
db034ac5
AC
45422002-08-01 Andrew Cagney <cagney@redhat.com>
4543
4544 * NEWS: Menion that CHILL has been made obsolete.
4545
4546 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4547 * stabsread.c (read_range_type): Ditto.
4548 * gdbtypes.h: Ditto.
4549 * language.c (binop_type_check): Ditto.
4550 (binop_result_type): Ditto.
4551 (integral_type): Ditto.
4552 (character_type): Ditto.
4553 (string_type): Ditto.
4554 (boolean_type): Ditto.
4555 (structured_type): Ditto.
4556 (lang_bool_type): Ditto.
4557 (binop_type_check): Ditto.
4558 * language.h (_LANG_chill): Ditto.
4559 * dwarfread.c (set_cu_language): Ditto.
4560 * dwarfread.c (CHILL_PRODUCER): Ditto.
4561 * dwarfread.c (handle_producer): Ditto.
4562 * expression.h (enum exp_opcode): Ditto.
4563 * eval.c: Ditto for comments.
4564 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4565 * expprint.c (print_subexp): Ditto.
4566 (print_subexp): Ditto.
4567 * valops.c (value_cast): Ditto.
4568 (search_struct_field): Ditto.
4569 * value.h (COERCE_VARYING_ARRAY): Ditto.
4570 * symfile.c (init_filename_language_table): Ditto.
4571 (add_psymbol_with_dem_name_to_list): Ditto.
4572 * valarith.c (value_binop): Ditto.
4573 (value_neg): Ditto.
4574 * valops.c (value_slice): Ditto.
4575 * symtab.h (union language_specific): Ditto.
4576 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4577 (SYMBOL_DEMANGLED_NAME): Ditto.
4578 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4579 * defs.h (enum language): Ditto.
4580 * symtab.c (got_symtab): Ditto.
4581 * utils.c (fprintf_symbol_filtered): Ditto.
4582
4583 * ch-typeprint.c: Make file obsolete.
4584 * ch-valprint.c: Make file obsolete.
4585 * ch-lang.h: Make file obsolete.
4586 * ch-exp.c: Make file obsolete.
4587 * ch-lang.c: Make file obsolete.
4588
4589 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4590 CHILL_LIB.
4591 (TARGET_FLAGS_TO_PASS): Ditto.
4592 (CHILLFLAGS): Obsolete.
4593 (CHILL): Obsolete.
4594 (CHILL_FOR_TARGET): Obsolete.
4595 (CHILL_LIB): Obsolete.
4596 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4597 ch-valprint.c.
4598 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4599 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4600 ch-lang.o.
4601 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4602 targets.
4603
8aaf0b47
JB
46042002-07-31 Joel Brobecker <brobecker@gnat.com>
4605
4606 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4607 This does not change anything at the moment, but will be helpful
4608 later when full Ada support is integrated.
4609
f3a7b3a5
KB
46102002-07-31 Kevin Buettner <kevinb@redhat.com>
4611
4612 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4613 help message.
4614
fb850278
KB
46152002-07-31 Kevin Buettner <kevinb@redhat.com>
4616
4617 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4618 and save it in a local variable. Use variable in later test.
4619
e3bddbfa
KB
46202002-07-31 Kevin Buettner <kevinb@redhat.com>
4621
4622 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4623 test. (Thanks to Daniel Jacobowitz.)
4624
28d169de
KB
46252002-07-31 Kevin Buettner <kevinb@redhat.com>
4626
4627 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4628 (mips_abi_strings): Add "n64".
4629 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4630
7fe7e44e
KB
46312002-07-31 Kevin Buettner <kevinb@redhat.com>
4632
4633 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4634 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4635
c6caf090
KB
46362002-07-31 Kevin Buettner <kevinb@redhat.com>
4637
4638 * utils.c (host_pointer_to_address, address_to_host_pointer):
4639 Use gdb_assert() instead of explicit call to internal_error().
4640
c41669e0
KB
46412002-07-30 Kevin Buettner <kevinb@redhat.com>
4642
4643 * Makefile.in (rs6000-nat.o): Update dependencies.
4644
4645 From Nicholas Duffek:
4646 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4647 (aix-thread.o): New rule.
4648 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4649 * config/powerpc/aix432.mh: New file.
4650
2fda4977
DJ
46512002-07-30 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4654 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4655 (fetch_core_registers, ppc_linux_supply_gregset)
4656 (ppc_linux_supply_fpregset): New functions.
4657 (ppc_linux_regset_core_fns): New.
4658 (_initialize_ppc_linux_tdep): Call add_core_fns.
4659 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4660 and ppc_linux_supply_gregset.
4661 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4662 (supply_fpregset): Call ppc_linux_supply_fpregset.
4663 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4664 corelow.o.
4665 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4666
729051e6
DJ
46672002-07-30 Daniel Jacobowitz <drow@mvista.com>
4668
4669 * symtab.c (lookup_symbol): Demangle before lowercasing.
4670
5f8a3188
AC
46712002-07-30 Andrew Cagney <ac131313@redhat.com>
4672
4673 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4674 declaration.
4675 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4676 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4677 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4678 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4679 "gdb_string.h".
4680 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4681 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4682 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4683 (avr-tdep.o, mon960-rom.o): Ditto.
4684 (aout_stabs_gnu_h): Define.
4685 (symtab_h): Remove $(gdb_obstack_h).
4686
67f07146
JB
46872002-07-30 Jim Blandy <jimb@redhat.com>
4688
4689 Patch from David Carlton <carlton@math.stanford.edu>:
4690 * gdbinit.in: Move the `dir' commands that add GDB's own source
4691 directory to the search path to the end, so that the `gdb' source
4692 directory will be searched first.
4693
04ea0df1
AC
46942002-07-29 Andrew Cagney <ac131313@redhat.com>
4695
4696 * gdb_obstack.h: New file.
4697 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4698 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4699 * objfiles.h: Include "gdb_obstack.h".
4700 * Makefile.in (gdb_obstack_h): Define.
4701 (symtab_h): Add $(gdb_obstack_h).
4702 (objfiles_h): Add $(gdb_obstack_h).
4703
4704 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4705 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4706 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4707 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4708 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4709 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4710 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4711 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4712
4713 * Makefile.in (bcache.o): Update dependencies.
4714 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4715 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4716 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4717 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4718 (stabsread.o, symfile.o, symmisc.o): Ditto.
4719 (symtab.o, typeprint.o, macroexp.o): Ditto.
4720 (macrotab.o, mdebugread.o): Ditto.
4721 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4722 (coff_ecoff_h, aout_aout64_h): Define.
4723 (aout_stabs_gnu_h, libaout_h): Define.
4724
d138e37a
AC
47252002-07-29 Andrew Cagney <cagney@redhat.com>
4726
4727 * regcache.c (struct regcache_descr): Rename nr_registers to
4728 nr_cooked_registers. Revise comments describing the structure
4729 member fields.
4730 (init_regcache_descr): Update.
4731 (init_legacy_regcache_descr): Update.
4732 (read_register_gen, write_register_gen): When a cooked register in
4733 the raw register range, directly access the value from the raw
4734 register cache.
4735
460e6ec3
AC
47362002-07-29 Andrew Cagney <ac131313@redhat.com>
4737
4738 * z8k-tdep.c: Do not include "obstack.h".
4739 * h8300-tdep.c, h8500-tdep.c: Ditto.
4740 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4741 * valprint.c, v850-tdep.c: Ditto.
4742 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4743 * mn10200-tdep.c: Ditto.
4744
4745 * Makefile.in (z8k-tdep.o): Update dependencies.
4746 (m68hc11-tdep.o, valprint.o): Ditto.
4747 (v850-tdep.o, d10v-tdep.o): Ditto.
4748 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4749 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4750 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4751 (sh_opc_h, gdb_sim_sh_h): Define.
4752 (elf_sh_h, elf_bfd_h): Define.
4753 (opcode_m68hc11_h): Define.
4754 (OPCODES_SRC, OPCODES_DIR): define.
4755 (OPCODES): Use $(OPCODES_DIR).
4756 (gdb_sim_d10v_h): Rename sim_d10v_h.
4757 (gdb_sim_arm_h): Rename sim_arm_h.
4758
790c9cf0
KB
47592002-07-26 Kevin Buettner <kevinb@redhat.com>
4760
4761 * utils.c (host_pointer_to_address, address_to_host_pointer):
4762 Change internal_error() message to indicate function responsible
4763 for the error.
4764
9647fa49
KB
47652002-07-26 Kevin Buettner <kevinb@redhat.com>
4766
4767 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4768 calls to local_hex_string_custom().
4769
dabbe2c0
KB
47702002-07-26 Kevin Buettner <kevinb@redhat.com>
4771
4772 * irix5-nat.c: Move IRIX shared library support from here...
4773 * solib-irix.c: ...to here. Revised substantially to work with
4774 generic solib framework.
4775
b96d0a4e
KB
4776 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4777 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4778 * mips-irix-tdep.c: New file.
4779
313fb2f6
KB
4780 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4781 (mips-irix-tdep.o, solib-irix.o): New rules.
4782 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4783 solib-irix.o.
4784 * config/mips/irix6.mt (TDEPFILES): Likewise.
4785 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4786
ab2eaf26
KB
47872002-07-26 Kevin Buettner <kevinb@redhat.com>
4788
177e4768 4789 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4790 disabled (via ``#if 0'') includes.
4791
7244546a
KB
47922002-07-26 Kevin Buettner <kevinb@redhat.com>
4793
4794 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4795 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4796 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4797 Add support for the fpscr register.
4798 * rs6000-nat.c (regmap, fetch_inferior_registers)
4799 (store_inferior_registers, fetch_core_registers): Likewise.
4800
dd7be90a
KB
48012002-07-26 Kevin Buettner <kevinb@redhat.com>
4802
4803 * rs6000-nat.c (language.h): Include.
4804 (special_regs): Delete this array.
4805 (regmap): New function.
4806 (fetch_register, store_register): Use regmap() to map gdb
4807 register numbers to ptrace register numbers. Also, use
4808 outputs from regmap() to make decisions regarding type of
4809 ptrace() call to make. In particular, don't compare against
4810 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4811 (fetch_inferior_registers, store_inferior_registers): Where
4812 possible, obtain register numbers from tdep struct. Don't
4813 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4814 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4815 (LAST_UISA_SP_REGNUM): Delete.
4816
11bf77db
KB
48172002-07-25 Kevin Buettner <kevinb@redhat.com>
4818
4819 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4820 (fetch_registers, store_register, fetch_core_registers): Don't
4821 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4822 regcache_collect() as appropriate.
4823 (find_toc_address): Format hex address with local_hex_string().
4824
06afebeb
AC
48252002-07-25 Andrew Cagney <ac131313@redhat.com>
4826
4827 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4828 bfd/elf32-frv.c.
4829
8c554d79
TT
48302002-07-24 Tom Tromey <tromey@redhat.com>
4831
4832 * jv-exp.y: Marked all strings with _().
4833 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4834 internal_error.
4835 (MethodInvocation, CastExpression, parse_number, yyerror,
4836 java_type_from_name, push_expression_name, yylex): Typo fixes.
4837
e4c242d9
DJ
48382002-07-24 Daniel Jacobowitz <drow@mvista.com>
4839
4840 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4841 (tee_file_flush, tee_file_write, tee_file_fputs)
4842 (tee_file_isatty): New.
4843 * ui-file.h (tee_file_new): Add prototype.
4844
ebf56fd3
AS
48452002-07-24 Aidan Skinner <aidan@velvet.net>
4846
4847 * ada-lang.c: Change k&r style function definitions to prototyped
4848 form.
4849 * ada-typeprint.c: Change k&r style function definitions to prototyped
4850 form.
4851 * ada-valprint.c: Change k&r style function definitions to prototyped
4852 form.
4853
7fb623f7
AC
48542002-07-24 Andrew Cagney <cagney@redhat.com>
4855
4856 * README: Remove reference to remote-bug.
4857 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4858 remote-bug.c.
4859 (m88k-nat.o): Delete rule.
4860 (m88k-tdep.o): Delete rule.
4861 (remote-bug.o): Delete rule.
4862 * MAINTAINERS: Mark as obsolete.
4863 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4864 * m88k-tdep.c: Make file obsolete.
4865 * config/m88k/m88k.mh: Ditto.
4866 * config/m88k/delta88v4.mh: Ditto.
4867 * config/m88k/delta88v4.mt: Ditto.
4868 * config/m88k/delta88.mt: Ditto.
4869 * config/m88k/delta88.mh: Ditto.
4870 * remote-bug.c: Ditto.
4871 * config/m88k/tm-delta88.h: Ditto.
4872 * config/m88k/nm-delta88v4.h: Ditto.
4873 * config/m88k/xm-delta88.h: Ditto.
4874 * config/m88k/xm-dgux.h: Ditto.
4875 * config/m88k/tm-m88k.h: Ditto.
4876 * config/m88k/nm-m88k.h: Ditto.
4877 * config/m88k/tm-delta88v4.h: Ditto.
4878 * m88k-nat.c: Ditto.
4879 * cxux-nat.c: Ditto.
4880 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4881 and m88*-*-* obsolete.
4882 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4883 m88*-*-* obsolete.
4884
37611a2b
AC
48852002-07-24 Andrew Cagney <cagney@redhat.com>
4886
4887 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4888 constant. Same for local pointer variables.
4889 (extract_signed_integer): Ditto.
4890 * defs.h (extract_unsigned_integer): Update.
4891 (extract_signed_integer): Update.
4892
1aaa5f99
AC
48932002-07-24 Andrew Cagney <cagney@redhat.com>
4894
4895 * regcache.c (regcache_raw_write): Change buf parameter to a
4896 constant void pointer.
4897 (regcache_raw_read): Change buf parameter to a void pointer.
4898 (legacy_write_register_gen): Change myaddr parameter a constant
4899 void pointer.
4900 (supply_register): Change val parameter to a const void pointer.
4901 * regcache.h (regcache_raw_write): Update declaration.
4902 (regcache_raw_read): Update declaration.
4903 (supply_register): Update declaration.
4904
b4f5539f
TT
49052002-07-24 Tom Tromey <tromey@redhat.com>
4906
4907 * defs.h (gdb_readline_wrapper): Declare.
4908 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4909 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4910 * top.c (gdb_readline_wrapper): New function.
4911 (command_line_input): Use it.
4912
0818c12a
AC
49132002-07-24 Andrew Cagney <cagney@redhat.com>
4914
4915 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4916 regcache_read and regcache_write.
4917 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4918 * regcache.c: Update.
4919 * sh-tdep.c (sh64_push_arguments): Update comment.
4920 (sh_pseudo_register_read): Update.
4921 (sh_pseudo_register_write): Update.
4922 (sh4_register_read): Update.
4923 (sh4_register_write): Update.
4924 (sh64_pseudo_register_read): Update.
4925 (sh64_pseudo_register_write): Update.
4926 (sh64_register_read): Update.
4927 (sh64_register_write): Update.
4928 * i386-tdep.c (i386_extract_return_value): Update.
4929 (i386_extract_struct_value_address): Update.
4930 (i386_extract_return_value): Update.
4931 * blockframe.c (generic_read_register_dummy): Update.
4932 (generic_call_dummy_register_unwind): Update
4933 * infrun.c (write_inferior_status_register): Update.
4934
f7321c06
JB
49352002-07-23 Jim Blandy <jimb@redhat.com>
4936
4937 * parser-defs.h (expression_context_pc): Make this extern.
4938 (Thanks to Michael Snyder.)
4939
2037aebb
AC
49402002-07-23 Andrew Cagney <ac131313@redhat.com>
4941
4942 GDB 5.2.1 released from 5.2 branch.
4943 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4944 * README: Update to mention 5.2.1.
4945
66504d44
MS
49462002-07-23 Mark Salter <msalter@redhat.com>
4947
4948 * remote.c (remote_read_bytes): Fix check for error.
4949
27bae383
KB
49502002-07-22 Kevin Buettner <kevinb@redhat.com>
4951
4952 * aix-thread.c (language.h): Include.
4953 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4954 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4955 Print newlines at end of debug messages.
4956 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4957 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4958
49592002-07-22 Kevin Buettner <kevinb@redhat.com>
4960
4961 * aix-thread.c (ppc-tdep.h): Include.
4962 (special_register_p): New function.
4963 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4964 (store_regs_user_thread): Use register number information from
4965 gdbarch_tdep struct instead of hardcoded offsets relative to
4966 FIRST_UISA_SP_REGNUM.
4967 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4968 special_register_p() instead of using FPLAST_REGNUM and
4969 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4970 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4971 will be MQ's register number.
4972
49732002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4974
4975 * aix-thread.c (ops): Rename to aix_thread_ops.
4976 (base_ops): Rename to base_target.
4977 (ops_attach): Rename to aix_thread_attach.
4978 (ops_detach): Rename to aix_thread_detach.
4979 (ops_resume): Rename to aix_thread_detach.
4980 (ops_wait): Rename to aix_thread_wait.
4981 (ops_kill): Rename to aix_thread_kill.
4982 (init_ops): Rename to init_aix_thread_ops.
4983 (ops_fetch_register): Rename to aix_thread_fetch_register.
4984 (ops_store_register): Rename to aix_thread_store_register.
4985 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4986 (ops_thread_alive): Rename to aix_thread_thread_alive.
4987 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4988 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4989 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4990 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4991 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4992 (store_regs_lib): Rename to store_regs_user_thread.
4993 (store_regs_kern): Rename to store_regs_kernel_thread.
4994
27bae383 49952002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4996
4997 * aix-thread.c (ops_prepare_to_store): Eliminate.
4998 (init_ops): Don't initialize ops.prepare_to_store.
4999 (store_regs_kern): Pre-fetch register buffers from child,
5000 because some registers may not be in the cache. Copy
5001 regs from register cache only if they are cached.
5002 (store_regs_lib): Copy regs from register cache only
5003 if they are cached.
5004 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5005 fill_gprs64): Ditto.
5006
61c5da0b
KB
50072002-07-22 Kevin Buettner <kevinb@redhat.com>
5008
5009 * aix-thread.c (gdb_assert.h): Include.
5010 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5011 register sizes (from register cache) match size of buffer holding
5012 register data.
5013 (fill_sprs32): Change parameter types to match those in the ptrace()
5014 buffer.
5015 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5016 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5017
50182002-07-22 Michael Snyder <msnyder@redhat.com>
5019
5020 * aix-thread.c (supply_sprs64): Cosmetic change.
5021 (supply_sprs32): Cosmetic change.
5022 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5023 (fill_sprs64): Use regcache_collect instead of read_register.
5024 (store_regs_lib): Use regcache_collect instead of
5025 read_register. Use fill_sprs32 instead of fill_sprs64,
5026 if debugging a 32-bit architecture.
5027 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5028 out of the register cache, instead of passing a pointer into
5029 the register cache directly to ptrace. Use regcache_collect
5030 insteaad of read_register.
5031 (ops_prepare_to_store): Use target_read_registers instead
5032 of read_register_bytes.
5033
36479eb1
AS
50342002-07-20 Aidan Skinner <aidan@velvet.net>
5035
5036 * MAINTAINERS: Add self under write after approval.
5037
80ae6ee2
AS
50382002-07-20 Aidan Skinner <aidan@velvet.net>
5039
5040 * ada-tasks.c: Change k&r style function definitions to prototyped
5041 form.
5042
8a8ab2b9
AC
50432002-07-19 Andrew Cagney <ac131313@redhat.com>
5044
5045 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5046 * x86-64-tdep.c: Include "objfiles.h".
5047 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5048 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5049
fb16b900
ML
50502002-07-17 Michal Ludvig <michal@suse.cz>
5051
5052 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5053 (update_context): Initialise cfa variable.
5054
0fe7bf7b
MS
50552002-07-17 Michael Snyder <msnyder@redhat.com>
5056
5057 * aix-thread.c: Shorten some long lines.
5058 Bring comments into line with code spec.
5059
488f131b
JB
50602002-07-18 Joel Brobecker <brobecker@gnat.com>
5061
5062 * infrun.c: Re-indent using gdb_indent.sh.
5063
46c415d2
JB
50642002-07-18 Joel Brobecker <brobecker@gnat.com>
5065
5066 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5067 Leave the indentation temporarily untouched, to minimize the diffs.
5068
cdecafbe
EZ
50692002-07-18 Elena Zannoni <ezannoni@redhat.com>
5070
5071 * stabsread.c: Make os9k sections of the code obsolete,
5072 for real this time.
5073 * stabsread.h: Make os9k sections of the code obsolete.
5074
7b6aa020
ML
50752002-07-18 Michal Ludvig <mludvig@suse.cz>
5076
09ec9b38
ML
5077 * linux-low.c (regsets_store_inferior_registers): Add free()
5078 at the end of a loop to prevent memory leak.
5079 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5080 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5081 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5082 line a comment.
4894ac5d 5083 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5084
233282cd
JB
50852002-07-17 Jim Blandy <jimb@redhat.com>
5086
5087 * macrocmd.c (info_macro_command): Remove newline from error
5088 message.
5089
7b6aa020 50902002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5091
5092 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5093 (sh_gdbarch_init): Use it for sh-dsp.
5094
f7ef9339
KB
50952002-07-16 Kevin Buettner <kevinb@redhat.com>
5096
5097 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5098 64-bit DWARF2 format.
5099
8dd72958
JB
51002002-07-16 Joel Brobecker <brobecker@gnat.com>
5101
5102 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5103 <sys/proc.h> when not available.
5104
a99a9e1b
AC
51052002-07-16 Andrew Cagney <ac131313@redhat.com>
5106
5107 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5108 * stabsread.c: Make os9k sections of the code obsolete.
5109 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5110 * config/i386/i386os9k.mt: Make file obsolete.
5111 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5112 (COMMON_OBS): Remove os9kread.o
5113 (SFILES): Remove os9kread.c.
5114 (os9kread.o, remote-os9k.o): Make target obsolete.
5115 * remote-os9k.c: Make file obsolete.
5116 * os9kread.c: Make file obsolete.
5117 * Makefile.in
5118
7a3085c1
AC
51192002-07-16 Andrew Cagney <ac131313@redhat.com>
5120
5121 * NEWS: Mention that the FR30 has been made obsolete.
5122 * fr30-tdep.c: Make file obsolete.
5123 * config/fr30/tm-fr30.h: Ditto.
5124 * config/fr30/fr30.mt: Ditto.
5125 * configure.tgt: Make fr30-*-elf obsolete.
5126 * MAINTAINERS: Make fr30-elf obsolete.
5127
28a93f5a
PM
51282002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5129
5130 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5131 found is not inside a section.
5132
be006b8b
KB
51332002-07-15 Kevin Buettner <kevinb@redhat.com>
5134
5135 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5136 strerror().
5137 (pdc_realloc): Use xrealloc() instead of realloc().
5138
14fa3751
KB
51392002-07-15 Kevin Buettner <kevinb@redhat.com>
5140
5141 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5142 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5143 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5144 macros.
5145
42cc437f
KB
51462002-07-15 Kevin Buettner <kevinb@redhat.com>
5147
5148 * aix-thread.c (ptrace_check): Eliminate goto.
5149 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5150 problem.
5151
8e2c28d4
KB
51522002-07-15 Kevin Buettner <kevinb@redhat.com>
5153
5154 * aix-thread.c (gdbcmd.h): Include.
5155 (DEBUG, DBG, DBG2, dbg): Eliminate.
5156 (debug_aix_thread): New static global.
5157 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5158 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5159 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5160 invocations to DBG and DBG2 macros to test against
5161 ``debug_aix_thread'' and call fprintf_unfiltered().
5162 (_initialize_aix_thread): Add new command "set debug aix-thread".
5163
30413464
AC
51642002-07-15 Andrew Cagney <ac131313@redhat.com>
5165
5166 From Gerhard Tonn <TON@de.ibm.com>:
5167 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5168 instead of supply_register.
5169
7c43edc1
AC
51702002-07-15 Andrew Cagney <ac131313@redhat.com>
5171
5172 * dwarf2cfi.c: Include "gdb_assert.h".
5173 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5174 non-NULL.
5175 (update_context): Do not use __func__. Add missing ``break''.
5176 (update_context): Do not use __func__.
5177
9364a0ef
EZ
51782002-07-15 Elena Zannoni <ezannoni@redhat.com>
5179
5180 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5181 and its setting. Set gdbarch instruction printing functions
5182 directly. For non-rs6000 case use new function
5183 gdb_print_insn_powerpc.
5184 (gdb_print_insn_powerpc): New function.
5185
3fbeef0b
AC
51862002-07-13 Andrew Cagney <ac131313@redhat.com>
5187
92eb23c5 5188 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5189 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5190 * configure.tgt: Mark d30v-*-* as obsolete.
5191 * d30v-tdep.c: Mark file as obsolete.
5192 * config/d30v/d30v.mt: Ditto.
5193 * config/d30v/tm-d30v.h: Ditto.
5194
aacb1f0a
AS
51952002-07-13 Aidan Skinner <aidan@velvet.net>
5196
5197 * ada-tasks.c (add_task_entry): replace calls to
5198 malloc() with xmalloc
5199 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5200
5201 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5202 ada_finish_decode_line_1, all_sals_for_line
5203 ada_breakpoint_rewrite): replace calls to free() with xfree()
5204
c11d79f2
KB
52052002-07-12 Kevin Buettner <kevinb@redhat.com>
5206
5207 From Nicholas Duffek (with minor changes by Martin Hunt,
5208 Louis Hamilton, and Kevin Buettner):
5209 * aix-thread.c: New file.
5210
8e19ed76
PS
52112002-07-12 Petr Sorfa <petrs@caldera.com>
5212
5213 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5214 complaint for invalid attribute class or form.
5215 (read_func_scope): DW_AT_frame_base
5216 better handling of DW_AT_block*.
5217 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5218 better handling of DW_AT_block*.
5219 (read_common_block): DW_AT_location
5220 better handling of DW_AT_block*.
5221 (read_partial_die): DW_AT_location better handling
5222 of DW_AT_block*.
5223 (new_symbol): DW_AT_external better handling of
5224 DW_AT_block*. Proper initialization of variable
5225 "addr".
5226 (attr_form_is_block): New function that returns true
5227 if the attribute's form is of DW_FORM_block*.
5228
295401f7
DJ
52292002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5230
5231 * valops.c (find_method_list): Remove comment about
5232 removed STATIC_MEMFUNCP argument.
5233 (value_find_oload_method_list): Likewise.
5234
e42dc924
KB
52352002-07-12 Kevin Buettner <kevinb@redhat.com>
5236
5237 From Nicholas Duffek:
5238 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5239 target_new_objfile_hook.
5240
6904b546
KB
52412002-07-12 Kevin Buettner <kevinb@redhat.com>
5242
5243 From Nicholas Duffek:
5244 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5245 csect.
5246
53fe9346
AC
52472002-07-12 Andrew Cagney <cagney@redhat.com>
5248
5249 * MAINTAINERS: Mention --enable-sim-build-warnings.
5250 (m68hc11-elf): Disable sim build warnings.
5251 (m32r-elf): Mark as broken obsolete candidate.
5252 (x86_64-linux-gnu): Mark as buildable with -Werror.
5253 (arm-elf): Change -w to ``,'' which enables warnings but not
5254 -Werror.
5255
af5f3db6
AC
52562002-07-12 Andrew Cagney <ac131313@redhat.com>
5257
5258 * bcache.h: Update copyright.
5259 (struct bstring, struct bcache): Move definition to "bcache.c".
5260 Replaced by opaque declaration.
5261 (bcache_xfree): Replace free_bcache.
5262 (bcache_xmalloc, bcache_memory_used): Declare.
5263
5264 * bcache.c: Update copyright.
5265 (struct bstring, struct bcache): Moved to here from "bcache.h".
5266 Update comments.
5267 (bcache_xmalloc, bcache_memory_used): New functions.
5268 (bcache_xfree): Replace function free_bcache.
5269
5270 * Makefile.in (objfiles.o): Add $(bcache_h).
5271 (objfiles_h): Remove $(bcache_h).
5272 (symfile.o): Add $(bcache_h).
5273
5274 * symmisc.c: Update copyright.
5275 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5276 (print_objfile_statistics): Use bcache_memory_used.
5277
5278 * symfile.c: Include "bcache.h".
5279 (reread_symbols): Use bcache_xfree.
5280 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5281 (add_psymbol_to_list): Pass psymbol_cache by value.
5282 (add_psymbol_with_dem_name_to_list): Ditto.
5283
5284 * objfiles.h: Update copyright.
5285 (struct bcache): Declare opaque. Do not include "bcache.h".
5286 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5287 bcache'' pointers.
5288 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5289
5290 * objfiles.c: Include "bcache.h". Update copyright.
5291 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5292 macro_cache.
5293 (free_objfile): Use bcache_xfree.
5294
444199e7
GS
52952002-07-11 Grace Sainsbury <graces@redhat.com>
5296
5297 * monitor.c (monitor_fetch_register): Make name a constant.
5298 (monitor_store_register): Same.
5299
261397f8
DJ
53002002-07-11 Daniel Jacobowitz <drow@mvista.com>
5301
5302 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5303 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5304 (finish_block) For non-function blocks, hash the symbol table. For
5305 function blocks, mark the symbol table as unhashed.
5306 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5307 (msymbol_hash_iw): Likewise.
5308 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5309 value.
5310 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5311 (lookup_minimal_symbol): Likewise for both.
5312 * symtab.h (struct block): Add `hashtable' flag. Comment the
5313 hashtable.
5314 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5315 (ALL_BLOCK_SYMBOLS): Update.
5316 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5317 (struct symbol): Add `hash_next' pointer.
5318 * symtab.c (lookup_block_symbol): Search using the hash table when
5319 possible.
5320 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5321 (search_symbols, find_addr_symbol): Likewise.
5322
5323 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5324 (read_dst_symtab): Likewise.
5325 * jv-lang.c (get_java_class_symtab): Likewise.
5326 * mdebugread.c: Include "gdb_assert.h".
5327 (shrink_block): Assert that the block being modified is not hashed.
5328 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5329 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5330 symbols.
5331 (dump_symtab): Recognize hashed blocks.
5332 * printcmd.c (print_frame_args): Assert that function blocks do not
5333 have hashed symbol tables.
5334 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5335 (fill_in_ada_prototype, debug_print_block): Likewise.
5336 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5337
6f0eaa01
CV
53382002-07-11 Corinna Vinschen <vinschen@redhat.com>
5339
5340 * stack.c (print_frame): Use result of frame_address_in_block()
5341 instead of fi->pc when evaluating symbols.
5342 (backtrace_command_1): Ditto.
5343
a208b0cb
AC
53442002-07-11 Andrew Cagney <cagney@redhat.com>
5345
5346 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5347 Make static.
5348
5349 * arm-tdep.c (arm_register_name): Make return type constant.
5350
a6b6b089
AC
53512002-07-10 Andrew Cagney <ac131313@redhat.com>
5352
5ae5f592
AC
5353 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5354 prototype.
5355 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5356 * s390-tdep.c (s390_fp_regnum): Ditto.
5357 (s390_read_fp): Ditto.
5358 (s390_pop_frame): Ditto.
5359 (_initialize_s390_tdep): Ditto.
5360 * remote.c (get_remote_state): Ditto.
5361 * procfs.c (mappingflags): Ditto.
5362 * memattr.c (_initialize_mem): Ditto.
5363 * mcore-tdep.c (mcore_pop_frame): Ditto.
5364 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5365 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5366 * language.c (set_case_str): Ditto.
5367 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5368 * frv-tdep.c (new_variant): Ditto.
5369 (frv_stopped_data_address): Ditto.
5370 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5371 (context_alloc): Ditto.
5372 (frame_state_alloc): Ditto.
5373 (unwind_tmp_obstack_init): Ditto.
5374 (unwind_tmp_obstack_free): Ditto.
5375 (cfi_read_fp): Ditto.
5376 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5377 (cris_pop_frame): Ditto.
5378 * c-lang.c (scanning_macro_expansion): Ditto.
5379 (finished_macro_expansion): Ditto.
5380 (c_preprocess_and_parse): Ditto.
5381 * gdbarch.sh: Ditto.
5382 * gdbarch.h, gdbarch.c: Regenerate.
5383 * config/mn10200/tm-mn10200.h: Adjust indentation.
5384 * target.c: Adjust indentation.
5385 * symtab.h: Adjust indentation.
5386 * stabsread.h: Adjust indentation.
5387 * remote-es.c: Adjust indentation.
5388 * os9kread.c: Adjust indentation.
5389
53902002-07-10 Andrew Cagney <ac131313@redhat.com>
5391
a6b6b089
AC
5392 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5393 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5394
a1789893
GS
53952002-07-10 Grace Sainsbury <graces@redhat.com>
5396
5397 * NEWS: Mention m68k, mcore multi-arching.
5398 * MAINTAINERS: Change status of m68k, mcore to reflect
5399 multi-arching.
5400
02f0d45d
DJ
54012002-07-10 Daniel Jacobowitz <drow@mvista.com>
5402
5403 * valops.c (find_overload_match): Free oload_syms.
5404
f15f768e
JB
54052002-07-09 Joel Brobecker <brobecker@gnat.com>
5406
5407 Define HAVE_SYS_PROC_H if sys/proc.h exists
5408 * configure.in: Add check for sys/proc.h
5409 * config.in: Regenerate.
5410 * configure: Regenerate.
5411
902a7139
GS
54122002-07-09 Grace Sainsbury <graces@redhat.com>
5413
5414 * config/m68k/tm-m68k.h: Remove macros wrapped in
5415 #if !GDB_MULTI_ARCH.
5416
a534e424
AC
54172002-07-08 Andrew Cagney <ac131313@redhat.com>
5418
5419 * config.in, configure: Regenerate.
5420
9b94f7bf
MK
54212002-07-08 Mark Kettenis <kettenis@gnu.org>
5422
5423 * dwarf2cfi.c: Include "gcore.h".
5424 (execute_stack_op): Fix implementation of the
5425 DW_OP_deref and DW_OP_deref_size operators by letting do their
5426 lookup in the target.
5427
1d34db41
MK
54282002-07-07 Mark Kettenis <kettenis@gnu.org>
5429
5430 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5431 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5432 tdep->sc_sp_offset.
5433
79d5b63a
DJ
54342002-07-05 Daniel Jacobowitz <drow@mvista.com>
5435
5436 Fix PR gdb/595, gdb/602
5437 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5438 Don't call value_cast, just read the vtable pointer; update comments
5439 to match.
5440
3bb912e8
GS
54412002-07-05 Grace Sainsbury <graces@redhat.com>
5442
5443 * config/mcore/tm-mcore.h: Remove file.
5444 * config/mcore/mcore.mt: Remove definition of TM_FILE
5445 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5446
ca39387d
MK
54472002-07-05 Mark Kettenis <kettenis@gnu.org>
5448
5449 * i386bsd-tdep.c: Include "gdb_string.h".
5450
efdc1108
GS
54512002-07-04 Grace Sainsbury <graces@redhat.com>
5452
5453 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5454 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5455 mcore-tdep.
5456 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5457 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5458 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5459 (RETVAL_REGNUM): Move macros from tm-mcore.h
5460 (mcore_reg_struct_has_addr): New function.
5461 (mcore_gdbarch_init): Added initializations for the macros removed
5462 from tm-mcore.h.
5463
bb21884d
MK
54642002-07-04 Mark Kettenis <kettenis@gnu.org>
5465
5466 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5467 traditonal string branding within the ELF header.
5468
228c6d41
DJ
54692002-07-04 Daniel Jacobowitz <drow@mvista.com>
5470
5471 * symtab.c (remove_params): New function.
5472 (make_symbol_overload_list): Use it instead of cplus_demangle.
5473 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5474
2404952e
MK
54752002-07-04 Mark Kettenis <kettenis@gnu.org>
5476
e5e4acad
MK
5477 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5478
baadce09
MK
5479 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5480 New variables.
5481 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5482 and tdep->sigtramp_end.
5483 * i386obsd-nat.c: New file.
5484 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5485
2404952e
MK
5486 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5487 Don't call get_current_frame().
5488
9b4f1ba7
PM
54892002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5490
5491 * i386-nat.c (child_post_startup_inferior): New function
5492 calling i386_cleanup_dregs if
5493 I386_USE_GENERIC_WATCHPOINTS is defined.
5494 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5495 conditional to acknowledge that i386-nat.c has its
5496 own child_post_startup_inferior function.
5497
c0d1d883
MK
54982002-07-04 Mark Kettenis <kettenis@gnu.org>
5499
00f8375e
MK
5500 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5501 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5502 instead of MAX_REGISTER_RAW_SIZE.
5503 (i386_extract_return_value, i386_extract_struct_value_address):
5504 Convert to use regcache.
5505 (i386_gdbarch_init): Set max_register_raw_size and
5506 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5507 Set extract_return_value and extract_struct_value_address instead
5508 of their deprecated variants.
5509
c0d1d883
MK
5510 Convert i386 target to generic dummy frames.
5511 * i386-tdep.c: Include "symfile.h".
5512 (i386_frameless_signal_p): Consider a function to be frameless if
5513 the pc points at the first instruction of the function.
5514 (i386_frame_chain): Handle (generic) call dummies.
5515 (i386_frame_saved_pc): Likewise.
5516 (i386_frame_init_saved_regs): Remove code dealing with call
5517 dummies on the stack.
5518 (i386_push_dummy_frame): Removed.
5519 (i386_call_dummy_words): Removed.
5520 (i386_fix_call_dummy): Removed.
5521 (i386_push_return_address): New function.
5522 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5523 parameter, and don't call get_current_frame.
5524 (i386_pop_frame): New function.
5525 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5526 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5527 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5528 call_dummy_length to 0, set call_dummy_words to NULL, set
5529 sizeof_call_dummy_words to 0, set fix_call_dummy to
5530 generic_fix_call_dummy, set pc_in_call_dummy to
5531 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5532 generic_push_dummy_frame, set push_return_address to
5533 i386_push_return_address and set frame_chain_valid to
5534 generic_file_frame_chain_valid.
5535
049ee0e4
AC
55362002-07-03 Andrew Cagney <ac131313@redhat.com>
5537
5538 * gdbarch.sh (struct regcache): Add opaque declaration.
5539 (EXTRACT_RETURN_VALUE): New architecture method.
5540 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5541 * gdbarch.h, gdbarch.c: Regenerate.
5542 * arch-utils.c (legacy_extract_return_value): New function.
5543 * arch-utils.h (legacy_extract_return_value): Declare.
5544 * values.c (value_being_returned): Re-enable code handling
5545 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5546 deprecated_grub_regcache_for_registers call to block handling
5547 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5548 (EXTRACT_RETURN_VALUE): Do not define.
5549
4e0d9804
GS
55502002-07-03 Grace Sainsbury <graces@redhat.com>
5551
5552 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5553 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5554 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5555 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5556 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5557 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5558 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5559 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5560 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5561 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5562 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5563 argument so the function fits the prototype in the architecture
5564 vector.
5565 (mcore_pop_frame): Remove argument so the function fits the
5566 prototype. Use get_current_frame instead of the argument.
5567 (mcore_push_arguments): Change type of struct_return so the
5568 function can be used in the architecture vector.
5569 (mcore_store_struct_return): Add.
5570 (mcore_frame_init_saved_regs): Add.
5571 (mcore_gdbarch_init): Add function calls to replace the macros
5572 removed from tm-mcore.h
5573
36160dc4
AC
55742002-07-03 Andrew Cagney <ac131313@redhat.com>
5575
5576 * infcmd.c (print_return_value): Remove compatibility code calling
5577 deprecated_grub_regcache_for_registers.
5578
5579 * values.c: Include "regcache.h".
5580 (value_being_returned): Update. Use
5581 deprecated_grub_regcache_for_registers to extract the register
5582 buffer address.
5583 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5584 ``struct regcache''.
5585 * Makefile.in (values.o): Add dependency on $(regcache_h).
5586
5587 * inferior.h (run_stack_dummy): Change type of second parameter to
5588 a ``struct regcache''.
5589 * valops.c (hand_function_call): Change type of retbuf to ``struct
5590 regcache''. Allocate using regcache_xmalloc, clean using
5591 make_cleanup_regcache_xfree.
5592 * infcmd.c (run_stack_dummy): Update. Use
5593 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5594
5595 * regcache.c (do_regcache_xfree): New function.
5596 (make_cleanup_regcache_xfree): New function.
5597 * regcache.h (make_cleanup_regcache_xfree): Declare.
5598
e64d9b3d
MH
55992002-07-03 Martin M. Hunt <hunt@redhat.com>
5600
4dd79c29
MH
5601 * event-top.c (command_line_handler): Don't read past
5602 beginning of buffer.
e64d9b3d 5603
4dd79c29
MH
56042002-07-03 Martin M. Hunt <hunt@redhat.com>
5605
e64d9b3d
MH
5606 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5607 struct frame_id.
5608 (varobj_create): Store frame_id for root.
5609 (varobj_gen_name): Use xasprintf.
5610 (varobj_update): Save and restore frame using get_frame_id() and
5611 frame_find_by_id().
5612 (create_child): Use xasprintf.
5613 (new_root_variable): Initialize frame_id.
5614 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5615 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5616 to prevent memory leak.
5617
26e6c56a
AC
56182002-07-03 Andrew Cagney <ac131313@redhat.com>
5619
5620 * valops.c (hand_function_call): Move declaration of retbuf to
5621 start of function, allocate using malloc, add a cleanup but before
5622 the inf_status cleanup, cleanup the buffer. Rename local variable
5623 old_chain to inf_status_cleanup.
5624
f436dd25
MH
56252002-07-03 Martin M. Hunt <hunt@redhat.com>
5626
5627 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5628
5629 * cli/cli-decode.c (cmd_func_p): New function.
5630 (cmd_func): New function.
5631
5632 * command.h: Add cmd_func() and cmd_func_p().
5633
4cfe2084
GS
56342002-07-03 Grace Sainsbury <graces@redhat.com>
5635
5636 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5637 (REGISTER_SIZE): Remove.
5638 (MAX_REGISTER_RAW_SIZE): Remove.
5639 (REGISTER_VIRTUAL_TYPE): Remove.
5640 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5641 (REGISTER_NAME): Remove.
5642 (USE_GENERIC_DUMMY_FRAMES): Remove.
5643 (CALL_DUMMY): Remove.
5644 (CALL_DUMMY_START_OFFSET): Remove.
5645 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5646 (CALL_DUMMY_LOCATION): Remove.
5647 (FIX_CALL_DUMMY): Remove.
5648 (CALL_DUMMY_ADDRESS): Remove.
5649 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5650 (SAVE_DUMMY_FRAME_TOS): Remove.
5651 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5652 (mcore_register_virtual_type): New function.
5653 (mcore_register_byte): New function.
5654 (mcore_register_size): New function.
5655 (mcore_register_name): New function.
5656 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5657 macros removed from tm-mcore.h.
5658 (mcore_dump_tdep): Add.
5659 (_initialize_mcore_tdep): Add gdbarch_register call.
5660
4fd667e9
MK
56612002-07-03 Mark Kettenis <kettenis@gnu.org>
5662
5663 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5664 frameless_look_for_prologue, such that we actually call this
5665 function.
5666
42f99ac2
JB
56672002-07-02 Joel Brobecker <brobecker@gnat.com>
5668
5669 * frame.h (frame_address_in_block): New function.
5670
5671 * blockframe.c (frame_address_in_block): New function extracted
5672 from get_frame_block().
5673 (get_frame_block): Use frame_address_in_block().
5674 (block_innermost_frame): Use frame_address_in_block() to match
5675 the frame pc address against the block boundaries rather than
5676 the frame pc directly. This prevents a failure when a frame pc
5677 is actually a return-address pointing immediately after the end
5678 of the given block.
5679
103a1597 56802002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5681
5682 * MAINTAINERS: Add self under write after approval.
5683
56842002-07-02 Grace Sainsbury <graces@redhat.com>
5685
103a1597
GS
5686 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5687 used in architecture vector. The default is
5688 m68k_local_breakpoint_from_pc.
5689 (m68k_local_breakpoint_from_pc): Add.
5690 (enum): Add register numbers from tm-m68k.h.
5691 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5692 vector.
5693 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5694 GDB_MULTI_ARCH_PARTIAL.
5695 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5696 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5697 m68k-tdep.c.
5698 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5699 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5700 to enum in m68k-tdep.c
5701
7a5a0534
JB
57022002-07-02 Joel Brobecker <brobecker@gnat.com>
5703
5704 * solib-osf.c (open_map): Compute the list of shared libraries
5705 loaded by the inferior, rather than the list of libraries loaded
5706 by GDB itself. Otherwise, GDB ends up reading the symbols from
5707 the wrong shared libraries...
5708
6f558d74
MK
57092002-07-02 Mark Kettenis <kettenis@gnu.org>
5710
b7d15bf7
MK
5711 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5712 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5713 macros.
5714 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5715 Remove functions.
5716 (FRAMELESS_SIGNAL): Remove function.
5717 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5718 i386_linux_saved_pc_after_call): Removed.
5719 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5720 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5721 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5722
6bff26de
MK
5723 * i386-tdep.c (i386_frameless_signal_p): New function.
5724 (i386_frame_chain): Deal with frameless signals.
5725 (i386_sigtramp_saved_sp): New function.
5726 (i386_frame_saved_pc): Deal with frameless signals.
5727 (i386_saved_pc_after_call): Make sure the correct value is
5728 returned just after entry into a sigtramp.
5729 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5730 i386fbsd4_sc_sp_offset): New variables.
5731 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5732 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5733 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5734 similiar to what we already did for sc_pc_offset.
5735 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5736 tdep->sc_sp_offset.
5737
6f558d74
MK
5738 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5739
145564b7
ML
57402002-07-02 Michal Ludvig <mludvig@suse.cz>
5741
5742 * config/i386/tm-x86-64linux.h: New.
5743 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5744 definitions.
5745 * config/i386/nm-x86-64.h: Rename to ...
5746 * config/i386/nm-x86-64linux.h: ... this one.
5747 * config/i386/x86-64linux.mh: Reflect the above change.
5748
3a1e71e3
MK
57492002-07-01 Mark Kettenis <kettenis@gnu.org>
5750
21d0e8a4
MK
5751 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5752 with sigcontext_addr. Add sc_sp_offset.
5753 (i386bsd_sigtramp_saved_pc): Remove prototype.
5754 (i386bsd_sicontext_addr): Add prototype.
5755 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5756 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5757 (i386_svr4_sigtramp_saved_pc): Removed.
5758 (i386_svr4_sigcontext_addr): New function.
5759 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5760 Initialize tdep->sigcontext_addr instead. Initialize
5761 tdep->sc_pc_offset and tdep->sc_sp_offset.
5762 (i386_gdbarch_init): Likewise.
5763 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5764 any more.
5765 (i386bsd_sigtramp_saved_pc): Remove function.
5766 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5767 Initialize tdep->sigcontext_addr instead. Initialize
5768 tdep->sc_pc_offset.
5769 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5770 of tdep->sigtramp_saved_pc.
5771 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5772 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5773 instead.
5774
3a1e71e3
MK
5775 * i386-tdep.c (i386_frameless_function_invocation,
5776 i386_frame_num_args, i386_frame_init_saved_regs,
5777 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5778 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5779 i386_extract_return_value, i386_store_return_value,
5780 i386_extract_struct_value_address, i386_register_virtual_type,
5781 i386_register_convertible, i386_register_convert_to_virtual,
5782 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5783 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5784 static.
5785
52e9098c
MK
57862002-07-01 Mark Kettenis <kettenis@gnu.org>
5787
77b13a25
MK
5788 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5789
52e9098c
MK
5790 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5791 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5792 this macro. Include "value.h".
5793
1b372fff
AS
57942002-06-30 Aidan Skinner <aidan@velvet.net>
5795
5796 * ada-exp.tab.c: remove as it's a generated file
5797 * ada-lex.c: remove as it's a generated file
5798
9c5045b5
MK
57992002-06-30 Mark Kettenis <kettenis@gnu.org>
5800
4a93c5bb
MK
5801 * config/i386/tm-i386.h (struct frame_info, struct
5802 frame_saved_regs, struct value, struct type): Remove forward
5803 declarations.
5804
322d4fe0
MK
5805 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5806 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5807 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5808 (FILL_FPXREGSET): Define.
5809
fdd8263d
MK
5810 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5811
482e577b
MK
5812 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5813 i[3456]86-*-netbsd* case.
5814 * config/i386/tm-obsd.h: Removed.
5815 * config/i386/obsd.mt: Removed.
5816 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5817 core-aout.o.
5818 (MH_CFLAGS): Add -DYYDEBUG=0.
5819
6916549a
MK
5820 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5821 i386nbsd_sc_pc_offset on OpenBSD too.
5822
9c5045b5
MK
5823 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5824 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5825 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5826 define.
5827 * i386bsd-tdep.c: Include "arch-utils.h".
5828 (i386bsd_aout_in_solib_call_trampoline): New function.
5829 (i386bsd_init_abi): Set in_solib_call_trampoline to
5830 i386bsd_aout_in_solib_call_trampoline.
5831 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5832 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5833
aa84d1bb
AC
58342002-06-28 Andrew Cagney <ac131313@redhat.com>
5835
5836 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5837 (struct obstack, struct bcache): Add opaque declarations.
5838 * Makefile.in (macrotab_h): Update
5839
b4d83933
AC
58402002-06-28 Andrew Cagney <ac131313@redhat.com>
5841
5842 * blockframe.c (generic_find_dummy_frame): Change return type to
5843 ``struct regcache''.
5844 (struct dummy_frame): Replace field ``registers'' with regcache, a
5845 struct regcache object.
5846 (generic_find_dummy_frame): Update.
5847 (generic_push_dummy_frame): Update. Use regcache_xfree,
5848 regcache_xmalloc and regcache_cpy.
5849 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5850 regcache_xfree.
5851 (deprecated_generic_find_dummy_frame): Update.
5852 (generic_read_register_dummy): Update. Use
5853 regcache_read_as_address.
5854 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5855 (generic_get_saved_register): Update. Use regcache_read.
5856
08c0b5bc
AC
58572002-06-28 Andrew Cagney <ac131313@redhat.com>
5858
5859 * Makefile.in (objfiles_h): Add $(bcache_h).
5860 * objfiles.h: Include "bcache.h".
5861
5862 * Makefile.in (symtab_h): Remove $(bcache_h).
5863 * symtab.h: Do not include "bcache.h".
5864
1f89801a
AC
58652002-06-28 Andrew Cagney <ac131313@redhat.com>
5866
5867 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5868 generic_func_frame_chain_valid.
5869
b9644b58
DB
58702002-06-28 David O'Brien <obrien@FreeBSD.org>
5871
5872 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5873 * config/i386/tm-fbsd.h: Likewise.
5874
dd486634
AC
58752002-06-28 Andrew Cagney <ac131313@redhat.com>
5876
5877 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5878 generic_unwind_get_saved_register.
5879
0b434a00
AC
58802002-06-27 Andrew Cagney <ac131313@redhat.com>
5881
5882 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5883 * regcache.c (supply_register): Add missing argument to
5884 register_buffer call.
5885
f30e5a77
AC
58862002-06-27 Andrew Cagney <ac131313@redhat.com>
5887
5888 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5889 Solaris /bin/grep does not not like it. From Peter Schauer.
5890
9f064c95
TT
58912002-06-26 Tom Tromey <tromey@redhat.com>
5892
5893 * command.h (add_setshow_cmd): Declare.
5894 (add_setshow_cmd_full): Declare.
5895 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5896 returns void. Use add_setshow_cmd_full.
5897 (add_setshow_cmd_full): New function.
5898 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5899 (add_setshow_boolean_cmd): Likewise.
5900
099c7589
JT
59012002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5902
5903 * config/vax/tm-vax.h: Protect from multiple inclusion.
5904 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5905 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5906 * config/vax/tm-vaxbsd.h: ...here. New file.
5907 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5908
1d049c5e
JT
59092002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5910
5911 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5912 (BELIEVE_PCC_PROMOTION): Remove.
5913 (AP_REGNUM): Move to...
5914 * config/vax/nm-vax.h: ...here.
5915 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5916 (vax_breakpoint_from_pc): New function.
5917 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5918 and gdbarch_believe_pcc_promotion.
5919
4791e091
JT
59202002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5921
5922 * Makefile.in (vax_tdep_h): Define.
5923 (vax-tdep.o): Use $(vax_tdep_h).
5924 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5925 (vax_dump_tdep): New function.
5926 (_initialize_vax_tdep): Register vax_dump_tdep.
5927 * vax-tdep.h: Include osabi.h.
5928 (struct gdbarch_tdep): New.
5929
da130f98
AC
59302002-06-26 Andrew Cagney <cagney@redhat.com>
5931
5932 * frame.h (deprecated_generic_find_dummy_frame): Rename
5933 generic_find_dummy_frame.
5934 * blockframe.c (generic_find_dummy_frame): Make static.
5935 (deprecated_generic_find_dummy_frame): New function.
5936 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5937 generic_find_dummy_frame with deprecated_find_dummy_frame.
5938 (sh64_nofp_frame_init_saved_regs): Ditto.
5939 (sh_fp_frame_init_saved_regs): Ditto.
5940 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5941 (s390_frame_chain): Ditto.
5942 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5943
6300c360
GS
59442002-06-26 Grace Sainsbury <graces@redhat.com>
5945
5946 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5947 gdbarch vector are at the top.
5948 (NUM_REGS): Remove.
5949 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5950 (FRAME_ARGS_ADDRESS): Remove.
5951 (FRAME_LOCALS_ADDRESS): Remove.
5952 (FRAME_NUM_ARGS): Remove.
5953 (FRAME_ARGS_SKIP): Remove.
5954 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5955 (m68k_gdbarch_init): Add gdbarch initializations for macros
5956 undefined in tm-m68k.h
5957
1c617db8
GS
59582002-06-26 Grace Sainsbury <graces@redhat.com>
5959
5960 * monitor.h: Add the function regname to monitor_ops
5961 structure. This way NUM_REGS does not have to be a constant.
5962 * monitor.c (monitor_fetch_register): Added support for regname
5963 function. The function is called if the array regnames is NULL.
5964 (monitor_store_register): Same.
da130f98
AC
5965 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5966 regnames array.
1c617db8
GS
5967 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5968 cpu32bug_cmds.regname to point to new function.
5969 * abug-rom.c (abug_regname): Same as above.
5970 (init_abug_cmds): Same.
5971 * dbug-rom.c (dbug_regname): Same as above.
5972 (init_dbug_cmds): Same.
5973 * remote-est.c (est_regname): Same.
5974 (init_est_cmds): Same.
5975 * rom68k-rom.c (rom68k_regname): Same.
5976 (init_rom68k_cmds): Same.
5977
ea9365bb
TT
59782002-06-25 Tom Tromey <tromey@redhat.com>
5979
5980 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5981
72cec141
AC
59822002-06-25 Andrew Cagney <cagney@redhat.com>
5983
5984 * infrun.c (stop_registers): Change variable's type to ``struct
5985 regcache'''.
5986 (xmalloc_inferior_status): Delete function.
5987 (free_inferior_status): Delete function.
5988 (normal_stop): Use regcache_cpy.
5989 (struct inferior_status): Change type of fields ``stop_registers''
5990 and ``registers'' to ``struct regcache''.
5991 (write_inferior_status_register): Use regcache_write.
5992 (save_inferior_status): Instead of calling
5993 xmalloc_inferior_status, allocate the inf_status buffer directly.
5994 Use regcache_dup_no_passthrough and regcache_dup to save the
5995 buffers.
5996 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5997 Replace the stop_registers regcache instead of overriding it. Use
5998 regcache_xfree. Instead of calling free_inferior_status, xfree
5999 the buffer directly.
6000 (discard_inferior_status): Use regcache_xfree. Instead of calling
6001 free_inferior_status, xfree the buffer directly.
6002 (build_infrun): Use regcache_xmalloc.
6003 (_initialize_infrun): Delete redundant call to build_infrun.
6004
6005 * Makefile.in (infcmd.o): Add $(regcache_h).
6006
6007 * infcmd.c: Include "regcache.h".
6008 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6009 obtain the address of `stop_registers' register buffer.
6010 (print_return_value): Ditto.
6011
6012 * inferior.h (struct regcache): Add opaque declaration.
6013 (stop_registers): Change variable's declared type to ``struct
6014 regcache''.
6015
defc6f8c
TT
60162002-06-24 Tom Tromey <tromey@redhat.com>
6017
c0e624e7
TT
6018 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6019 * target.c (initialize_targets): Fixed typo in
6020 trust-readonly-sections `show' documentation.
6021
defc6f8c
TT
6022 * main.c: Marked all strings with _().
6023
2b236d82
DH
60242002-06-24 Don Howard <dhoward@redhat.com>
6025
6026 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6027 that means max CORE_ADDR+1.
6028 (lookup_mem_region): Ditto.
6029 (mem_info_command): Ditto.
6030
942dc0e9
GS
60312002-06-24 Grace Sainsbury <graces@redhat.com>
6032
6033 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6034 (REGISTER_BYTES_OK): Remove.
6035 (REGISTER_BYTES): Remove.
6036 (STORE_STRUCT_RETURN): Remove.
6037 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6038 (STORE_RETURN_VALUE): Remove.
6039 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6040 (FRAME_CHAIN): Remove.
6041 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6042 (FRAME_SAVED_PC): Remove.
6043 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6044 (m68k_store_struct_return): Add.
6045 (m68k_deprecated_extract_return_value): Add.
6046 (m68k_deprecated_extract_struct_value_address): Add.
6047 (m68k_store_return_value): Add.
6048 (m68k_frame_chain): Add.
6049 (m68k_frameless_function_invocation): Add.
6050 (m68k_frame_saved_pc): Add.
6051 (m68k_gdbarch_init): added set_gdbarch calls for new
6052 functions and deleted macros.
6053
03c30d4d
TT
60542002-06-23 Tom Tromey <tromey@redhat.com>
6055
6056 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6057 (ALLDEPFILES): Likewise.
6058 (udiheaders): Removed.
6059 (udip2soc.o): Likewise.
6060 (udi2go32.o): Likewise.
6061 (udr.o): Likewise.
6062 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6063
37e71372
AC
60642002-06-22 Andrew Cagney <ac131313@redhat.com>
6065
06a6ac57
AC
6066 * infrun.c (_initialize_infrun): Delete unnecessary call to
6067 build_infrun.
6068
37e71372
AC
6069 * regcache.h: Update comments describing the regcache_cpy family
6070 of functions.
6071 (regcache_save, regcache_restore): Delete declaration.
6072 (regcache_save_no_passthrough): Delete declaration.
6073 (regcache_restore_no_passthrough): Delete declaration.
6074 * regcache.c (regcache_save): Delete function.
6075 (regcache_save_no_passthrough): Delete function.
6076 (regcache_restore): Delete function.
6077 (regcache_restore_no_passthrough): Delete function.
6078
78f6d055
AC
60792002-06-21 Andrew Cagney <ac131313@redhat.com>
6080
6081 * config/m68k/tm-m68k.h: Fix typo.
6082 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6083 (m68k_frame_init_saved_regs): Declare.
6084
78b119cb
JB
60852002-06-21 Jim Blandy <jimb@redhat.com>
6086
6087 Remove some vestiges of Harris 88k support.
6088 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6089 register numbering quirk.
6090 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6091 odd symbols occurring in Harris 88k ELF targets.
6092
0fbb3da7
TT
60932002-06-21 Tom Tromey <tromey@redhat.com>
6094
6095 * gdb_locale.h: New file.
6096 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6097 (defs_h): Added gdb_locale.h.
6098 * configure, config.in: Rebuilt.
6099 * configure.in (PACKAGE): Define.
6100 * defs.h: Include gdb_locale.h.
6101 * main.c (captured_main): Call setlocale, bindtextdomain,
6102 textdomain.
6103
456f8b9d
DB
61042002-06-21 Dave Brolley <brolley@redhat.com>
6105
6106 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6107 * config/frv/frv.mt: New file.
6108 * config/frv/tm-frv.h: New file.
6109 * configure.tgt: Support frv-*-*.
6110 * Makefile.in (frv-tdep.o): New target.
6111 * frv-tdep.c: New file.
6112 * NEWS: Mention frv.
6113
cdd463f9
DB
61142002-06-21 Dave Brolley <brolley@redhat.com>
6115
6116 * MAINTAINERS: Add self to "Write After Approval" list.
6117
5d3ed2e3
GS
61182002-06-21 Grace Sainsbury <graces@redhat.com>
6119
6120 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6121 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6122 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6123 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6124 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6125
6126 * m68k-tdep.c: Include arch-utils.h
6127 (m68k_register_raw_size): Add.
6128 (m68k_register_virtual_size): Add.
6129 (m68k_register_virtual_type): Add.
6130 (m68k_register_name): Add.
6131 (m68k_stack_align): Add.
6132 (m68k_register_byte): Add.
6133 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6134 tm-m68k.h.
6135
7f8e7424
GS
61362002-06-21 Grace Sainsbury <graces@redhat.com>
6137
a2c6a6d5 6138 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6139 m68k_find_saved_regs.
6140 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6141 references to it with frame->saved_regs.
7f8e7424
GS
6142 (m68k_gdbarch_init): Added function calls to initialize the
6143 gdbarch structure.
a2c6a6d5
GS
6144 (m68k_fix_call_dummy): Add.
6145 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6146 (CALL_DUMMY): Remove.
6147 (CALL_DUMMY_LENGTH): Remove.
6148 (CALL_DUMMY_START_OFFSET): Remove.
6149 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6150 (FIX_CALL_DUMMY): Remove.
6151 (PUSH_DUMMY_FRAME): Remove.
6152 (POP_FRAME): Remove.
7f8e7424 6153
f461f5cf
PM
61542002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6155
6156 * parse.c (parse_fprintf): New function used to avoid calls to
6157 fprintf in bison parser generated debug code.
6158 * parser-defs.h: Declaration of new parse_fprintf function.
6159 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6160 Set YYDEBUG to 1 by default.
6161 Set YYFPRINTF as parse_fprintf.
6162
7f0c12ed
ML
61632002-06-21 Michal Ludvig <mludvig@suse.cz>
6164
6165 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6166 encoding anymore.
6167 (pointer_encoding, enum ptr_encoding): New.
6168 (execute_cfa_program): Take care about pointer encoding.
6169 (dwarf2_build_frame_info): Only call parse_frame_info for
6170 .debug_frame and .eh_frame.
6171 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6172 fixed augmentation handling, added relative addressing,
6173 ignore duplicate FDEs. Added comments.
19d833a2 6174 * dwarf2cfi.c: Reindented.
7f0c12ed 6175
87c4a039
EZ
61762002-06-20 Elena Zannoni <ezannoni@redhat.com>
6177
6178 * event-top.c (command_handler): Don't use space_at_cmd_start
6179 unless there is sbrk() on the host. Assign time and space data
6180 to union fields of the appropriate length.
6181
1cf877ad
ML
61822002-06-20 Michal Ludvig <mludvig@suse.cz>
6183
6184 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6185 x86_64_register_name. Return type changed to 'const char *'.
6186 (x86_64_register_name2nr): Rename to x86_64_register_number.
6187 (x86_64_gdbarch_init): Update to reflect the change.
6188 * x86-64-tdep.h: Ditto.
6189 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6190 (supply_fpregset): Ditto.
6191
3fadccb3
AC
61922002-06-19 Andrew Cagney <cagney@redhat.com>
6193
6194 * regcache.h: Update copyright.
6195 (struct regcache, struct gdbarch): Add opaque declarations.
6196 (current_regcache): Declare global variable.
6197 (regcache_read, regcache_write): Add gdbarch parameter.
6198 (regcache_save, regcache_save_no_passthrough)
6199 (regcache_restore, regcache_restore_no_passthrough)
6200 (regcache_dup, regcache_dup_no_passthrough)
6201 (regcache_cpy, regcache_cpy_no_passthrough)
6202 (deprecated_grub_regcache_for_registers)
6203 (deprecated_grub_regcache_for_register_valid)
6204 (regcache_valid_p): Add function declarations.
6205
6206 * regcache.c: Update copyright.
6207 (regcache_descr_handle): New global variable.
6208 (struct regcache_descr): Define.
6209 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6210 (regcache_descr, xfree_regcache_descr): New functions.
6211 (struct regcache): Define.
6212 (regcache_xmalloc, regcache_xfree): New functions.
6213 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6214 (regcache_dup, regcache_dup_no_passthrough): New functions.
6215 (regcache_valid_p, regcache_read_as_address): New functions.
6216 (deprecated_grub_regcache_for_registers): New function.
6217 (deprecated_grub_regcache_for_register_valid): New function.
6218 (current_regcache): New global variable.
6219 (register_buffer): Add regcache parameter. Update calls.
6220 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6221 (read_register_gen, write_register_gen): Update register_buffer
6222 call. Test for legacy_p instead of gdbarch_register_read_p or
6223 gdbarch_register_write_p.
6224 (regcache_collect): Update register_buffer call.
6225 (build_regcache): Rewrite. Use deprecated grub functions.
6226 (regcache_save, regcache_save_no_passthrough): New functions.
6227 (regcache_restore, regcache_restore_no_passthrough): New
6228 functions.
6229 (_initialize_regcache): Create the regcache_data_handle. Swap
6230 current_regcache global variable.
6231
6232 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6233 parameter to regcache_read and regcache_write calls.
6234 (sh4_register_read): Ditto.
6235 (sh64_pseudo_register_read): Ditto.
6236 (sh64_register_read): Ditto.
6237 (sh_pseudo_register_write): Ditto.
6238 (sh4_register_write): Ditto.
6239 (sh64_pseudo_register_write): Ditto.
6240 (sh64_register_write): Ditto.
6241
6242 * defs.h (XCALLOC): Define.
6243
152d9db6
GS
62442002-06-19 Grace Sainsbury <graces@redhat.com>
6245
6246 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6247 * m68k-tdep.c (m68k_gdbarch_init): Added.
6248 (m68k_dump_tdep): Added.
6249
170911c7
DJ
62502002-06-19 Daniel Jacobowitz <drow@mvista.com>
6251
6252 * ada-lang.c (fill_in_ada_prototype): Update comment.
6253
2e4ebe70
DJ
62542002-06-19 Daniel Jacobowitz <drow@mvista.com>
6255
6256 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6257 MIPS_ABI_LAST.
6258 (mips_abi_string, mips_abi_strings): New.
6259 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6260 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6261 tdep->mips_abi_string. Honor mips_abi_string. Default to
6262 O32 if no ABI is found.
6263 (mips_dump_tdep): Use mips_abi_strings.
6264 (mips_abi_update): New function.
6265 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6266 ``set mips abi'' and ``show mips abi''. Check the size of
6267 mips_abi_strings.
6268
16775908
AC
62692002-06-19 Andrew Cagney <cagney@redhat.com>
6270
6271 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6272 constant.
6273
5051bfa4 62742002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6275
5051bfa4
JB
6276 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6277 current frame using only the first stack size adjustment. All
6278 subsequent size adjustments are not considered to be part of
6279 the "static" part of the current frame.
6280 Compute the address of the saved registers relative to the
6281 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6282 in use in this frame.
6283
56468235
DH
62842002-06-18 Don Howard <dhoward@redhat.com>
6285
6286 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6287 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6288 suggesting this solution.
6289
0b624158
AC
62902002-06-18 Andrew Cagney <ac131313@redhat.com>
6291
6292 * config/romp/xm-rtbsd.h: Delete file.
6293 * config/romp/rtbsd.mh: Delete file.
6294
221ea385
KS
62952002-06-18 Keith Seitz <keiths@redhat.com>
6296
6297 * breakpoint.c (condition_command): Post breakpoint_modify
6298 when a condition is added to an existing breakpoint.
6299 (commands_command): Likewise for commands.
6300 (set_ignore_count): Likewise for ignore counts.
6301 If no tty, do not simply return, still need to send event
6302 notification.
6303 (ignore_command): Only print a newline if the command came
6304 from a tty.
6305 Don't call breakpoints_changed, since this is now properly
6306 handled by set_ignore_count.
6307
5402eed1
AC
63082002-06-18 Andrew Cagney <cagney@redhat.com>
6309
6310 * MAINTAINERS: Note that cris-elf target can be compiled with
6311 -Werror.
6312 * cris-tdep.c (cris_register_name): Make return type constant.
6313 (cris_breakpoint_from_pc): Ditto.
6314
cc22880b
ML
63152002-06-18 Michal Ludvig <mludvig@suse.cz>
6316
6317 * frame.h (struct frame_info): Change type of context to
6318 'struct context'.
6319
fa88f677
AC
63202002-06-17 Andrew Cagney <cagney@redhat.com>
6321
6322 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6323 pointer.
6324 * gdbarch.h, gdbarch.c: Regenerate.
6325 * config/mips/tm-mips.h (mips_register_name): Update.
6326 * i386-tdep.h (i386_register_name): Update.
6327 * mips-tdep.c (mips_register_name): Update
6328 * alpha-tdep.c (alpha_register_name): Update.
6329 * arch-utils.c (legacy_register_name): Update.
6330 * arch-utils.h (legacy_register_name): Update.
6331 * avr-tdep.c (avr_register_name): Update.
6332 * ia64-tdep.c (ia64_register_name): Update.
6333 * i386-tdep.c (i386_register_name): Update.
6334 * sparc-tdep.c (sparc32_register_name): Update.
6335 (sparc64_register_name): Update.
6336 (sparclite_register_name): Update.
6337 (sparclet_register_name): Update.
6338 * sh-tdep.c (sh_generic_register_name): Update.
6339 (sh_sh_register_name): Update.
6340 (sh_sh3_register_name): Update.
6341 (sh_sh3e_register_name): Update.
6342 (sh_sh_dsp_register_name): Update.
6343 (sh_sh3_dsp_register_name): Update.
6344 (sh_sh4_register_name): Update.
6345 (sh_sh64_register_name): Update.
6346 * s390-tdep.c (s390_register_name): Update.
6347 * rs6000-tdep.c (rs6000_register_name): Update.
6348 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6349 (ns32k_register_name_32382): Update.
6350 * d10v-tdep.c (d10v_ts2_register_name): Update.
6351 (d10v_ts3_register_name): Update.
6352 * xstormy16-tdep.c (xstormy16_register_name): Update.
6353 * vax-tdep.c (vax_register_name): Update.
6354 * v850-tdep.c (v850_register_name): Update.
6355 * m68hc11-tdep.c (m68hc11_register_name): Update.
6356 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6357 (am33_register_name): Update.
6358
ea1e7ef6
GS
63592002-06-17 Grace Sainsbury <graces@redhat.com>
6360
6361 * m68k-tdep.c: Reindented.
6362
9b02dd1b
AC
63632002-06-17 Andrew Cagney <ac131313@redhat.com>
6364
6365 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6366 list of predefined types.
6367
8758dec1
MK
63682002-06-16 Mark Kettenis <kettenis@gnu.org>
6369
b6197528
MK
6370 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6371 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6372 REGISTER_CONVERT_TO_RAW): Remove defines.
6373 (i386_register_virtual_type, i386_register_convertible,
6374 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6375 Remove prototypes.
6376 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6377 macros mentioned above.
6378
82b47e62
MK
6379 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6380 (i386lynx_saved_pc_after_call): Remove prototype.
6381 * i386ly-tdep.c: Include "i386-tdep.h".
6382 (i386lynx_saved_pc_after_call): Make static. Use
6383 read_memory_nobpt instead of read_memory. Use
6384 read_memory_unsigned_integer instead of read_memory_integer.
6385 (i386lynx_init_abi): New function.
6386 (i386lynx_coff_osabi_sniffer): New function.
6387 (_initialize_i386bsd_tdep): New function.
6388
8758dec1
MK
6389 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6390 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6391 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6392 (i386_fix_call_dummy): Remove prototype.
6393 * i386-tdep.c (i386_call_dummy_words): New variable.
6394 (i386_gdbarch_init): Adjust for removal of the
6395 macros mentioned above.
6396
e9e68a56
AC
63972002-06-15 Andrew Cagney <ac131313@redhat.com>
6398
6399 * command.h (add_setshow_auto_boolean_cmd): Replace
6400 add_set_auto_boolean_cmd.
6401 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6402 add_set_auto_boolean_cmd.
6403 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6404 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6405 mask-address'' command.
6406 (show_mask_address): Add cmd parameter.
6407 * remote.c (add_packet_config_cmd): Update. Change type of
6408 set_func and show_func to cmd_sfunc_ftype.
6409 (_initialize_remote): Update `set remote Z-packet'
6410 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6411 (show_remote_protocol_e_packet_cmd): Ditto.
6412 (show_remote_protocol_E_packet_cmd): Ditto.
6413 (show_remote_protocol_P_packet_cmd): Ditto.
6414 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6415 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6416 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6417 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6418 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6419 (show_remote_protocol_Z_packet_cmd): Ditto.
6420 (show_remote_protocol_binary_download_cmd): Ditto.
6421 (show_remote_cmd): Pass NULL to all of above.
6422
fc08ec52
MK
64232002-06-15 Mark Kettenis <kettenis@gnu.org>
6424
6425 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6426 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6427 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6428 POP_FRAME): Remove defines.
6429 (i386_push_arguments, i386_store_struct_return,
6430 i386_extract_return_value, i386_store_return_value,
6431 i386_extract_struct_value_address, i386_push_dummy_frame,
6432 i386_pop_frame): Renove prototypes.
6433 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6434 macros mentioned above.
6435
e707bbc2
AC
64362002-06-15 Andrew Cagney <ac131313@redhat.com>
6437
6438 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6439 add_set_boolean_cmd.
6440 (add_setshow_cmd): New function.
6441 * command.h (add_setshow_boolean_cmd): Replace
6442 add_set_boolean_cmd.
6443 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6444 and ``set rdiromatzero''.
6445 * maint.c (_initialize_maint_cmds): Update commented out code.
6446 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6447 * target.c (initialize_targets): Update `set
6448 trust-readonly-sections'.
6449 * remote.c (_initialize_remote): Update `set remotebreak'.
6450
42fdc8df
MK
64512002-06-15 Mark Kettenis <kettenis@gnu.org>
6452
93924b6b
MK
6453 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6454 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6455 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6456 fit into multi-arch framework.
6457 (i386_breakpoint_from_pc): New function.
6458 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6459 above.
6460
42fdc8df
MK
6461 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6462 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6463 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6464 (i386_frameless_function_invocation, i386_frame_num_args,
6465 i386_frame_init_saved_regs): Remove prototypes.
6466 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6467 macros mentioned above.
6468
9773a94b
AC
64692002-06-15 Andrew Cagney <ac131313@redhat.com>
6470
6471 * cli/cli-decode.c (set_cmd_cfunc): Update.
6472 (set_cmd_sfunc): Update.
6473 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6474 (set_cmd_sfunc, set_cmd_cfunc): Update.
6475 * cli/cli-decode.h: Update.
6476
6e157172
MK
64772002-06-15 Mark Kettenis <kettenis@gnu.org>
6478
6479 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6480 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6481
7f19b9a2
AC
64822002-06-15 Andrew Cagney <ac131313@redhat.com>
6483
6484 * defs.h (auto_boolean): Declare enum.
6485 * command.h (cmd_auto_boolean): Delete enum.
6486 * mips-tdep.c (mask_address_var): Update.
6487 (mips_mask_address_p): Update.
6488 (show_mask_address): Update.
6489 * remote.c (struct packet_config): Update.
6490 (update_packet_config): Update.
6491 (show_packet_config_cmd): Update.
6492 (packet_ok): Update.
6493 (add_packet_config_cmd): Update.
6494 (_initialize_remote):
6495 * command.h: Update.
6496 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6497 (do_setshow_command): Update.
6498 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6499 * cli/cli-decode.h: Update.
6500
1cf88de5
MK
65012002-06-15 Mark Kettenis <kettenis@gnu.org>
6502
22ba8cf2
MK
6503 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6504 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6505 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6506 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6507 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6508 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6509
762c5349
MK
6510 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6511 list of DJGPP COFF targets.
6512
091198bb
MK
6513 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6514 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6515 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6516 (FP0_REGNUM): Remove define.
6517 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6518 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6519 (i386_register_virtual_size): Remove protoype.
6520 * i386-tdep.c (i386_register_virtual_size): Removed.
6521 (i386_extract_return_value, i386_store_return_value): Use
6522 FP0_REGNUM instead of NUM_FREGS to determine whether the
6523 floating-point registers are available.
6524 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6525 Adjust for removal of macros mentioned above.
6526
65272002-06-15 Mark Kettenis <kettenis@gnu.org>
6528
fcc9bf01
MK
6529 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6530 comments.
6531 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6532 Remove prototypes.
6533 (supply_gregset, fill_gregset): Remove use of register keyword and
6534 remove declaration for regmap. Use I386_NUM_GREGS instead of
6535 NUM_REGS and NUM_FREGS.
6536 (FPREGSET_FSAVE_OFFSET): Remove.
6537 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6538 NUM_FREGS to determine whether the floating-point registers are
6539 available.
6540
65e78234
MK
6541 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6542 gnu_store_registers): Replace usage of NUM_GREGS with
6543 I386_NUM_GREGS.
6544
98df6387
MK
6545 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6546 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6547 usage of NUM_GREGS with I386_NUM_GREGS.
6548
099a9414
MK
6549 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6550
57976e88
MK
6551 * i386bsd-nat.c: Include "i386-tdep.h".
6552 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6553 I386_NUM_GREGS.
6554
b335f4a6
MK
6555 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6556 and associated comment. They no longer make any sense, since we
6557 don't use this file anymore on Linux.
6558
1cf88de5
MK
6559 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6560 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6561 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6562 elements in these arrays.
6563 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6564 MAX_NUM_REGS.
6565
daa66587
MK
65662002-06-15 Mark Kettenis <kettenis@gnu.org>
6567
6568 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6569 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6570
26e9b323
AC
65712002-06-14 Andrew Cagney <cagney@redhat.com>
6572
6573 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6574 EXTRACT_RETURN_VALUE.
6575 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6576 EXTRACT_STRUCT_VALUE_ADDRESS.
6577 * gdbarch.h, gdbarch.c: Regenerate.
6578
6579 * values.c (value_being_returned): Handle
6580 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6581 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6582
6583 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6584 * arm-tdep.c (arm_gdbarch_init): Update.
6585 * avr-tdep.c (avr_gdbarch_init): Update.
6586 * cris-tdep.c (cris_gdbarch_init): Update.
6587 * d10v-tdep.c (d10v_gdbarch_init): Update.
6588 * ia64-tdep.c (ia64_gdbarch_init): Update.
6589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6590 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6591 * s390-tdep.c (s390_gdbarch_init): Update.
6592 * sh-tdep.c (sh_gdbarch_init): Update.
6593 * s390-tdep.c (s390_gdbarch_init): Update.
6594 * sparc-tdep.c (sparc_gdbarch_init): Update.
6595 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6596 * v850-tdep.c (v850_gdbarch_init): Update.
6597 * vax-tdep.c (vax_gdbarch_init): Update.
6598 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6600
6601 * config/arc/tm-arc.h: Update.
6602 * config/d30v/tm-d30v.h: Update.
6603 * config/fr30/tm-fr30.h: Update.
6604 * config/h8300/tm-h8300.h: Update.
6605 * config/h8500/tm-h8500.h: Update.
6606 * config/i386/tm-i386.h: Update.
6607 * config/i386/tm-ptx.h: Update.
6608 * config/i386/tm-symmetry.h: Update.
6609 * config/i960/tm-i960.h: Update.
6610 * config/m32r/tm-m32r.h: Update.
6611 * config/m68k/tm-delta68.h: Update.
6612 * config/m68k/tm-linux.h: Update.
6613 * config/m68k/tm-m68k.h: Update.
6614 * config/m88k/tm-m88k.h: Update.
6615 * config/mcore/tm-mcore.h: Update.
6616 * config/mips/tm-mips.h: Update.
6617 * config/mn10200/tm-mn10200.h: Update.
6618 * config/pa/tm-hppa.h: Update.
6619 * config/pa/tm-hppa64.h: Update.
6620 * config/sparc/tm-sp64.h: Update.
6621 * config/sparc/tm-sparc.h: Update.
6622 * config/sparc/tm-sparclet.h: Update.
6623 * config/z8k/tm-z8k.h: Update.
6624
5179e78f
AC
66252002-06-14 Andrew Cagney <cagney@redhat.com>
6626
6627 * Makefile.in (i386_linux_tdep_h): Define.
6628 (i386_tdep_h, i387_tdep_h): Define.
6629 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6630 $(i386_tdep_h) and $(i387_tdep_h).
6631 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6632
8201327c
MK
66332002-06-14 Mark Kettenis <kettenis@gnu.org>
6634
edf393ac
MK
6635 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6636 Already covered by the default.
6637
896fb97d
MK
6638 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6639 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6640 (i386_gdbarch_init): Initialize long_double_format and long_double
6641 bit.
6642
8201327c
MK
6643 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6644 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6645 Move these to ...
6646 * config/i386/i386sol2.mh: ... here.
6647 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6648 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6649 (SIGCONTEXT_PC_OFFSET): Remove define.
6650 (IN_SIGTRAMP): Remove define.
6651 * i386-sol2-tdep.c: New file.
6652
6653 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6654 * config/i386/tm-i386nw.h: Removed.
6655
6656 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6657 USE_STRUCT_CONVENTION): Remove defines.
6658 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6659 (get_longjmp_target): Remove prototype.
6660 (IN_SIGTRAMP): Remove define.
6661 (i386bsd_in_sigtramp): Remove prototype.
6662 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6663 function. Update comment accordingly
6664 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6665 (FRAME_SAVED_PC): Remove define.
6666 (i386bsd_frame_saved_pc): Remove prototype.
6667 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6668 GET_LONGJMP_TARGET): Remove defines.
6669 (get_longjmp_target): Remove prototype.
6670 (IN_SIGTRAMP): Remove define.
6671 (i386bsd_in_sigtramp): Remove prototype.
6672 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6673 function. Update comment accordingly
6674 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6675 (FRAME_SAVED_PC): Remove define.
6676 (i386bsd_frame_saved_pc): Remove prototype.
6677 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6678 Remove prototype.
6679 (USE_STRUCT_CONVENTION): Remove prototype.
6680 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6681 declaration.
6682 (_initialize_i386bsd_nat): Revise logic to determine some
6683 constants at compile time when compiling a native GDB. Warn if
6684 things don't match up with what we expect.
6685 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6686 Remove variables.
6687 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6688 to use date stored in `struct gdbarch_tdep'.
6689 (i386bsd_sigcontext_offset): Remove varaible.
6690 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6691 stored in `struct gdbarch_tdep'.
6692 (i386bsd_frame_saved_pc): Make static.
6693 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6694 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6695 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6696 i386fbsd4_sc_pc_offset): New variables.
6697 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6698 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6699 functions.
6700 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6701 functions.
6702 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6703 Modify the value of i386fbsd_sigtramp_start and
6704 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6705 i386fbsd_sigtramp_end.
6706 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6707 function.
6708
6709 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6710 define to i386-linux-tdep.h.
6711 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6712 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6713 defines.
6714 (i386_linux_register_name, i386_linux_register_byte,
6715 i386_linux_register_raw_size): Remove prototypes.
6716 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6717 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6718 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6719 TARGET_WRITE_PC): Remove defines.
6720 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6721 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6722 i386_linux_write_pc): Remove prototypes.
6723 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6724 (get_longjmp_target): Remove prototype.
6725 * i386-linux-tdep.h: New file.
6726 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6727 * i386-linux-tdep.c: Include "i386-tdep.h" and
6728 "i386-linux-tdep.h".
6729 (i386_linux_register_name, i386_linux_register_byte,
6730 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6731 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6732 Make static.
6733 (i386_linux_init_abi): New function.
6734 (_initialize_i386_linux_tdep): New function.
6735
6736 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6737 (i386_saved_pc_after_call): Remove prototype.
6738 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6739 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6740 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6741 (i386_register_name, i386_stab_reg_to_regnum,
6742 i386_dwarf_reg_to_regnum): Remove prototypes.
6743 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6744 SIZEOF_SSE_REGS): Remove defines.
6745 (REGISTER_BYTES): Remove define.
6746 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6747 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6748 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6749 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6750 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6751 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6752 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6753 (get_longjmp_target): Remove prototype.
6754 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6755 (sigtramp_saved_pc): Remove define.
6756 (i386v4_sigtramp_saved_pc): Remove prototype.
6757 * config/i386/tm-go32.h (FRAME_CHAIN,
6758 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6759 (i386go32_frame_saved_pc): Remove prototype.
6760 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6761 (get_longjmp_target): Remove prototype.
6762 * i386-tdep.h: Include "osabi.h".
6763 (enum i386_abi): Removed.
6764 (enum struct_return): New enum.
6765 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6766 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6767 sc_pc_offset members.
6768 (i386_gdbarch_register_os_abi): Remove prototype.
6769 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6770 I386_SSE_NUM_REGS): New defines.
6771 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6772 I386_SSE_SIZEOF_REGS): New defines.
6773 (i386_register_name, i386_register_byte, i386_register_raw_size):
6774 New prototypes.
6775 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6776 (i386bsd_sigtramp_saved_pc): New prototype.
6777 * i386-tdep.c: Don't include "elf-bfd.h".
6778 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6779 i386_frame_chain, i386_saved_pc_after_call): Make static.
6780 (i386_frame_saved_pc): Rewrite to call architecture dependent
6781 function to deal with signal handlers. Make static.
6782 (i386go32_frame_saved_pc): Removed.
6783 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6784 Removed.
6785 (i386_get_longjmp_target): New function.
6786 (default_struct_convention, pcc_struct_convention,
6787 reg_struct_convention, valid_conventions, struct_convention): New
6788 variables.
6789 (i386_use_struct_convention): New function.
6790 (i386v4_sigtramp_saved_pc): Renamed to
6791 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6792 (i386_pc_in_sigtramp): New function.
6793 (i386_abi_names): Removed.
6794 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6795 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6796 Removed.
6797 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6798 i386_gdbarch_register_os_abi): Removed.
6799 (struct i386_abi_handler): Removed.
6800 (i386_abi_handler_list): Removed.
6801 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6802 functions.
6803 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6804 i386_nw_init_abi): New functions.
6805 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6806 Use set_gdbarch_xxx() calls instead of relying on macros for a
6807 number of calls.
6808 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6809 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6810 Register the various architecture variants defined in this file.
6811
ad2f7632
DJ
68122002-06-14 Daniel Jacobowitz <drow@mvista.com>
6813
6814 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6815 (struct main_type): Remove arg_types member. Update comments for
6816 struct field.
6817 (TYPE_ARG_TYPES): Remove.
6818 (TYPE_FN_FIELD_ARGS): Update.
6819 (smash_to_method_type): Update prototype.
6820
6821 * c-typeprint.c (cp_type_print_method_args): Take method type
6822 instead of argument list. Use new argument layout. Simplify.
6823 (c_type_print_args): Use new argument layout. Simplify.
6824 (c_type_print_base): Update call to cp_type_print_method_args.
6825 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6826 argument; use die->type instead. Update call to
6827 smash_to_method_type.
6828 (read_structure_scope): Update call to dwarf2_add_member_fn.
6829 * gdbtypes.c (allocate_stub_method): Update comment.
6830 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6831 Use new argument layout.
6832 (check_stub_method): Use new argument layout. Don't count
6833 void as an argument.
6834 (print_arg_types): Update comments. Use new argument layout.
6835 (recursive_dump_type): Don't print arg_types member.
6836 * hpread.c (hpread_read_struct_type): Use new argument layout.
6837 (fixup_class_method_type): Likewise.
6838 (hpread_type_lookup): Likewise.
6839 * stabsread.c (read_type): Update calls to read_args and
6840 smash_to_method_type.
6841 (read_args): Use new argument layout. Simplify.
6842 * valops.c (typecmp): Use new argument layout. Update parameters
6843 and comments. Simplify.
6844 (hand_function_call): Use new argument layout.
6845 (search_struct_method): Update call to typecmp.
6846 (find_overload_match): Use new argument layout.
6847
6da02953
DJ
68482002-06-13 Daniel Jacobowitz <drow@mvista.com>
6849
6850 * NEWS: Mention multithreaded debug support for gdbserver.
6851
519b2366
DJ
68522002-06-13 Daniel Jacobowitz <drow@mvista.com>
6853
6854 * MAINTAINERS: Mention NEWS.
6855
6c0d6680
DJ
68562002-06-13 Daniel Jacobowitz <drow@mvista.com>
6857
6858 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6859 (struct mips_objfile_private, compare_pdr_entries): New.
6860 (non_heuristic_proc_desc): Read the ".pdr" section if it
6861 is present.
6862
6529d2dd
AC
68632002-06-12 Andrew Cagney <ac131313@redhat.com>
6864
6865 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6866 (arm_debug): New static variable.
6867 (_initialize_arm_tdep): Add ``set debug arm'' command.
6868
26216b98
AC
68692002-06-12 Andrew Cagney <ac131313@redhat.com>
6870
6871 * Makefile.in (sim_arm_h): Define.
6872 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6873 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6874 (arm_register_sim_regno): New function, map an internal REGNUM
6875 onto a simulator register number.
6876 (arm_gdbarch_init): Set register_sim_regno.
6877
814b3ba0
AH
68782002-06-09 Aldy Hernandez <aldyh@redhat.com>
6879
6880 * MAINTAINERS: Add self.
6881
475b0867
JB
68822002-06-11 Jim Blandy <jimb@redhat.com>
6883
919d772c
JB
6884 * source.c (source_info): Mention whether the symtab has
6885 information about preprocessor macros.
6886
475b0867
JB
6887 Call the command `info macro', not `show macro'.
6888 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6889 Fix error message.
6890 (_initialize_macrocmd): Register `info_macro_command' in
6891 `infolist', not `showlist'.
6892
9e364162
DJ
68932002-06-11 Daniel Jacobowitz <drow@mvista.com>
6894
6895 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6896 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6897 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6898 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6899 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6900 unconditionally.
6901 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6902 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6903 (_initialize_mips_tdep): Remove dead code.
6904 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6905 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6906 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6907 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6908 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6909 MIPS_LAST_FP_ARG_REGNUM): Remove.
6910
23aa4c72
ML
69112002-06-11 Michal Ludvig <mludvig@suse.cz>
6912
6913 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6914 (unwind_tmp_obstack_free, parse_frame_info)
6915 (update_context, cfi_read_fp, cfi_write_fp)
6916 (cfi_frame_chain, cfi_init_extra_frame_info)
6917 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6918 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6919
70eb15a4
CV
69202002-06-11 Corinna Vinschen <vinschen@redhat.com>
6921
6922 * v850-tdep.c (v850_type_is_scalar): New function.
6923 (v850_use_struct_convention): Match current gcc implementation
6924 as close as possible.
6925 (v850_push_arguments): Fix stack_offset handling. Don't write
6926 struct_addr into register. This is done by v850_store_struct_return.
6927 (v850_extract_return_value): Care for structs.
6928 (v850_store_return_value): Ditto.
6929 (v850_store_struct_return): Actually write address.
6930
482a4d06
ML
69312002-06-11 Michal Ludvig <mludvig@suse.cz>
6932
6933 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6934 without debug information too.
6935
d855c300
AC
69362002-06-10 Andrew Cagney <ac131313@redhat.com>
6937
6938 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6939 Make multi-arch pure.
6940 * gdbarch.h, gdbarch.c: Re-generate.
6941 * arm-tdep.c (arm_print_float_info): Update.
6942 * arch-utils.h (default_print_float_info): Update.
6943 * arch-utils.c (default_print_float_info): Update.
6944 * infcmd.c (float_info): Update call.
6945
dd12a101
AC
69462002-06-10 Andrew Cagney <ac131313@redhat.com>
6947
6948 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6949 the front of the initialize list.
6950
101dcfbe
AC
69512002-06-10 Andrew Cagney <ac131313@redhat.com>
6952
6953 * infrun.c (struct inferior_status): Replace fields
6954 selected_frame_address and selected_level with field
6955 selected_frame_id.
6956 (save_inferior_status): Update. Use get_frame_id.
6957 (struct restore_selected_frame_args): Delete.
6958 (restore_selected_frame): Update. Use frame_find_by_id.
6959 (restore_inferior_status): Update.
6960
6961 * breakpoint.h (struct breakpoint): Change type of
6962 watchpoint_frame to frame_id.
6963 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6964 call to get_current_frame.
6965 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6966 get_current_frame.
6967 (watchpoint_check): Use frame_find_by_id.
6968
6969 * frame.h (record_selected_frame): Delete declaration.
6970 * stack.c (record_selected_frame): Delete function.
6971
6972 * frame.h (struct frame_id): Define.
6973 (get_frame_id): Declare.
6974 (frame_find_by_id): Declare.
6975 * frame.c (frame_find_by_id): New function.
6976 (get_frame_id): New function.
6977
304270b6
AV
69782002-06-10 Andrey Volkov <avolkov@transas.com>
6979
6980 * ser-e7kpc.c: Fix duplicated define and call of
6981 _initialize_ser_e7000pc
6982
2f2cf184
DJ
69832002-06-09 Daniel Jacobowitz <drow@mvista.com>
6984
6985 * signals/signals.c (target_signal_from_host): Fix #ifdef
6986 SIGRTMIN case.
6987 (do_target_signal_to_host): Likewise.
6988
caaa3122
DJ
69892002-06-09 Daniel Jacobowitz <drow@mvista.com>
6990
6991 * mips-tdep.c (mips_find_abi_section): New function.
6992 (mips_gdbarch_init): Call it.
6993
6ac5df3a
MK
69942002-06-09 Mark Kettenis <kettenis@gnu.org>
6995
6996 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6997 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6998 after Andrew's 2002-06-08 gdbarch change.
6999
82ea117a
MK
70002002-06-09 Mark Kettenis <kettenis@gnu.org>
7001
7002 * i386-linux-nat.c (suppy_gregset): Don't supply
7003 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7004 register cache.
7005 (fill_gregset): Don't fetch it under the same circumstances.
7006
3c25f8c7
AC
70072002-06-09 Andrew Cagney <cagney@redhat.com>
7008
7009 * Makefile.in (callback_h): Define.
7010 (remote_sim_h): Update path to remote-sim.h.
7011 (remote-rdp.o): Add $(callback_h).
7012 (remote-sim.o): Use $(callback_h).
7013 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7014 * remote-rdp.c: Include "gdb/callback.h".
7015
1029b7fa
MK
70162002-06-09 Mark Kettenis <kettenis@gnu.org>
7017
7018 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7019 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7020
616675d3
AC
70212002-06-08 Andrew Cagney <ac131313@redhat.com>
7022
a3efda28
AC
7023 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7024 * rdi-share/serpardr.c: Ditto.
7025 * rdi-share/unixcomm.c: Ditto.
7026 * rdi-share/serdrv.c: Ditto.
7027 * rdi-share/hostchan.h: Ditto.
7028 * rdi-share/hostchan.c: Ditto.
7029 * rdi-share/host.h: Ditto.
7030 * rdi-share/devsw.c: Ditto.
7031
c5f10366
AC
7032 * objfiles.h: Change type of obj_private to void pointer.
7033 * pa64solib.c: Update copyright. Don't include "assert.h", use
7034 strcmp instead of STREQ, use LONGEST, do not use PTR
7035 * somsolib.c: Ditto.
7036
616675d3
AC
7037 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7038 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7039 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7040
e4b415d9
AC
70412002-06-08 Andrew Cagney <ac131313@redhat.com>
7042
7043 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7044 (default_get_saved_register): Delete function.
7045 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7046 generic_unwind_get_saved_register.
7047 * gdbarch.h, gdbarch.c: Re-generate.
7048
ca0d0b52
AC
70492002-06-08 Andrew Cagney <ac131313@redhat.com>
7050
7051 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7052 generic_func_frame_chain_valid.
7053 * gdbarch.h, gdbarch.c: Re-generate.
7054 * blockframe.c (generic_func_frame_chain_valid): Only check
7055 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7056 passing FP to PC_IN_CALL_DUMMY.
7057 Fix PR gdb/360.
7058
76860b5f
AC
70592002-06-08 Andrew Cagney <ac131313@redhat.com>
7060
7061 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7062 (register_gdbarch_data): Initialize init_p.
7063 (gdbarch_data): Initialize data pointer using the init function.
7064 (init_gdbarch_data): Delete function.
7065 (gdbarch_update_p): Update.
7066 (initialize_non_multiarch): Update.
7067 (struct gdbarch): Add field initialized_p.
7068 * gdbarch.h, gdbarch.c: Re-generate.
7069
8dda9770
ML
70702002-06-07 Michal Ludvig <mludvig@suse.cz>
7071
7072 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7073 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7074 better do the things actually here.
7075 * x86-64-tdep.c (x86_64_register_name2nr): New.
7076 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7077 (x86_64_gdbarch_init): Respect the above change.
7078 * x86-64-tdep.h (x86_64_register_name2nr)
7079 (x86_64_register_nr2name): Add prototypes.
7080 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7081
3d79a47c
MS
70822002-06-06 Michael Snyder <msnyder@redhat.com>
7083
7bd91a28
MS
7084 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7085 Delete extra braces and re-indent.
7086 (d10v_store_return_value): Char return values
3d79a47c
MS
7087 must be shifted over by one byte in R0.
7088 (d10v_extract_return_value): Delete extra braces, re-indent.
7089
095a4c96
EZ
70902002-06-06 Elena Zannoni <ezannoni@redhat.com>
7091
7092 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7093 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7094 (d10v_integer_to_address): Rewrite.
7095 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7096 the d10v specific functions which take care of converting to the
7097 correct space.
7098
e8a77ca4
EZ
70992002-06-06 Elena Zannoni <ezannoni@redhat.com>
7100
7101 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7102 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7103
4f2e4a4f
AC
71042002-06-02 Andrew Cagney <ac131313@redhat.com>
7105
7106 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7107 includes.
7108 * config/tm-linux.h: Ditto.
7109 * config/alpha/tm-alphalinux.h: Ditto.
7110 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7111 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7112 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7113 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7114 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7115 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7116 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7117 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7118 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7119 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7120 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7121 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7122 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7123 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7124 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7125 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7126 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7127 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7128 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7129 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7130 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7131 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7132 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7133 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7134 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7135 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7136 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7137 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7138 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7139 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7140 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7141 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7142 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7143 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7144 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7145 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7146 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7147
ae2ab2ce
AS
71482002-05-04 Aidan Skinner <aidan@velvet.net>
7149
7150 * ada-exp.tab.c: New file
7151 * ada-exp.y: New file
7152 * ada-lang.c: New file
7153 * ada-lang.h: New file
7154 * ada-lex.c: New file
7155 * ada-lex.l: New file
7156 * ada-tasks.c: New file
7157 * ada-typeprint.c: New file
7158 * ada-valprint.c: New file
7159
0ddd0135
JT
71602002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7161
7162 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7163 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7164
750fbacc
JT
71652002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7166
7167 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7168 insetead of ppc-linux-tdep.o.
7169 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7170 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7171
df94e18a
AC
71722002-06-02 Andrew Cagney <ac131313@redhat.com>
7173
7174 2002-05-07 Christian Groessler <chris@groessler.org>
7175 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7176 bit register contents for little endian hosts.
7177
1a38ab75
AC
71782002-06-01 Andrew Cagney <ac131313@redhat.com>
7179
7180 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7181 any maintainer.
7182
8b1632ac
AC
71832002-06-01 Andrew Cagney <ac131313@redhat.com>
7184
7185 * gdbarch.h: Regenerate.
7186
627054c8
AC
71872002-06-01 Andrew Cagney <ac131313@redhat.com>
7188
7189 * MAINTAINERS: Add everyone to write-after-approval list.
7190
4f460812
AC
71912002-06-01 Andrew Cagney <ac131313@redhat.com>
7192
7193 * stack.c (frame_info): Use frame_register_unwind instead of
7194 saved_regs. Mention when the SP is on the stack or in a register.
7195
7196 * frame.h (frame_register_unwind_ftype): Define. Document.
7197 (struct frame_info): Add field register_unwind and
7198 register_unwind_cache.
7199 (frame_register_unwind): Declare.
7200 (generic_unwind_get_saved_register): Declare.
7201
7202 * frame.c (frame_register_unwind): New function.
7203 (generic_unwind_get_saved_register): New function.
7204
7205 * blockframe.c (generic_call_dummy_register_unwind): New function.
7206 (frame_saved_regs_register_unwind): New function.
7207 (set_unwind_by_pc): New function.
7208 (create_new_frame): New function.
7209 (get_prev_frame): New function.
7210
de888f76
AC
72112002-05-30 Andrew Cagney <ac131313@redhat.com>
7212
7213 * a29k-share/: Delete directory.
7214 * remote-vx29k.c: Delete file.
7215
2f2c3626
JT
72162002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7217
7218 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7219 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7220
9ce5c36a
JT
72212002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7222
7223 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7224 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7225 (sparc64nbsd-nat.o)
7226 (sparcnbsd-nat.o)
7227 (sparcnbsd-tdep.o): New dependency lists.
7228 * NEWS: Note new UltraSPARC NetBSD native configuration.
7229 * configure.host (sparc64-*-netbsd*): New host.
7230 * configure.tgt (sparc-*-netbsdelf*)
7231 (sparc-*-netbsd*): Set gdb_target to nbsd.
7232 (sparc64-*-netbsd*): New target.
7233 * sparc64nbsd-nat.c: New file.
7234 * sparcnbsd-nat.c: New file.
7235 * sparcnbsd-tdep.c: New file.
7236 * sparcnbsd-tdep.h: New file.
7237 * config/sparc/nbsd.mt: New file.
7238 * config/sparc/nbsd64.mh: New file.
7239 * config/sparc/nbsd64.mt: New file.
7240 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7241 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7242 (HOST_IPC): Remove.
7243 * config/sparc/nbsdaout.mt: Remove.
7244 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7245 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7246 (HOST_IPC): Remove.
7247 * config/sparc/nbsdelf.mt: Remove.
7248 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7249 sparc-nat.c compatiblity defines.
7250 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7251 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7252 * config/sparc/tm-nbsd64.h: New file.
7253 * config/sparc/tm-nbsdaout.h: Remove.
7254 * config/sparc/xm-nbsd.h: Remove.
7255
ef3cf062
JT
72562002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7257
7258 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7259 * sparc-tdep.c: Include osabi.h.
7260 (gdbarch_tdep): Add osabi member.
7261 (_initialize_sparc_tdep): Use gdbarch_register.
7262 (sparc_gdbarch_init): Use generic OS ABI framework.
7263 (sparc_dump_tdep): New function.
7264
ee8ff470
KB
72652002-05-30 Kevin Buettner <kevinb@redhat.com>
7266
7267 * corefile.c (do_captured_read_memory_integer): Return non-zero
7268 result.
7269 (safe_read_memory_integer): Copy result of memory read when
7270 status is non-zero. Also, add comments.
7271
7b112f9c
JT
72722002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7273
7274 * Makefile.in (ppc_tdep_h): Define.
7275 (ppc-linux-nat.o)
7276 (ppc-linux-tdep.o)
7277 (rs6000-tdep.o): Use $(ppc_tdep_h).
7278 (ppc-sysv-tdep.o)
7279 (ppcnbsd-nat.o)
7280 (ppcnbsd-tdep.o): New dependency lists.
7281 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7282 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7283 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7284 (ppc_sysv_abi_broken_use_struct_convention)
7285 (ppc_sysv_abi_use_struct_convention)
7286 (ppc_sysv_abi_push_arguments): Move to...
7287 * ppc-sysv-tdep.c: ...here.
7288 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7289 * rs6000-tdep.c (process_note_abi_tag_sections)
7290 (get_elfosabi): Remove.
7291 (rs6000_gdbarch_init): Use generic OS ABI framework.
7292 (rs6000_dump_tdep): New function.
7293 (_initialize_rs6000_tdep): Use gdbarch_register.
7294 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7295 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7296 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7297 of ppc-linux-tdep.o.
7298 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7299 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7300 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7301 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7302 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7303 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7304
480dd42a
JB
73052002-05-29 Jim Blandy <jimb@redhat.com>
7306
7307 * macroscope.c (default_macro_scope): Put `void' in empty argument
7308 list.
7309
4182591f
AC
73102002-05-29 Andrew Cagney <ac131313@redhat.com>
7311
7312 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7313 * arch-utils.c: Include "sim-regno.h".
7314 * gdbarch.sh: Don't include "sim-regno.h".
7315 * gdbarch.h, gdbarch.c: Regenerate.
7316 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7317 here.
7318 * arch-utils.h (legacy_register_sim_regno): To here.
7319 * remote-sim.c (legacy_register_sim_regno): Move function from
7320 here.
7321 * arch-utils.c (legacy_register_sim_regno): To here.
7322
8238d0bf
AC
73232002-05-28 Andrew Cagney <ac131313@redhat.com>
7324
7325 * sim-regno.h: New file.
7326 * Makefile.in (sim_regno_h): Define.
7327 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7328 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7329 (legacy_register_sim_regno): New function.
7330 (one2one_register_sim_regno): New function.
7331 (gdbsim_fetch_register): Rewrite.
7332 (gdbsim_store_register): Only store a register when
7333 REGISTER_SIM_REGNO is valid.
7334 * d10v-tdep.c: Include "sim-regno.h".
7335 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7336 (d10v_ts3_register_sim_regno): Ditto.
7337 * gdbarch.sh: Include "sim-regno.h".
7338 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7339 * gdbarch.h, gdbarch.c: Regenerate.
7340 * arch-utils.h (default_register_sim_regno): Delete declaration.
7341 * arch-utils.c (default_register_sim_regno): Delete function.
7342
485721b1
JT
73432002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7344
7345 * ppcnbsd-nat.c: Rewrite.
7346 * ppcnbsd-tdep.c: New file.
7347 * ppcnbsd-tdep.h: New file.
7348 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7349 solib.o, and solib-svr4.o.
7350 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7351 nbsd-tdep.o, and corelow.o.
7352
697f244d
AC
73532002-05-28 Andrew Cagney <ac131313@redhat.com>
7354
7355 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7356 `tr' and `sed'. Mention that `broken' targets are not expected to
7357 build.
7358
f08caad1 73592002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7360
7361 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7362 Let PC point right after the prologue before looking up symbols.
7363
3139facc
MH
73642002-05-27 Martin M. Hunt <hunt@redhat.com>
7365
7366 * i386-tdep.c (i386_register_virtual_type): Return
7367 builtin_type_vec128i for SSE registers.
7368
7369 * gdbtypes.h (builtin_type_vec128i): Declare.
7370
7371 * gdbtypes.c (build_builtin_type_vec128i): New function.
7372 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7373 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7374 (build_gdbtypes): Initialize new builtin vector types.
7375 (_initialize_gdbtypes): Register new vector types with gdbarch.
7376
6e3ba3b8
JT
73772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7378
7379 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7380 since it has been multi-arch'd.
7381 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7382 Move Alpha and VAX multi-arch news entries to same section
7383 as other multi-arch news.
7384
93d5585d
JT
73852002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7386
7387 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7388 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7389 static. Rename some register numbers to put them in ns32k-tdep
7390 private namespace.
7391 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7392 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7393 functions.
7394 (_initialize_ns32k_tdep): Use gdbarch_register.
7395 * ns32k-tdep.h: New file.
7396 * ns32knbsd-tdep.c: New file.
7397 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7398 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7399 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7400 REGISTER_BYTES, REGISTER_BYTE): Remove.
7401 * config/ns32k/tm-ns32k.h: New file.
7402 * config/ns32k/tm-umax.h: Remove.
7403
efb2c70e
JT
74042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7405
7406 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7407 ns32k_store_struct_return, ns32k_extract_return_value,
7408 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7409 functions.
7410 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7411 ns32k_saved_pc_after_call.
7412 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7413 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7414 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7415 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7416 ns32k_extract_struct_value_address.
7417
7bcc927b
JT
74182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7419
7420 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7421 ns32k_fix_call_dummy): New.
7422 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7423 ns32k_call_dummy_words.
7424 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7425 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7426 CALL_DUMMY_NARGS): Remove.
7427 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7428
78f9d765
JT
74292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7430
7431 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7432 ns32k_frame_saved_pc, ns32k_frame_args_address,
7433 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7434 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7435 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7436 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7437 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7438 (BREAKPOINT): Remove..
7439 (FRAME_CHAIN): Define as ns32k_frame_chain.
7440 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7441 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7442 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7443 (FRAME_FIND_SAVED_REGS): Remove.
7444 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7445 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7446 (POP_FRAME): Define as ns32k_pop_frame.
7447
f2c762e0
JT
74482002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7449
7450 * ns32k-tdep.c (ns32k_register_byte_32082,
7451 ns32k_register_byte_32382, ns32k_register_raw_size,
7452 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7453 functions.
7454 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7455 ns32k_register_byte_32382.
7456 * config/ns32k/tm-umax.h: Update copyright years.
7457 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7458 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7459 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7460 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7461 (ns32k_get_enter_addr): Fix prototype.
7462
af137673
JT
74632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7464
7465 * ns32k-tdep.c: Update copyright years.
7466 (ns32k_register_name_32082): New function.
7467 (ns32k_register_name_32382): Ditto.
7468 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7469 (REGISTER_NAME): Define as ns32k_register_name_32382.
7470 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7471 (REGISTER_NAME): Define as ns32k_register_name_32082.
7472
a8bc7b56
JB
74732002-05-24 Jim Blandy <jimb@redhat.com>
7474
7475 * dwarf2read.c (free_line_header): Use xfree, not free.
7476
83a45910
JT
74772002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7478
7479 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7480 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7481
0db71247
AC
74822002-05-23 Andrew Cagney <ac131313@redhat.com>
7483
7484 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7485
b9e5e4dd
AC
74862002-05-23 Andrew Cagney <ac131313@redhat.com>
7487
7488 From Ross Alexander at NEC Europe:
7489 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7490
de530e84
MS
74912002-05-23 Michael Snyder <msnyder@redhat.com>
7492
7493 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7494 for input, rather than parse_and_eval_address.
7495
b91b96f4
AC
74962002-05-23 Andrew Cagney <ac131313@redhat.com>
7497
7498 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7499 * Makefile.in (sim_d10v_h): Update definition.
7500
8b279e7a
AC
75012002-05-24 Andrew Cagney <cagney@redhat.com>
7502
7503 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7504 change `2002-05-22 Michael Snyder' below.
7505 (d10v_push_arguments): Ditto.
7506 (d10v_extract_return_value): Ditto.
7507
0a3d0425
JB
75082002-05-23 Jim Blandy <jimb@redhat.com>
7509
7510 * macrotab.c (check_for_redefinition): Don't complain if the new
7511 definition is the same as the previous one. Take more arguments
7512 to allow the comparison.
7513 (macro_define_object, macro_define_function): Pass more arguments
7514 to check_for_redefinition.
7515
78eac43e
MS
75162002-05-22 Michael Snyder <msnyder@redhat.com>
7517
7518 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7519 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7520 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7521 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7522 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7523 Add a temp variable to save a call (and a memory read).
7524 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7525 if possible (so that PC_IN_CALL_DUMMY will work).
7526
9bc1edb8
CV
75272002-05-22 Corinna Vinschen <vinschen@redhat.com>
7528
7529 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7530
005ef3d2
ML
75312002-05-22 Michal Ludvig <mludvig@suse.cz>
7532
7533 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7534 fde->cie_ptr.
7535 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7536 (dwarf2_build_frame_info): Add offset to fde->initial_location
7537 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7538 (execute_stack_op): Change type of 'result' from ULONGEST to
7539 CORE_ADDR.
005ef3d2 7540
fcf4f891
JT
75412002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7542
7543 * config/alpha/tm-nbsd.h: Include solib.h.
7544
cfef91e4
JT
75452002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7546
7547 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7548 assumptions about the host's byte order.
7549
9964235a
JT
75502002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7551
7552 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7553 to dependency list.
7554 * alphanbsd-tdep.c: Include solib-svr4.h.
7555 * shnbsd-tdep.c: Ditto.
7556
9eeef8ef
JT
75572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7558
7559 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7560 nbsd-tdep.h to dependency list.
7561 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7562 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7563 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7564 nbsdaout.mh and nbsdelf.mh consistently.
7565 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7566 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7567 nbsdaout.mt and nbsdelf.mh consistently.
7568 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7569 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7570 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7571 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7572 a.out shared library stuff from here...
7573 * config/nm-nbsdaout.h: ...to here.
7574 * config/tm-nbsd.h: Remove.
7575 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7576 * config/arm/nbsd.mh: Remove.
7577 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7578 nbsd-tdep.o.
7579 * config/arm/nbsdaout.mh: New file.
7580 * config/arm/nbsdelf.mh: New file.
7581 * config/arm/nm-nbsdaout.h: New file.
7582 * config/i386/nbsd.mh: Remove.
7583 * config/i386/nbsd.mt: Remove.
7584 * config/i386/nbsdaout.mh: New file.
7585 * config/i386/nbsdaout.mt: New file.
7586 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7587 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7588 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7589 i386_register_u_addr): Remove.
7590 * config/i386/nm-nbsdaout.h: New file.
7591 * config/i386/nm-nbsdelf.h: Remove.
7592 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7593 (USE_STRUCT_CONVENTION): Remove.
7594 * config/i386/tm-nbsdaout.h: New file.
7595 * config/i386/tm-nbsdelf.h: Remove.
7596 * config/m68k/nbsd.mh: Remove.
7597 * config/m68k/nbsd.mt: Remove.
7598 * config/m68k/nbsdaout.mh: New file.
7599 * config/m68k/nbsdaout.mt: New file.
7600 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7601 * config/m68k/nm-nbsdaout.h: New file.
7602 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7603 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7604 * config/ns32k/nbsd.mh: Remove.
7605 * config/ns32k/nbsd.mt: Remove.
7606 * config/ns32k/nbsdaout.mh: New file.
7607 * config/ns32k/nbsdaout.mt: New file.
7608 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7609 * config/ns32k/nm-nbsdaout.h: New file.
7610 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7611 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7612 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7613 (SVR4_SHARED_LIBS): Remove.
7614 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7615 * config/sparc/nbsd.mh: Remove.
7616 * config/sparc/nbsd.mt: Remove.
7617 * config/sparc/nbsdaout.mh: New file.
7618 * config/sparc/nbsdaout.mt: New file.
7619 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7620 * config/sparc/nbsdelf.mt: New file.
7621 * config/sparc/nm-nbsdaout.h: New file.
7622 * config/sparc/nm-nbsdelf.h: Remove.
7623 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7624 * config/sparc/tm-nbsdaout.h: New file.
7625
257ce470
JT
76262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7627
7628 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7629 mipsnbsd-tdep.c
7630 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7631
76a6d5fe
JT
76322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7633
7634 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7635 shnbsd-nat.c.
7636 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7637
45888261
JT
76382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7639
7640 * NEWS: Note new MIPS NetBSD native configuration.
7641 * configure.host (mips*-*-netbsd*): New host.
7642 * configure.tgt (mips*-*-netbsd*): New target.
7643 * mipsnbsd-nat.c: New file.
7644 * mipsnbsd-tdep.c: New file.
7645 * mipsnbsd-tdep.h: New file.
7646 * config/mips/nbsd.mh: New file.
7647 * config/mips/nbsd.mt: New file.
7648 * config/mips/nm-nbsd.h: New file.
7649 * config/mips/tm-nbsd.h: New file.
7650
70f80edf
JT
76512002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7652
7653 * Makefile.in (SFILES): Add osabi.c.
7654 (COMMON_OBS): Add osabi.o.
7655 (osabi.o): New dependency list.
7656 * osabi.c: New file.
7657 * osabi.h: New file.
7658 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7659
7660 * Makefile.in (alpha_tdep_h): Define and use instead of
7661 alpha-tdep.h.
7662 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7663 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7664 Remove.
7665 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7666 * alpha-tdep.h: Include osabi.h.
7667 (alpha_abi): Remove.
7668 (gdbarch_tdep): Use generic OS ABI framework.
7669 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7670 gdbarch_register_osabi.
7671 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7672 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7673 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7674
7675 * Makefile.in (sh_tdep_h): Add osabi.h.
7676 * sh-tdep.h (sh_osabi): Remove.
7677 (gdbarch_tdep): Use generic OS ABI framework.
7678 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7679 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7680 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7681 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7682
7683 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7684 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7685 gdbarch_register_osabi.
7686 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7687 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7688 (get_elfosabi): Rename to...
7689 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7690 ABI framework support routines.
7691 (arm_gdbarch_init): Use generic OS ABI framework.
7692 (arm_dump_tdep): Likewise.
7693 (_initialize_arm_tdep): Likewise.
7694 * arm-tdep.h: Include osabi.h.
7695 (arm_abi): Remove.
7696 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7697 osabi member.
7698 (arm_gdbarch_register_os_abi): Remove prototype.
7699 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7700 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7701
7702 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7703 * mips-tdep.c: Include osabi.h.
7704 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7705 OS ABI framework.
7706
d194345b
KH
77072002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7708
7709 * h8300-tdep.c: Fix formatting.
7710
70c6b0d1
EZ
77112002-05-20 Elena Zannoni <ezannoni@redhat.com>
7712
7713 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7714 printing vector registers.
7715
165b8e33
AC
77162002-05-19 Andrew Cagney <ac131313@redhat.com>
7717
7718 From Fernando Nasser:
7719 * remote.c (remote_async_open_1): Re-throw the exception when the
7720 connection fails.
7721 (remote_cisco_open): Ditto.
7722 (remote_open_1): Ditto.
7723
36918e70
AC
77242002-05-19 Andrew Cagney <ac131313@redhat.com>
7725
7726 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7727 (remote_start_remote): Add uiout parameter. Pass through to
7728 remote_start_remote_dummy.
7729 (remote_open_1): Use catch_exception instead of catch_errors.
7730 (remote_async_open_1): Ditto.
7731 (remote_cisco_open): Ditto.
7732
ae44c0c4
AC
77332002-05-19 Andrew Cagney <ac131313@redhat.com>
7734
7735 * remote.c (remote_start_remote): Replace PTR with void pointer.
7736 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7737 static.
7738
8efe637d
AC
77392002-05-18 Andrew Cagney <ac131313@redhat.com>
7740
7741 * gdb_indent.sh: Allow the script to be run in the sim directory.
7742
2f1b5984
MK
77432002-05-18 Mark Kettenis <kettenis@gnu.org>
7744
f0f625e2
MK
7745 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7746 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7747
2f1b5984
MK
7748 * corelow.c (core_open): Only call set_gdbarch_from_file if
7749 exec_bfd is NULL.
7750
fc974602
AV
77512002-05-17 Andrey Volkov <avolkov@transas.com>
7752
7753 * h8300-tdep.c: Add support of EXR register
7754 * config/h8300/tm-h8300.h: Ditto.
7755
906709f4
AV
77562002-05-17 Andrey Volkov <avolkov@transas.com>
7757
7758 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7759
6e591d68
AV
77602002-05-17 Andrey Volkov <avolkov@transas.com>
7761
7762 * h8300-tdep.c: Change literal regnums to REGNO.
7763
84f0252a
JB
77642002-05-17 Jim Blandy <jimb@redhat.com>
7765
e0e9281e
JB
7766 * NEWS: Note addition of macro support.
7767
84f0252a
JB
7768 Expand preprocessor macros in C expressions.
7769 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7770 (scan_macro_expansion, scanning_macro_expansion,
7771 finished_macro_expansion): New function declarations.
7772 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7773 variable declarations.
7774 * parser-defs.h (expression_context_pc): New declaration.
7775 * parse.c (expression_context_pc): New variable.
7776 (parse_exp_1): Set expression_context_pc, as well as
7777 expression_context_block.
7778 * c-exp.y (yylex): If we're not already reading the result of a
7779 macro expansion, try to macro-expand the next token. When we're
7780 done scanning a macro expansion, switch back to the mainline text.
7781 Commas and `if's in a macro's expansion don't terminate the input.
7782 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7783 (macro_original_text, macro_expanded_text,
7784 expression_macro_lookup_func, expression_macro_lookup_baton): New
7785 variables.
7786 (scan_macro_expansion, scanning_macro_expansion,
7787 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7788 c_preprocess_and_parse): New functions.
7789 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7790 c_preprocess_and_parse, instead of c_parse.
7791 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7792 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7793
1c509ca8
JR
7794Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7795
7796 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7797 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7798 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7799
2250ee0c
CV
78002002-05-17 Corinna Vinschen <vinschen@redhat.com>
7801
7802 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7803
ab3b8126
JT
78042002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7805
7806 * Makefile.in (sh_tdep_h): Define and use.
7807 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7808 register enum): Move to...
7809 * * sh-tdep.h: ...here.
7810 * sh-tdep.c: Include sh-tdep.h.
7811 * sh3-rom.c: Likewise.
7812 * shnbsd-tdep.c: Likewise.
7813
ed9d4749
MS
78142002-05-16 Michael Snyder <msnyder@redhat.com>
7815
7816 * arm-tdep.c: Spelling fix in comment.
7817
2e276125
JB
78182002-05-16 Jim Blandy <jimb@redhat.com>
7819
6821892e
JB
7820 Add commands for manually expanding macros and showing their
7821 definitions.
7822 * macrocmd.c, macroscope.c, macroscope.h: New files.
7823 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7824 (macroscope_h): New variable.
7825 (HFILES_NO_SRCDIR): Add macroscope.h.
7826 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7827 (macroscope.o, macrocmd.o): New rules.
7828
2e276125
JB
7829 Teach the Dwarf 2 reader to read macro information.
7830 * dwarf2read.c: #include "macrotab.h".
7831 (dwarf_macinfo_buffer): New variable.
7832 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7833 dwarf_macinfo_size.
7834 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7835 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7836 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7837 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7838 dwarf2_macro_spaces_in_definition): New complaints.
7839 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7840 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7841 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7842 the partial symbol table.
7843 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7844 from what's recorded in the partial symbol table.
7845 (read_file_scope): If the compilation unit has a
7846 `DW_AT_macro_info' attribute, read its macro information.
7847 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7848
2f53fe6c
DJ
78492002-05-16 Daniel Jacobowitz <drow@mvista.com>
7850
7851 Fix PR gdb/546
7852 * ser-tcp.c: Don't include <netinet/udp.h>.
7853
2be99286
SC
78542002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7855
7856 * MAINTAINERS: Update my email address.
7857
c9af212b 78582002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7859
7860 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7861 include file of the same name.
7862
bf5f1a52
CV
78632002-05-16 Corinna Vinschen <vinschen@redhat.com>
7864
7865 * configure.tgt: Mark v850 as multi-arched.
7866 * config/v850/tm-v850.h: Remove file.
7867 * config/v850/v850.mt: Eliminate TM_FILE.
7868
435e042a
CV
78692002-05-16 Corinna Vinschen <vinschen@redhat.com>
7870
7871 * v850-tdep.c: Full multi-arch.
7872 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7873 Define GDB_MULTI_ARCH to 2.
7874
9819c6c8
PM
78752002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7876
7877 * p-exp.y (current_type): New static variable.
7878 Carries the type of the expression at the position that is parsed.
7879 (push_current_type, pop_current_type): Two new functions. Used
7880 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7881 (search_field): New static variable. Set to one after parsing a point
7882 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7883 (FIELDNAME): New token. After a point only a token belonging to
7884 current_type type definition is allowed.
7885 (all over token rules): reset and change current_type according
7886 to rules.
7887 (exp '[' rule): insert implicit array index field if
7888 exp is a pascal string type.
7889
3a06899a
CV
78902002-05-16 Corinna Vinschen <vinschen@redhat.com>
7891
7892 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7893 frame info. Use frame_info's saved_regs instead of matching member
7894 in extra_frame_info throughout.
7895 (v850_frame_init_saved_regs): New function.
7896 (v850_init_extra_frame_info): Move most functionality into
7897 v850_frame_init_saved_regs().
7898 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7899 (v850_frame_find_saved_regs): Remove declaration.
7900 (FRAME_FIND_SAVED_REGS): Remove definition.
7901 (v850_frame_init_saved_regs): Add declaration.
7902 (FRAME_INIT_SAVED_REGS): Add definition.
7903
6ed14b0e
CV
79042002-05-16 Corinna Vinschen <vinschen@redhat.com>
7905
7906 * v850-tdep.c: Begin multi-arch'ing v850.
7907 (v850_target_architecture_hook): Remove function.
7908 (v850_gdbarch_init): New function. Add code previously in
7909 v850_target_architecture_hook().
7910 (_initialize_v850_tdep): Don't set target_architecture_hook.
7911 Call register_gdbarch_init() instead.
7912
42725910
DJ
79132002-05-16 Daniel Jacobowitz <drow@mvista.com>
7914
7915 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7916 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7917 (fixup_class_method_type): Likewise.
7918
99d9066e
JB
79192002-05-15 Jim Blandy <jimb@redhat.com>
7920
7921 Add macro structures to GDB's symbol tables. Nobody puts anything
7922 in them yet.
7923 * symtab.h (struct symtab): New member: `macro_table'.
7924 * buildsym.h (pending_macros): New global variable.
7925 * buildsym.c: #include "macrotab.h".
7926 (buildsym_init): Initialize `pending_macros'.
7927 (end_symtab): If we found macro information while reading a CU's
7928 debugging info, do build a symtab structure for it. Make the
7929 symtab point to the macro information, and clear the
7930 `pending_macros' pointer which held it while we were reading the
7931 debug info.
7932 (really_free_pendings): Free any pending macro table.
7933 * objfiles.h (struct objfile): New member: `macro_cache'.
7934 * objfiles.c (allocate_objfile): Set allocate and free functions
7935 for the macro cache's objstack.
7936 (free_objfile): Empty the macro cache's obstack.
7937 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7938 set new allocate and free functions for it.
7939 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7940 free functions for the macro cache's objstack. (Why is this
7941 function building its own objfile?)
7942 * symmisc.c (print_objfile_statistics): Print statistics on the
7943 macro bcache.
7944 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7945
c899585b
RE
79462002-05-15 Richard Earnshaw <rearnsha@arm.com>
7947
7948 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7949 (REGISTER_U_ADDR): Delete definition.
7950 (arm_register_u_addr): Delete declaration.
7951
a6cdd8c5
RE
79522002-05-15 Richard Earnshaw <rearnsha@arm.com>
7953
7954 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7955 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7956
c97dcfc7
AC
79572002-05-14 Andrew Cagney <ac131313@redhat.com>
7958
7959 * regcache.c (register_valid): Revise comments refering to "Not
7960 available" and "unavailable".
7961 * frame.c (frame_register_read): Ditto.
7962 * findvar.c (value_of_register): Ditto.
7963
93021b7d
AC
79642002-05-15 Andrew Cagney <cagney@redhat.com>
7965
7966 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7967 (remote-sim.o): Update dependencies.
7968 (d10v-tdep.o): Specify dependencies.
7969 (sim_d10v_h): Define.
7970
a86bc61c
JB
79712002-05-14 Jim Blandy <jimb@redhat.com>
7972
7973 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7974 * macrotab.c (macro_lookup_inclusion, find_definition,
7975 new_macro_table): Same.
7976
7977 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7978 not `! strcmp ()'. This is a dubious improvement.
7979 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7980
7981 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7982 although it's not necessary, to avoid a warning.
7983
2fdde8f8
DJ
79842002-05-14 Daniel Jacobowitz <drow@mvista.com>
7985
7986 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7987 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7988 TYPE_INSTANCE_FLAGS.
7989 (struct main_type): New.
7990 (struct type): Move most members to struct main_type. Change
7991 cv_type and as_type to new type_chain member. Add instance_flags.
7992 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7993 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7994 (finish_cv_type): Remove prototype.
7995 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7996 Set TYPE_CHAIN.
7997 (alloc_type_instance): New function.
7998 (smash_type): New function.
7999 (make_pointer_type, make_reference_type, make_function_type)
8000 (smash_to_member_type, smash_to_method_type): Call smash_type.
8001 (make_qualified_type): New function.
8002 (make_type_with_address_space): Call make_qualified_type.
8003 (make_cv_type): Likewise.
8004 (finish_cv_type): Remove unnecessary function.
8005 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8006 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8007 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8008 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8009 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8010 * hpread.c (hpread_read_struct_type): Likewise.
8011 * stabsread.c (read_struct_type): Likewise.
8012
843fedf4
EZ
80132002-05-14 Elena Zannoni <ezannoni@redhat.com>
8014
8015 * configure.tgt: Add a catch all sh* target, for cases like
8016 sh[2,3,4]-elf and sh-hms.
8017
05a6c72c
KS
80182002-05-14 Keith Seitz <keiths@redhat.com>
8019
8020 * event-loop.c (create_file_handler): Don't do anything but
8021 update data when we are given a fd which we are already
8022 monitoring.
8023
5d085aaf
ML
80242002-05-14 Michal Ludvig <mludvig@suse.cz>
8025
8026 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8027 (update_context): Use __func__ in warnings.
8028
9db8d71f
DJ
80292002-05-14 Daniel Jacobowitz <drow@mvista.com>
8030
8031 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8032 and tcp_close to net_open and net_close.
8033 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8034 using UDP if requested. Don't try to disable Nagle on UDP
8035 sockets.
8036 * remote.c (remote_serial_open): New function. Warn about UDP.
8037 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8038
5dbc6baa
EZ
80392002-05-13 Elena Zannoni <ezannoni@redhat.com>
8040
8041 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8042
cc3023f7
EZ
80432002-05-13 Elena Zannoni <ezannoni@redhat.com>
8044
8045 * configure.tgt: Remove sh-hms target.
8046 * MAINTAINERS: Don't list sh-hms as a separate target.
8047
ec2bcbe7
JB
80482002-05-13 Jim Blandy <jimb@redhat.com>
8049
8050 Add first preprocessor macro-expansion files.
8051 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8052 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8053 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8054 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8055 (COMMON_OBS): Add macrotab.o, macroexp.o.
8056 (macroexp.o, macrotab.o): New rules.
8057
6d531722
AC
80582002-05-13 Andrew Cagney <ac131313@redhat.com>
8059
8060 * config/m88k/tm-m88k.h: Update copyright.
8061 (m88k_target_write_pc): Declare
8062 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8063 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8064 (SHIFT_INST_REGS): Update definition.
8065 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8066 using old definition of TARGET_WRITE_PC.
8067 * regcache.c (generic_target_write_pc): Delete code handling
8068 NNPC_REGNUM.
8069 * gdbarch.sh (NNPC_REGNUM): Delete.
8070 * gdbarch.h, gdbarch.c: Regenerate.
8071
3e3f2739
RE
80722002-05-13 Richard Earnshaw <rearnsha@arm.com>
8073
8074 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8075 builtin reg number.
8076
0004e5a2
DJ
80772002-05-13 Daniel Jacobowitz <drow@mvista.com>
8078
8079 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8080 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8081 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8082 access macros.
8083 * c-typeprint.c (cp_type_print_method_args): Likewise.
8084 (c_type_print_args): Likewise.
8085 * d10v-tdep.c (d10v_push_arguments): Likewise.
8086 (d10v_extract_return_value): Likewise.
8087 * expprint.c (print_subexp): Likewise.
8088 * gdbtypes.c (lookup_primitive_typename): Likewise.
8089 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8090 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8091 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8092 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8093 (TYPE_VECTOR): Likewise.
8094 * hpread.c (hpread_read_struct_type)
8095 (fix_static_member_physnames, fixup_class_method_type)
8096 (hpread_type_lookup): Likewise.
8097 * mdebugread.c (parse_symbol, parse_type): Likewise.
8098 * p-lang.c (is_pascal_string_type): Likewise.
8099 * valops.c (hand_function_call): Likewise.
8100 * x86-64-tdep.c (classify_argument): Likewise.
8101
8102 * hpread.c (hpread_read_function_type)
8103 (hpread_read_doc_function_type): Call replace_type.
8104 * dstread.c (create_new_type): Delete.
8105 (decode_dst_structure, process_dst_function): Call alloc_type.
8106 Use type access macros.
8107
dff95cc7
MK
81082002-05-12 Mark Kettenis <kettenis@gnu.org>
8109
8110 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8111 the're not supported by the current architecture.
8112 (i387_fill_fxsave): Likewise.
8113
bbcd32ad
FF
81142002-05-12 Fred Fish <fnf@redhat.com>
8115
8116 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8117 sect_index_xxx members to index the first slot in section_offsets
8118 if all of the section_offsets are zero.
8119
89cf4787
MK
81202002-05-12 Mark Kettenis <kettenis@gnu.org>
8121
8122 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8123 checked in with last change.
8124
1f77ffc5
MK
81252002-05-12 Mark Kettenis <kettenis@gnu.org>
8126
8127 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8128 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8129 config.sub.
8130
89b8b4a9
DJ
81312002-05-12 Daniel Jacobowitz <drow@mvista.com>
8132
8133 * Makefile.in: Update dependencies.
8134
14a5e767
AC
81352002-05-11 Andrew Cagney <ac131313@redhat.com>
8136
8137 * language.c (local_hex_string_custom): Simplify. Do not depend
8138 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8139
8140 * memattr.c (mem_info_command): Replace calls to
8141 longest_local_hex_string and longest_local_hex_string_custom.
8142 * buildsym.c (make_blockvector): Ditto.
8143 * solib.c (info_sharedlibrary_command): Ditto.
8144 * tracepoint.c (tracepoints_info): Ditto.
8145 * symtab.c (print_msymbol_info): Ditto.
8146
8147 * language.c (local_hex_string): Delete.
8148 (local_hex_string_custom): Delete.
8149 (longest_local_hex_string): Rename to local_hex_string.
8150 (longest_local_hex_string_custom): Rename to
8151 local_hex_string_custom.
8152 * language.h (local_hex_string): Change parameter type to LONGEST.
8153 (local_hex_string_custom): Ditto.
8154 (longest_local_hex_string): Delete declaration.
8155 (longest_local_hex_string_custom): Ditto.
8156
8157 * solib.c: Update copyright.
8158 * memattr.c: Update copyright.
8159
13d01224
AC
81602002-05-11 Andrew Cagney <ac131313@redhat.com>
8161
8162 * arch-utils.h (legacy_register_to_value): Declare.
8163 (legacy_value_to_register): Declare.
8164 (legacy_convert_register_p): Declare.
8165 * arch-utils.c (legacy_register_to_value): New function.
8166 (legacy_value_to_register): New function.
8167 (legacy_convert_register_p): New function.
8168
8169 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8170 (VALUE_TO_REGISTER): Define.
8171 (CONVERT_REGISTER_P): Define.
8172 * gdbarch.h, gdbarch.c: Regenerate.
8173
8174 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8175 VALUE_TO_REGISTER.
8176 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8177 CONVERT_REGISTER_P.
8178
4a1970e4
DJ
81792005-05-11 Daniel Jacobowitz <drow@mvista.com>
8180 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8181
8182 * Makefile.in: Update dependencies for valops.c.
8183 * valops.c: Include "gdb_assert.h".
8184 (typecmp): Skip THIS parameter to methods.
8185 (find_method_list): Remove static_memfuncp argument,
8186 update callers. Check for stub methods.
8187 (find_value_oload_method_list): Don't set *static_memfuncp.
8188 (find_overload_match): Don't check for stub methods. Assert
8189 that methods are not stubbed. Handle static methods.
8190 (value_find_oload_method_list): Remove static_memfuncp argument.
8191 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8192 to the argument list for static stub methods.
8193 * value.h (value_find_oload_method_list): Update prototype.
8194
b2e75d78
AC
81952002-05-11 Andrew Cagney <ac131313@redhat.com>
8196
8197 * arch-utils.h (generic_register_size): Declare.
8198 (generic_register_raw_size, generic_register_virtual_size): Delete
8199 declarations.
8200 * arch-utils.c (generic_register_raw_size): Delete.
8201 (generic_register_size): New function.
8202 (generic_register_virtual_size): Delete.
8203
8204 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8205 default generic_register_size.
8206 * gdbarch.h, gdbarch.c: Re-generate.
8207
8208 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8209 register_virtual_size.
8210 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8212
451fbdda
AC
82132002-05-11 Andrew Cagney <ac131313@redhat.com>
8214
8215 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8216 * gdbarch.h, gdbarch.c: Regenerate.
8217 * gnu-v3-abi.c: Update copyright.
8218 (vtable_address_point_offset): Update.
8219 (gnuv3_rtti_type): Update.
8220 (gnuv3_baseclass_offset): Update.
8221 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8222 (init_fetch_link_map_offsets): Update.
8223 * remote.c (get_remote_state): Update.
8224
6d2f5cea
DJ
82252002-05-11 Daniel Jacobowitz <drow@mvista.com>
8226
8227 * TODO: Remove value_headof/value_from_vtable_info comment.
8228 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8229 * values.c (value_headof, value_from_vtable_info): Delete.
8230 * value.h (value_from_vtable_info): Delete prototype.
8231
d2324da4
AC
82322002-05-11 Andrew Cagney <ac131313@redhat.com>
8233
8234 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8235 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8236 $(gdb_regex_h).
8237 (gdb_assert_h): Define.
8238 (gdb_wait_h): Define.
8239 (gdb_regex_h): Define.
8240
5c717440
DJ
82412002-05-11 Daniel Jacobowitz <drow@mvista.com>
8242
8243 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8244 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8245
6c7861b3
JT
82462002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8247
8248 * nbsd-tdep.c: Fix comment.
8249
ea5bc2a6
JT
82502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8251
8252 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8253 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8254 (nbsd-tdep.o): New dependency list.
8255 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8256 nbsd-tdep.h.
8257 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8258 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8259 * nbsd-tdep.c: New file.
8260 * nbsd-tdep.h: New file.
8261 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8262 nbsd-tdep.h.
8263 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8264 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8265 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8266 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8267
b28da865
JT
82682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8269
8270 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8271 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8272 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8273 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8274 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8275 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8276
4b8ff1fa
JT
82772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8278
8279 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8280 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8281 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8282 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8283 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8284 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8285 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8286
dfe6eb1f
JT
82872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8288
8289 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8290 fetch_elfcore_registers to...
8291 * i386nbsd-tdep.c: ...here.
8292 (i386nbsd_use_struct_convention): Rename to...
8293 (i386nbsd_aout_use_struct_convention): ...this.
8294 (i386nbsd_supply_reg): New function.
8295 (i386nbsd_fill_reg): New function.
8296 (fetch_core_registers): Use i386nbsd_supply_reg.
8297 (fetch_elfcore_registers): Likewise.
8298 (_initialize_i386nbsd_tdep): New function.
8299 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8300 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8301 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8302 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8303 (i386nbsd_aout_use_struct_convention): ...this.
8304
20cb8cda
JT
83052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8306
8307 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8308 (store_inferior_registers): Use shnbsd_fill_reg.
8309 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8310 sh_nbsd_supply_register): Collapse into...
8311 (shnbsd_supply_reg): ...this.
8312 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8313 (shnbsd_fill_reg): ...this.
8314 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8315 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8316 (fetch_core_registers): Use shnbsd_supply_reg.
8317 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8318 (sh_nbsd_core_fns): Rename to...
8319 (shnbsd_core_fns): ...this.
8320 (sh_nbsd_elfcore_fns): Rename to...
8321 (shnbsd_elfcore_fns): ...this.
8322 (sh_nbsd_init_abi): Rename to...
8323 (shnbsd_init_abi): ...this.
8324 (_initialize_sh_nbsd_tdep): Rename to...
8325 (_initialize_shnbsd_tdep): ...this.
8326 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8327 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8328 sh_nbsd_fill_register): Remove prototypes.
8329 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8330
e750d25e
JT
83312002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8332
8333 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8334 (i387-nat.o): Delete dependency list.
8335 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8336 (x86-64-linux-nat.o): Likewise.
8337 * i387-nat.c: Delete file, moving contents to...
8338 * i387-tdep.c: ...here.
8339 * i387-nat.h: Rename...
8340 * i387-tdep.h: ...to this.
8341 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8342 * i386-linux-nat.c: Likewise.
8343 * i386bsd-nat.c: Likewise.
8344 * i386gnu-nat.c: Likewise.
8345 * i386nbsd-nat.c: Likewise.
8346 * i386v4-nat.c: Likewise.
8347 * x86-64-linux-nat.c: Likewise.
8348 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8349 * config/i386/go32.mh (NATDEPFILES): Likewise.
8350 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8351 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8352 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8353 * config/i386/linux.mh (NATDEPFILES): Likewise.
8354 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8355 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8356 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8357 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8358
1aee598a
JT
83592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8360
8361 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8362 (alphanbsd-nat.o): Remove dependency list.
8363 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8364 * alphanbsd-nat.c: Delete. Contents moved to...
8365 * alphanbsd-tdep.c: ...here.
8366 (_initialize_alphanbsd_tdep): Register core functions.
8367 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8368
12bcb0fe
JT
83692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8370
8371 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8372 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8373 (alphanbsd-nat.o): Likewise.
8374 (alphabsd-tdep.o): New dependency list.
8375 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8376 (fill_gregset): Use alphabsd_fill_reg.
8377 (supply_fpregset): Use alphabsd_supply_fpreg.
8378 (fill_fpregset): Use alphabsd_fill_fpreg.
8379 (fetch_inferior_registers): Use struct reg and struct fpreg
8380 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8381 and alphabsd_supply_fpreg.
8382 (store_inferior_registers): Use struct reg and struct fpreg
8383 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8384 and alphabsd_fill_fpreg.
8385 * alphabsd-tdep.c: New file.
8386 * alphabsd-tdep.h: New file.
8387 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8388 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8389 alphabsd_supply_fpreg.
8390 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8391 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8392
361d1df0
EC
83932002-05-11 Eric Christopher <echristo@redhat.com>
8394
8395 * mips-tdep.c (mips_double_register_type): Fix thinko.
8396 (mips_single_register_type): Ditto.
8397 * MAINTAINERS: Add self.
8398
92dd7cee
MK
83992002-05-11 Mark Kettenis <kettenis@gnu.org>
8400
8401 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8402 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8403 right thing on architectures with different endianness and/or
8404 integer sizes.
8405
e27da16d
JT
84062002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8407
8408 From Christian Limpach <chris@Pin.LU>
8409 * configure.in: Change sed expression which comments out
8410 NATDEPFILES to also comment out continuation lines.
8411 * configure: Regenerate.
8412
ddde02bd
EZ
84132002-05-10 Elena Zannoni <ezannoni@redhat.com>
8414
8415 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8416 big patch.
8417
1c922164
EZ
84182002-05-10 Elena Zannoni <ezannoni@redhat.com>
8419
8420 * sh-tdep.c: Include correct file.
8421
283150cd
EZ
84222002-05-10 Elena Zannoni <ezannoni@redhat.com>
8423
8424 New support for sh64-elf (sh5) target.
8425
8426 * configure.tgt: For sh64-elf target, default to sh-elf.
8427
8428 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8429 (struct gdbarch_tdep): Add new fields for new registers and ABI
8430 info.
361d1df0 8431
283150cd
EZ
8432 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8433 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8434 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8435 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8436 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8437 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8438 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8439 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8440 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8441 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8442 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8443 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8444 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8445 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8446 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8447 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8448 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8449 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8450 sign_extend, sh64_nofp_frame_init_saved_regs,
8451 sh64_init_extra_frame_info, sh64_get_saved_register,
8452 sh64_extract_struct_value_address, sh64_pop_frame,
8453 sh64_push_arguments, sh64_extract_return_value,
8454 sh64_store_return_value, sh64_show_media_regs,
8455 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8456 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8457 sh_sh64_register_virtual_type,
8458 sh_sh64_register_convert_to_virtual,
8459 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8460 sh64_register_read, sh64_pseudo_register_write,
8461 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8462 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8463 sh64_do_pseudo_register, sh_compact_do_registers_info,
8464 sh64_do_registers_info, sh_gdbarch_init): New functions.
8465
3117ed25
EZ
84662002-05-10 Elena Zannoni <ezannoni@redhat.com>
8467
8468 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8469
2654e6d4
DJ
84702002-05-10 Daniel Jacobowitz <drow@mvista.com>
8471
8472 * linespec.c (decode_line_1): Check for a double quote after
8473 a filename correctly.
8474
9ab3e532
JB
84752002-05-10 Jim Blandy <jimb@redhat.com>
8476
8477 Properly track the size of the current objfile's .debug_line section.
8478 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8479 (DWARF_LINE_SIZE): New macro.
8480 (dwarf2_build_psymtabs_hard): Record the line section's size in
8481 the partial symbol table.
8482 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8483 symbol table.
8484
126fa72d
PS
84852002-05-10 Petr Sorfa <petrs@caldera.com>
8486
8487 * ia64-tdep.c: Handle breakpoints on L instruction type
8488 in MLX instruction bundle by moving the breakpoint to
8489 the third slot (X instruction type) as L holds only data.
8490
1f077a3e
KB
84912002-05-10 Kevin Buettner <kevinb@redhat.com>
8492
8493 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8494 (process_one_symbol): Complain about discarding local symbols
8495 due to a misplaced N_LBRAC entry.
8496
8120c9d5 84972002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8498
8499 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8500 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8501 decrease the depth we are at, in the case of templates.
361d1df0 8502
67b2c998
DJ
85032002-05-09 Daniel Jacobowitz <drow@mvista.com>
8504
8505 * mips-tdep.c (mips_float_register_type): New function.
8506 (mips_double_register_type): New function.
8507 (mips_print_register): Use them.
8508 (do_fp_register_row): Likewise.
8509
fd326606
DJ
85102002-05-09 Daniel Jacobowitz <drow@mvista.com>
8511
6609d9af 8512 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8513 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8514 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8515
bef35864
MS
85162002-05-09 Michael Snyder <msnyder@redhat.com>
8517
8518 * remote-rdp.c (remote_rdp_can_run): Remove.
8519
c55a3f73
TT
85202002-05-09 Tom Tromey <tromey@redhat.com>
8521
8522 * jv-valprint.c (java_val_print): Handle `char' as a special case
8523 of TYPE_CODE_INT.
8524
b8d5e71d
MS
85252002-05-09 Michael Snyder <msnyder@redhat.com>
8526
8527 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8528 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8529 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8530 str r(0123),[sp,#nn].
361d1df0 8531 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8532 order-independent by placing it in a loop.
8533
e2cd42dd
MS
85342002-05-06 Michael Snyder <msnyder@redhat.com>
8535
8536 * stabsread.c (read_type): Add recognition for new attribute:
8537 "@V;" means that an array type is actually a vector.
8538 This is analogous to the vector flag that's been added to dwarf2.
8539
3ce1502b
MK
85402002-05-09 Mark Kettenis <kettenis@gnu.org>
8541
8542 * i386-tdep.h (i386_abi): New enum.
8543 (struct gdbarch_tdep): Replace os_ident member with abi.
8544 (i386_gdbarch_register_os_abi): New prototype.
8545 * i386-tdep.c (i386_abi_names): New array.
8546 (process_note_abi_tag_sections): Removed.
8547 (process_note_sections): New function.
8548 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8549 (struct i386_abi_handler): New struct.
8550 (i386_abi_handler_list): New variable.
8551 (i386_gdbarch_register_os_abi): New function.
8552 (i386_gdbarch_init): Adapt for the changes given above.
8553
084c156a
DJ
85542002-05-08 Daniel Jacobowitz <drow@mvista.com>
8555
8556 * gregset.h: Say "GNU/Linux".
8557
6599f021
EZ
85582002-05-08 Elena Zannoni <ezannoni@redhat.com>
8559
8560 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8561 (build_gdbtypes): Build builtin_type_v2_float.
8562 (_initialize_gdbtypes): Register new builtin type.
8563
40af4b0c
AC
85642002-05-08 Andrew Cagney <ac131313@redhat.com>
8565
8566 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8567 (clear_gdbarch_swap): New function.
8568 (initialize_non_multiarch): Call.
8569 (gdbarch_update_p): Before calling init(), swap out and clear the
8570 existing architecture.
8571 * gdbarch.c: Regenerate.
8572
4fe84f46
JT
85732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8574
8575 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8576 alphanbsd-tdep.c.
8577
4015edd1
JT
85782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8579
8580 * sh-nbsd-nat.c: Rename to...
8581 * shnbsd-nat.c: ...this.
8582 * sh-nbsd-tdep.c: Rename to...
8583 * shnbsd-tdep.c: ...this.
8584 * sh-nbsd-tdep.h: Rename to...
8585 * shnbsd-tdep.h: ...this.
8586 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8587 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8588
0e2bd219
RE
85892002-05-08 Richard Earnshaw <rearnsha@arm.com>
8590
8591 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8592 concatenation for command help messages.
8593
13a38d45
JT
85942002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8595
8596 * NEWS: Note new sh*-*-netbsdelf* configuration.
8597 * configure.host: Set gdb_host_cpu to sh for all sh*.
8598 (sh*-*-netbsdelf*): New host.
8599 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8600 (sh*-*-netbsdelf*): New target.
8601 * sh-nbsd-nat.c: New file.
8602 * sh-nbsd-tdep.c: New file.
8603 * sh-nbsd-tdep.h: New file.
8604 * config/sh/nbsd.mh: New file.
8605 * config/sh/nbsd.mt: New file.
8606 * config/sh/nm-nbsd.h: New file.
8607 * config/sh/tm-nbsd.h: New file.
8608
d658f924
JT
86092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8610
8611 * sh-tdep.c (sh_osabi_names): Declare.
8612 (process_note_abi_tag_sections): New function.
8613 (get_elfosabi): Ditto.
8614 (sh_gdbarch_register_os_abi): Ditto.
8615 (sh_dump_tdep): Ditto.
8616 _initialize_sh_tdep): Use gdbarch_register to register
8617 sh_gdbarch_init and sh_dump_tdep.
8618 * config/sh/tm-sh.h (sh_osabi): Declare.
8619 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8620
848cfffb
AC
86212002-05-07 Andrew Cagney <ac131313@redhat.com>
8622
8623 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8624 (thumb_scan_prologue): Ditto.
8625 (arm_find_callers_reg): Ditto.
8626 (arm_frame_chain): Ditto.
8627 (arm_init_extra_frame_info): Ditto.
8628 (arm_frame_saved_pc): Ditto.
8629 (arm_pop_frame): Ditto.
8630 (arm_push_return_address): New function.
8631 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8632 call_dummy_location, call_dummy_breakpoint_offset_p,
8633 call_dummy_breakpoint_offset, call_dummy_p,
8634 call_dummy_stack_adjust_p, call_dummy_words,
8635 sizeof_call_dummy_words, call_dummy_start_offset,
8636 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8637 call_dummy_address, push_return_address and push_dummy_frame for
8638 generic dummy frames.
8639
e7d717c0
JT
86402002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8641
8642 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8643 size computation for alloca.
8644 (sh_fp_frame_init_saved_regs): Likewise.
8645
7bbcf283
RE
86462002-05-07 Richard Earnshaw <rearnsha@arm.com>
8647
8648 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8649 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8650 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8651 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8652 * remote-rdp.c (remote_rdp_fetch_register): Use
8653 ARM_MAX_REGISTER_RAW_SIZE.
8654 (remote_rdp_store_register): Likewise.
8655
4657573b
ML
86562002-05-07 Michal Ludvig <mludvig@suse.cz>
8657
361d1df0 8658 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8659 added default labels to switch {} statements.
8660 * x86-64-tdep.c: Ditto.
8661 * x86-64-linux-nat.c: Ditto.
8662
010f3b2f
JT
86632002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8664
8665 * solib.h: Protect against multiple inclusion.
8666
debd256d
JB
86672002-05-06 Jim Blandy <jimb@redhat.com>
8668
9ab3e532
JB
8669 Add first preprocessor macro-expansion files.
8670 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8671 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8672 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8673 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8674 (COMMON_OBS): Add macrotab.o, macroexp.o.
8675 (macroexp.o, macrotab.o): New rules.
8676
debd256d
JB
8677 Separate the job of reading the line number info statement program
8678 header (...expialidocious) out into its own function.
8679 * dwarf2read.c (struct line_head, struct filenames, struct
8680 directories): Replace with...
8681 (struct line_header): New structure, containing the full
8682 contents of the statement program header, including the
8683 include directory and file name tables.
8684 (read_file_scope): If we have line number info, instead of just
8685 calling dwarf_decode_lines to do all the work, call
8686 dwarf_decode_line_header first to get a `struct line_header'
8687 containing the data in the statement program header, and then
8688 pass that to dwarf_decode_lines, which will pick up where that
8689 left off. Be sure to clean up the `struct line_header' object.
8690 (dwarf_decode_line_header, free_line_header, add_include_dir,
8691 add_file_name): New functions.
8692 (dwarf_decode_lines): Move all the code to read the statement
8693 program header into dwarf_decode_line_header. Take the line
8694 header it built as the first argument, instead of the offset to
8695 the compilation unit's line number info. Use the new `struct
8696 line_header' type instead of the old structures. No need to do
8697 cleanups here now, since we don't allocate anything.
8698 (dwarf2_statement_list_fits_in_line_number_section,
8699 dwarf2_line_header_too_long): New complaints.
8700
ac3aafc7
EZ
87012002-05-06 Elena Zannoni <ezannoni@redhat.com>
8702
8703 * gdbtypes.c (init_vector_type): New function.
8704 (build_builtin_type_vec128): Simplify the representation of SIMD
8705 registers.
8706 (build_gdbtypes): Initialize new builtin vector types.
8707 (_initialize_gdbtypes): Register new vector types with gdbarch.
8708 (builtin_type_v4_float, builtin_type_v4_int32,
8709 builtin_type_v8_int16, builtin_type_v16_int8,
8710 builtin_type_v2_int32, builtin_type_v4_int16,
8711 builtin_type_v8_int8): New (renamed) SIMD types.
8712
13e49980
MK
87132002-05-06 Mark Kettenis <kettenis@gnu.org>
8714
8715 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8716 (i387_fill_fxsave): Likewise.
8717
997b20b8
AO
87182002-05-05 Alexandre Oliva <aoliva@redhat.com>
8719
8720 * alpha-tdep.c (alpha_extract_return_value): Don't use
8721 non-constant array size in prototype.
8722
535c96ce
AC
87232002-05-04 Andrew Cagney <ac131313@redhat.com>
8724
8725 From Brian Taylor <briant at model dot com>:
8726 * ui-out.c (ui_out_field_core_addr): Use the function
8727 longest_local_hex_string_custom'to format addresses > 32 bits
8728 wide.
8729
8730 * ui-out.c (ui_out_field_core_addr): Update comment.
8731
bedfa57b
AC
87322002-05-04 Andrew Cagney <ac131313@redhat.com>
8733
8734 * stack.c (select_and_print_frame): Make static. Delete the
8735 parameter `level'.
8736 (func_command): Update call.
8737 (select_frame_command): Delete code computing the frame level.
8738 * frame.h (select_and_print_frame): Delete declaration.
8739
f621c63e
AC
87402002-05-04 Andrew Cagney <ac131313@redhat.com>
8741
8742 * sparc-tdep.c (sparc_get_saved_register): Comment why
8743 get_prev_frame call is safe.
8744
0f7d239c
AC
87452002-05-04 Andrew Cagney <ac131313@redhat.com>
8746
8747 * frame.h (select_frame): Delete level parameter.
8748 * stack.c (select_frame): Update. Use frame_relative_level to
8749 obtain the frame's level.
8750 (select_and_print_frame): Update call.
8751 (select_frame_command): Ditto.
8752 (up_silently_base): Ditto.
8753 (down_silently_base): Ditto.
8754 * ocd.c (ocd_start_remote): Ditto.
8755 * remote-rdp.c (remote_rdp_open): Ditto.
8756 * remote-mips.c (mips_initialize): Ditto.
8757 (common_open): Ditto.
8758 * remote-e7000.c (e7000_start_remote): Ditto.
8759 * m3-nat.c (select_thread): Ditto.
8760 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8761 (child_get_current_exception_event): Ditto.
8762 * varobj.c (varobj_create): Ditto.
8763 (varobj_update): Ditto.
8764 (c_value_of_root): Ditto.
8765 * tracepoint.c (finish_tfind_command): Ditto.
8766 * corelow.c (core_open): Ditto.
8767 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8768 * thread.c (info_threads_command): Ditto.
8769 (switch_to_thread): Ditto.
8770 * infrun.c (normal_stop): Ditto.
8771 (restore_selected_frame): Ditto.
8772 (restore_inferior_status): Ditto.
8773 * breakpoint.c (insert_breakpoints): Ditto.
8774 (watchpoint_check): Ditto.
8775 (bpstat_stop_status): Ditto.
8776 (do_enable_breakpoint): Ditto.
8777 * blockframe.c (flush_cached_frames): Ditto.
8778 (reinit_frame_cache): Ditto.
8779
71d6c7b1
AC
87802002-05-04 Andrew Cagney <ac131313@redhat.com>
8781
8782 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8783 maintainer.
8784
cda6c68a
JB
87852002-05-04 Jim Blandy <jimb@redhat.com>
8786
8787 * gdbtypes.c (replace_type): Doc fix.
8788
5c1c87f0
AC
87892002-05-04 Andrew Cagney <ac131313@redhat.com>
8790
8791 * valprint.c (strcat_longest): Delete commented out function.
8792 Update copyright.
8793
cd9bfe15
AC
87942002-05-04 Andrew Cagney <ac131313@redhat.com>
8795
8796 * MAINTAINERS: Mark a29k as deleted.
8797 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8798 Move new configurations to the top.
8799 * configure.tgt: Remove a29k.
8800 * config/a29k/tm-vx29k.h: Delete.
8801 * config/a29k/vx29k.mt: Delete.
8802 * config/a29k/tm-a29k.h: Delete.
8803 * config/a29k/a29k-udi.mt: Delete.
8804 * config/a29k/a29k.mt: Delete.
8805 * a29k-tdep.c: Delete.
8806 * remote-udi.c: Delete.
8807 * remote-mm.c: Delete.
8808 * remote-eb.c: Delete.
8809 * remote-adapt.c: Delete.
8810 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8811 * config/s390/s390x.mt: Ditto.
8812 * config/s390/s390.mt: Ditto.
8813 * config/sparc/sparclynx.mh: Ditto.
8814 * config/sparc/linux.mh: Ditto.
8815 * config/pa/hppaosf.mh: Ditto.
8816 * config/pa/hppabsd.mh: Ditto.
8817 * config/ns32k/nbsd.mt: Ditto.
8818 * config/mips/vr5000.mt: Ditto.
8819 * config/m68k/sun3os4.mh: Ditto.
8820 * config/m68k/nbsd.mt: Ditto.
8821 * config/m68k/m68klynx.mh: Ditto.
8822 * config/m32r/m32r.mt: Ditto.
8823 * config/i386/x86-64linux.mt: Ditto.
8824 * config/i386/nbsdelf.mt: Ditto.
8825 * config/i386/nbsd.mt: Ditto.
8826 * config/i386/i386lynx.mh: Ditto.
8827
bf0c5130
AC
88282002-05-04 Andrew Cagney <ac131313@redhat.com>
8829
8830 * target.c (debug_print_register): New function. Handle oversize
8831 registers.
8832 (debug_to_fetch_registers): Call.
8833 (debug_to_store_registers): Call.
8834
2ae1c2d2
JB
88352002-05-03 Jim Blandy <jimb@redhat.com>
8836
13a393b0
JB
8837 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8838 (read_type): Doc fix.
8839 * gdbtypes.c (replace_type): Doc fix.
8840
2ae1c2d2
JB
8841 * stabsread.c (multiply_defined_struct): New complaint.
8842 (read_struct_type): If the type we were passed isn't empty, or
8843 incomplete, don't read the new struct type into it; complain,
8844 and return the original type unchanged. Take a new `type_code'
8845 argument, which is the type code for the new type.
8846 (read_type): Rather than storing the type's type code here, pass
8847 it as an argument to read_struct_type, and let that take care of
8848 storing it. That way, we don't overwrite the original type code,
8849 so read_struct_type can use it to decide whether we're overwriting
8850 something we shouldn't.
8851 (complain_about_struct_wipeout): New function.
8852
8de9bdc4
AC
88532002-05-03 Andrew Cagney <ac131313@redhat.com>
8854
8855 * gdbarch.sh: Assert that gdbarch is non-NULL.
8856 * gdbarch.c: Regenerate.
8857
f773fdbb
JM
88582002-05-03 Jason Merrill <jason@redhat.com>
8859
8860 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8861 and return NULL.
8862
0e04a514
ML
88632002-05-03 Michal Ludvig <mludvig@suse.cz>
8864
8865 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8866 (x86_64_dwarf2gdb_regno_map_length),
8867 (x86_64_dwarf2_reg_to_regnum): Added.
8868 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8869 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8870 (_initialize_x86_64_tdep): Synced with the change above.
8871 (x86_64_skip_prologue): Reformulated message.
8872
065432a8
PM
88732002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8874
8875 * f-exp.y: Also use new prev_lexptr variable
8876 to improve error reporting. Based on Michael Snyder
8877 2002-04-24 dated patch to c-exp.y.
8878 * jv-exp.y: Likewise.
8879 * m2-exp.y: Likewise.
8880
a3162708
EZ
88812002-05-02 Elena Zannoni <ezannoni@redhat.com>
8882
8883 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8884 we are dealing with vectors.
8885
03620c38
PM
88862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8887
8888 * config/m68k/tm-nbsd.h: Obvious fix,
8889 correct machine name.
8890
6604db2e
PM
88912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8892
8893 * p-typeprint.c (pascal_type_print_base): Add support
8894 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8895
0906b739
PM
88962002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8897
8898 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8899 for fondamental pascal 'char' type.
8900
e2625b33
PM
89012002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8902
8903 * p-lang.h (is_pascal_string_type): Declaration changed,
8904 new sixth argument of type char ** added.
361d1df0 8905 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8906 changed. Args length_pos, length_size, string_pos, char_size
8907 can now be NULL. New argument arrayname set to the field
8908 name of the char array. Return value set to char array
8909 field index plus one.
361d1df0 8910 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8911 is_pascal_string_type function.
8912
cf17c188
AC
89132002-05-02 Andrew Cagney <cagney@redhat.com>
8914
8915 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8916 <cagney@redhat.com> change.
8917 * gdbarch.c: Regenerate.
8918
52bca491
AC
89192002-05-02 Andrew Cagney <cagney@redhat.com>
8920
8921 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8922 before probing for a new one. Detect errorenous gdbarch_init
8923 functions.
8924 * gdbarch.c: Regenerate.
8925
d5e72505
AC
89262002-05-01 Andrew Cagney <cagney@redhat.com>
8927
8928 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8929 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8930 * config/v850/tm-v850.h: Ditto. Update copyright.
8931
af566d9f
AC
89322002-04-30 Andrew Cagney <ac131313@redhat.com>
8933
8934 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8935 current_gdbarch.
8936
880d85fa
MS
89372002-04-30 Michael Snyder <msnyder@redhat.com>
8938
94c30b78
MS
8939 * arm-tdep.c: Whitespace clean-ups.
8940 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8941 should have been removed as part of 4/24 change.
8942
6f5987a6
KB
89432002-04-30 Kevin Buettner <kevinb@redhat.com>
8944
8945 * rs6000-tdep.c: Added comment describing how fpscr register
8946 numbers were chosen.
8947
1a113c93
MS
89482002-04-30 Michael Snyder <msnyder@redhat.com>
8949
8950 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8951
9a6f53fe
EZ
89522002-04-29 Elena Zannoni <ezannoni@redhat.com>
8953
8954 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8955 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8956 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8957
11ed25ac
KB
89582002-04-29 Kevin Buettner <kevinb@redhat.com>
8959
8960 From Louis Hamilton <hamilton@redhat.com>:
8961 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8962 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8963 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8964 not bfd-private xcoff data, to determine wordsize.
8965 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8966
ae232405
AC
89672002-04-29 Andrew Cagney <ac131313@redhat.com>
8968
8969 GDB 5.2 released from 5.2 branch.
8970
91fd20f7
ML
89712002-04-29 Michal Ludvig <mludvig@suse.cz>
8972
8973 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8974 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8975 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8976
2dc5091b
EZ
89772002-04-29 Elena Zannoni <ezannoni@redhat.com>
8978
8979 * rs6000-tdep.c (rs6000_extract_return_value,
8980 rs6000_store_return_value): Handle returning vectors.
8981 (rs6000_gdbarch_init): Use
8982 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8983 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8984 New function.
8985 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8986 vectors.
8987 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8988 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8989
2b9848d8
PM
89902002-04-24 Pierre Muller <ics.u-strasbg.fr>
8991
8992 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8993 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8994 with fprintf_unfiltered (gdb_stderr,...).
8995
f8d17dc5
PM
89962002-04-24 Pierre Muller <ics.u-strasbg.fr>
8997
8998 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8999 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9000 Replace fprintf (stderr,...
9001 with fprintf_unfiltered (gdb_stderr,....
9002 * remote-es.c: Likewise.
9003 * remote-os9k.c: Likewise.
9004 * remote-st.c: Likewise.
9005
2f2f1ad1
AS
90062002-04-28 Andreas Schwab <schwab@suse.de>
9007
9008 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9009 linux-proc.o and gcore.o.
9010
b6779aa2
AC
90112002-04-26 Michal Ludvig <mludvig@suse.cz>
9012
9013 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9014 code without frame pointers.
9015
7e57f5f4
AC
90162002-04-26 Andrew Cagney <ac131313@redhat.com>
9017
9018 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9019 ON_STACK is needed.
9020
2ceb85d0
BE
90212002-04-26 Ben Elliston <bje@redhat.com>
9022
9023 * target.c (do_xfer_memory): Correct reference to the new option
9024 "trust-readonly-sections".
9025
f5f8a009
EZ
90262002-04-26 Elena Zannoni <ezannoni@redhat.com>
9027
9028 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9029 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9030 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9031 vectors.
9032 (read_array_type): Record the fact that this array type is really a
9033 vector (i.e. are passed in by value).
9034
5868c862
JT
90352002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9036
9037 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9038 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9039 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9040 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9041 * alpha-linux-tdep.c: Include frame.h.
9042 (alpha_linux_sigcontext_addr): New function.
9043 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9044 alpha_linux_sigcontext_addr.
9045 * alpha-osf1-tdep.c: Include gdbcore.h.
9046 (alpha_osf1_sigcontext_addr): New function.
9047 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9048 alpha_osf1_sigcontext_addr.
9049 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9050 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9051
bfb01f37
AC
90522002-04-26 Andrew Cagney <ac131313@redhat.com>
9053
361d1df0 9054 * stack.c (selected_frame_level):
bfb01f37
AC
9055 (select_frame): Do not set selected_frame_level.
9056 * frame.h (selected_frame_level): Delete declaration.
9057
15813d3f
AC
90582002-04-26 Andrew Cagney <ac131313@redhat.com>
9059
9060 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9061 convert_from_func_ptr-addr when AIX / PowerOpen.
9062
6096c27a
AC
90632002-04-25 Andrew Cagney <ac131313@redhat.com>
9064
9065 * valops.c (hand_function_call): Call
9066 generic_save_call_dummy_addr.
9067 * frame.h (generic_save_call_dummy_addr): Declare.
9068 * blockframe.c (struct dummy_frame): Add fields call_lo and
9069 call_hi.
9070 (generic_find_dummy_frame): Check for PC in range call_lo to
9071 call_hi instead of entry_point_address.
9072 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9073 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9074 (generic_save_call_dummy_addr): New function.
9075
f510d44e
DM
90762002-04-24 David S. Miller <davem@redhat.com>
9077
9078 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9079 sparc_skip_prologue.
9080 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9081 information to find prologue when possible.
9082 (sparc_prologue_frameless_p): Call examine_prologue directly.
9083 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9084 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9085 second argument.
9086 (SKIP_PROLOGUE): Likewise.
9087
15d72a92
JT
90882002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9089
9090 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9091 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9092 indicate that the condition it was testing is always true.
9093 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9094 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9095 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9096
accc6d1f
JT
90972002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9098
9099 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9100 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9101 tdep->jb_pc and tdep->jb_elt_size.
9102 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9103 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9104 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9105 * alpha-nat.c (get_longjmp_target): Remove.
9106 (JB_ELEMENT_SIZE): Ditto.
9107 (JB_PC): Ditto.
9108 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9109 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9110 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9111 to alpha_get_longjmp_target.
9112 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9113 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9114 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9115
1bfdc549
AC
91162002-04-25 Andrew Cagney <ac131313@redhat.com>
9117
9118 * README: Update to GDB 5.2.
9119
1bd316f0
AC
91202002-04-25 Andrew Cagney <ac131313@redhat.com>
9121
9122 * gdbarch.sh (LC_ALL): Set to `c'.
9123
2e5ff58c
TR
91242002-04-25 Theodore A. Roth <troth@verinet.com>
9125
9126 * avr-tdep.c: Ran through gdb_indent.sh.
9127
e33ce519
TR
91282002-04-25 Theodore A. Roth <troth@verinet.com>
9129
9130 * MAINTAINERS: Add myself as AVR maintainer.
9131 * NEWS: Note new target avr.
9132
8818c391
TR
91332002-04-25 Theodore A. Roth <troth@verinet.com>
9134
9135 * Makefile.in: Add support for AVR target.
9136 * configure.tgt: Add support for AVR target.
9137 * avr-tdep.c: New file
9138 * config/avr/avr.mt: New file.
9139
79509c2d
TR
91402002-04-25 Theodore A. Roth <troth@verinet.com>
9141
9142 * MAINTAINERS: Add myself to write-after-approval.
9143
dac8068e
PM
91442002-04-24 Pierre Muller <ics.u-strasbg.fr>
9145
9146 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9147 with fprintf_unfiltered (gdb_stderr,....
9148
25bf3106
PM
91492002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9150
9151 Fix PR gdb/508.
9152 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9153
24467a86
PM
91542002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9155
9156 * p-exp.y: Also use new prev_lexptr variable
9157 to improve error reporting. Based on Michael Snyder
9158 2002-04-24 dated patch to c-exp.y.
9159
95b80706
JT
91602002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9161
9162 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9163 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9164 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9165 to 0.
9166 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9167 and struct value.
9168 (FUNCTION_START_OFFSET): Remove.
9169 (BREAKPOINT): Ditto.
9170
e90cc612
JT
91712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9172
9173 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9174 * NEWS: Ditto.
9175
6c72f9f9
JT
91762002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9177
9178 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9179 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9180 alpha_linux_pc_in_sigtramp.
9181 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9182 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9183 alpha_osf1_pc_in_sigtramp.
9184 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9185 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9186 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9187 alphafbsd_pc_in_sigtramp.
9188 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9189 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9190 alphanbsd_pc_in_sigtramp.
9191 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9192 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9193
5e4f3379
JT
91942002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9195
9196 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9197
da8ca43d
JT
91982002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9199
9200 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9201 alphanbsd-tdep.c.
9202 (alphanbsd-nat.o): New dependency list.
9203 (alphanbsd-tdep.o): Ditto.
9204 * NEWS: Note new native NetBSD/alpha configuration.
9205 * alphanbsd-nat.c: New file.
9206 * alphanbsd-tdep.c: Ditto.
9207 * configure.host (alpha*-*-netbsd*): New host.
9208 * configure.tgt (alpha*-*-netbsd*): New target.
9209 * config/alpha/nbsd.mh: New file.
9210 * config/alpha/nbsd.mt: Ditto.
9211 * config/alpha/nm-nbsd.h: Ditto.
9212 * config/alpha/tm-nbsd.h: Ditto.
9213
36a6271d
JT
92142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9215
9216 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9217 (alpha-osf1-tdep.o): New dependency list.
9218 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9219 and skip_sigtramp_frame members.
9220 * alpha-linux-tdep.c: Include gdbcore.h.
9221 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9222 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9223 * alpha-osf1-tdep.c: New file.
9224 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9225 alpha-osf1-dep.c.
9226 (alpha_frame_past_sigtramp_frame): New function.
9227 (alpha_dynamic_sigtramp_offset): Ditto.
9228 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9229 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9230 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9231 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9232 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9233 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9234 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9235 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9236 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9237 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9238 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9239 to find_solib_trampoline_target.
9240 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9241 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9242 (SKIP_TRAMPOLINE_CODE): Remove.
9243 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9244 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9245 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9246 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9247 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9248 (PROC_SIGTRAMP_MAGIC): Ditto.
9249 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9250 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9251 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9252 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9253 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9254
2f4bc57b
JT
92552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9256
9257 * NEWS: Note that Alpha targets are now multi-arch.
9258
665132f9
MS
92592002-04-24 Michael Snyder <msnyder@redhat.com>
9260
9261 * parser-defs.h (prev_lexptr): New external variable.
9262 * parse.c (parse_exp_1): Set prev_lexptr to null before
9263 calling the language-specific parser.
9264 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9265 (yyerror): Use prev_lexptr in error reporting.
9266
32872fa7
DJ
92672002-04-24 Daniel Jacobowitz <drow@mvista.com>
9268
9269 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9270 * gregset.h: If FILL_FPXREGSET is defined, provide
9271 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9272 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9273 is defined, call fill_fpxregset.
9274
57e76fac
MS
92752002-04-24 Roland McGrath <roland@frob.com>
9276
9277 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9278 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9279 (supply_gregset, supply_fpregset): New functions.
9280
9281 * gnu-nat.c (gnu_find_memory_regions): New function.
9282 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9283 (gnu_xfer_memory): Add a cast.
9284
f43845b3
MS
92852002-04-24 Michael Snyder <msnyder@redhat.com>
9286
361d1df0 9287 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9288 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9289 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9290 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9291 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9292 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9293
a0abec03
AC
9294Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9295
9296 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9297 NUM_PSEUDO_REGS can be used.
9298
d7bd68ca
AC
92992002-04-24 Andrew Cagney <ac131313@redhat.com>
9300
9301 * arch-utils.h: Update copyright.
9302
9303 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9304 * gdbarch.h, gdbarch.c: Re-generate.
9305
9306 * inferior.h (IN_SIGTRAMP): Delete definition.
9307 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9308 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9309
9310 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9311 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9312 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9313 (find_proc_framesize): Ditto.
9314 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9315 (alpha_init_extra_frame_info): Ditto.
9316 * infrun.c (handle_inferior_event): Ditto.
9317 (handle_inferior_event): Ditto.
9318 (check_sigtramp2): Ditto.
9319 * blockframe.c (create_new_frame): Ditto.
9320 (get_prev_frame): Ditto.
9321 * ppc-linux-tdep.c: Update comments.
9322 * i386-linux-tdep.c: Update comments.
9323 * breakpoint.c (bpstat_what): Update comment.
9324
4867e41e
DM
93252002-04-24 David S. Miller <davem@redhat.com>
9326
21d83aa5
DM
9327 * i960-tdep.c (register_in_window_p): New function.
9328 (i960_find_saved_register): Use it instead of
9329 REGISTER_IN_WINDOW_P.
9330 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9331
4867e41e
DM
9332 * symtab.h (find_stab_function_addr): Kill extern.
9333 * minsyms.c (find_stab_function_addr): Remove from here...
9334 * dbxread.c: ... to here, and mark it static.
9335
69cdf6a2
DM
93362002-04-20 David S. Miller <davem@redhat.com>
9337
9338 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9339 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9340
5a595886
DM
93412002-04-21 David S. Miller <davem@redhat.com>
9342
9343 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9344 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9345 (vx_write_register): Likewise.
9346
1da1a192
JB
93472002-04-23 J. Brobecker <brobecker@gnat.com>
9348
9349 * source.c (is_regular_file): New function.
9350 (openp): Check wether file to open is a regular file
9351 to avoid opening directories.
9352
baa6f10b
JT
93532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9354
9355 * findvar.c (extract_signed_integer): Cast printf argument
9356 to suppress format warning.
9357 (extract_unsigned_integer): Likewise.
9358 * infcmd.c (registers_info): Likewise.
9359 * top.c (get_prompt_1): Likewise.
9360 * valops.c (value_assign): Likewise.
9361 * valprint.c (print_decimal): Likewise.
9362
b2c4da81
L
93632002-04-22 H.J. Lu (hjl@gnu.org)
9364
9365 * c-exp.y (typebase): Support
361d1df0 9366
b2c4da81
L
9367 [long|long long|short] [signed|unsigned] [int|]
9368
9369 and
9370
9371 signed [long|long long|short] int
9372
f267bd6a
JT
93732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9374
9375 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9376 and vax-tdep.h.
9377 * vax-tdep.h: New file.
9378 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9379 Make several routines static.
9380 (vax_get_saved_register): New function.
9381 (vax_gdbarch_init): New function.
9382 (_initialize_vax_tdep): Register vax_gdbarch_init.
9383 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9384 Remove macros now under the control of gdbarch.
9385
da3c6d4a
MS
93862002-04-22 Michael Snyder <msnyder@redhat.com>
9387
11d3b27d
MS
9388 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9389 Some whitespace and coding standards tweaks.
da3c6d4a 9390
a33f7558
JT
93912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9392
9393 * vax-tdep.c: Include regcache.h.
9394 (vax_call_dummy_words): New.
9395 (sizeof_vax_call_dummy_words): New.
9396 (vax_fix_call_dummy): New function.
9397 (vax_saved_pc_after_call): Ditto.
9398 * config/vax/tm-vax.h: Don't include regcache.h.
9399 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9400 (CALL_DUMMY): Remove.
9401 (CALL_DUMMY_WORDS): Define.
9402 (SIZEOF_CALL_DUMMY_WORDS): Define.
9403 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9404
47a73475
MS
94052002-04-18 Michael Snyder <msnyder@redhat.com>
9406
9407 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9408
52efde73
JT
94092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9410
9411 * vax-tdep.c (vax_frame_chain): New function.
9412 (vax_push_dummy_frame): Ditto.
9413 (vax_pop_frame): Ditto.
9414 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9415 (FRAMELESS_FUNCTION_INVOCATION): Use
9416 generic_frameless_function_invocation_not.
9417 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9418 (POP_FRAME): Use vax_pop_frame.
9419
ea74468c
JT
94202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9421
9422 * vax-tdep.c (vax_store_struct_return): New function.
9423 (vax_extract_return_value): Ditto.
9424 (vax_store_return_value): Ditto.
9425 (vax_extract_struct_value_address): Ditto.
9426 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9427 vax_store_struct_return.
9428 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9429 (STORE_RETURN_VALUE): Use vax_store_return_value.
9430 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9431
5516aa92
JT
94322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9433
9434 * vax-tdep.c (vax_frame_saved_pc): New function.
9435 (vax_frame_args_address_correct): Ditto.
9436 (vax_frame_args_address): Ditto.
9437 (vax_frame_locals_address): Ditto.
9438 (vax_frame_num_args): Move code to be in proximity to
9439 other frame-related functions.
9440 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9441 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9442 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9443 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9444 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9445
36af0b35
L
94462002-04-22 H.J. Lu (hjl@gnu.org)
9447
9448 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9449 includedir.
9450
ab62c900
JT
94512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9452
9453 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9454 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9455 (FRAME_INIT_SAVED_REGS): New macro.
9456
7232b100
JT
94572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9458
9459 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9460
b70d2aee
JT
94612002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9462
9463 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9464 where needed.
9465 (fetch_osf_core_registers): Likewise.
9466 (supply_gregset): Likewise.
9467
a0e8a2d1 94682002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9469
a0e8a2d1
JB
9470 * symfile.h (get_section_index): Define.
9471 * symfile.c (get_section_index): New function.
9472 * mdebugread.c (SC_IS_SBSS): New macro.
9473 (SC_IS_BSS): Return true for the scBss storage class only, as
9474 the scSBss storage class refers to the .sbss section.
9475 (parse_partial_symbols): Discard the symbols which associated
9476 section does not exist.
9477 Make sure to use the .sbss section index for symbols which
9478 storage class is scBss, rather than using the .bss section index.
9479
51eb8b08
JT
94802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9481
9482 * vax-tdep.c: Update copyright years.
9483 (vax_register_name): New function.
9484 (vax_register_byte): Ditto.
9485 (vax_register_raw_size): Ditto.
9486 (vax_register_virtual_size): Ditto.
9487 (vax_register_virtual_type): Ditto.
9488 * config/vax/tm-vax.h: Update copyright years.
9489 (REGISTER_NAMES): Remove.
9490 (REGISTER_NAME): Define.
9491 (REGISTER_BYTE): Use vax_register_byte.
9492 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9493 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9494 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9495
6cc1c0a8
AC
94962002-04-21 Andrew Cagney <ac131313@redhat.com>
9497
9498 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9499 declaration
9500 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9501
9319a2fe
DM
95022002-04-21 David S. Miller <davem@redhat.com>
9503
9504 * arch-utils.c (generic_prologue_frameless_p): Kill
9505 SKIP_PROLOGUE_FRAMELESS_P code.
9506 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9507 references.
9508 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9509 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9510 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9511 references.
9512 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9513 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9514 (sparc_gdbarch_init): Pass it to
9515 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9516
e9ed6d01
JT
95172002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9518
9519 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9520 (alphabsd-nat.o): New dependency list.
9521
36012033
JT
95222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9523
9524 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9525 alphafbsd-tdep.c.
9526 (alpha-linux-tdep.o): New dependency list.
9527 (alphafbsd-tdep.o): Likewise.
9528
3379287a
JT
95292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9530
9531 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9532 to here...
9533 * alpha-tdep.c: ...from here.
9534 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9535
4bcbd6cb
JT
95362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9537
9538 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9539 prototype from here...
9540 * alpha-tdep.h: ...to here.
9541
b31da25e
AC
95422002-04-21 Andrew Cagney <ac131313@redhat.com>
9543
9544 * frame.h (selected_frame_level): Document as deprecated.
9545 (frame_relative_level): Declare.
9546 * stack.c (frame_relative_level): New function.
9547 (selected_frame_level): Document as deprecated.
9548 (select_frame): Do not set the selected_frame_level.
9549
9550 * stack.c (frame_info, record_selected_frame): Update.
9551 (frame_command, current_frame_command): Update.
9552 (up_silently_base, up_command, down_silently_base): Update.
9553 (down_command): Update.
9554 * inflow.c (kill_command): Update.
9555 * tracepoint.c (finish_tfind_command): Update.
9556 * corelow.c (core_open): Update.
9557 * thread.c (info_threads_command): Update.
9558 (do_captured_thread_select): Update.
9559 * infcmd.c (finish_command): Update.
9560 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9561
9c1d6fe5
JT
95622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9563
9564 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9565
ab89facf
AC
95662002-04-21 Andrew Cagney <ac131313@redhat.com>
9567
9568 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9569 type const.
9570
82a4efa1
JT
95712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9572
9573 * alphafbsd-tdep.c: Update copyright years. Include
9574 alpha-tdep.h.
9575 (alphafbsd_use_struct_convention): Make static.
9576 (alphafbsd_init_abi): New function.
9577 (_initialize_alphafbsd_tdep): New function.
9578 * config/alpha/tm-fbsd.h: Update copyright years.
9579 (USE_STRUCT_CONVENTION): Remove.
9580
44dffaac
JT
95812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9582
9583 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9584 an Alpha ABI variant.
9585 (alpha_abi_handler_list): Declare.
9586 (alpha_gdbarch_register_os_abi): New function.
9587 (alpha_gdbarch_init): Give registered ABI variant handlers a
9588 chance to tweak the gdbarch once we have set up defaults.
9589 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9590
65585be4
JT
95912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9592
9593 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9594 to standard_coerce_float_to_double.
9595 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9596
d9b023cc
JT
95972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9598
9599 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9600 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9601 from gdbarch_tdep rather than a constant.
9602 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9603 the default text address for all Alpha Unix ABIs.
9604 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9605 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9606
dc129d82
JT
96072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * alpha-tdep.h: New file. Includes several Alpha target constants
9610 taken from...
9611 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9612 let gdbarch deal with.
9613 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9614 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9615 to dependency list.
9616 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9617 Alpha target register names.
9618 * alphabsd-nat.c: Likewise.
9619 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9620 Alpha target register names. Make serveral routines static.
9621 (alpha_get_saved_register): New function.
9622 (alpha_abi_names): New.
9623 (process_note_abi_tag_sections): New function.
9624 (get_elfosabi): New function.
9625 (alpha_gdbarch_init): New function.
9626 (alpha_dump_tdep): New function.
9627 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9628
d49d1e0a
AC
96292002-04-21 Andrew Cagney <ac131313@redhat.com>
9630
9631 * frame.c (find_saved_register): Delete #ifdef
9632 HAVE_REGISTER_WINDOWS code.
9633 * config/sparc/tm-sparc.h: Update comments.
9634 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9635
92e8c9ed
AC
96362002-04-21 Andrew Cagney <ac131313@redhat.com>
9637
9638 * i960-tdep.c (i960_find_saved_register): New function.
9639 (i960_get_saved_register): New function.
9640 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9641 (i960_get_saved_register): Declare.
9642 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9643
e1925118
DM
96442002-04-20 David S. Miller <davem@redhat.com>
9645
9646 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9647
29673b29
AC
96482002-04-20 Andrew Cagney <ac131313@redhat.com>
9649
9650 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9651 instead of NUM_PSEUDO_REGS.
9652
6c86dcd5
DM
96532002-04-20 David S. Miller <davem@redhat.com>
9654
9655 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9656 GDB_MULTI_ARCH_PARTIAL
9657 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9658 define, let tm-sp64.h do it.
9659
aa40ec90
JT
96602002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9661
9662 * frame.c (find_saved_register): Avoid a NULL pointer
9663 dereference and actually walk the frame list.
9664
0f79675b
AC
96652002-04-20 Andrew Cagney <ac131313@redhat.com>
9666
9667 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9668 sorted in most most-recent-used order. Document.
9669 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9670
f91305dd 96712002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9672
9673 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9674 instead of ->prev.
9675 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9676 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9677 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9678 instead of ->prev.
9679
73d322b1
EZ
96802002-04-19 Elena Zannoni <ezannoni@redhat.com>
9681
9682 Fix PR gdb/471.
9683 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9684 (build_builtin_type_vec128): Ditto.
9685 (append_composite_type_field): Fix calculation of type length in
9686 union case.
9687
ccd9a834
EZ
96882002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9689
9690 * config/djgpp/README: Update.
9691
9692 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9693 compiler warnings.
9694
a57f9e49
JT
96952002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9696
9697 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9698 (alpha_setup_arbitrary_frame): ...to this.
9699 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9700 for alpha_setup_arbitrary_frame.
9701
f4f9705a
AC
97022002-04-18 Andrew Cagney <cagney@redhat.com>
9703
9704 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9705 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9706
f4f9705a
AC
9707 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9708 * target.h (memory_breakpoint_from_pc): Update declaration.
9709 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9710
9711 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9712 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9713 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9714 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9715 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9716 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9717 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9718 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9719 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9720 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9721 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9722 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9723
9724 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9725 const pointer.
9726 * monitor.c (monitor_insert_breakpoint): Ditto.
9727 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9728
9729 * config/mcore/tm-mcore.h: Update copyright.
9730 * mem-break.c: Ditto.
9731 * xstormy16-tdep.c: Ditto.
9732
29f319b8
PM
97332002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9734
9735 * p-exp.y: Add precedence rule for '^' token.
9736 This removes the shift/reduce conflicts.
9737 Remove the comment concerning these shift/reduce conflicts.
9738
ebeac11a
EZ
97392002-04-18 Elena Zannoni <ezannoni@redhat.com>
9740
9741 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9742 (registers_powerpc_nofp): New register set for processors
9743 without floating point unit.
9744
27c31547
DM
97452002-04-18 David S. Miller <davem@redhat.com>
9746
9747 * MAINTAINERS: Add myself to write-after-approval.
9748
47a73475
MS
97492002-04-17 Michael Snyder <msnyder@redhat.com>
9750
9751 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9752
953836b2
AC
97532002-04-17 Andrew Cagney <ac131313@redhat.com>
9754
9755 * rs6000-tdep.c (frame_initial_stack_address): Use
9756 frame_register_read to read the alloca_reg.
9757
8b0d4340
AC
97582002-04-17 Andrew Cagney <ac131313@redhat.com>
9759
9760 * frame.c (find_saved_register): Find saved registers in the next
9761 not prev frame.
9762 Fix PR gdb/365.
9763
d8864532
AC
97642002-04-17 Andrew Cagney <ac131313@redhat.com>
9765
9766 * gdbarch.sh (LANG): Set to ``c''.
9767
36cc83a3 97682002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9769
36cc83a3 9770 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9771
2f4150cc 97722002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9773
9774 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9775 Update copyright.
9776
628703c6 9777 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9778 Also fix PR gdb/391.
361d1df0 9779
56157b4a
AC
97802002-04-14 Andrew Cagney <ac131313@redhat.com>
9781
9782 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9783 * aclocal.m4, configure: Re-generate.
9784 Fix PR gdb/391.
361d1df0 9785
6d1e3329
EZ
97862002-04-14 Elena Zannoni <ezannoni@redhat.com>
9787
9788 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9789 instead of tm_print_insn.
9790
cb06fa07
EZ
97912002-04-14 Elena Zannoni <ezannoni@redhat.com>
9792
9793 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9794
f208ba17
AC
97952002-04-14 Andrew Cagney <ac131313@redhat.com>
9796
9797 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9798 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9799 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9800
20f01a46
DH
98012002-04-12 Don Howard <dhoward@redhat.com>
9802
9803 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9804 max_user_call_depth.
9805 (init_cmd_lists): Initialize the new value;
9806 * cli/cli-script.c (execute_user_command): Limit the call depth of
9807 user defined commands. This avoids a core-dump when user commands
9808 are infinitly recursive.
9809
a88376a3
KB
98102002-04-12 Kevin Buettner <kevinb@redhat.com>
9811
9812 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9813 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9814 from tdep struct instead of DEFAULT_LR_SAVE.
9815 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9816 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9817 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9818
f2172603
MS
98192002-04-12 Michael Snyder <msnyder@redhat.com>
9820
694f61fb 9821 * Remote.c: Spelling fix.
20fe79c8
MS
9822 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9823 If no symbol found for "sbrk", try "_sbrk".
9824 (make_output_phdrs): Use bfd_section_name.
9825 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9826 * eval.c: Indentation fix-ups.
169a7369
MS
9827 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9828 in case it gets applied to an address that is already
9829 in the instruction space.
de74f71f
MS
9830 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9831 * symfile.c: Fix indentation, long lines.
f2172603
MS
9832 * source.c: White space fix-up.
9833
cda5a58a
AC
98342002-04-12 Andrew Cagney <cagney@redhat.com>
9835
9836 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9837 * frame.c (frame_register_read): New function. Return non-zero on
9838 success.
9839 (read_relative_register_raw_bytes_for_frame): Delete.
9840 (read_relative_register_raw_bytes): Delete.
9841 * frame.h (frame_register_read): Declare.
9842 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9843 * sh-tdep.c: Ditto.
9844 * infcmd.c (do_registers_info): Ditto.
9845 * hppa-tdep.c: Ditto.
9846 * rs6000-tdep.c: Ditto.
9847 * h8500-tdep.c: Ditto.
9848 * mips-tdep.c: Ditto.
9849 * h8300-tdep.c: Ditto.
9850 * z8k-tdep.c: Ditto.
9851
2ea5f656
KB
98522002-04-12 Kevin Buettner <kevinb@redhat.com>
9853
9854 From Jimi X <jimix@watson.ibm.com>:
9855 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9856 64-bit SysV ABI.
9857
27b15785
KB
98582002-04-12 Kevin Buettner <kevinb@redhat.com>
9859
9860 From Jimi X <jimix@watson.ibm.com>:
9861 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9862 bfd info.
9863
5d57ee30
KB
98642002-04-12 Kevin Buettner <kevinb@redhat.com>
9865
9866 From Jimi X <jimix@watson.ibm.com>:
9867 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9868 register sets for these processor variants.
9869
bc1e36ca
DJ
98702002-04-11 Daniel Jacobowitz <drow@mvista.com>
9871
bc1e36ca
DJ
9872 * regformats/reg-ppc.dat: Support FPSCR.
9873
e3f36dbd
KB
98742002-04-11 Kevin Buettner <kevinb@redhat.com>
9875
9876 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9877 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9878 Add fpscr as an invalid/unfetchable register.
9879 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9880 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9881 (fill_fpregset): Add support for register fpscr.
9882 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9883 (fill_gregset): Account for the fact that register ``mq'' might
9884 not exist.
9885 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9886 (registers_power): Add fpscr to register set at slot 71.
9887 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9888 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9889
943c9c25
MS
98902002-04-11 Michael Snyder <msnyder@redhat.com>
9891
9892 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9893 * configure: Regenerate.
9894 * config.in: Regenerate.
9895 * acconfig.h: Add define for _SYSCALL32.
9896 * core-sol2.c: Remove #define _SYSCALL32.
9897 * solib-legacy.c: Remove #define _SYSCALL32.
9898
d8c0a2e7
AC
98992002-04-10 Andrew Cagney <ac131313@redhat.com>
9900
9901 * stack.c (select_frame): Cleanup internal error message, do not
9902 use %p.
9903
7cc19214
AC
99042002-04-10 Andrew Cagney <ac131313@redhat.com>
9905
9906 * stack.c (select_frame): Check that selected_frame and the
9907 specified level are as expected.
9908 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9909 Update copyright.
9910 * frame.h (struct frame_info): Add field `level'. Update
9911 copyright.
9912 Work-in-progress PR gdb/464.
9913
67a2b77e
AC
99142002-04-10 Andrew Cagney <ac131313@redhat.com>
9915
9916 * maint.c (maint_print_section_info): Rename print_section_info.
9917 (print_bfd_section_info, print_objfile_section_info): Update.
9918 * inferior.h (struct gdbarch): Add opaque declaration.
9919 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9920 * gdbarch.h: Regenerate.
9921
8cfda98c
ML
99222002-04-10 Michal Ludvig <mludvig@suse.cz>
9923
9924 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9925 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9926 (kernel_u_size): Added.
9927 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9928 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9929
ca439ad2 99302002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9931
ca439ad2
JI
9932 * valarith.c (find_size_for_pointer_math): New function, either returns
9933 the size for a pointer's target, returns 1 for void *, or errors for
9934 incomplete types.
9935 (value_add, value_sub): use find_size_for_pointer_math.
9936
2f2893d9
DJ
99372002-04-09 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * linux-low.c (linux_look_up_symbols): New hook.
9940 (linux_target_ops): Add linux_look_up_symbols.
9941 * remote-utils.c (decode_address): New function.
9942 (look_up_one_symbol): New function.
9943 * server.c (handle_query): Call target look_up_symbols hook.
9944 * server.h (look_up_one_symbol): Add prototype.
9945 * target.h (struct target_ops): Add look_up_symbols hook.
9946
96cb11df
AC
99472002-04-09 Andrew Cagney <ac131313@redhat.com>
9948
9949 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9950 override FP_REGNUM with frame->fp. Update copyright.
9951 * parse.c (num_std_regs, std_regs): Delete.
9952 (target_map_name_to_register): Do not search std_regs. Update
9953 function description.
9954 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9955 declarations. Update copyright.
9956 Fix PR gdb/251.
361d1df0 9957
97658e92
DJ
99582002-04-09 Daniel Jacobowitz <drow@mvista.com>
9959
9960 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9961 after the last symbol in a block.
9962
6044e3eb
PM
99632002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9964
9965 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9966 is non zero as a found symbol.
9967
0406ec40
AC
99682002-04-08 Andrew Cagney <ac131313@redhat.com>
9969
9970 * findvar.c: Include "builtin-regs.h".
9971 (value_of_register): Call value_of_builtin_reg when applicable.
9972 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9973 (target_map_name_to_register): Call
9974 builtin_reg_map_name_to_regnum.
9975 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9976 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9977 (builtin_regs_h): Define.
9978 (builtin-regs.o): New target.
9979 (findvar.o): Add $(builtin_regs_h).
9980 * builtin-regs.c, builtin-regs.h: New files.
9981 * std-regs.c: New file.
9982 Partial fix for PR gdb/251.
9983
56a6dfb9
KB
99842002-04-08 Kevin Buettner <kevinb@redhat.com>
9985
9986 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9987 it's no longer required.
9988
3a808432
AC
99892002-04-08 Andrew Cagney <ac131313@redhat.com>
9990
9991 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9992
7c40d541
KB
99932002-04-08 Kevin Buettner <kevinb@redhat.com>
9994
9995 From Jimi X <jimix@watson.ibm.com>:
9996 * rs6000-tdep.c (rs6000_software_single_step): Use
9997 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9998 and size. Use target_insert_breakpoint() and
9999 target_remove_breakpoint() to insert and remove breakpoints
10000 instead of explicit memory reads and writes.
10001
cc9836a8
KB
100022002-04-08 Kevin Buettner <kevinb@redhat.com>
10003
10004 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10005 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10006 ELF_OBJECT_FORMAT ifdef.
10007
7495d1dc
KB
100082002-04-08 Kevin Buettner <kevinb@redhat.com>
10009
10010 From Jimi X <jimix@watson.ibm.com>:
10011 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10012
4288e836
KB
100132002-04-08 Kevin Buettner <kevinb@redhat.com>
10014
10015 From Jimi X <jimix@watson.ibm.com>:
10016 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10017 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10018
a4e4e501
MK
100192002-04-07 Mark Kettenis <kettenis@gnu.org>
10020
10021 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10022 s/asprintf/xasprintf/.
10023 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10024
006defba
AC
100252002-04-07 Andrew Cagney <ac131313@redhat.com>
10026
10027 I believe Jeff Law denies responsability for this one:
10028 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10029 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10030 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10031 Work-around for PR gdb/366.
10032
7aa83cac
EZ
100332002-04-07 Elena Zannoni <ezannoni@redhat.com>
10034
10035 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10036 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10037 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10038
cf1fcca1
EZ
100392002-04-07 Elena Zannoni <ezannoni@redhat.com>
10040
10041 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10042 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10043 information.
10044
3f289e6f
AC
100452002-04-07 Andrew Cagney <ac131313@redhat.com>
10046
10047 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10048 maintainer.
10049
129188f6
AC
100502002-04-07 Andrew Cagney <ac131313@redhat.com>
10051
10052 * README (Reporting Bugs in GDB): Document the bug web page as the
10053 prefered way of submitting bugs.
10054 Fix PR gdb/402.
10055
1200cd6e
AC
100562002-04-06 Andrew Cagney <ac131313@redhat.com>
10057
10058 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10059 -1. Update comment.
10060 * gdbarch.h, gdbarch.c: Re-generate.
10061
2853c33c
AS
100622002-04-07 Andreas Schwab <schwab@suse.de>
10063
10064 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10065 buffer to regcache_collect.
10066
c2169756
AC
100672002-04-06 Andrew Cagney <ac131313@redhat.com>
10068
10069 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10070 * gdbarch.c, gdbarch.h: Re-generate.
10071
25f1b008
AC
100722002-04-06 Andrew Cagney <ac131313@redhat.com>
10073
10074 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10075 declaration. Fix -Werror.
10076
59263426
DJ
100772002-04-05 Daniel Jacobowitz <drow@mvista.com>
10078
10079 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10080 * gdbarch.c: Regenerate.
10081
f5db4da3
MS
100822002-04-05 Michael Snyder <msnyder@redhat.com>
10083
80f8a6eb
MS
10084 * breakpoint.c (clear_command): Rewrite middle section to
10085 combine two loops with identical control conditions.
10086 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10087 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10088
ad3dcc5c
L
100892002-04-05 H.J. Lu (hjl@gnu.org)
10090
10091 * solib-svr4.c (bkpt_names): Add "__start".
10092
f32e7a74
AC
100932002-04-04 Andrew Cagney <ac131313@redhat.com>
10094
10095 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10096 as test for 64 bit target.
10097
8227c0ff
AC
100982002-04-05 Andrew Cagney <ac131313@redhat.com>
10099
10100 * h8500-tdep.c (h8500_write_fp): Delete function.
10101 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10102 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10103 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10105 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10106 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10107 (s390_write_fp):
10108 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10109 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10110 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10111 (d10v_write_fp): Delete function.
10112 * inferior.h (write_fp, generic_target_write_fp): Delete
10113 declarations.
10114 * regcache.c (generic_target_write_fp): Delete function.
10115 (write_fp): Delete function.
10116 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10117 * gdbarch.h, gdbarch.c: Regenerate.
10118 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10119 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10120 (sparc64_write_fp): Delete declaration.
10121 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10122 (h8500_write_fp): Delete declaration.
10123
2757dd86
AC
101242002-04-04 Andrew Cagney <ac131313@redhat.com>
10125
10126 * sparc-tdep.c (sparc64_write_fp): Delete.
10127 (sparc_push_dummy_frame): Replace write_fp call with code to store
10128 the FP directly.
10129 (sparc_gdbarch_init): Do not initialize write_fp.
10130
c69255e1
KB
101312002-04-05 Kevin Buettner <kevinb@redhat.com>
10132
10133 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10134 clause.
10135
ae767bfb
JB
101362002-03-29 Jim Blandy <jimb@redhat.com>
10137
10138 * stack.c (get_selected_block): Add new argument `addr_in_block',
10139 used to return the exact code address we used to select the block,
10140 not just the block.
10141 * blockframe.c (get_frame_block, get_current_block): Same.
10142 * frame.h (get_frame_block, get_current_block,
10143 get_selected_block): Update declarations.
10144 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10145 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10146
84d2ac95
MS
101472002-04-05 Michael Snyder <msnyder@redhat.com>
10148
10149 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10150 warning message.
10151
596aa3bf
JB
101522002-04-05 J. Brobecker <brobecker@gnat.com>
10153
10154 * utils.c (xfullpath): New function.
10155 * defs.h (xfullpath): Add declaration.
10156 * source.c (openp): Use xfullpath in place of gdb_realpath to
10157 avoid resolving the basename part of filenames when the
10158 associated file is a symbolic link. This fixes a potential
10159 inconsistency between the filenames known to GDB and the
10160 filenames it prints in the annotations.
10161 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10162 to be able to match a filename with either the real filename, or
10163 the name of any symbolic link to this file.
10164 (lookup_partial_symtab): Ditto.
10165
c02f5703
MS
101662002-04-04 Michael Snyder <msnyder@redhat.com>
10167
10168 * breakpoint.c: Add support for hardware breakpoints in overlays.
10169 (overlay_events_enabled): New state variable.
10170 (insert_breakpoints): Use overlay_events_enabled to decide
10171 whether to attempt to set a breakpoint at the overlay load addr.
10172 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10173 (remove_breakpoint): Use overlay_events_enabled to decide
10174 whether breakpoints need to be removed from overlay load addr.
10175 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10176 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10177 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10178 disable_overlay_breakpoints): Update overlay_events_enabled.
10179
5fb290d7
DJ
101802002-04-04 Daniel Jacobowitz <drow@mvista.com>
10181
10182 * dwarf2read.c (struct function_range): New.
10183 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10184 (check_cu_functions): New.
10185 (read_file_scope): Initialize global function lists.
10186 Call dwarf_decode_line after processing children.
10187 (read_func_scope): Add to global function list.
10188 (dwarf_decode_lines): Call check_cu_functions everywhere
10189 record_line is called. Call record_line with a linenumber
10190 of 0 to mark sequence ends.
10191
7b3fabf0
ML
101922002-04-04 Michal Ludvig <mludvig@suse.cz>
10193
361d1df0 10194 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10195 change sync with glibc.
10196
bce58c09
JB
101972002-04-03 Jim Blandy <jimb@redhat.com>
10198
10199 * configure.in: Call AC_C_INLINE.
10200 * configure: Regenerated.
361d1df0 10201
2fccf04a
DJ
102022002-04-01 Daniel Jacobowitz <drow@mvista.com>
10203
10204 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10205 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10206
2d1bfe2e
MK
102072002-03-31 Mark Kettenis <kettenis@gnu.org>
10208
a5941fbf
MK
10209 * NEWS: Mention gcore support on FreeBSD/i386.
10210
a90cd31d
MK
10211 * fbsd-proc.c: New file.
10212 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10213 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10214
2d1bfe2e
MK
10215 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10216 while statement.
10217
9eb6e5a1
JB
102182002-03-29 Jim Blandy <jimb@redhat.com>
10219
10220 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10221 unescaped newlines in string literals, but newer ones don't. So
10222 escape them.
10223
f02df580
MS
102242002-03-26 Michael Snyder <msnyder@redhat.com>
10225 Andrew Cagney <cagney@redhat.com>
10226
361d1df0 10227 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10228 restore file to memory.
10229 * cli/cli-dump.h: New file.
10230 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10231 * NEWS: Mention new commands.
f02df580 10232
109f874e
MS
102332002-03-28 Michael Snyder <msnyder@redhat.com>
10234
10235 * symfile.c (symbol_file_add): Move test for null symbols to later.
10236
520f6ade
AC
102372002-03-27 Andrew Cagney <ac131313@redhat.com>
10238
10239 From veksler at il.ibm.com:
10240 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10241 the xstrduped original path.
10242 Fix PR gdb/417.
10243
d4654627
MS
102442002-03-27 Michael Snyder <msnyder@redhat.com>
10245
10246 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10247 * infcmd.c (_initialize_infcmd): Ditto.
10248 * language.c (_initialize_language): Ditto.
10249 * symfile.c (_initialize_symfile): Ditto.
10250 * top.c (_init_main): Ditto.
10251 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10252
6be8bc0c
EZ
102532002-03-27 Elena Zannoni <ezannoni@redhat.com>
10254
10255 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10256 vector registers handling.
10257 (skip_prologue): Handle new AltiVec instructions. Fill in new
10258 fields of frame data.
10259 (frame_get_saved_regs): Fill in information for AltiVec registers.
10260
12af6855
JB
102612002-03-27 Jim Blandy <jimb@redhat.com>
10262
10263 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10264 a function; leave this macro here to invoke that function.
10265 (symbol_init_mangled_name): Declaration for that function.
10266 * symtab.c (symbol_init_mangled_name): New function.
10267
dc672865
AC
102682002-03-27 Andrew Cagney <ac131313@redhat.com>
10269
10270 * valarith.c: Replace strerror with safe_strerror.
10271 * tracepoint.c: Ditto.
10272 * lin-lwp.c: Ditto.
10273 * go32-nat.c: Ditto.
10274 * inflow.c: Ditto.
10275 * gnu-nat.c: Ditto.
10276
d96429cd
AS
102772002-03-27 Andreas Schwab <schwab@suse.de>
10278
10279 * event-top.c (command_line_handler): Remove useless if.
10280
7e336ba1
AJ
102812002-03-27 Andreas Jaeger <aj@suse.de>
10282
10283 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10284 comment.
10285
de220d0f
ML
102862002-03-27 Michal Ludvig <mludvig@suse.cz>
10287
10288 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10289 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10290 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10291 (x86_64_linux_dr_get_status, supply_gregset),
10292 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10293 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10294 (x86_64_register_info_table): Add.
10295 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10296 (x86_64_register_raw_size, x86_64_register_virtual_type),
10297 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10298 general x86_64_register_info_table.
10299 (i386_gdbarch_init): gdbarch_register_bytes is now set
10300 dynamicaly during initialization.
10301 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10302 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10303
0e98d0a7
DJ
103042002-03-27 Daniel Jacobowitz <drow@mvista.com>
10305
10306 * gdbserver/server.c (main): Call target_signal_to_host_p
10307 and target_signal_to_host on signals received from the remote.
10308 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10309 target_signal_from_host on signals sent to the remote.
10310 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10311 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10312
3130066b
DJ
103132002-03-27 Daniel Jacobowitz <drow@mvista.com>
10314
10315 * signals/signals.c: Include "server.h" in gdbserver build.
10316 (target_signal_from_name): Don't use STREQ.
10317 (_initialize_signals): Likewise. Don't include function in
10318 gdbserver build.
10319
9aedf4f4
DJ
103202002-03-27 Daniel Jacobowitz <drow@mvista.com>
10321
10322 * signals.c: Moved to...
10323 * signals/signals.c: Here.
7e336ba1 10324 * Makefile (signals.o): Update.
9aedf4f4 10325
3fa41cdb
JL
103262002-03-26 Jeff Law (law@redhat.com)
10327
10328 * somread.c (som_symtab_read): Remove some commented out code and
10329 updated related comments. Do not set the minimal symbol table to
10330 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10331 in a dynamic executable.
10332 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10333 where we are unable to find the minimal symbol for the given
10334 PC value.
10335
ee677e8d
MS
103362002-03-25 Jeff Law (law@redhat.com)
10337
10338 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10339
e76e1718
ML
103402002-03-25 Michal Ludvig <mludvig@suse.cz>
10341
10342 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10343
18a642a1
AC
103442002-03-23 Andrew Cagney <ac131313@redhat.com>
10345
10346 * command.h: Update copyright.
10347 (struct cmd_list_element): Replace definition with opaque
10348 declaration.
10349 (enum cmd_types): Document that it will eventually be moved to
10350 cli/cli-decode.h
10351 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10352 (MALLOCED_REPLACEMENT): Delete macro.
10353 * Makefile.in (cli_decode_h): Add $(command_h).
10354 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10355 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10356 * completer.c: Include "cli/cli-decode.h".
10357 * maint.c: Include "cli/cli-decode.h".
10358 * cli/cli-decode.h: Include "command.h".
10359 (enum command_class): Delete.
10360 (enum cmd_types): Comment out.
10361 (enum cmd_auto_boolean): Delete.
10362 (enum var_types): Delete.
10363
b2875cc0
AC
103642002-03-23 Andrew Cagney <ac131313@redhat.com>
10365
10366 * cli/cli-decode.c: Include "gdb_assert.h".
10367 (add_set_or_show_cmd): New static function.
10368 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10369 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10370 all fields, such as func, from the set command.
10371
3b45974e
AC
103722002-03-23 Andrew Cagney <ac131313@redhat.com>
10373
10374 * MAINTAINERS (sh-elf): Change warning flag to -w.
10375
823ca731
AC
103762002-03-23 Andrew Cagney <cagney@redhat.com>
10377
10378 * defs.h (error): Add printf format attribute.
10379 * thread-db.c (thread_from_lwp): Fix error format string.
10380 * stack.c (parse_frame_specification): Ditto.
10381 * cli/cli-decode.c (undef_cmd_error): Ditto.
10382 * scm-lang.c (scm_lookup_name): Ditto.
10383 * tracepoint.c (trace_error): Ditto.
10384 * remote-utils.c (usage): Ditto.
10385 * remote.c (compare_sections_command): Ditto.
10386 Fix PR gdb/328.
10387
0e101458
AC
103882002-03-22 Andrew Cagney <ac131313@redhat.com>
10389
10390 * gdbtypes.c (append_composite_type_field): New function.
10391 (init_composite_type): New function.
10392 * gdbtypes.h (append_composite_type_field): Declare.
10393 (init_composite_type): Ditto.
10394
8e0662df
EZ
103952002-03-22 Elena Zannoni <ezannoni@redhat.com>
10396
10397 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10398 function.
8e0662df
EZ
10399 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10400 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10401 structure returning convention for SYSV ABI case, but not
10402 for GNU/Linux, FreeBSD, or NetBSD.
10403
3121eff0
DJ
104042002-03-22 Daniel Jacobowitz <drow@mvista.com>
10405
10406 * symtab.h (lookup_block_symbol): Add mangled_name argument
10407 to prototype.
10408
10409 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10410 with new mangled_name argument.
10411 * linespec.c (decode_line_1): Likewise.
10412 * valops (value_of_this): Likewise.
10413 * symtab.c (lookup_transparent_type): Likewise.
10414 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10415 (lookup_symbol): If we are given a mangled name, pass it down
10416 to lookup_symbol_aux.
10417 (lookup_block_symbol): If we are given a mangled name to check
10418 against, only return symbols which match it.
10419
349b409f
CF
104202002-03-22 Christopher Faylor <cgf@redhat.com>
10421
10422 * win32-nat.c (child_create_inferior): Check for proper shell to use
10423 here, in case the user changes it on the fly.
10424 (_initialize_inftarg): Remove shell path considerations.
10425
2a873819
EZ
104262002-03-21 Elena Zannoni <ezannoni@redhat.com>
10427
10428 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10429 for gdbarch_max_register_raw_size and max_register_virtual_size.
10430 Adjust copyright year.
10431
a1b9830c
DJ
104322002-03-21 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10435 in a function to cover the entire beginning of the function
10436 as well if it does not already.
10437
8b5790f2
TR
104382002-03-21 Tom Rix <trix@redhat.com>
10439
10440 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10441 (rs6000_ptrace64): Renamed from ptrace64.
10442
bdbe5747
MH
104432002-03-20 Martin M. Hunt <hunt@redhat.com>
10444
10445 * gdbserver/remote-utils.c (remote_open): Don't call
10446 getprotobyname, we're all using TCP here so just use
10447 IPPROTO_TCP.
7e336ba1 10448 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10449
104502002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10451
bdbe5747
MH
10452 * regcache.c (_initialize_regcache): No need to call
10453 build_regcache() at this time; it gets called whenever
10454 the gdbarch changes.
10455
7781cd62
DB
104562002-03-20 David O'Brien <obrien@FreeBSD.org>
10457
10458 * sparc-nat.c: Include sys/param.h where possible.
10459
f65ca430
DJ
104602002-03-20 Daniel Jacobowitz <drow@mvista.com>
10461
10462 Fix PR gdb/422.
10463 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10464 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10465 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10466 complex types.
10467 * stabsread.c (rs6000_builtin_type): Likewise.
10468 (read_sun_floating_type): Likewise.
10469
0c867556
PS
104702002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10471
10472 * stabsread.c (read_member_functions): Remove skip code for duplicate
10473 constructor/destructor methods. Use standard parsing for these
10474 methods and just do not chain them to the list of methods after
10475 parsing.
10476
12b9c64f
AO
104772002-03-19 Alexandre Oliva <aoliva@redhat.com>
10478
10479 * coffread.c: Remove redundant static declarations. Replace
10480 occurrences of `PTR' with `void *'.
10481 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10482 * top.h (quit_cover): Likewise.
10483 * defs.h (catch_errors): Likewise.
10484
349c5d5f
AC
104852002-03-18 Andrew Cagney <ac131313@redhat.com>
10486
10487 * defs.h (XMALLOC): Define.
10488 * gdb-events.sh (XMALLOC): Delete macro.
10489 * gdb-events.c, gdb-events.h: Regenerate.
10490 * gdbarch.sh (XMALLOC): Delete macro.
10491 * gdbarch.c: Regenerate.
10492 * serial.c (XMALLOC): Delete macro.
10493 * ui-file.c (XMALLOC): Ditto.
10494 * ser-unix.h (XMALLOC): Ditto.
10495 * sh-tdep.c (XMALLOC): Ditto.
10496 * ui-out.c (XMALLOC): Ditto.
10497 * utils.c (XMALLOC): Ditto.
10498 * i386-tdep.c (XMALLOC): Ditto.
10499 * gdb-events.c (XMALLOC): Ditto.
10500 * d10v-tdep.c (XMALLOC): Ditto.
10501 * cli-out.c (XMALLOC): Ditto.
10502
10503 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10504 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10505 * ui-file.c, ui-out.c: Ditto.
10506
7d0766f3
AC
105072002-03-18 Andrew Cagney <ac131313@redhat.com>
10508
10509 * command.h (struct cmd_list_element): Add field context.
10510 (set_cmd_context, get_cmd_context): Declare.
10511 * cli/cli-decode.h: Ditto.
10512 * cli/cli-decode.c (get_cmd_context): New function.
10513 (set_cmd_context): New function.
10514 (add_cmd): Initialize context.
10515 Part of fixing PR gdb/145 and PR gdb/146.
10516
5913bcb0
AC
105172002-03-17 Andrew Cagney <ac131313@redhat.com>
10518
1868c04e
AC
10519 * cli/cli-decode.c (cmd_type): New function.
10520 * command.h (cmd_type): Declare.
10521 * infrun.c (set_schedlock_func): Call function cmd_type.
10522 * kod.c (kod_set_os): Call cmd_type.
10523 * cris-tdep.c (cris_version_update): Use function cmd_type.
10524 (cris_mode_update, cris_abi_update): Ditto.
10525
5913bcb0
AC
10526 * command.h: (execute_cmd_post_hook): Declare.
10527 (execute_cmd_pre_hook): Declare.
10528 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10529 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10530 functions. Execute pre/post hook while ensuring that afterwords
10531 hook_in is cleared.
10532 * top.c (execute_command): Use execute_cmd_post_hook, and
10533 execute_cmd_pre_hook to execute pre/post commands.
10534 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10535 hook_stop_stub.
10536 (hook_stop_stub): Call execute_cmd_pre_hook.
10537
b51450c9
AC
105382002-03-17 Andrew Cagney <ac131313@redhat.com>
10539
10540 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10541 set'' and this leads to a core dump. Move xstrdup of
10542 operating_system to after check that it is not NULL.
10543
f66c9f11
AC
105442002-03-17 Andrew Cagney <ac131313@redhat.com>
10545
8e694ecf
AC
10546 * kod.c (kod_set_os): Remove unnecessary check that
10547 ``command->type'' is set_cmd.
10548
f66c9f11
AC
10549 * valprint.c (set_input_radix): Use input_radix.
10550 (set_output_radix): Use output_radix.
10551 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10552 isn't reverted.
10553
9d01611c
AC
105542002-03-16 Andrew Cagney <ac131313@redhat.com>
10555
10556 * value.h (struct value): Delete field ``substring_addr''. Change
10557 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10558 force_core_addr_align and force_pointer_aligh.
10559
10560 * value.h (struct value): Fix typo in above change.
9d01611c 10561
4156bb53
PS
105622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10563
10564 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10565 to fix internal_error from ``maintenance print architecture''.
10566
0e5e3ea6
PS
105672002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10568
10569 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10570 for gcc versions after gcc-2.8.1.
10571
9b013045
PS
105722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10573
10574 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10575 for method resolution. Restore adjustment of ``this'' pointer after
10576 calling value_struct_elt, which was accidentally removed during the
10577 HP merge.
10578
376c9600
AC
105792002-03-15 Andrew Cagney <ac131313@redhat.com>
10580
10581 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10582 value_of_register.
10583 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10584 get_saved_register.
10585 * value.h (value_of_register): Update.
10586
a4db0f07
RH
105872002-03-14 Richard Henderson <rth@redhat.com>
10588
10589 * configure.in: Detect declaration for canonicalize_file_name.
10590 * utils.c (canonicalize_file_name): Declare, if needed.
10591 (gdb_realpath): Prefer realpath if available and usable.
10592 * config.in, configure: Rebuild.
10593
96383835
RH
105942002-03-14 Richard Henderson <rth@redhat.com>
10595
10596 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10597 a constant array bound.
10598
10599 * MAINTAINERS: Add myself to write-after-approval.
10600
75245b24
MS
106012002-03-14 Michael Snyder <msnyder@redhat.com>
10602
10603 * symfile.c (syms_from_objfile): Return immediately if no syms.
10604 (symbol_file_add): Return immediately if no syms.
10605 (find_sym_fns): Return immediately if no syms.
10606
e641a1ca
ML
106072002-03-13 Michal Ludvig <mludvig@suse.cz>
10608
10609 * gdbserver/remote-util.c (remote_open): Print remote-side's
10610 IP address when remote debugging over the network.
7e336ba1 10611
df08bfec
DB
106122002-03-12 David O'Brien <obrien@FreeBSD.org>
10613
10614 * config/sparc/fbsd.mh: Fix copyright.
10615 * config/sparc/fbsd.mt: Likewise.
10616
9a57864f
RE
106172002-03-11 Richard Earnshaw <rearnsha@arm.com>
10618
10619 * MAINTAINERS: Fix typo in name of gdb warnings option.
10620 (x86-64): Fix formating so that this can be parsed by awk.
10621
dd7bf85e
DJ
106222002-03-10 Daniel Jacobowitz <drow@mvista.com>
10623
10624 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10625 * defs.h: Include "gdb/signals.h".
10626 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10627
33a0a2ac
ML
106282002-03-10 Michal Ludvig <mludvig@suse.cz>
10629
10630 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10631 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10632 from x86-64-tdep.h
10633
dd824b04
DJ
106342002-03-10 Daniel Jacobowitz <drow@mvista.com>
10635 Don Howard <dhoward@redhat.com>
10636
10637 * mips-tdep.c (ST0_FR): Define.
10638 (mips2_fp_compat): New function, temporarily disabled.
10639 (mips_read_fp_register_single): New function.
10640 (mips_read_fp_register_double): New function.
10641 (mips_print_register): Use them.
10642 (do_fp_register_row): Likewise.
10643
6a41ff59
AC
106442002-03-09 Andrew Cagney <ac131313@redhat.com>
10645
10646 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10647 approval''.
10648
4ea09c10
PS
106492002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10650
10651 * stabsread.c (read_member_functions): Fix is_stub test for
10652 static member functions, improve comment.
10653
6ccc741d
RE
106542002-03-07 Richard Earnshaw <rearnsha@arm.com>
10655
10656 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10657 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10658 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10659 commands that set boolean values.
10660 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10661 (arm_rdi_resume): Always initialize PC.
10662 (arm_rdi_open): Don't use rslt as a boolean.
10663 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10664 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10665 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10666 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10667
438013df
AO
106682002-03-06 Alexandre Oliva <aoliva@redhat.com>
10669
10670 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10671 * configure: Rebuilt.
10672
70ed8774
SC
106732002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10674
10675 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10676 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10677
5ba2abeb
AC
106782002-03-06 Andrew Cagney <ac131313@redhat.com>
10679
10680 * cli/cli-decode.c (set_cmd_completer): New function.
10681 * command.h (set_cmd_completer): Declare.
10682 * cli/cli-decode.h (set_cmd_completer): Ditto.
10683
10684 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10685 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10686 * win32-nat.c (_initialize_inftarg): Ditto.
10687 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10688 * proc-api.c (_initialize_proc_api): Ditto.
10689 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10690 * source.c (_initialize_source): Ditto.
10691 * exec.c (_initialize_exec): Ditto.
10692 * solib.c (_initialize_solib): Ditto.
10693 * top.c (init_main): Ditto.
10694 * tracepoint.c (_initialize_tracepoint): Ditto.
10695 * symfile.c (_initialize_symfile): Ditto.
10696 * printcmd.c (_initialize_printcmd): Ditto.
10697 * infcmd.c (_initialize_infcmd): Ditto.
10698 * corefile.c (_initialize_core): Ditto.
10699
f779ca99
AC
107002002-03-05 Andrew Cagney <ac131313@redhat.com>
10701
10702 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10703
01a3934b
AC
107042002-03-05 Andrew Cagney <ac131313@redhat.com>
10705
10706 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10707
37057839
AC
107082002-03-05 Andrew Cagney <ac131313@redhat.com>
10709
10710 * NEWS: Update headings, 5.2 has branched.
10711
c6ecbae5
DJ
107122002-03-04 Daniel Jacobowitz <drow@mvista.com>
10713
10714 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10715 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10716 (register_addr, REGISTER_RAW_SIZE): Likewise.
10717 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10718 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10719
e9f30c21
ML
107202002-03-03 Michal Ludvig <mludvig@suse.cz>
10721
10722 * MAINTAINERS (x86-64): Add myself.
10723 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10724 changed value_ptr -> struct value *
10725
54394ac3
DB
107262002-03-01 David O'Brien <obrien@FreeBSD.org>
10727
10728 * configure.host (sparc64-*-freebsd): Add.
10729 * configure.tgt: Likewise.
10730 * config/sparc/fbsd.mh: New file.
10731 * config/sparc/fbsd.mt: Likewise.
10732 * config/sparc/nm-fbsd.h: Likewise.
10733 * config/sparc/tm-fbsd.h: Likewise.
10734
bfe95955
DJ
107352002-03-01 Daniel Jacobowitz <drow@mvista.com>
10736
10737 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10738 regformats/reg-s390x.dat.
10739
f33c6cbf
AC
107402002-03-01 Andrew Cagney <ac131313@redhat.com>
10741
10742 * utils.c: Add FIXME explaining true/false problem.
10743
5ecaa7dd
AC
107442002-02-28 Andrew Cagney <ac131313@redhat.com>
10745
10746 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10747
2a251cc2
MC
107482002-02-28 Michael Chastain <mec@shout.net>
10749
10750 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10751
6a8031a3 107522002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10753
10754 * gdbserver/linux-s390-low.c: New file.
10755 * regformats/reg-s390.dat: New file.
10756 * regformats/reg-s390x.dat: New file.
10757 * gdbserver/configure.srv: Add S/390.
10758 * gdbserver/Makefile.in: Add S/390.
10759 * configure.tgt: Enable gdbserver for S/390.
10760
ac469903
EZ
107612002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10762
10763 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10764 first line of the doc string for "info dos", except at the end of
10765 the sentence, since the short help stops at the first period.
10766
985cb1a3
JM
107672002-02-28 Jason Merrill <jason@redhat.com>
10768
10769 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10770
c570663e
FF
107712002-02-27 Fred Fish <fnf@redhat.com>
10772
10773 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10774 comment (dumy -> dummy).
10775
43630227
PS
107762002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10777
10778 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10779
b84911e8
RB
107802002-02-27 Rodney Brown <rbrown64@csc.com.au>
10781
10782 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10783
58caa3dc
DJ
107842002-02-27 Daniel Jacobowitz <drow@mvista.com>
10785
10786 * gdbserver/acconfig.h: New file.
10787 * gdbserver/i387-fp.c: New file.
10788 * gdbserver/i387-fp.h: New file.
10789 * gdbserver/linux-x86-64.c: New file.
10790 * regformats/reg-x86-64.dat: New file.
10791 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10792 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10793 * gdbserver/configure.in: Add support for regsets.
10794 * gdbserver/config.in: Regenerate.
10795 * gdbserver/configure: Regenerate.
10796 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10797 * gdbserver/linux-low.h: New file.
10798 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10799 for regsets.
10800 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10801 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10802 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10803 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10804 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10805 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10806 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10807 "i387-fp.h". Add PTRACE_GETREGS and friends.
10808 * gdbserver/regcache.c (supply_register): New function.
10809 (supply_register_by_name): New function.
10810 (collect_register): New function.
10811 (collect_register_by_name): New function.
10812
93652174
DJ
108132002-02-27 Daniel Jacobowitz <drow@mvista.com>
10814
10815 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10816 (config.status): Add configure.srv dependency.
10817 (server_h): Add config.h dependency.
10818
a02e4a61
DJ
108192002-02-27 Daniel Jacobowitz <drow@mvista.com>
10820
10821 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10822 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10823 * gdbserver/configure.srv: Change i386-*-linux* to use
10824 reg-i386-linux.o.
10825
ce0eebec
AC
108262002-02-26 Andrew Cagney <ac131313@redhat.com>
10827
10828 * x86-64-tdep.c: Re-indent. Update copyright date.
10829
82dbc5f7
AC
108302002-02-26 Andrew Cagney <ac131313@redhat.com>
10831
10832 From Michal Ludvig <mludvig@suse.cz>:
10833 * x86-64-tdep.c (value.h): Delete.
10834 (gdb_assert.h): Include.
10835 (x86_64_register_convert_to_virtual,
10836 x86_64_register_convert_to_raw ): Add check which lets only
10837 floating-point values to be converted.
10838 (value_push): Delete.
10839 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10840 (i386_gdbarch_init): Number of register_bytes fixed.
10841
e4621584
AC
108422002-02-26 Andrew Cagney <ac131313@redhat.com>
10843
10844 * MAINTAINERS: Add x86-64 target.
10845
81a9a963
AC
108462002-02-26 Andrew Cagney <ac131313@redhat.com>
10847
10848 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10849 * osfsolib.c (solib_map_sections): Ditto.
10850 * irix5-nat.c (solib_map_sections): Ditto.
10851 * corelow.c (gdb_check_format): Ditto.
10852 * symfile.c (symfile_bfd_open): Ditto.
10853 * solib.c (solib_map_sections): Ditto.
10854 Fix PR gdb/354.
7e336ba1 10855
0f017ab9
AC
108562002-02-26 Andrew Cagney <ac131313@redhat.com>
10857
10858 * remote.c (_initialize_remote): By default, disable ``e'' and
10859 ``E'' step out-of-range packets.
10860
75738c29
AS
108612002-02-26 Andreas Schwab <schwab@suse.de>
10862
10863 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10864 m68k_linux_frame_saved_pc.
10865 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10866 in_sigtramp.
10867 (SIGCONTEXT_PC_OFFSET): Remove.
10868 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10869 m68k_linux_sigtramp_saved_pc): New functions.
10870 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10871 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10872 (UCONTEXT_PC_OFFSET): Define.
10873 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10874 non-RT and RT signal trampolines.
10875
7e8ed687
RE
108762002-02-26 Richard Earnshaw <rearnsha@arm.com>
10877
10878 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10879 (TARGET_NBPG, STACK_END_ADDR): Delete
10880 (VARIABLES_INSIDE_BLOCK): Delete.
10881
6972bc8b
AC
108822002-02-25 Andrew Cagney <ac131313@redhat.com>
10883
10884 * utils.c (perror_with_name): Make string parameter constant.
10885 (print_sys_errmsg): Ditto.
10886 (query): Ditto.
10887 * defs.h (perror_with_name): Update.
10888 (print_sys_errmsg): Update.
10889 (query): Update.
10890
aa32f823
DJ
108912002-02-25 Daniel Jacobowitz <drow@mvista.com>
10892
10893 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10894 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10895
19caaa45
PS
108962002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10897
10898 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10899 if it already matches the current architecture from the exec file.
10900 Include arch-utils.h for gdbarch_info_init prototype.
10901 * Makefile.in (rs6000-nat.o): Update dependencies.
10902
d951901f
EZ
109032002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10904
10905 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10906 list of exported variables.
10907
7ea81414
DJ
109082002-02-24 Daniel Jacobowitz <drow@mvista.com>
10909
10910 * gdbserver/configure.srv: New file.
10911 * gdbserver/configure.in: Use configure.srv instead
10912 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10913 from it.
10914 * gdbserver/configure: Regenerated.
10915 * gdbserver/terminal.h: New file.
10916 * gdbserver/Makefile.in: Update for configure changes. Remove
10917 more unneeded include paths.
10918
080fe24b
AC
109192002-02-24 Andrew Cagney <ac131313@redhat.com>
10920
10921 From wiz at danbala:
10922 * config/sparc/tm-sp64.h: Fix grammar and typos.
10923 Fix PR gdb/287.
10924
8605d56e
AC
109252002-02-24 Andrew Cagney <ac131313@redhat.com>
10926
10927 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10928 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10929 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10930 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10931 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10932 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10933 * s390-tdep.c: Ditto.
92362027
AC
10934 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10935 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10936 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10937 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10938 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10939 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10940 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10941 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10942 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10943 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10944 Fix PR gdb/378.
7e336ba1 10945
8ed32cc0
AC
109462002-02-23 Andrew Cagney <ac131313@redhat.com>
10947
a3007b6f
AC
10948 * lin-thread.c: Delete file.
10949 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10950 to gdb_proc_service.h.
10951 * configure: Re-generate.
10952
50a9e2f1
AC
10953 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10954 * serial.c (serial_open): Delete check for "ocd".
10955 Fix PR gdb/349.
10956
8b6e7932
AC
10957 * Makefile.in (linux-thread.o): Delete target.
10958 * linux-thread.c: Delete file.
10959
d155c46b
AC
10960 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10961 renamed SH files to be consistent.
10962
8ed32cc0
AC
10963 * symtab.c (sort_search_symbols): Use xfree.
10964
0e18d038
RE
109652002-02-23 Richard Earnshaw <rearnsha@arm.com>
10966
10967 * arm-linux-tdep.c (arm_linux_init_abi): Register
10968 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10969 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10970 definition with undef, since we don't want the sysvr4 definition.
10971 (SKIP_TRAMPOLINE_CODE): Likewise.
10972
27aac7ff
AC
109732002-02-23 Andrew Cagney <ac131313@redhat.com>
10974
10975 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10976
10977 * configure.in: (AC_CHECK_FUNCS) Added test for
10978 canonicalize_file_name Regenerated.
10979 * config.in, configure: Regenerated.
10980 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10981 defined use canonicalize_file_name.
7e336ba1 10982
65a6e0ee
MC
109832002-02-23 Michael Chastain <mec@shout.net>
10984
10985 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10986
47b95330
AC
109872002-02-23 Andrew Cagney <ac131313@redhat.com>
10988
10989 * README: Remove references to cygnus.com.
10990 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10991 dot com'' form. Remove references to cygnus.com and sourceware.
10992
696f451b
AC
109932002-02-23 Andrew Cagney <ac131313@redhat.com>
10994
10995 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10996 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10997 1003.1-2001 no longer allows "head -1".
10998 * gdb/Makefile.in (version.c): Likewise.
10999 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11000 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11001 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11002
bbaca940
AC
110032002-02-23 Andrew Cagney <ac131313@redhat.com>
11004
11005 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11006 * command.h (cmd_cfunc_eq): Declare.
11007 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11008
11009 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11010 ``struct cmd_list_element *''.
11011 * cli/cli-cmds.c (is_complete_command): Update. Use
11012 cmd_cfunc_eq.
11013 * top.c (execute_command): Pass the command to
11014 is_complete_command.
11015 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11016
b8b8b047
AC
110172002-02-23 Andrew Cagney <ac131313@redhat.com>
11018
11019 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11020 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11021 architecture defines.
11022 * s390-tdep.c (s390_gdbarch_init): Likewise.
11023
19d3fc80
RE
110242002-02-23 Richard Earnshaw <rearnsha@arm.com>
11025
11026 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11027 (arm_linux_push_arguments): Likewise.
11028 (arm_linux_init_abi): Register them. Also register linux-specific
11029 call_dummy_words.
11030 (find_minsym_and_objfile): Use strcmp, not STREQ.
11031 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11032 (arm_linux_call_dummy_words): Delete declaration.
11033 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11034 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11035 declarations.
11036 (LOWEST_PC): Delete.
11037
3ab13650
PS
110382002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11039
11040 * maint.c (print_section_info): Do not prepend `0x' to filepos
11041 output, it will be handled by local_hex_string_custom.
11042
19d3fc80 110432002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11044
11045 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11046 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11047 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11048
d85a5daf
JB
110492002-02-22 Jim Blandy <jimb@redhat.com>
11050
11051 Indicate that the bcache functions don't change the strings
11052 they're passed.
11053 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11054 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11055
eeb25b8a
PM
110562002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11057
11058 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11059
6badb179
CF
110602002-02-21 Christopher Faylor <cgf@redhat.com>
11061
11062 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11063 find the complete path to a loaded DLL.
11064
e8717518
FF
110652002-02-21 Fred Fish <fnf@redhat.com>
11066
11067 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11068 that marks the end of the range of a function, enter a line number
11069 entry that has a line number of zero and a PC offset that matches
11070 the end of the function. This starts a range of PC's for which no
11071 line number information is known.
11072 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11073 PC's for which no line number info is found (line number is zero)
11074 then we didn't find any valid line information.
11075 * symtab.h: Document use of zero line number entry.
11076
9abe5450
EZ
110772002-02-21 Elena Zannoni <ezannoni@redhat.com>
11078
11079 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11080 (have_ptrace_getvrregs): Define for run time checks.
11081 (gdb_vrregset_t): New type for Altivec register handling.
11082 (fetch_register, store_register): Fetch/store altivec register
11083 when needed.
11084 (fetch_altivec_register, store_altivec_register): New functions.
11085 (supply_vrregset, fill_vrregset): New functions.
11086 (fetch_altivec_registers, store_altivec_registers): New functions.
11087 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11088 registers as well.
11089
aaa38bb5
AJ
110902002-02-21 Jiri Smid <smid@suse.cz>
11091
11092 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11093
b34db576
RE
110942002-02-21 Richard Earnshaw <rearnsha@arm.com>
11095
11096 * Makefile.in (armnbsd-nat.o): Update dependencies.
11097 * armnbsd-nat.c (supply_gregset): New function. Common code to
11098 supply the integer register set.
11099 (supply_fparegset): New function. Similar for FPA registers.
11100 (fetch_regs, fetch_fp_regs): Use them.
11101 (fetch_core_registers): Likewise.
11102 (fetch_elfcore_registers): New function.
11103 (arm_netbsd_elfcore_fns): New core-file type specification.
11104 (_initialize_arm_netbsd_nat): Register it.
11105
3e56fc4b
RE
111062002-02-21 Richard Earnshaw <rearnsha@arm.com>
11107
11108 * armnbsd-nat.c: Include gdbcore.h.
11109 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11110 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11111 'void' to declaration, to shut up ARI.
11112 (fetch_core_registers): Make static. Rewrite using supply_register.
11113 (arm_netbsd_core_fns): New core-file type specification.
11114 (_initialize_arm_netbsd_nat): New function.
11115
097f6b0b
CF
111162002-02-21 Christopher Faylor <cgf@redhat.com>
11117
11118 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11119 value.
11120
c914e0cc
CF
111212002-02-20 Christopher Faylor <cgf@redhat.com>
11122
11123 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11124 fails.
11125
385fa495
DJ
111262002-02-20 Daniel Jacobowitz <drow@mvista.com>
11127
11128 * jv-exp.y (parse_number): Change type of implicit longs
11129 to builtin_type_uint64.
11130
e5f1222d
DJ
111312002-02-20 Daniel Jacobowitz <drow@mvista.com>
11132
11133 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11134 to be an integer instead of a `union wait'.
11135
75c9abc6
DJ
111362002-02-20 Daniel Jacobowitz <drow@mvista.com>
11137
11138 * mips-linux-nat.c: Call the operating system GNU/Linux.
11139 * mips-linux-tdep.c: Likewise.
11140 * mips-tdep.c: Likewise.
11141
551792a5
DJ
111422002-02-20 Daniel Jacobowitz <drow@mvista.com>
11143
11144 Fix PR gdb/265.
11145 * jv-exp.y (parse_number): Handle 64-bit integers.
11146
ee6e2b82
DJ
111472002-02-20 Daniel Jacobowitz <drow@mvista.com>
11148
11149 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11150 AC_STDC_HEADERS to AC_HEADER_STDC.
11151 * gdbserver/configure: Regenerated.
11152
a48442a0
RE
111532002-02-20 Richard Earnshaw <rearnsha@arm.com>
11154
11155 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11156 is defined.
11157 * sparc-tdep.c (get_longjmp_target): Likewise.
11158
fe419ffc
RE
111592002-02-20 Richard Earnshaw <rearnsha@arm.com>
11160
11161 * News: Add news about ARM and Multi-arch. Mention the new target
11162 arm*-*-netbsd*.
11163
5832ed7e
JB
111642002-02-19 Jim Blandy <jimb@redhat.com>
11165
11166 * stabsread.c (error_type_complaint): Improve error message.
11167
84563040
DJ
111682002-02-19 Daniel Jacobowitz <drow@mvista.com>
11169
11170 * gdbserver/README: Update documentation.
11171 * gdbserver/configure.in: Update configury to match documentation.
11172 * gdbserver/Makefile.in: Likewise.
11173 * gdbserver/configure: Regenerated.
11174 * gdbserver/aclocal.m4: New file, generated by aclocal.
11175 * gdbserver/config.in: New file, generated by autoheader.
11176
375fd65b
RE
111772002-02-19 Richard Earnshaw <rearnsha@arm.com>
11178
11179 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11180 armnbsd-nat.c.
11181
08216dd7
RE
111822002-02-19 Richard Earnshaw <rearnsha@arm.com>
11183
11184 * arm-tdep.h (enum arm_float_model): New enum.
11185 (struct gdbarch_tdep): Add fp_model.
11186 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11187 up floating-point conversions until we know the floating-point model
11188 in use by the inferior. Don't complain about being unable to
11189 determine the ABI of the inferior when we don't have one.
11190 (arm_extract_return_value): Support different floating-point models.
11191 (arm_store_return_value): Likewise.
aaa38bb5 11192 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11193 ARM_FLOAT_SOFT.
11194 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11195
65d6d66a
PS
111962002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11197
11198 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11199 of ``current_gdbarch''.
11200
47221191
RE
112012002-02-19 Richard Earnshaw <rearnsha@arm.com>
11202
11203 * armnbsd-nat.c : ANSIfy all function declarations.
11204 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11205 (fetch_inferior_registers): Re-implement in terms of above.
11206 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11207 (store_inferior_registers): Re-implement in terms of above.
11208
fdf39c9a
RE
112092002-02-19 Richard Earnshaw <rearnsha@arm.com>
11210
aaa38bb5 11211 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11212 kernel.
11213 * arm-linux-tdep.c: Likewise.
11214 * config/arm/tm-linux.h: Likewise.
11215
93247f88
RE
112162002-02-19 Richard Earnshaw <rearnsha@arm.com>
11217
11218 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11219 * config/arm/nbsd.mt (TM_FILE): Delete.
11220 * config/arm/tm-nbsd.h: Delete.
11221
d7b486e7
RE
112222002-02-19 Richard Earnshaw <rearnsha@arm.com>
11223
11224 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11225 Initialize CALL_DUMMY_LENGTH.
11226
41d39a95
RE
112272002-02-19 Richard Earnshaw <rearnsha@arm.com>
11228
11229 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11230 function.
11231 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11232 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11233 defines one thing and that is incorrect for this port.
11234 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11235
e1195560
PM
112362002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11237
11238 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11239
c1748f97
PM
112402002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11241
11242 * win32-nat.c (display_selector): New function. Displays information
11243 about the information returned by GetThreadSelectorEntry API function.
11244 (display_selectors): New function. Displays the infomation of
11245 the selector given as argument, or of CS, DS ans FS selectors
11246 if no argument is given.
11247 ( _initialize_inftarg): Add "w32" as info prefix command.
11248 Add "info w32 selector" as command calling display_selectors.
11249
e41e6bbf
PM
112502002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11251
11252 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11253 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11254 if not defined.
11255
0d3a9f48
RE
112562002-02-18 Richard Earnshaw <rearnsha@arm.com>
11257
11258 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11259
3fb4b924
RE
112602002-02-18 Richard Earnshaw <rearnsha@arm.com>
11261
11262 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11263 (arm_fix_call_dummy): Call it.
11264 (arm_call_dummy_breakpoint_offset): Delete.
11265 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11266 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11267
7f55af32
AC
112682002-02-18 Andrew Cagney <ac131313@redhat.com>
11269
11270 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11271 Default to func_frame_chain_valid.
11272 * gdbarch.h, gdbarch.c: Re-generate.
11273 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11274
05f13b9c
EZ
112752002-02-18 Elena Zannoni <ezannoni@redhat.com>
11276
11277 * ppc-linux-nat.c: Update copyright.
11278 (fetch_register, store_register): Add tid parameter, don't compute
11279 tid here.
11280 (fetch_ppc_registers, store_ppc_registers): Add tid
11281 parameter. Pass it along to callees.
11282 (fetch_inferior_registers, store_inferior_registers): Compute tid
11283 here, and pass it to calleed functions.
11284 (fill_gregset, supply_fpregset): Clean up formatting.
11285
d7afb4c9
RE
112862002-02-18 Richard Earnshaw <rearnsha@arm.com>
11287
11288 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11289 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11290
9df628e0
RE
112912002-02-18 Richard Earnshaw <rearnsha@arm.com>
11292
11293 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11294 * gdbarch.c gdbarch.h: Regenerate.
11295 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11296 function.
11297 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11298 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11299 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11300
11301 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11302 * arm-tdep.c (arm_get_longjmp_target): New function.
11303 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11304 this to a positive value register arm_get_longjmp_target as the
11305 longjmp handler.
11306 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11307 (arm_linux_init_abi): Set up longjmp description in tdep.
11308 * armnbsd-nat.c (get_longjmp_target): Delete.
11309 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11310 description in tdep.
11311 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11312 (get_longjmp_target): Delete declaration.
11313 (GET_LONGJMP_TARGET): Delete.
11314 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11315 (GET_LONGJMP_TARGET): Delete.
11316
57bc8964
KB
113172002-02-17 Kevin Buettner <kevinb@redhat.com>
11318
11319 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11320 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11321 of ``current_gdbarch''.
11322
83d31a92
TT
113232002-02-17 Tom Tromey <tromey@redhat.com>
11324
11325 * cli/cli-cmds.c (compare_strings): New function.
11326 (complete_command): Only print each unique item once.
11327 * completer.h (complete_line): Declare.
11328 * completer.c (complete_line): New function.
11329 (line_completion_function): Use it.
11330
17ef5d92
AC
113312002-02-16 Andrew Cagney <ac131313@redhat.com>
11332
11333 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11334 * gdbarch.h, gdbarch.c: Re-generate.
11335
491b8946
DJ
113362002-02-16 Daniel Jacobowitz <drow@mvista.com>
11337
11338 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11339
113402002-02-16 Daniel Jacobowitz <drow@mvista.com>
11341
11342 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11343 * valops.c (value_arg_coerce): Don't take the address of a reference
11344 to convert an argument to a reference.
11345
dfe7f3ac
CF
113462002-02-15 Christopher Faylor <cgf@redhat.com>
11347
11348 * win32-nat.c (get_image_name): New function.
11349 (handle_load_dll): Use get_image_name function.
11350 (get_child_debug_event): Avoid registering debug events until possibly
11351 execed process is started.
11352 (child_create_inferior): Allow invocation via shell so that command
11353 line redirection, etc. works ok.
11354 (_initialize_inftarg): Add new command: "set shell" to control whether
11355 a shell is used to start a process.
11356
1d33e73a
DJ
113572002-02-15 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11360 instead of find_register_by_number.
11361 (cannot_store_register): Likewise.
11362
48cd0caa
PM
113632002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11364
aaa38bb5 11365 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11366 fprintf_unfiltered (gdb_stderr, ...).
11367
8656e7d8
DJ
113682002-02-15 Daniel Jacobowitz <drow@mvista.com>
11369
11370 * gdbserver/gdbserver.1: Document --attach.
11371
66e810cd
RE
113722002-02-15 Richard Earnshaw <rearnsha@arm.com>
11373
11374 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11375 descriptions.
11376 * arm-tdep.c (arm_default_arm_le_breakpoint)
11377 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11378 (arm_default_thumb_be_breakpoint): New. Initialize them from
11379 traditional breakpoint defines.
11380 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11381 (arm_gdbarch_init): Initialize new breakpoint variables.
11382 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11383 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11384 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11385 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11386 code out to ...
11387 (arm_netbsd_init_abi_common): ... here; new function.
11388 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11389 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11390 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11391 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11392
97e03143
RE
113932002-02-15 Richard Earnshaw <rearnsha@arm.com>
11394
11395 * arm-tdep.h (enum arm_abi): New enum.
11396 (struct gdbarch_tdep): New structure.
11397 (LOWEST_PC): Provide a default.
11398 (arm_gdbarch_register_os_abi): Declare new function.
11399 * arm-tdep.c (arm_abi_names): New array.
11400 (process_note_abi_tag_sections): New function.
11401 (get_elfosabi): New function.
11402 (arm_gdbarch_register_os_abi): New function.
11403 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11404 support for that ABI has been built in, then call the appropriate
11405 configuration routine. Use gdbarch_num_regs() to get the number
11406 of registers.
11407 (arm_dump_tdep): New function.
11408 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11409 place-holder functions.
11410 (_initialize_arm_tdep): Register them.
11411 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11412
11413 * armnbsd-tdep.c: New file.
11414 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11415 * config/arm/nbsd.mt (TDEPFILES): Add it.
11416 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11417
11418 * armnbsd-nat.c: Include regcache.h.
11419 * Makefile.in (armnbsd-nat.o): Update dependency list.
11420
11421 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11422
ad68be46
DJ
114232002-02-14 Daniel Jacobowitz <drow@mvista.com>
11424
11425 * gdbserver/Makefile.in: Fix typos in target rules.
11426
003d6d1d
DJ
114272002-02-14 Daniel Jacobowitz <drow@mvista.com>
11428
aaa38bb5 11429 Fix part of PR gdb/267.
003d6d1d
DJ
11430 * linespec.c (find_methods): Handle constructors specially for now.
11431
6b230f1b
CV
114322002-02-14 Corinna Vinschen <vinschen@redhat.com>
11433
11434 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11435 handling.
11436 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11437 standard_coerce_float_to_double().
11438
1ea98d12
CF
114392002-02-14 Christopher Faylor <cgf@redhat.com>
11440
11441 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11442 GDBINIT_FILENAME.
11443
dd47e6fd
EZ
114442002-02-14 Elena Zannoni <ezannoni@redhat.com>
11445
11446 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11447 find_variant_by_name, because it confuses the multiarch
11448 framework. Return NULL if there isn't an architecture with the
11449 user supplied name, instead of forcing a different one without
11450 recording the change with the multiarch machinery.
11451 (find_variant_by_name): Delete.
11452
d7e39b9e
PS
114532002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11454
11455 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11456 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11457
76e42a4f
MH
114582002-02-13 Martin M. Hunt <hunt@redhat.com>
11459
aaa38bb5 11460 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11461 print_frame_info_listing_hook, set current_source_symtab.
11462
0a30fbc4
DJ
114632002-02-14 Daniel Jacobowitz <drow@mvista.com>
11464
11465 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11466 and remove unused $(INCLUDE_DIR).
11467 Add regcache.c to OBS.
11468 Add generated register protocol files to clean target.
11469 Update dependencies for new objects, obsolete old target code.
11470
11471 * gdbserver/linux-low.c: Remove all platform-specific code to
11472 new files. Remove various dead code. Update to use regcache
11473 functionality.
11474 * gdbserver/remote-utils.c (fromhex): Add return statement
11475 to quiet warning.
11476 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11477 constant.
11478 (input_interrupt): Add integer parameter to match prototype
11479 of a signal handler.
11480 (outreg): Use register_data ().
11481 (prepare_resume_reply): Use gdbserver_expedite_regs.
11482 * gdbserver/server.c (main): Dynamically allocate own_buf because
11483 PBUFSIZ is no longer constant. Use registers_to_string () and
11484 registers_from_string ().
11485 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11486 for error (), fatal (), and warning (). Update definition of
11487 PBUFSIZ to use regcache functionality. Add include guard.
11488 * gdbserver/utils.c (fatal): Add missing ``const''.
11489 (warning): New function.
11490
11491 * regformats/regdat.sh: Include "regcache.h" in generated files.
11492 Provide init_registers () function.
11493 * regformats/regdef.h: Add prototype for set_register_cache ().
11494 Add include guard.
11495
11496 * gdbserver/linux-arm-low.c: New file.
11497 * gdbserver/linux-i386-low.c: New file.
11498 * gdbserver/linux-ia64-low.c: New file.
11499 * gdbserver/linux-m68k-low.c: New file.
11500 * gdbserver/linux-mips-low.c: New file.
11501 * gdbserver/linux-ppc-low.c: New file.
11502 * gdbserver/linux-sh-low.c: New file.
11503
11504 * gdbserver/regcache.c: New file.
11505 * gdbserver/regcache.h: New file.
11506
11507 * gdbserver/low-linux.c: Removed obsolete file.
11508
4cc841d0
DJ
115092002-02-14 Daniel Jacobowitz <drow@mvista.com>
11510
11511 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11512 * config/i386/linux.mt: Likewise.
11513 * config/ia64/linux.mt: Likewise.
11514 * config/m68k/linux.mh: Likewise.
11515 * config/powerpc/linux.mh: Likewise.
11516 * config/mips/linux.mt: Likewise.
11517
11518 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11519
11520 * config/i386/i386lynx.mh: Mark gdbserver variables
11521 as (currently) obsolete for this target.
11522 * config/i386/nbsd.mt: Likewise.
11523 * config/i386/nbsdelf.mt: Likewise.
11524 * config/m32r/m32r.mt: Likewise.
11525 * config/m68k/m68klynx.mh: Likewise.
11526 * config/m68k/nbsd.mt: Likewise.
11527 * config/m68k/sun3os4.mh: Likewise.
11528 * config/mips/vr5000.mt: Likewise.
11529 * config/ns32k/nbsd.mt: Likewise.
11530 * config/pa/hppabsd.mh: Likewise.
11531 * config/pa/hppaosf.mh: Likewise.
11532 * config/powerpc/nbsd.mt: Likewise.
11533 * config/rs6000/rs6000lynx.mh: Likewise.
11534 * config/s390/s390.mt: Likewise.
11535 * config/s390/s390x.mt: Likewise.
11536 * config/sparc/sparclynx.mh: Likewise.
11537 * config/sparc/sun4os4.mh: Likewise.
11538 * config/i386/x86-64linux.mt: Likewise.
11539 * config/sparc/linux.mh: Likewise.
11540
a85f51e7
DJ
115412002-02-14 Daniel Jacobowitz <drow@mvista.com>
11542
11543 * configure.tgt: Configure gdbserver only for known working
11544 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11545 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11546 SUBDIRS if it is configured. Update comment for ${nativefile}.
11547 * configure: Regenerated.
11548
65554fef
MS
115492002-02-13 Michael Snyder <msnyder@redhat.com>
11550
670a52db
MS
11551 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11552
6dbdc4a3
MS
11553 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11554 (default_gcore_mach): Just return 0, work around a problem in bfd.
11555 (default_gcore_target): OK to return NULL if exec_bfd is null.
11556 (make_mem_sec): Use a cast, avoid a warning.
11557
11558 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11559 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11560 sizeof (host pointer) != sizeof (target pointer)).
11561 (procfs_make_note_section): Avoid overflow in psargs string.
11562
aaa38bb5 11563 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11564 implementation return an error.
11565
115662002-02-13 Rodney Brown <rbrown64@csc.com.au>
11567
11568 * procfs.c (procfs_make_note_section): Provide a default definition
11569 (for alpha-dec-osf4.0f). Fix typos.
11570
1e4d76e7
EZ
115712002-02-13 Elena Zannoni <ezannoni@redhat.com>
11572
11573 * linux-proc.c: Add include of regcache.h.
11574 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11575
b6d1a1d5
AC
115762002-02-13 Andrew Cagney <ac131313@redhat.com>
11577
11578 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11579 * memattr.c (create_mem_region): Disallow useless empty region.
11580 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11581 non-overlapping.
b6d1a1d5 11582
6c6ea35e
MC
115832002-02-13 Michael Chastain <mec@shout.net>
11584
11585 * defs.h: Kill CONST_PTR.
11586 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11587 * c-lang.c (c_builtin_types): Likewise.
11588 * ch-lang.c (ch_builtin_types): Likewise.
11589 * f-lang.c (f_builtin_types): Likewise.
11590 * language.c (unknown_builtin_types): Likewise.
11591 * m2-lang.c (m2_builtin_types): Likewise.
11592 * p-lang.c (pascal_builtin_types): Likewise.
11593 * scm-lang.c (c_builtin_types): Likewise.
11594
3e0b0f48
KS
115952002-02-13 Keith Seitz <keiths@redhat.com>
11596
11597 * arm-tdep.h (arm_get_next_pc): Add declaration.
11598
67255d04
RE
115992002-02-13 Richard Earnshaw <rearnsha@arm.com>
11600
11601 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11602 with other related struct-returning functions.
11603 (arm_extract_struct_value_address): New function.
11604 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11605 initialize float_format, double_format and long_double_format as
11606 appropriate to the endianness of the target.
11607 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11608 (arm_use_struct_convention): Delete declaration.
11609 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11610
079777f6
KS
116112002-02-13 Keith Seitz <keiths@redhat.com>
11612
11613 * defs.h (core_addr_to_string_nz): New function.
11614
34588f23
MK
116152002-02-13 Mark Kettenis <kettenis@gnu.org>
11616
11617 Apply missing bits of 2002-01-15 patch.
11618 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11619 (fill_fpregset): Use i387_fill_fsave.
11620
49b563f9
KS
116212002-02-12 Keith Seitz <keiths@redhat.com>
11622
49b563f9
KS
11623 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11624 (core_addr_to_string_nz): New function.
11625
aeb98c60
RE
116262002-02-11 Richard Earnshaw <rearnsha@arm.com>
11627
11628 * arm-linux-nat.c: Really include arm-tdep.h.
11629 * config/arm/tm-linux.h (struct type, struct value): Declare.
11630
65554fef
MS
116312002-02-11 Michael Snyder <msnyder@redhat.com>
11632
11633 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11634 (gcore section): Ifdef for Solaris and Unixware only.
11635 (procfs_do_thread_registers): Unixware needs one lwpstatus
11636 per thread (not one prstatus or pstatus).
11637 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11638 not over all gdb threads. For unixware, call elfcore_write_pstatus
11639 once before iterating over threads.
11640
34e8f22d
RE
116412002-02-11 Richard Earnshaw <rearnsha@arm.com>
11642
11643 * arm-tdep.h: New file.
11644 * arm-tdep.c: Include arm-tdep.h.
11645 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11646 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11647 (arm_print_float_info, arm_register_type, convert_to_extended)
11648 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11649 (arm_extract_return_value, arm_register_name): Make static.
11650 (arm_software_single_step): Similarly. Fix types in declaration.
11651 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11652 (arm_store_return_value, arm_store_struct_return): New functions.
11653 (arm_gdbarch_init): Register the above functions. Also register
11654 call_dummy_start_offset, sizeof_call_dummy_words,
11655 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11656 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11657 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11658 prologue_cache.saved_regs here, rather than ...
11659 (_initialize_arm_tdep): ... here.
11660 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11661 declarations.
11662 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11663 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11664 (arm_print_float_info, arm_register_type, convert_to_extended)
11665 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11666 (arm_extract_return_value, arm_register_name): Delete declarations.
11667 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11668 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11669 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11670 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11671 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11672 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11673 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11674 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11675 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11676 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11677 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11678 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11679 interface.
11680 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11681 * remote-rdi.c remote-rdp.c: Likewise.
11682 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11683 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11684 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11685 definition.
11686
11687 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11688 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11689 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11690 from non-ARM_ prefixed definitions.
11691 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11692 all uses of above.
11693 * remote-rdi.c remote-rdp.c: Likewise.
11694 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11695
148754e5
RE
116962002-02-11 Richard Earnshaw <rearnsha@arm.com>
11697
11698 * arm-tdep.c (arm_frameless_function_invocation)
11699 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11700 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11701 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11702 (arm_pop_frame, arm_get_next_pc): Make static.
11703 (arm_gdbarch_init): Register above in gdbarch structure.
11704 (arm_read_fp): Renamed from arm_target_read_fp.
11705 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11706 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11707 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11708 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11709 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11710 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11711 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11712 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11713 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11714 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11715 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11716
434d2d4f
DJ
117172002-02-10 Daniel Jacobowitz <drow@mvista.com>
11718
11719 * symtab.c (compare_search_syms): New function.
11720 (sort_search_symbols): New function.
11721 (search_symbols): Sort symbols after searching rather than
11722 before.
11723
55241689
AC
117242002-02-10 Andrew Cagney <ac131313@redhat.com>
11725
11726 * NEWS: Linux -> GNU/Linux.
11727
028c194b
AC
117282002-02-10 Andrew Cagney <ac131313@redhat.com>
11729
11730 * gdbarch.sh: For for level one methods, disallow a definition
11731 when partially multi-arched. Add comments explaining rationale.
11732 * gdbarch.h: Re-generate.
11733
6acf50cd
AC
117342002-02-10 Andrew Cagney <ac131313@redhat.com>
11735
11736 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11737 multi-arch partial.
aaa38bb5 11738
50248794
AC
117392002-02-10 Andrew Cagney <ac131313@redhat.com>
11740
11741 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11742 field. Use diff -u.
11743 * gdbarch.c: Re-generate.
11744
c30e0066
AC
117452002-02-10 Andrew Cagney <ac131313@redhat.com>
11746
9b56c5f3 11747 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11748 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11749 partial.
11750
6e6d6484
AC
117512002-02-10 Andrew Cagney <ac131313@redhat.com>
11752
11753 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11754 multi-arch partial.
11755 (PUSH_ARGUMENTS): Switch to using predefault.
11756 * gdbarch.c: Regenerate.
11757
c203844d
AC
117582002-02-10 Andrew Cagney <ac131313@redhat.com>
11759
11760 * valops.c (PUSH_ARGUMENTS): Delete definition.
11761 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11762 partial. Default to default_push_arguments.
11763 * gdbarch.h, gdbarch.c: Regenerate.
11764
b5a2688f
AC
117652002-02-09 Andrew Cagney <ac131313@redhat.com>
11766
11767 * defs.h (throw_exception): Rename return_to_top_level. Update
11768 comments.
11769 * utils.c (error_stream, internal_verror, quit): Ditto.
11770 * top.c (throw_exception, catcher): Ditto.
11771 * sparclet-rom.c (sparclet_load): Ditto.
11772 * remote.c (interrupt_query, minitelnet): Ditto.
11773 * remote-sds.c (interrupt_query): Ditto.
11774 * remote-mips.c (mips_error, mips_kill): Ditto.
11775 * ocd.c (interrupt_query): Ditto.
11776 * monitor.c (monitor_interrupt_query): Ditto.
11777 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11778 * target.h: Update comment.
aaa38bb5 11779
b5a2688f 11780 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11781
2fa5c1e0
AC
117822002-02-09 Andrew Cagney <ac131313@redhat.com>
11783
11784 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11785 default_double_format.
11786 * gdbarch.h, gdbarch.c: Re-generate.
11787 * findvar.c (floatformat_unknown): Delete variable definition.
11788 * doublest.h (floatformat_unknown): Delete variable declaration.
11789
da966255
JB
117902002-02-09 Jim Blandy <jimb@redhat.com>
11791
11792 * stabsread.c (read_type): Add code to parse Sun's syntax for
11793 prototyped function types.
11794
123a4891
AC
117952002-02-09 Andrew Cagney <ac131313@redhat.com>
11796
11797 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11798 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11799
fb39c8f3
PS
118002002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11801
11802 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11803 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11804 now _initialize_xcoffsolib gets called again and overrides the
11805 commands from solib.c in a native configuration.
11806
0b87a11d
MK
118072002-02-09 Mark Kettenis <kettenis@gnu.org>
11808
11809 * doublest.c (store_typed_floating): Don't try to return a value.
11810 Fixes PR gdb/290.
11811
bdc2fc72
JB
118122002-02-08 Jim Blandy <jimb@redhat.com>
11813
11814 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11815 is prototyped and has no arguments, print its argument list as
11816 `(void)'.
11817
da69bbcf
CD
118182002-02-08 Chris Demetriou <cgd@broadcom.com>
11819
11820 * MAINTAINERS (write-after-approval): Add myself.
11821 (paper-trail): I've escaped!
aaa38bb5 11822
b69571f5
CF
118232002-02-08 Christopher Faylor <cgf@redhat.com>
11824
11825 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11826 changes.
11827 (_initialize_check_for_gdb_ini): Ditto.
11828
f6871398
MH
118292002-02-08 Martin M. Hunt <hunt@redhat.com>
11830
11831 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11832 xaprintf -> xasprintf.
11833
4e52d31c
PM
118342002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11835
11836 * win32-nat.c: Remove use of printf and sprintf functions.
11837
39bbf761
RE
118382002-02-08 Richard Earnshaw <rearnsha@arm.com>
11839
11840 * arm-tdep.c (arm_frame_chain_valid): Make static.
11841 (arm_push_arguments): Likewise.
11842 (arm_gdbarch_init): New function.
11843 (_initialize_arm_tdep): Call it.
11844 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11845 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11846 (FRAME_CHAIN_VALID): Delete.
11847 (arm_frame_chain_valid): Delete declaration.
11848 (PUSH_ARGUMENTS): Delete.
11849 (arm_push_arguments): Delete declaration.
11850 (CALL_DUMMY_P): Delete.
11851
9c9532c9
CV
118522002-02-08 Andrew Cagney <ac131313@redhat.com>
11853 Corinna Vinschen <vinschen@redhat.com>
11854
11855 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11856 on builtin float types.
11857
4e8f7a8b
DJ
118582002-02-08 Daniel Jacobowitz <drow@mvista.com>
11859
11860 * utils.c: Include <curses.h> before "bfd.h".
11861 * tui/tui-hooks.c: Likewise.
11862 * tui/tui.c: Likewise.
11863 * tui/tuiCommand.c: Likewise.
11864 * tui/tuiData.c: Likewise.
11865 * tui/tuiDataWin.c: Likewise.
11866 * tui/tuiDisassem.c: Likewise.
11867 * tui/tuiGeneralWin.c: Likewise.
11868 * tui/tuiIO.c: Likewise.
11869 * tui/tuiLayout.c: Likewise.
11870 * tui/tuiRegs.c: Likewise.
11871 * tui/tuiSource.c: Likewise.
11872 * tui/tuiSourceWin.c: Likewise.
11873 * tui/tuiStack.c: Likewise.
11874 * tui/tuiWin.c: Likewise.
11875
cd4bffcf
EZ
118762002-02-07 Elena Zannoni <ezannoni@redhat.com>
11877
11878 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11879 to include space for pseudoregs as well. Update loops accordingly.
11880 (sh_fp_frame_init_saved_regs): Ditto.
11881 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11882
26806ce2
AC
118832002-02-07 Andrew Cagney <ac131313@redhat.com>
11884
11885 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11886 Add Richard Earnshaw to Arm maintainers.
11887
97fdab62
AC
118882002-02-07 Andrew Cagney <ac131313@redhat.com>
11889
a6b98203
AC
11890 * defs.h (warning_begin): Delete declaration.
11891
97fdab62
AC
11892 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11893 Delete macro.
11894
78b29b40
MS
118952002-02-07 Michael Snyder <msnyder@redhat.com>
11896
aaa38bb5 11897 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11898 Logic bug, remove misplaced else.
11899
d8849953
KD
119002002-02-07 Klee Dienes <klee@apple.com>
11901
11902 * fork-inferior.c (fork_inferior): Add '!' to the list of
11903 characters that need to be quoted when building a string for the
11904 shell. Quote '!' specifically with a backslash, since CSH chokes
11905 when trying to evaluate "str!str".
aaa38bb5 11906
095778a0
NC
119072002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11908
11909 * rdi-share/host.h: Only provide a typedef for bool if it is not
11910 defined.
11911
1900040c
MS
119122002-02-04 Michael Snyder <msnyder@redhat.com>
11913
11914 * breakpoint.h (enum bptype): Add new overlay event bp type.
11915 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11916
1900040c
MS
11917 * breakpoint.c (create_internal_breakpoint): New function.
11918 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11919 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11920 (create_thread_event_breakpoint): Ditto.
11921 (create_solib_event_breakpoint): Ditto.
11922 (create_overlay_event_breakpoint): New function.
11923 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11924 (update_breakpoints_after_exec): Delete and re-initialize
11925 overlay event breakpoints after an exec. Add FIXME comment
11926 about longjmp breakpoint.
11927 (print_it_typical): Ignore overlay event breakpoints.
11928 (print_one_breakpoint): Ditto.
11929 (mention): Ditto.
11930 (bpstat_what): Do not stop for overlay event breakpoints.
11931 (delete_breakpoint): Don't delete overlay event breakpoints.
11932 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11933 (breakpoint_re_set): Re-create overlay event breakpoint.
11934
11935 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11936 (overlay_manual_command): Disable overlay breakpoints.
11937 (overlay_off_command): Disable overlay breakpoints.
11938
082fc60d
RE
119392002-02-06 Richard Earnshaw <rearnsha@arm.com>
11940
11941 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11942 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11943 to here from config/tm-arm.h.
11944 (coff_sym_is_thumb): Make static.
11945 (arm_elf_make_msymbol_special): New function.
11946 (arm_coff_make_msymbol_special): New function.
11947 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11948 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11949 (coff_sym_is_thumb): Delete declaration.
11950 (arm_elf_make_msymbol_special): Declare.
11951 (arm_coff_make_msymbol_special): Declare.
11952 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11953 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11954
039c5766
RE
119552002-02-06 Richard Earnshaw <rearnsha@arm.com>
11956
11957 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11958
119592002-02-06 Richard Earnshaw <rearnsha@arm.com>
11960
11961 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11962 * gdbarch.c gdbarch.h: Regenerate.
11963 * arch-utils.c (default_print_float_info): New function.
11964 * arch-utils.h (default_print_float_info): Prototype it.
11965 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11966 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11967 (PRINT_FLOAT_INFO): Document it.
11968
11969 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11970 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11971 (PRINT_FLOAT_INFO): Define.
11972
58fa08f0
PM
119732002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11974
aaa38bb5 11975 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11976 Add typecast to sprintf argument to suppress a warning.
11977
7393af7c
PM
119782002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11979
58fa08f0 11980 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11981 to allow easier handling of pass state.
11982 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11983 that gives exception name and address.
11984 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11985 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11986 exceptions added.
aaa38bb5
AJ
11987 (child_continue): Correctly report continue_status.
11988 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11989 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11990 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11991 the exception should be passed to debuggee or not.
11992
6af4589c
MS
119932002-02-05 Michael Snyder <msnyder@redhat.com>
11994
11995 * regcache.c (fetch_register): Call target_fetch_register
11996 only if we don't call FETCH_PSEUDO_REGISTER.
11997 (store_register): Call target_store_register only if we
11998 don't call STORE_PSEUDO_REGISTER.
11999
a2cf933a
EZ
120002002-02-05 Elena Zannoni <ezannoni@redhat.com>
12001
12002 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12003 ELF_MAKE_MSYMBOL_SPECIAL.
12004 * gdbarch.c, gdbarch.h: Regenerate.
12005 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12006 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12007 * elfread.c (elf_symtab_read): Compile use of
12008 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12009 multiarched.
12010 * coffread.c (coff_symtab_read): Ditto, for
12011 COFF_MAKE_MSYMBOL_SPECIAL.
12012
6bb7be43
JB
120132002-02-05 Jim Blandy <jimb@redhat.com>
12014
12015 * solib-svr4.c (svr4_truncate_ptr): New function.
12016 (svr4_relocate_section_addresses): Do the address arithmetic with
12017 the appropriate truncation for target addresses, even when
12018 CORE_ADDR is larger than a target address.
12019
e18651ec
DJ
120202002-02-05 Daniel Jacobowitz <drow@mvista.com>
12021
12022 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12023 to (int *).
12024
6b2725be
DJ
120252002-02-05 Daniel Jacobowitz <drow@mvista.com>
12026
12027 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12028 code.
12029
fca9e603
DJ
120302002-02-05 Daniel Jacobowitz <drow@mvista.com>
12031
12032 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12033
6c537a52
DJ
120342002-02-05 Daniel Jacobowitz <drow@mvista.com>
12035
12036 * gdbserver/linux-low.c: Remove unused include files.
12037
d844cde6
DJ
120382002-02-05 Daniel Jacobowitz <drow@mvista.com>
12039
12040 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12041 (read_inferior_memory): Use it.
12042 (write_inferior_memory): Likewise.
12043
d07c63e7
DJ
120442002-02-05 Daniel Jacobowitz <drow@mvista.com>
12045
12046 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12047 grubbing through sys_errlist.
12048
da6d8c04
DJ
120492002-02-05 Daniel Jacobowitz <drow@mvista.com>
12050
12051 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12052
5b421780
PM
120532002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12054 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12055
9f60d481
AC
120562002-02-04 Andrew Cagney <ac131313@redhat.com>
12057
12058 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12059 (do_sfunc, set_cmd_sfunc): New functions.
12060
12061 * command.h (struct cmd_list_element): Add field func.
12062 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12063 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12064 * cli/cli-decode.h: Ditto.
12065
12066 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12067 (help_all, help_cmd_list): Ditto.
12068 (find_cmd, complete_on_cmdlist): Ditto.
12069 * top.c (execute_command): Ditto.
12070
12071 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12072 function.sfunc.
12073
12074 * infcmd.c (notice_args_read): Fix function signature.
12075
12076 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12077 * cli/cli-decode.c (add_set_cmd): Ditto.
12078 * utils.c (initialize_utils): Ditto.
12079 * maint.c (_initialize_maint_cmds): Ditto.
12080 * infrun.c (_initialize_infrun): Ditto.
12081 * demangle.c (_initialize_demangler): Ditto.
12082 * remote.c (add_packet_config_cmd): Ditto.
12083 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12084 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12085 * proc-api.c (_initialize_proc_api): Ditto.
12086 * kod.c (_initialize_kod): Ditto.
12087 * valprint.c (_initialize_valprint): Ditto.
12088 * top.c (init_main): Ditto.
12089 * infcmd.c (_initialize_infcmd): Ditto.
12090 * corefile.c (_initialize_core): Ditto.
12091 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12092 * arch-utils.c (initialize_current_architecture): Ditto.
12093 (_initialize_gdbarch_utils): Ditto.
12094 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12095
12096 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12097 * wince.c (_initialize_inftarg): Ditto.
12098 * symfile.c (_initialize_symfile): Ditto.
12099 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12100 * language.c (_initialize_language): Ditto.
12101 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12102
f9ba0717
MS
121032002-02-04 Michael Snyder <msnyder@redhat.com>
12104
12105 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12106
0c74b2a7
DJ
121072002-02-04 Daniel Jacobowitz <drow@mvista.com>
12108
12109 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12110 Add rules for building the register data files.
12111
c638789f
DJ
121122002-02-04 Daniel Jacobowitz <drow@mvista.com>
12113
12114 * regformats/regdat.sh: Add braces to the definition of
12115 expedite_regs_${arch}.
12116
db253027
DJ
121172002-02-04 Daniel Jacobowitz <drow@mvista.com>
12118
12119 * regformats/regdef.h (struct reg): Add comment describing the
12120 requirements for offset and size fields.
12121
206be19c
AS
121222002-02-04 Andreas Schwab <schwab@suse.de>
12123
12124 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12125 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12126
181c1381
RE
121272002-02-04 Richard Earnshaw <rearnsha@arm.com>
12128
12129 * gdbarch.sh (copyright): Update years in generated header.
12130 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12131 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12132 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12133 * dbxread.c: Likewise.
12134 * dwarfread.c: Likewise.
12135 * elfread.c: Likewise.
12136 * somread.c: Likewise.
12137
12138 * arm-tdep.c (arm_smash_text_address): New function.
12139 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12140
fa4ba8da
PM
121412002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12142
12143 Add support for hardware watchpoints on win32 native.
aaa38bb5 12144 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12145 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12146 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12147 of debug registers.
12148 (debug_registers_changed): New variable. Reflects when debug registers
12149 are changed and need to be written to inferior.
aaa38bb5 12150 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12151 was set, used when new threads are created.
12152 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12153 i386-nat code.
12154 (thread_rec): Set dr array if id is the thread of current_event .
12155 (child_continue, child_resume): Change the debug registers for all
12156 threads if debug_registers_changed.
12157 (child_add_thread): Change the debug registers if debug_registers_used.
12158 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12159 Link nm.h to new nm-cygwin.h file.
12160 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12161 of hardware registers.
12162
a73c86fb
AC
121632002-02-03 Andrew Cagney <ac131313@redhat.com>
12164
12165 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12166 Restore behavour broken by 2002-01-20 Andrew Cagney
12167 <ac131313@redhat.com> IEEE_FLOAT removal.
12168
acf5ed49
DJ
121692002-02-03 Daniel Jacobowitz <drow@mvista.com>
12170
12171 * c-valprint.c (c_val_print): Pass a proper valaddr to
12172 cp_print_class_method.
12173 * valops.c (search_struct_method): If there is only one method
12174 and args is NULL, return that method.
12175
493d28d5
DJ
121762002-02-03 Daniel Jacobowitz <drow@mvista.com>
12177
12178 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12179 accessing tag_name directly.
12180
7495dfdb
DJ
121812002-02-03 Daniel Jacobowitz <drow@mvista.com>
12182
12183 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12184 of accessing tag_name directly.
12185
dd6bda65
DJ
121862002-02-03 Daniel Jacobowitz <drow@mvista.com>
12187
12188 PR gdb/280
12189 * gdbtypes.c (replace_type): New function.
12190 * gdbtypes.h (replace_type): Add prototype.
12191 * stabsread.c (read_type): Use replace_type.
12192
88fe217c
RE
121932002-02-03 Richard Earnshaw <rearnsha@arm.com>
12194
12195 * Makefile.in (memattr.o): Add missing dependencies rule.
12196
e5d66720
PS
121972002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12198
12199 * breakpoint.c (break_at_finish_command): Really export.
12200 (break_at_finish_at_depth_command): Ditto.
12201 (tbreak_at_finish_command): Ditto.
12202 * hppa-tdep.c: Include completer.h.
12203 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12204 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12205
fffee0be
AC
122062002-02-01 Andrew Cagney <ac131313@redhat.com>
12207
12208 * utils.c (do_write): New function.
12209 (error_stream): Rewrite combining the code from error_begin and
12210 verror.
12211 (verror): Rewrite using error_stream.
12212 (error_begin): Delete function.
12213
255e7dbf
AC
122142002-02-01 Andrew Cagney <ac131313@redhat.com>
12215
12216 * utils.c (error_begin): Make static.
12217 * defs.h (error_begin): Delete declaration.
12218
12219 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12220 (decode_line_1): Use cplusplus_error instead of error_begin,
12221 cplusplus_hint and return_to_top_level.
12222 * coffread.c (coff_symfile_read): Use error instead of error_begin
12223 and return_to_top_level.
12224 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12225
ddfe3c15
AC
122262002-02-01 Andrew Cagney <ac131313@redhat.com>
12227
12228 * language.h (type_error, range_error): Make string parameter
12229 constant.
12230 * language.c (warning_pre_print): Delete extern declaration.
12231 * dwarfread.c (warning_pre_print): Ditto.
12232 * language.c (type_error, range_error): Rewrite to use verror and
12233 vwarning instead of warning_begin.
12234
03ac34d5
MS
122352002-02-01 Michael Snyder <msnyder@redhat.com>
12236
261c4ca2
MS
12237 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12238 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12239
e00d1dc8
AC
122402002-02-01 Andrew Cagney <ac131313@redhat.com>
12241
12242 * command.h (NO_FUNCTION): Delete macro.
12243 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12244 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12245 * tracepoint.c (_initialize_tracepoint): Ditto.
12246 * cli/cli-decode.c (add_set_cmd): Ditto.
12247 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12248
76b79d6e
DJ
122492002-02-01 Daniel Jacobowitz <drow@mvista.com>
12250
12251 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12252 Update ``this'' pointer when calling virtual functions.
12253
799f9e91
MS
122542002-02-01 Michael Snyder <msnyder@redhat.com>
12255
c7bd442c 12256 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12257 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12258
3cf384d4
DJ
122592002-02-01 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * regformats/reg-arm.dat: New file.
12262 * regformats/reg-i386.dat: New file.
12263 * regformats/reg-ia64.dat: New file.
12264 * regformats/reg-m68k.dat: New file.
12265 * regformats/reg-mips.dat: New file.
12266 * regformats/reg-ppc.dat: New file.
12267 * regformats/reg-sh.dat: New file.
12268 * regformats/regdef.h: New file.
12269 * regformats/regdat.sh: New file.
12270
0defa245
RE
122712002-02-01 Richard Earnshaw <reanrsha@arm.com>
12272
12273 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12274 (arm_frame_args_address, arm_frame_locals_address): New functions.
12275 (arm_frame_num_args): New function.
12276 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12277 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12278 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12279
405f26e6
MS
122802002-01-31 Michael Snyder <msnyder@redhat.com>
12281
502fd408
MS
12282 * breakpoint.c (break_at_finish_command): Export.
12283 (break_at_finish_at_depth_command): Export.
12284 (tbreak_at_finish_command): Export.
d6020d45 12285 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12286 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12287 "txbreak" commands, which are HPPA specific.
502fd408 12288
7d35e135
MS
12289 * printcmd.c (disassemble_command): Remove an ancient
12290 artifact of an old merge.
12291
aaa38bb5 12292 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12293 Define enum constant values for overlay mode.
12294 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12295 (overlay_is_mapped, overlay_auto_command,
12296 overlay_manual_command): Ditto.
d874f1e2 12297
aaa38bb5
AJ
12298 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12299 breakpoint_here_p, breakpoint_inserted_here_p,
12300 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12301 describe_other_breakpoints, check_duplicates, clear_command):
12302 Coding standard fixes.
12303
8add0441 12304 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12305 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12306 code: check bfd SEC_READONLY flag for section.
12307
e351066e
AC
123082002-01-31 Andrew Cagney <ac131313@redhat.com>
12309
7d35e135 12310 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12311
8a48e967
DJ
123122002-01-30 Daniel Jacobowitz <drow@mvista.com>
12313
12314 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12315 data symbols, since we search based on textlow and texthigh.
12316 (find_pc_sect_symtab): Likewise.
12317
f5a96129
AC
123182002-01-30 Andrew Cagney <ac131313@redhat.com>
12319
12320 * defs.h (vwarning): Declare.
f5a96129
AC
12321 * utils.c (vwarning): New function.
12322 (warning): Call vwarning.
12323 (warning_begin): Delete function.
12324
12325 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12326 the warning message.
12327 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12328 warning_begin.
12329
cefd4ef5
MS
123302002-01-30 Michael Snyder <msnyder@redhat.com>
12331
1a703748
MS
12332 * NEWS: Mention "set trust-readonly-sections" command.
12333 Mention generate-core-file command.
cefd4ef5 12334
3a11626d
MS
123352002-01-15 Michael Snyder <msnyder@redhat.com>
12336
12337 * target.c: New command, "set trust-readonly-sections on".
12338 (do_xfer_memory): Honor the suggestion to trust readonly sections
12339 by reading them from the object file instead of from the target.
12340 (initialize_targets): Register command "set trust-readonly-sections".
12341
d1c7e53b
AC
123422002-01-29 Andrew Cagney <ac131313@redhat.com>
12343
12344 * parse.c (target_map_name_to_register): Simplify, search regs and
12345 pseudo-regs using a single loop.
12346
e2c9a72c
AC
123472002-01-30 Andrew Cagney <ac131313@redhat.com>
12348
12349 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12350
69824b4e
MK
123512002-01-15 Rodney Brown <rbrown64@csc.com.au>
12352
12353 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12354 * config/i386/i386v42mp.mh: Add i387-nat.o .
12355 * i386v4-nat.c: Include i387-nat.h.
12356 (supply_fpregset): Use i387_supply_fsave.
12357 (fill_fpregset): Use i387_fill_fsave.
12358
6eb69eab
RE
123592002-01-30 Richard Earnshaw <rearnsha@arm.com>
12360
12361 * arm-tdep.c (arm_call_dummy_words): Define.
12362 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12363 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12364 (CALL_DUMMY_WORDS): Define.
12365 (arm_call_dummy_words): Declare.
12366 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12367 (arm_linux_call_dummy_words): Declare.
12368
9852326a
AS
123692002-01-30 Andreas Schwab <schwab@suse.de>
12370
12371 * m68klinux-nat.c: Fix last change to use regcache_collect
12372 instead of referencing registers[] directly.
12373
977a3030
AC
123742002-01-29 Andrew Cagney <ac131313@redhat.com>
12375
12376 * parse.c (target_map_name_to_register): Delete code wrapped in
12377 #ifdef REGISTER_NAME_ALIAS_HOOK.
12378
2076c72b
MS
123792002-01-28 Michael Snyder <msnyder@redhat.com>
12380
12381 * regcache.c (legacy_read_register_gen): Need to be able to
12382 read pseudo-register as well as real register.
12383 (legacy_write_register_gen): Ditto.
12384
8fcc723b
AC
123852002-01-28 Andrew Cagney <ac131313@redhat.com>
12386
12387 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12388 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12389 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12390 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12391 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12392 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12393 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12394 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12395 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12396 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12397 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12398 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12399 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12400 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12401 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12402 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12403 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12404 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12405 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12406 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12407
afe64c1a
AC
124082002-01-28 Andrew Cagney <ac131313@redhat.com>
12409
12410 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12411 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12412 (initialize_current_architecture): Update target_byte_order using
12413 information from BFD.
aaa38bb5 12414 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12415 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12416
75bc7ddf
AC
124172002-01-28 Andrew Cagney <ac131313@redhat.com>
12418
12419 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12420 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12421
12422 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12423 #ifdef INVALID_FLOAT.
12424 * infcmd.c (do_registers_info): Ditto.
12425 * values.c (unpack_double): Ditto. Add comment.
12426
12427 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12428 already commented out.
12429
0280a90a
AS
124302002-01-26 Andreas Schwab <schwab@suse.de>
12431
12432 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12433 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12434 registers and add support for PTRACE_GETREGS.
12435
7072a954
AC
124362002-01-24 Andrew Cagney <ac131313@redhat.com>
12437
12438 GDB 5.1.1 released from 5.1 branch.
12439 * NEWS: Add 5.1.1 news.
12440 * README: Sync with 5.1 branch.
12441
86f902e0
FF
124422002-01-23 Fred Fish <fnf@redhat.com>
12443
12444 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12445 stabstring on initial malloc. Reallocing will copy it for us,
12446 if necessary.
12447
8af51c36
EZ
124482002-01-23 Elena Zannoni <ezannoni@redhat.com>
12449
aaa38bb5 12450 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12451 (HFILES_NO_SRCDIR): Remove hpread.h.
12452 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12453 (hpread.o): Update dependencies.
12454 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12455
12456 * hp-psymtab-read.c: Remove file.
12457 * hp-symtab-read.c: Remove file.
12458 * hpread.h: Remove file.
12459
12460 * hpread.c: Merge all contents of hp-psymtab-read.c,
12461 hp-symtab-read.c and hpread.h into this file, as it was prior to
12462 January 1999.
12463
12464 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12465 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12466 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12467 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12468
dc5cfeb6
EZ
124692002-01-23 Elena Zannoni <ezannoni@redhat.com>
12470
12471 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12472 fill_gregset): Call gdbarch_tdep() just once, assign result to
12473 variable and use that, instead of calling the function several
12474 times.
12475
ea87b71b
AO
124762002-01-24 Alexandre Oliva <aoliva@redhat.com>
12477
12478 * configure.host: Accept sparcv9 as alias for sparc64.
12479 * configure.tgt: Likewise.
12480
13fc0c2f
KB
124812002-01-22 Kevin Buettner <kevinb@redhat.com>
12482
12483 * solib-aix5.c (build_so_list_from_mapfile)
12484 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12485 arguments is not reversed.
12486 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12487 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12488
7bd872fe
EZ
124892002-01-22 Elena Zannoni <ezannoni@redhat.com>
12490
12491 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12492 modified version of obsolete sh_fetch_pseudo_register.
12493 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12494 (sh4_register_read): New function.
12495 (sh_pseudo_register_write): New function. Renamed and modified
12496 version of obsolete sh_store_pseudo_register.
12497 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12498 (sh4_register_write): New function.
12499 (sh_gdbarch_init): Remove setting of gdbarch function
12500 fetch_pseudo_register and store_pseudo_register. Remove setting of
12501 register_convert_to_raw, register_convert_to_virtual,
12502 register_convertible.
12503 (sh_sh4_register_convertible): Delete. No longer needed. All is
12504 taken care by architecture specific functions
12505 register_read/register_write.
12506 (sh_sh4_register_convert_to_virtual): Make static.
12507 (sh_sh4_register_convert_to_raw): Ditto.
12508
069e84fd
AC
125092002-01-22 Andrew Cagney <ac131313@redhat.com>
12510
12511 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12512 (floatformat_is_nan, floatformat_mantissa): Ditto.
12513
12514 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12515 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12516 builtin_type_ieee_double_little,
12517 builtin_type_ieee_double_littlebyte_bigword,
12518 builtin_type_m68881_ext, builtin_type_i960_ext,
12519 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12520 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12521 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12522 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12523
211a4f69
CV
125242002-01-22 Corinna Vinschen <vinschen@redhat.com>
12525
12526 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12527 parameter. Set frameless flag if it exists and depended of
12528 whether the scanned function is frameless or not.
12529 (xstormy16_skip_prologue): If function is frameless, return
12530 result of xstormy16_scan_prologue().
12531 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12532 call.
12533
f81353e4
EZ
125342002-01-21 Elena Zannoni <ezannoni@redhat.com>
12535
12536 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12537 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12538 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12539 sh_sh4_register_byte, sh_sh4_register_raw_size,
12540 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12541 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12542 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12543 sh_store_pseudo_register, sh_do_pseudo_register): Call
12544 gdbarch_tdep() just once, assign result to variable and use that,
12545 instead of calling the function several times.
12546
63c73a17
MK
125472002-01-20 Mark Kettenis <kettenis@gnu.org>
12548
12549 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12550 macros instead of LAST_FPU_CTRL_REGNUM.
12551 (store_register): Likewise.
12552
39ad761d
JB
125532002-01-21 Jim Blandy <jimb@redhat.com>
12554
12555 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12556 is up-to-date before running the program, not just when a program
12557 exits.
12558
3d74b771
FF
125592002-01-21 Fred Fish <fnf@redhat.com>
12560
12561 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12562 when we have found all instructions we are looking for.
12563
966fbf70
RE
125642002-01-21 Richard Earnshaw <rearnsha@arm.com>
12565
12566 * arm-tdep.c (arm_register_name): New function.
12567 (arm_registers_names): Make static.
12568 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12569 (arm_register_name): Declare.
12570 (REGISTER_NAME): Use it.
12571
c3b4394c
RE
125722002-01-21 Richard Earnshaw <rearnsha@arm.com>
12573 Kevin Buettner <kevinb@redhat.com>
12574
12575 Convert arm targets to new FRAME interface.
12576 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12577 (arm_frame_find_save_regs): Delete.
12578 (arm_frame_init_saved_regs): New.
12579 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12580 Allocate extra_info as required. Convert all uses of fsr.regs
12581 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12582 to use extra_info.
12583 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12584 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12585 (check_prologue_cache, save_prologue_cache): Likewise.
12586 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12587 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12588 (FRAME_FIND_SAVED_REGS): Delete.
12589 (arm_frame_find_saved_regs): Delete prototype.
12590 (arm_frame_init_saved_regs): New prototype.
12591 (FRAME_INIT_SAVED_REGS): Define.
12592
61d99182
AC
125932002-01-20 Andrew Cagney <ac131313@redhat.com>
12594
12595 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12596
6aaea291
AC
125972002-01-20 Andrew Cagney <ac131313@redhat.com>
12598
12599 From Jeff Law <law@redhat.com>:
12600 * infttrace.c: Include <sys/pstat.h>.
12601 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12602 exec file if the ttrace equivalent fails.
12603
15f698d2
AC
126042002-01-20 Andrew Cagney <ac131313@redhat.com>
12605
12606 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12607 (closeLogFile): Ditto.
12608
f86ddd7c
MC
126092002-01-20 Michael Chastain <mec@shout.net>
12610
12611 * top.c (print_gdb_version): Bump copyright year to 2002.
12612
904507ce
AC
126132002-01-20 Andrew Cagney <ac131313@redhat.com>
12614
12615 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12616 Zannoni and Eli Zaretskii.
12617
d7f0b9ce
DJ
126182002-01-20 Daniel Jacobowitz <drow@mvista.com>
12619
12620 * buildsym.c: Update copyright years.
12621 * c-typeprint.c: Likewise.
12622 * dwarf2read.c: Likewise.
12623 * f-typeprint.c: Likewise.
12624 * gdbtypes.c: Likewise.
12625 * gdbtypes.h: Likewise.
12626 * hp-symtab-read.c: Likewise.
12627 * hpread.c: Likewise.
12628 * mdebugread.c: Likewise.
12629 * p-typeprint.c: Likewise.
12630
3fd3d7d2
AC
126312002-01-20 Andrew Cagney <ac131313@redhat.com>
12632
12633 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12634 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12635 byte-order selectable.
12636 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12637 * arch-utils.c: Ditto.
12638 (set_endian): Ditto.
12639 (set_endian_from_file): Ditto.
12640 * gdbserver/low-sim.c (create_inferior): Ditto.
12641 * gdbarch.sh: Ditto.
12642 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12643 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12644 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12645 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12646 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12647 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12648 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12649 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12650 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12651 macro definition.
12652 * config/mips/tm-wince.h: Remove #undef of macro
12653 TARGET_BYTE_ORDER_SELECTABLE.
12654 * config/sh/tm-wince.h: Ditto.
12655
b02dede2
DJ
126562002-01-20 Daniel Jacobowitz <drow@mvista.com>
12657
12658 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12659 member function fields. Add accessor macro
12660 TYPE_FN_FIELD_ARTIFICIAL.
12661 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12662 * c-typeprint.c (c_type_print_base): Skip artificial member
12663 functions.
12664
c3643761
DJ
126652002-01-20 Daniel Jacobowitz <drow@mvista.com>
12666
12667 * f-typeprint.c: Delete unused function f_type_print_args.
12668 * p-typeprint.c: Delete unused function pascal_type_print_args.
12669
8176bb6d
DJ
126702002-01-20 Daniel Jacobowitz <drow@mvista.com>
12671
12672 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12673 comment. Add ``artificial'' to ``union field_location''.
12674
12675 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12676
12677 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12678 * mdebugread.c (parse_symbol): Likewise.
12679 * stabsread.c (define_symbol): Likewise.
12680 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12681 initializing TYPE_FIELD_BITPOS to n (obsolete).
12682 (hpread_doc_function_type): Likewise.
12683 * hpread.c (hpread_function_type): Likewise.
12684
7fd60527
AC
126852002-01-20 Andrew Cagney <ac131313@redhat.com>
12686
12687 * configure.in (host_makefile_frag): Only require a host makefile
12688 fragment when a native build.
12689 * configure: Re-generate.
12690
c2f05ac9
AC
126912002-01-20 Andrew Cagney <ac131313@redhat.com>
12692
12693 * doublest.h (floatformat_from_type): Declare.
12694 * doublest.c (floatformat_from_type): New function.
12695 (convert_typed_floating): Use.
12696
12697 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12698 call to function floatformat_from_type.
12699
12700 * gdbarch.sh (IEEE_FLOAT): Delete.
12701 * gdbarch.h, gdbarch.c: Re-generate.
12702 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12703 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12704 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12705 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12706 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12707 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12708 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12709 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12710 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12711 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12712 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12713 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12714
12715 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12716 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12717 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12718 * sh-tdep.c (sh_gdbarch_init): Ditto.
12719 * mips-tdep.c (mips_gdbarch_init): Ditto.
12720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12721 * cris-tdep.c (cris_gdbarch_init): Ditto.
12722
abf22e64
AJ
127232002-01-20 Jiri Smid <smid@suse.cz>
12724
12725 * configure.host, configure.tgt: Support x86-64.
12726 * NEWS: Note new target x86-64.
12727
b7c4cbf8
AJ
12728 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12729 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12730 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12731 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12732 x86-64-linux-nat.o): Fix dependencies.
12733
82600034
AC
127342002-01-19 Andrew Cagney <ac131313@redhat.com>
12735
12736 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12737 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12738 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12739 * config/sparc/xm-sun4os4.h: Delete file.
12740 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12741
bbe5c628
AC
127422002-01-19 Andrew Cagney <ac131313@redhat.com>
12743
12744 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12745 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12746 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12747 * config/i386/i386lynx.mh (XM_FILE): Delete.
12748 * config/rs6000/xm-rs6000ly.h: Delete file.
12749 * config/sparc/xm-sparclynx.h: Delete file.
12750 * config/m68k/xm-m68klynx.h: Delete file.
12751 * config/i386/xm-i386lynx.h: Delete file.
12752 * config/xm-lynx.h: Delete file.
12753 * config/djgpp/fnchange.lst: Update.
12754
f8453e34
JT
127552002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12756
12757 * alpha-tdep.c (alpha_register_byte): New function.
12758 (alpha_register_raw_size): Ditto.
12759 (alpha_register_virtual_size): Ditto.
12760 (alpha_skip_prologue_internal): Renamed from
12761 alpha_skip_prologue.
12762 (alpha_skip_prologue): New version that calls
12763 alpha_skip_prologue_internal.
12764 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12765 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12766 second argument from alpha_skip_prologue.
12767 (REGISTER_BYTE): Use alpha_register_byte.
12768 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12769 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12770 (FRAMELESS_FUNCTION_INVOCATION): Use
12771 generic_frameless_function_invocation_not.
12772 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12773 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12774
52d9e613
AC
127752002-01-19 Andrew Cagney <ac131313@redhat.com>
12776
12777 * config/mips/xm-news-mips.h: Delete file.
12778 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12779
12780 * config/m88k/xm-m88k.h: Delete file.
12781 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12782 * config/m88k/xm-delta88v4.h: Ditto.
12783 * config/m88k/xm-delta88.h: Ditto.
12784
12785 * config/alpha/xm-fbsd.h: Delete file.
12786 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12787
12788 * config/sparc/xm-sparc.h: Delete file.
12789 * Makefile.in (xm-sun4os4.h): Delete dependency.
12790 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12791 * config/sparc/xm-sun4os4.h: Ditto.
12792 * config/sparc/xm-linux.h: Ditto.
12793
12794 * config/i386/xm-windows.h: Delete file.
12795
2d1b2124
AC
127962002-01-19 Andrew Cagney <ac131313@redhat.com>
12797
12798 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12799 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12800
ee1f65f0
JT
128012002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12802
12803 * alpha-tdep.c (alpha_call_dummy_words): New.
12804 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12805 (CALL_DUMMY_P): Define.
12806 (CALL_DUMMY_WORDS): Define.
12807 (SIZEOF_CALL_DUMMY_WORDS): Define.
12808
98081e55
PB
128092002-01-19 Per Bothner <per@bothner.com>
12810
12811 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12812 isn't NULL, which can happen with some gcj-3.x-produced code.
12813
0d056799
JT
128142002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12815
12816 * alpha-tdep.c (alpha_register_virtual_type): New function.
12817 (alpha_init_frame_pc_first): Ditto.
12818 (alpha_fix_call_dummy): Ditto.
12819 (alpha_store_struct_return): Ditto.
12820 (alpha_extract_struct_value_address): Ditto.
12821 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12822 alpha_register_virtual_type.
12823 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12824 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12825 alpha_extract_struct_value_address.
12826 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12827 (INIT_FRAME_PC): Use init_frame_pc_noop.
12828 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12829
4604bcad
MK
128302002-01-19 Mark Kettenis <kettenis@gnu.org>
12831
12832 * i386gnu-nat.c: Include "i386-tdep.h".
12833 (fetch_fpregs): Simplify code dealing with uninitialized floating
12834 point states such that it doesn't require FP7_REGNUM.
12835
140f9984
JT
128362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12837
abf22e64
AJ
12838 * alpha-tdep.c (frame_extra_info): New.
12839 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12840 frame->extra_info.
12841 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12842 (alpha_frame_saved_pc): Use frame->extra_info.
12843 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12844 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12845 (init_extra_frame_info): Rename to...
12846 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12847 (alpha_print_extra_frame_info): New function.
140f9984
JT
12848 (alpha_frame_locals_address): Ditto.
12849 (alpha_frame_args_address): Ditto.
abf22e64 12850 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12851 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12852 alpha_frame_args_address.
abf22e64 12853 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12854 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12855 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12856 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12857 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12858 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12859
d734c450
JT
128602002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12861
12862 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12863 (alpha_cannot_fetch_register): Ditto.
12864 (alpha_cannot_store_register): Ditto.
12865 (alpha_register_convertible): Ditto.
12866 (alpha_use_struct_convention): Ditto.
12867 * config/alpha/tm-alpha.h: Update copyright years.
12868 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12869 (INNER_THAN): Use core_addr_lessthan.
12870 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12871 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12872 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12873 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12874 (FRAME_CHAIN): Remove unnecessary cast.
12875
b4ceaee6
AC
128762002-01-18 Andrew Cagney <ac131313@redhat.com>
12877
12878 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12879 obsolete.
12880
0a65a603
AC
128812002-01-18 Andrew Cagney <ac131313@redhat.com>
12882
12883 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12884 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12885 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12886 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12887 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12888 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12889 * x86-64-linux-nat.c: Ditto.
12890
636a6dfc
JT
128912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12892
abf22e64 12893 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12894 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12895 (REGISTER_NAME): Define.
12896
acceddb6
JT
128972002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12898
12899 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12900
ec32e4be
JT
129012002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12902
12903 * alpha-tdep.c: Update copyright years.
12904 (alpha_next_pc): New function.
12905 (alpha_software_single_step): Ditto.
12906 * config/alpha/tm-alpha.h: Add prototype for
12907 alpha_software_single_step.
12908
e771a871
JT
129092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12910
12911 * alphabsd-nat.c: Update copyright years.
12912 (fill_gregset): Use regcache_collect.
12913 (fill_fpregset): Likewise.
12914 (fetch_inferior_registers): Only fetch integer registers
12915 if requested to do so.
12916 (store_inferior_registers): Only store integer registers
12917 if requested to do so.
12918
7708fa01
AC
129192002-01-17 Andrew Cagney <ac131313@redhat.com>
12920
12921 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12922 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12923 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12924 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12925 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12926 * config/arm/linux.mh (XDEPFILES): Delete.
12927 * config/arm/nbsd.mh (XDEPFILES): Delete.
12928 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12929 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12930 * config/i386/i386m3.mh (XDEPFILES): Delete.
12931 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12932 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12933 * config/i386/fbsd.mh (XDEPFILES): Delete.
12934 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12935 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12936 * config/i386/i386v4.mh (XDEPFILES): Delete.
12937 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12938 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12939 * config/i386/i386aix.mh (XDEPFILES): Delete.
12940 * config/i386/go32.mh (XDEPFILES): Delete.
12941 * config/i386/cygwin.mh (XDEPFILES): Delete.
12942 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12943 * config/i386/i386mach.mh (XDEPFILES): Delete.
12944 * config/i386/i386v32.mh (XDEPFILES): Delete.
12945 * config/i386/linux.mh (XDEPFILES): Delete.
12946 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12947 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12948 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12949 * config/i386/i386sco.mh (XDEPFILES): Delete.
12950 * config/i386/i386v.mh (XDEPFILES): Delete.
12951 * config/i386/nbsd.mh (XDEPFILES): Delete.
12952 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12953 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12954 * config/i386/symmetry.mh (XDEPFILES): Delete.
12955 * config/i386/obsd.mh (XDEPFILES): Delete.
12956 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12957 * config/ia64/linux.mh (XDEPFILES): Delete.
12958 * config/ia64/aix.mh (XDEPFILES): Delete.
12959 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12960 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12961 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12962 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12963 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12964 * config/m68k/linux.mh (XDEPFILES): Delete.
12965 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12966 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12967 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12968 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12969 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12970 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12971 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12972 * config/m88k/delta88.mh (XDEPFILES): Delete.
12973 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12974 * config/m88k/m88k.mh (XDEPFILES): Delete.
12975 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12976 * config/mips/linux.mh (XDEPFILES): Delete.
12977 * config/mips/irix6.mh (XDEPFILES): Delete.
12978 * config/mips/irix5.mh (XDEPFILES): Delete.
12979 * config/mips/irix4.mh (XDEPFILES): Delete.
12980 * config/mips/irix3.mh (XDEPFILES): Delete.
12981 * config/mips/decstation.mh (XDEPFILES): Delete.
12982 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12983 (NATDEPFILES): Move core-aout.o to here.
12984 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12985 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12986 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12987 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12988 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12989 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12990 * config/pa/hpux11.mh (XDEPFILES): Delete.
12991 * config/powerpc/aix.mh (XDEPFILES): Delete.
12992 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12993 * config/powerpc/linux.mh (XDEPFILES): Delete.
12994 * config/romp/rtbsd.mh: Rename XDEPFILES.
12995 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12996 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12997 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12998 * config/s390/s390.mh (XDEPFILES): Delete.
12999 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13000 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13001 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13002 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13003 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13004 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13005 * config/sparc/linux.mh (XDEPFILES): Delete.
13006 * config/vax/vaxult.mh (XDEPFILES): Delete.
13007 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13008 * Makefile.in (DEPFILES): Remove XDEPFILES.
13009
375fc983
AC
130102002-01-17 Andrew Cagney <ac131313@redhat.com>
13011
13012 * utils.c (internal_verror): Fix comments, default is yes not no.
13013 Update queries to match. Default to quit and dump core.
13014
8926118c
AC
130152002-01-17 Andrew Cagney <ac131313@redhat.com>
13016
13017 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13018 copyright.
13019 * defs.h, event-top.c, gdbcmd.h: Ditto.
13020 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13021 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13022 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13023 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13024 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13025 * mi/mi-main.c:Ditto.
13026
13027 * stack.c, symfile.c: Update copyright.
13028
45b7b345
DJ
130292002-01-17 Daniel Jacobowitz <drow@mvista.com>
13030
db728ff7
DJ
13031 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13032 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13033 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13034 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13035
db728ff7
DJ
130362002-01-17 Daniel Jacobowitz <drow@mvista.com>
13037
13038 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13039 * gdbserver/low-lynx.c (myattach): Likewise.
13040 * gdbserver/low-nbsd.c (myattach): Likewise.
13041 * gdbserver/low-sim.c (myattach): Likewise.
13042 * gdbserver/low-sparc.c (myattach): Likewise.
13043 * gdbserver/low-sun3.c (myattach): Likewise.
13044
13045 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13046
db728ff7 13047 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13048 (main): Handle "--attach".
13049
8de3c354
AC
130502002-01-16 Andrew Cagney <ac131313@redhat.com>
13051
13052 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13053 maintainer.
13054
b0129042
DJ
130552002-01-15 Daniel Jacobowitz <drow@mvista.com>
13056
13057 * c-typeprint.c (is_type_conversion_operator): Add additional
13058 check for non-conversion operators.
13059
ba8679fb 130602002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13061
13062 * linux-proc.c: Add "info proc" command, a la procfs.c.
13063 (read_mapping): New function, abstract and re-use code.
13064 (linux_find_memory_regions): Use new func read_mapping.
13065 (linux_info_proc_cmd): New function, implement "info proc".
13066 (_initialize_linux_proc): Add new command "info proc".
13067
e4f9b4d5
MS
130682002-01-15 Michael Snyder <msnyder@redhat.com>
13069
13070 * symfile.c (generic_load): Use bfd_map_over_sections method
13071 instead of manipulating bfd structure members directly.
13072 (add_section_size_callback): New function, bfd sections callback
13073 used by generic_load.
13074 (load_sections_callback): New function, bfd sections callback
13075 used by generic_load.
13076
08cf96df
EZ
130772002-01-15 Elena Zannoni <ezannoni@redhat.com>
13078
abf22e64 13079 [Based on work by Jim Blandy]
08cf96df
EZ
13080 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13081 (builtin_type_vec128): Export.
13082 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13083 types.
13084 (builtin_type_vec128): New builtin type for 128 bit vector
13085 registers.
13086 (build_gdbtypes): Initialize builtin_type_v16qi and
13087 builtin_type_v8hi. Create the vec128 register builtin type
13088 structure.
13089 (build_builtin_type_vec128): New function.
abf22e64 13090 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13091 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13092 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13093 AltiVec register to new builtin type.
13094
d7242108
DJ
130952001-01-15 Daniel Jacobowitz <drow@mvista.com>
13096
13097 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13098 to make_cv_type.
13099
4ee3352d
AC
131002002-01-14 Andrew Cagney <ac131313@redhat.com>
13101
13102 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13103 CLEAN_UP_REGISTER_VALUE.
13104 * regcache.c (supply_register): Update only call.
13105
f015b2e7
AC
131062002-01-14 Andrew Cagney <ac131313@redhat.com>
13107
13108 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13109 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13110 a29k-*-vxworks* targets as obsolete.
13111
356ae49d
MS
131122002-01-14 Michael Snyder <msnyder@redhat.com>
13113
13114 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13115 until we can resolve portability issues.
13116 * gregset.h: Remove references to fpxregs.
13117 * gcore.c (gcore_command): Initialize note_sec to NULL.
13118
ade8f45e
AC
131192002-01-13 Andrew Cagney <ac131313@redhat.com>
13120
13121 * signals.c (target_signal_to_name): Rewrite. Only use
13122 signals[].name when in bounds and non-NULL.
abf22e64 13123
89c49e7a
AC
131242002-01-13 Andrew Cagney <ac131313@redhat.com>
13125
13126 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13127 * signals.c (target_signal_to_name): Verify that SIG is within the
13128 bounds of the signals array.
13129
4daa9f9f
AC
131302002-01-13 Andrew Cagney <ac131313@redhat.com>
13131
13132 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13133
ba4bbdcb
KS
131342002-01-13 Keith Seitz <keiths@redhat.com>
13135
13136 * stack.c (print_frame_info_base): Print the frame's pc
13137 only if when print_frame_info_listing_hook is not defined.
13138
575bbeb6
KS
131392002-01-13 Keith Seitz <keiths@redhat.com>
13140
13141 * varobj.c (varobj_set_value): Make sure that there were no
13142 errors evaluating the object before attempting to set its
13143 value.
13144 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13145 so this offset adjustment is no longer necessary.
13146 (create_child): Don't set the error flag if the child is
13147 a CPLUS_FAKE_CHILD.
13148 (value_of_child): If value_fetch_lazy fails, return NULL
13149 so that callers will be notified that an error occurred.
13150 (c_value_of_variable): Delay check of variable's validity
13151 until later. We actually want all structs and unions to have
13152 the value "{...}".
13153 Do not return "???" for variables which could not be evaluated.
13154 This error condition must be returned to the caller so that it
13155 can get the error condition from gdb.
13156 (cplus_name_of_child): Adjust index for vptr before figuring
13157 out the name of the child.
13158 (cplus_value_of_child): If a child's (real) parent is not valid,
13159 don't even bother trying to give a value for it. Just return
13160 an error. Change all instances in this function.
13161 (cplus_type_of_child): If our parent is one of the "fake"
13162 parents, we need to get at the type of the real parent, and
13163 derive the child's true type using this information.
13164
b76898ab
AC
131652002-01-13 Andrew Cagney <ac131313@redhat.com>
13166
13167 From 2002-01-09 John Marshall <johnm@falch.net>:
13168 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13169 sources.redhat.com, and tweak some related URLs which had
13170 suffered from linkrot.
13171
b6649e88
AC
131722002-01-13 Andrew Cagney <ac131313@redhat.com>
13173
13174 From Jeff law:
13175 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13176 structures passed in registers.
13177
82cc5033
EZ
131782002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13179
13180 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13181 white space which prevented compilation. Reported by DSK
13182 <dsk@student.unsw.edu.au>.
13183
ba5f2f8a
MS
131842002-01-11 Michael Snyder <msnyder@redhat.com>
13185
fbd35540
MS
13186 * symfile.c (build_section_addr_info_from_section_tab):
13187 Use bfd access method instead of manipulating bfd directly.
13188 (syms_from_objfile): Ditto.
13189 (simple_overlay_update_1): Ditto.
13190 (simple_overlay_update): Ditto.
13191 (generic_load): Ditto.
13192 (overlay_unmapped_address): FIXME comment, bfd access methods.
13193 (sections_overlap): FIXME comment, bfd access methods.
13194 (pc_in_mapped_range): FIXME comment, bfd access methods.
13195 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13196 (section_is_mapped): FIXME comment, bfd access methods.
13197 (section_is_overlay): FIXME comment, bfd access methods.
13198
ba5f2f8a
MS
13199 * symfile.c (generic_load): Whitespace and long line cleanups.
13200 Remove duplicate variable, change several local variables to
13201 more appropriate data types.
13202 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13203
17df2af6
AC
132042002-01-12 Andrew Cagney <ac131313@redhat.com>
13205
13206 From Peter Schauer:
13207 * language.c (longest_local_hex_string_custom): Use phex_nz to
13208 convert NUM to a hex string.
13209
ec920329
EZ
132102002-01-12 Elena Zannoni <ezannoni@redhat.com>
13211
13212 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13213 the function.
538a76d6 13214 Update Copyright year.
ec920329 13215
3abd2e01
AC
132162002-01-12 Andrew Cagney <ac131313@redhat.com>
13217
13218 * language.c (longest_raw_hex_string): Delete unused function.
13219
b21b22e0
PS
132202002-01-11 Petr Sorfa <petrs@caldera.com>
13221
13222 * MAINTAINERS (write-after-approval): Add myself.
13223 * dwarf2read.c (read_tag_string_type): Handling of
13224 DW_AT_byte_size.
13225 (read_tag_string_type): FORTRAN fix to prevent propagation of
13226 first string size.
13227 (set_cu_language): Handling of DW_LANG_Fortran95
13228
747fe712
RE
132292002-01-11 Richard Earnshaw <rearnsha@arm.com>
13230
13231 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13232 GETPID(inferior_ptid).
13233 (store_inferior_registers): Likewise.
13234
f1bea926
JM
132352002-01-10 Jason Merrill <jason@redhat.com>
13236
13237 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13238 Fix DW_OP_minus.
13239
ae940673
AC
132402002-01-10 Andrew Cagney <ac131313@redhat.com>
13241
13242 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13243 and bfd/elf32-sh-nbsd.c.
13244
00546b04
MS
132452002-01-10 Michael Snyder <msnyder@redhat.com>
13246
352ed7b4
MS
13247 * NEWS: Mention --pid and corefile/proc-id behavior change.
13248
c18be923
MS
13249 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13250 * gcore.c: Include cli/cli-decode.h instead of command.h.
13251
00546b04
MS
13252 * main.c (captured_main): Add new command line option "--pid".
13253 If the second command line argument (following the symbol-file)
13254 begins with a digit, try to attach to it before trying to open
13255 it as a corefile.
13256 (print_gdb_help): Document the "--pid" argument.
13257
db60ec62
EZ
132582002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13259
13260 * completer.c (command_completer): New function.
13261
13262 * completer.h <command_completer>: Add prototype.
13263
13264 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13265 completer for the "help" command.
13266
39c22d1a
JM
132672002-01-09 Jason Merrill <jason@redhat.com>
13268
13269 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13270
c564377f
MS
132712002-01-09 Michael Snyder <msnyder@redhat.com>
13272
975aec09
MS
13273 * i386-linux-nat.c (fill_fpxregset): Make global.
13274 (store_fpxregset): Ditto.
13275
db4a10fa
MS
13276 * gregset.h (gdb_fpxregset_t): Define.
13277 (supply_fpxregset): Prototype.
13278 (fill_fpxregset): Prototype.
13279
c564377f
MS
13280 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13281
c3d45d70
RE
132822002-01-09 Richard Earnshaw <rearnsha@arm.com>
13283
13284 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13285 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13286 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13287
fcc87af1
AC
132882002-01-09 Andrew Cagney <ac131313@redhat.com>
13289
13290 * MAINTAINERS: Update target maintainer rules so that any
13291 Maintainer can approve a tested patch for a maintenance-only
13292 target.
13293
dd96c05b
RE
132942002-01-09 Richard Earnshaw <rearnsha@arm.com>
13295
d4297db9 13296 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13297
d4297db9 13298 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13299 IN_SIGTRAMP.
13300
145fdc6e
MS
133012002-01-08 Michael Snyder <msnyder@redhat.com>
13302
13303 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13304 real name of the executable, rather than the /proc name.
13305
be4d1333
MS
133062002-01-03 Michael Snyder <msnyder@redhat.com>
13307
13308 Implement a "generate-core-file" command in gdb, save target state.
13309 * gcore.c: New file. Implement new command 'generate-core-file'.
13310 Save a corefile image of the current state of the inferior.
13311 * linux-proc.c: Add linux-specific code for saving corefiles.
13312 * target.h (struct target_ops): Add new target vectors for saving
13313 corefiles; to_find_memory_regions and to_make_corefile_notes.
13314 (target_find_memory_regions): New macro.
13315 (target_make_corefile_notes): New macro.
13316 * target.c (update_current_target): Inherit new target methods.
13317 (dummy_find_memory_regions): New place-holder method.
13318 (dummy_make_corefile_notes): New place-holder method.
13319 (init_dummy_target): Initialize new dummy target vectors.
13320 * exec.c (exec_set_find_memory_regions): New function.
13321 Allow the exec_ops vector for memory regions to be taken over.
13322 (exec_make_note_section): New function, target vector method.
13323 * defs.h (exec_set_find_memory_regions): Export prototype.
13324 * procfs.c (proc_find_memory_regions): New function, corefile method.
13325 (procfs_make_note_section): New function, corefile method.
13326 (init_procfs_ops): Set new target vector pointers.
13327 (find_memory_regions_callback): New function.
13328 (procfs_do_thread_registers): New function.
13329 (procfs_corefile_thread_callback): New function.
13330 * sol-thread.c (sol_find_memory_regions): New function.
13331 (sol_make_note_section): New function.
13332 (init_sol_thread_ops): Initialize new target vectors.
13333 * inftarg.c (inftarg_set_find_memory_regions): New function.
13334 Allow to_find_memory_regions vector to be taken over.
13335 (inftarg_set_make_corefile_notes): New function.
13336 Allow to_make_corefile_notes vector to be taken over.
13337 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13338 interface layer if not target_has_execution (may be a corefile).
13339 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13340 * config/sparc/sun4sol2.mh: Ditto.
13341 * config/alpha/alpha-linux.mh: Ditto.
13342 * config/arm/linux.mh: Ditto.
13343 * config/i386/x86-64linux.mh: Ditto.
13344 * config/ia64/linux.mh: Ditto.
13345 * config/m68k/linux.mh: Ditto.
13346 * config/mips/linux.mh: Ditto.
13347 * config/powerpc/linux.mh: Ditto.
13348 * config/sparc/linux.mh: Ditto.
13349
c6b92abd
MS
133502002-01-07 Michael Snyder <msnyder@redhat.com>
13351
13352 * arm-linux-nat.c: Remove references to regcache.c internal data
13353 (registers[] and register_valid[]).
13354
4b09dc8c
MS
133552002-01-07 Michael Snyder <msnyder@redhat.com>
13356
abf22e64
AJ
13357 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13358 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13359 symbol file and shlibs.
13360 * Makefile.in: Add rule for linux-proc.o.
13361 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13362 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13363 * config/arm/linux.mh: Ditto.
13364 * config/i386/linux.mh: Ditto.
13365 * config/i386/x86-64linux.mh: Ditto.
13366 * config/ia64/linux.mh: Ditto.
13367 * config/m68k/linux.mh: Ditto.
13368 * config/mips/linux.mh: Ditto.
13369 * config/powerpc/linux.mh: Ditto.
13370 * config/sparc/linux.mh: Ditto.
13371
c25b74ac
PM
133722002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13373
13374 * win32-nat.c: Add i386-tdep.h dependency.
13375
94cd915f
MS
133762002-01-07 Michael Snyder <msnyder@redhat.com>
13377
c7cccb76
MS
13378 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13379 instead of bfd_get_arch_size. Don't bail out just because
13380 there's no exec_bfd.
abf22e64 13381
34c0bd93
MS
13382 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13383 * p-valprint.c (pascal_object_print_value): Ditto.
13384 * somread.c (som_symtab_read): Ditto.
13385 * symfile.c (simple_free_overlay_region_table): Ditto.
13386 * valops.c (value_assign): Ditto.
13387
21c1c920
MS
13388 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13389 use tilde_expand and strerror for opening save-tracepoints file.
13390
5bbd998e
MS
13391 * thread-db.c (thread_db_new_objfile): Indendation fix.
13392
94cd915f
MS
13393 * infptrace.c (GDB_MAX_ALLOCA): New define.
13394 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13395 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13396 can be overridden with whatever value is appropriate to the host).
13397 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13398 alloca to allocate potentially large buffer.
13399 * rs6000-nat.c (child_xfer_memory): Ditto.
13400 * symm-nat.c (child_xfer_memory): Ditto.
13401 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13402
494e8a93
JSC
134032002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13404
13405 From Nick Clifton <nickc@redhat.com>
13406 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13407
d0e1d48e
MS
134082002-01-07 Michael Snyder <msnyder@redhat.com>
13409
abf22e64 13410 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13411 Don't use exec_bfd if it's NULL.
13412
290b2c7a
MK
134132002-01-06 Mark Kettenis <kettenis@gnu.org>
13414
abf22e64 13415 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13416
aef21287
AC
134172002-01-06 Andrew Cagney <ac131313@redhat.com>
13418
13419 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13420 * gnu-nat.c: Ditto.
13421
30efa627
AC
134222002-01-06 Andrew Cagney <ac131313@redhat.com>
13423
13424 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13425 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13426 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13427 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13428 z8k-coff have not been multi-arched. Update z8k-coff build
13429 status.
13430
9b4ff276
AC
134312002-01-06 Andrew Cagney <ac131313@redhat.com>
13432
13433 * MAINTAINERS: Mark a29k target as obsolete.
13434 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13435 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13436 comments.
13437 * NEWS: Note that a29k targets are obsolete.
13438 * a29k-tdep.c: Mark as obsolete.
13439 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13440 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13441 a29k-*-vxworks* targets as obsolete.
13442 * remote-adapt.c: Obsolete.
13443 * remote-eb.c: Obsolete.
13444 * remote-mm.c: Obsolete.
13445 * remote-udi.c: Obsolete.
13446 * config/a29k/a29k-udi.mt: Obsolete.
13447 * config/a29k/a29k.mt: Obsolete.
13448 * config/a29k/tm-a29k.h: Obsolete.
13449 * config/a29k/tm-vx29k.h: Obsolete.
13450 * config/a29k/vx29k.mt: Obsolete.
13451
a9011d31
AC
134522002-01-05 Andrew Cagney <ac131313@redhat.com>
13453
13454 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13455 with BFD_ENDIAN_BIG.
13456
9299404e
AC
134572002-01-05 Andrew Cagney <ac131313@redhat.com>
13458
13459 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13460 * configure, config.in: Re-generate.
13461 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13462 * defs.h: Do not include <endian.h>.
13463
7e89e357
JT
134642002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13465
13466 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13467 * config.in: Regenerate.
13468 * configure.in: Update copyright years.
13469 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13470 * configure: Regenerate.
13471 * i386bsd-nat.c: Update copyright years.
13472 (fill_gregset): Use regcache_collect.
13473 (fetch_inferior_registers): Only fetch integer registers
13474 if requested to do so. Add support for XMM registers
13475 using PT_GETXMMREGS.
13476 (store_inferior_registers): Only store integer registers
13477 if requested to do so. Add support for XMM registers
13478 using PT_SETXMMREGS.
13479 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13480 (store_inferior_registers): Remove.
13481 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13482 (fetch_elfcore_registers): New function.
13483 (i386nbsd_elfcore_fns): New.
13484 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13485 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13486 i386bsd-nat.o.
13487 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13488 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13489 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13490 * config/i386/tm-nbsd.h: Update copyright years.
13491 (HAVE_SSE_REGS): Define.
13492 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13493 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13494 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13495 (SIGCONTEXT_PC_OFFSET): Remove.
13496 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13497
a752853e
AC
134982002-01-05 Andrew Cagney <ac131313@redhat.com>
13499
13500 * configure.tgt: Remove powerpc-*-macos* target.
13501 * config/m68k/xm-mpw.h: Delete file.
13502 * config/xm-mpw.h: Delete file.
13503 * ser-mac.c: Delete file.
13504 * mpw-make.sed: Delete file.
13505 * mpw-config.in: Delete file.
13506 * mac-xdep.c: Delete file.
13507 * mac-gdb.r: Delete file.
13508 * mac-defs.h: Delete file.
13509 * mac-nat.c: Delete file.
13510 * config/powerpc/macos.mh: Delete file.
13511 * config/powerpc/macos.mt: Delete file.
13512 * config/powerpc/nm-macos.h: Delete file.
13513 * config/powerpc/tm-macos.h: Delete file.
13514 * source.c (openp, open_source_file): Remove obsolete code.
13515 * top.c (gdb_readline): Ditto.
13516 * utils.c (query): Ditto.
13517 * event-top.c (display_gdb_prompt): Ditto.
13518 * Makefile.in (ser-mac.o): Delete obsolete target.
13519 * NEWS: Update.
13520
d7449b42
AC
135212002-01-04 Andrew Cagney <ac131313@redhat.com>
13522
13523 * defs.h (BIG_ENDIAN): Delete macro definition.
13524 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13525 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13526 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13527 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13528 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13529 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13530 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13531 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13532 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13533 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13534 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13535 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13536 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13537 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13538 * gdbarch.c: Re-generate.
13539
356374e8
DJ
135402002-01-04 Daniel Jacobowitz <drow@mvista.com>
13541
13542 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13543 for core files.
13544
a2b8f8f8
JT
135452002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13546
13547 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13548
12466af9
AC
135492002-01-04 Andrew Cagney <ac131313@redhat.com>
13550
13551 * value.h (value_ptr): Delete typedef.
13552
3549ab40
JT
135532002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13554
13555 * i386nbsd-nat.c: Update copyright years.
13556 Include i386-tdep.h.
13557
fedbd091
EZ
135582002-01-04 Elena Zannoni <ezannoni@redhat.com>
13559
13560 * stabsread.c: Update copyright years.
13561
13562 From Debashis Mahata <debashis.mahata@wipro.com>:
13563 (read_struct_fields): Deal with Sun C compiler erroneous stab
13564 output for structs and unions.
fec8b34f 13565 Fix PR gdb/269.
fedbd091 13566
eb43544b
DJ
135672002-01-04 Daniel Jacobowitz <drow@mvista.com>
13568
13569 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13570 prototype.
13571
1514d34e
DJ
135722002-01-04 Daniel Jacobowitz <drow@mvista.com>
13573
13574 * cp-abi.c: Fix whitespace.
13575 (baseclass_offset): New wrapper function.
13576 * cp-abi.h (baseclass_offset): Add prototype.
13577 (struct cp_abi_ops): Add baseclass_offset pointer.
13578
13579 * valops.c (vb_match): Move to...
13580 * gnu-v2-abi.c (vb_match): here.
13581 * valops.c (baseclass_offset): Move to...
13582 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13583
13584 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13585
13586 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13587 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13588 * hpacc-abi.c (init_hpacc_ops): Likewise.
13589
7f8c9282
DJ
135902002-01-04 Daniel Jacobowitz <drow@mvista.com>
13591
13592 * valops.c (find_overload_match): Accept obj as a
13593 reference parameter. Update it before returning.
13594 * value.h (find_overload_match): Update prototype.
13595 * eval.c (evaluate_subexp_standard): Pass object to
13596 find_overload_match by reference.
13597
f23631e4
AC
135982002-01-03 Andrew Cagney <ac131313@redhat.com>
13599
13600 * valarith.c: Replace value_ptr with struct value pointer. Remove
13601 register attribute from value declarations.
13602 * valops.c: Ditto.
13603 * value.h: Ditto.
13604 * scm-lang.c (scm_lookup_name): Ditto.
13605
79e10fab 136062002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13607
79e10fab
AC
13608 Abstract the functionality of iterating over mapped memory
13609 regions into a general purpose iterator function.
abf22e64 13610 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13611 iterator for memory sections.
13612 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13613 (solib_mappings_callback): New function, callback for above.
13614 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13615 (info_mappings_callback): New function, callback for above.
13616
13617 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13618
c5ad026a
MK
136192002-01-01 Mark Kettenis <kettenis@gnu.org>
13620
d2a7c97a
MK
13621 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13622 * i386-tdep.c: Include "elf-bfd.h".
13623 (process_note_abi_tag_sections): New function.
13624 (i386_gdbarch_init): Add code to recognize various OS/ABI
13625 combinations.
13626
c5ad026a
MK
13627 * maint.c (_initialize_maint_cmds): Add missing \ in
13628 string-literal.
13629
a1a5b71e 13630For older changes see ChangeLog-2001
c906108c
SS
13631\f
13632Local Variables:
13633mode: change-log
13634left-margin: 8
13635fill-column: 74
13636version-control: never
13637End:
This page took 1.145168 seconds and 4 git commands to generate.