*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
933c6fe4
DC
12002-11-25 David Carlton <carlton@math.stanford.edu>
2
3 * dwarf2read.c (scan_partial_symbols): Descend into namespace
4 pdi's with no name.
5
158a8022
AC
62002-11-25 Andrew Cagney <ac131313@redhat.com>
7
8 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
9 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
10
481d0f41
JB
112002-11-25 Jim Blandy <jimb@redhat.com>
12
e8289572
JB
13 * symfile.c (init_objfile_sect_indices): New function.
14 (default_symfile_offsets): Move the section-index-initializing
15 stuff into init_objfile_sect_indices, and call that.
16
b29c9944
JB
17 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
18 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
19
13de58df
JB
20 * symfile.c (syms_from_objfile): Adjust indentation.
21
481d0f41
JB
22 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
23 || info_verbose isn't true.
24
7d6a26a7
AC
252002-11-24 Andrew Cagney <ac131313@redhat.com>
26
27 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
28 default to get_frame_base.
29 * gdbarch.h, gdbarch.c: Regenerate.
30 * arch-utils.c (default_frame_address): Delete function.
31 * arch-utils.h (default_frame_address): Delete declaration
32
6abe1021
PM
332002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
34
35 * varobj.c (find_frame_addr_in_frame_chain):
36 Use get_frame_base instead of FRAME_FP,
37 obvious fix.
38
c193f6ac
AC
392002-11-19 Andrew Cagney <ac131313@redhat.com>
40
41 * frame.h (FRAME_FP): Delete macro.
42 (get_frame_base): New function declaration.
43 * frame.c (get_frame_base): New function.
44 (get_frame_id): Use ->frame.
45 (frame_find_by_id): Rewrite to use get_frame_id.
46 * blockframe.c: Use get_frame_base instead of FRAME_FP.
47 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
48 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
49 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
50 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
51 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
52 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
53
e5d2af14
AC
542002-11-24 Andrew Cagney <ac131313@redhat.com>
55
56 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
57
931d12c6
AC
582002-11-24 Andrew Cagney <ac131313@redhat.com>
59
60 * frame.c (set_unwind_by_pc): Revert change below, use
61 PC_IN_CALL_DUMMY.
62 (get_prev_frame): Ditto.
63
5e0f933e
AC
642002-11-24 Andrew Cagney <ac131313@redhat.com>
65
66 * dummy-frame.c (pc_in_dummy_frame): New function.
67 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
68 (find_dummy_frame): Update comment.
69 (generic_pop_current_frame): Use get_frame_type.
70 * dummy-frame.h (pc_in_dummy_frame): Declare.
71 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
72 (create_new_frame): Use pc_in_dummy_frame.
73 (get_prev_frame): Use pc_in_dummy_frame.
74 (frame_saved_regs_register_unwind): Use get_prev_frame.
75 (deprecated_generic_get_saved_register): Use get_prev_frame.
76
7d8547c9
AC
772002-11-23 Andrew Cagney <ac131313@redhat.com>
78
79 * blockframe.c (find_frame_addr_in_frame_chain): Move function
80 from here ...
81 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
82 (varobj_create): Note that frame ID should be used.
83 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
84
0225421b
AC
852002-11-23 Andrew Cagney <ac131313@redhat.com>
86
87 * breakpoint.c: Include "gdb_assert.h".
88 (deprecated_frame_in_dummy): Assert that generic dummy frames are
89 not being used.
90 * Makefile.in (breakpoint.o): Update dependencies.
91 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
92 deprecated_frame_in_dummy.
93 * stack.c (print_frame_info_base): Ditto.
94 (frame_info): Ditto.
95 (print_frame_info_base): Ditto. Delete dead code.
96
32eeb91a
AS
972002-11-23 Andreas Schwab <schwab@suse.de>
98
99 * Makefile.in (m68k_tdep_h): Define.
100 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
101 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
102 * m68k-tdep.c: Move register number enum ...
103 * m68k-tdep.h: ... to this new file and rename the constants from
104 E_* to M68K_*. All uses changed.
105 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
106 * abug-rom.c: Include "m68k-tdep.h". Use
107 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
108 * cpu32bug-rom.c: Likewise.
109 * dbug-rom.c: Likewise.
110 * m68k-tdep.c: Likewise.
111 * m68klinux-nat.c: Likewise.
112 * remote-est.c: Likewise.
113 * rom68k-rom.c: Likewise.
114 * config/m68k/tm-linux.h: Likewise.
115
9648bac8
AC
1162002-11-23 Andrew Cagney <ac131313@redhat.com>
117
118 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
119 dummy frame initialization code.
120 * mips-tdep.c (mips_gdbarch_init): Ditto.
121
91a175b3
CF
1222002-11-22 Christopher Faylor <cgf@redhat.com>
123
124 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
125 attach will hang.
126
f4ded5b1
AC
1272002-11-22 Andrew Cagney <ac131313@redhat.com>
128
129 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
130 to default_frame_address.
131 * gdbarch.h, gdbarch.c: Re-generate.
132
133 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
134 or frame_locals_address to default_frame_address.
135 * m68k-tdep.c (m68k_gdbarch_init): Update.
136 * i386-tdep.c (i386_gdbarch_init): Update.
137 * frv-tdep.c (frv_gdbarch_init): Update.
138 * sh-tdep.c (sh_gdbarch_init): Update.
139 * v850-tdep.c (v850_gdbarch_init): Update.
140 * sparc-tdep.c (sparc_gdbarch_init): Update.
141 * mips-tdep.c (mips_gdbarch_init): Update.
142 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
143 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
145
146 * cris-tdep.c (cris_frame_args_address): Delete function.
147 (cris_frame_locals_address): Delete function.
148 (cris_gdbarch_init): Do not set frame_args_address or
149 frame_locals_address.
150
f7c1e0f3
MS
1512002-11-22 Michael Snyder <msnyder@redhat.com>
152
153 * thread-db.c (thread_db_load): Tell the user what's going on
154 if dlopen fails on libthread_db.
155
03dac896
AS
1562002-11-23 Andreas Schwab <schwab@suse.de>
157
158 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
159 invariant return values.
160
7a67d0fe
AS
1612002-11-22 Andreas Schwab <schwab@suse.de>
162
163 * valops.c (value_slice): Move declaration of `offset' to avoid
164 warning.
165
5633f842
CF
1662002-11-22 Christopher Faylor <cgf@redhat.com>
167
168 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
169 (struct so_stuff): Add end_addr field.
170 (register_loaded_dll): Calculate and store end address of loaded dll.
171 (solib_address): New function.
172 (child_solib_loaded_library_pathname): Pass carefully constructed
173 section info to safe_symbol_file_add rather than ignoring it.
174 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
175 DLL is loaded.
176 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
177 (child_create_inferior): Fix a compiler warning.
178 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
179 (solib_address): Declare new function.
180
d85fe7f7
AS
1812002-11-22 Andreas Schwab <schwab@suse.de>
182
183 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
184 and FPS registers.
185
8308e54c
DJ
1862002-11-21 Daniel Jacobowitz <drow@mvista.com>
187
188 * maint.c (_initialize_maint_cmds): Fix typo. From
189 Francesco Potorti` <pot@gnu.org>.
190
8997bd5e
AC
1912002-11-21 Andrew Cagney <cagney@redhat.com>
192
193 * mips-tdep.c (mips_dump_tdep): Delete references to
194 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
195 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
196 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
197 * printcmd.c (build_address_symbolic): Delete calls to
198 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
199 (address_info): Ditto.
200 Fix PR gdb/773.
201
4e87b832
KD
2022002-11-19 Klee Dienes <kdienes@apple.com>
203 Adam Fedor <fedor@gnu.org>
204
205 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
206 the ability to explicitly specify the quote characters and word
207 break characters; if NULL is specified for either, use the old
208 behavior of using the characters used by the completer.
209 (skip_chars): New function. Convenience wrapper around
210 skip_quoted_chars to provide the original skip_chars behavior.
211 * completer.h (skip_quoted_chars): Add prototype.
212
9ba8d803
AC
2132002-11-19 Andrew Cagney <ac131313@redhat.com>
214
215 Problems reported by Paul Eggert.
216 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
217
0a595803
AS
2182002-11-19 Andreas Schwab <schwab@suse.de>
219
220 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
221 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
222 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
223 (m68k_linux_frame_saved_pc): Move to ...
224 * m68klinux-tdep.c: ... here. New file.
225 * Makefile.in (m68klinux-tdep.o): Add dependencies.
226 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
227
e8afa4d7
AF
2282002-11-19 Adam Fedor <fedor@gnu.org>
229
230 * objc-exp.y: Revert to old skip_quoted usage.
231
a76c9d72
AF
2322002-11-19 Adam Fedor <fedor@gnu.org>
233
234 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
235 (objc_lang_h): Define.
236 (YYFILES): Add objc-exp.tab.c.
237 (local-maintainer-clean): Remove objc-exp.tab.c.
238 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
239
fd0e9d45
PM
2402002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
241
242 * p-exp.y (typecast rule): Add automatic dereference of
243 pascal classes if needed.
244 (THIS): Set current_type.
245 Automatically dereference pascal classes.
246 (typebase rule): Add ^typebase recognition.
247
82eeeb94
AF
2482002-11-18 Adam Fedor <fedor@gnu.org>
249
250 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
251 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
252 (op_name): Handle OP_OBJC_SELF.
253 * Makefile.in (expprint.o): Add additional depends.
254
646df18d
AF
2552002-11-18 Adam Fedor <fedor@gnu.org>
256
257 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
258 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
259 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
260 * objc-exp.y: Likewise.
261
379b85df
AF
2622002-11-18 Adam Fedor <fedor@gnu.org>
263
264 * gdb/parser-defs.h: (struct objc_class_str): New structure
265 for parsing ObjC classes.
266
85cf597a
AC
2672002-11-18 Andrew Cagney <ac131313@redhat.com>
268
269 * stack.c (frame_relative_level): Copy function from here ...
270 * frame.c (frame_relative_level): ...to here.
271
5a203e44
AC
2722002-11-18 Andrew Cagney <ac131313@redhat.com>
273
274 * frame.h (enum frame_type): Define.
275 (get_frame_type): Declare.
276 (struct frame_info): Add field `type'. Delete field
277 signal_handler_caller.
278 (deprecated_set_frame_signal_handler_caller): Declare.
279 * frame.c (get_frame_type): New function.
280 (deprecated_set_frame_type): New function.
281 (create_new_frame): Set the frame's type.
282 (get_prev_frame): Similar.
283 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
284 * s390-tdep.c: Ditto.
285 * m68klinux-nat.c: Ditto.
286 * ns32k-tdep.c: Ditto.
287 * x86-64-linux-tdep.c: Ditto.
288 * vax-tdep.c: Ditto.
289 * rs6000-tdep.c: Ditto.
290 * ppc-linux-tdep.c: Ditto.
291 * i386-interix-tdep.c: Ditto.
292 * mips-tdep.c: Ditto.
293 * m68k-tdep.c: Ditto.
294 * hppa-tdep.c: Ditto.
295 * ia64-tdep.c: Ditto.
296 * cris-tdep.c: Ditto.
297 * arm-tdep.c: Ditto.
298 * alpha-tdep.c: Ditto.
299 * i386-tdep.c: Ditto.
300 * stack.c: Ditto.
301 * ada-lang.c: Ditto.
302 * blockframe.c: Update.
303 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
304 deprecated_set_frame_type instead of signal_handler_caller.
305 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
306 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
307 * breakpoint.h: Delete FIXME suggesting get_frame_type.
308
bf4ae8b2
KD
3092002-11-18 Klee Dienes <kdienes@apple.com>
310
311 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
312
a672ef13
KD
3132002-11-18 Klee Dienes <kdienes@apple.com>
314
315 * buildsym.c (pop_context): Add comment.
316
0c5e171a
KD
3172002-11-18 Klee Dienes <kdienes@apple.com>
318
319 * buildsym.h (pop_context): Convert to function, defined in
320 buildsym.c.
321 * buildsym.c: Include gdb_assert.h.
322 (pop_context): Implement as C function. Add check for stack
323 underflow.
324 * dbxread.c (process_one_symbol): Complain and stop processing
325 that symbol if we are already at the top of the context stack for
326 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
327 when processing N_RBRAC.
328
8a1f4c4c
DJ
3292002-11-16 Daniel Jacobowitz <drow@mvista.com>
330
331 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
332 define.
333 (struct target_waitstatus): Add opaque definition.
334 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
335 * exec.c (init_exec_ops): Likewise.
336 * fork-child.c (clone_and_follow_inferior): Remove.
337 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
338 * inferior.h (clone_and_follow_inferior): Remove prototype.
339 * infrun.c (follow_fork_mode_both): Remove.
340 (follow_fork_mode_kind_names): Remove commented out "both".
341 (follow_inferior_fork): Remove follow_fork_mode_both support.
342 * inftarg.c (child_clone_and_follow_inferior): Remove.
343 (child_post_follow_inferior_by_clone): Remove.
344 (init_child_ops): Don't set to_clone_and_follow_inferior
345 or to_post_follow_inferior_by_clone.
346 * target.c (default_clone_and_follow_inferior): Remove.
347 (cleanup_target): Don't set to_clone_and_follow_inferior
348 or to_post_follow_inferior_by_clone.
349 (find_default_clone_and_follow_inferior): Remove.
350 (init_dummy_target): Don't set to_clone_and_follow_inferior.
351 (debug_to_clone_and_follow_inferior): Remove.
352 (debug_to_post_follow_inferior_by_clone): Remove.
353 (setup_target_debug): Don't set to_clone_and_follow_inferior
354 or to_post_follow_inferior_by_clone.
355 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
356 and to_post_follow_inferior_by_clone.
357 (child_clone_and_follow_inferior): Remove prototype.
358 (child_post_follow_inferior_by_clone): Remove prototype.
359 (target_clone_and_follow_inferior): Remove macro.
360 (target_post_follow_inferior_by_clone): Remove macro.
361 (find_default_clone_and_follow_inferior): Remove prototype.
362
47932f85
DJ
3632002-11-16 Daniel Jacobowitz <drow@mvista.com>
364
365 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
366 inferior_has_vforked, and inferior_has_execd instead of
367 target_has_forked, target_has_vforked, and target_has_execd.
368 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
369 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
370 (CHILD_WAIT): Define.
371 (child_wait): Add prototype.
372 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
373 Add prototype.
374 (hpux_has_vforked): Likewise, from child_has_vforked.
375 (hpux_has_execd): Likewise, from child_has_execd.
376 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
377 (not_same_real_pid, child_wait): New, copied from inftarg.c.
378 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
379 and hpux_has_syscall_event instead of the target hooks.
380 * infrun.c (inferior_has_forked, inferior_has_vforked)
381 (inferior_has_execd): New functions.
382 * inftarg.c (not_same_real_pid): Remove.
383 (child_wait): Remove references to not_same_real_pid,
384 target_has_forked, target_has_vforked, target_has_execd,
385 and target_has_syscall_event.
386 (child_has_forked, child_has_vforked, child_has_execd)
387 (child_has_syscall_event): Remove.
388 (init_child_ops): Remove references to child_has_forked,
389 child_has_vforked, child_has_execd, and child_has_syscall_event.
390 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
391 (hpux_has_vforked): Likewise, from child_has_vforked.
392 (hpux_has_execd): Likewise, from child_has_execd.
393 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
394 * target.c (cleanup_target): Remove references to
395 to_has_forked, to_has_vforked, to_has_execd, and
396 to_has_syscall_event.
397 (update_current_target): Likewise.
398 (setup_target_debug): Likewise.
399 (debug_to_has_forked): Remove.
400 (debug_to_has_vforked): Remove.
401 (debug_to_has_execd): Remove.
402 (debug_to_has_syscall_event): Remove.
403 * target.h (struct target_ops): Remove to_has_forked.
404 to_has_vforked, to_has_execd, and to_has_syscall_event.
405 (child_has_forked, child_has_vforked, child_has_execd)
406 (child_has_syscall_event): Remove prototypes.
407 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
408 prototypes.
409 (target_has_forked, target_has_vforked, target_has_execd)
410 (target_has_syscall_event): Remove macros.
411
4088142a
DJ
4122002-11-16 Daniel Jacobowitz <drow@mvista.com>
413
414 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
415 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
416 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
417 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
418 * target.c (cleanup_target): Remove reference to
419 to_can_follow_vfork_prior_to_exec.
420 (update_current_target): Likewise.
421 (debug_to_can_follow_vfork_prior_to_exec): Remove.
422 (setup_target_debug): Remove reference to
423 to_can_follow_vfork_prior_to_exec.
424 * target.h (struct target_ops): Remove
425 to_can_follow_vfork_prior_to_exec.
426 (child_can_follow_vfork_prior_to_exec): Remove prototype.
427 (target_can_follow_vfork_prior_to_exec): Remove definition.
428 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
429 define.
430 * infrun.c (follow_vfork_when_exec): Remove.
431 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
432 (follow_exec): Likewise.
433 (handle_inferior_event): Likewise.
434 (keep_going): Likewise.
435
18cde8d5
AC
4362002-11-15 Andrew Cagney <cagney@redhat.com>
437
438 * frame.c (generic_unwind_get_saved_register): Make static.
439 * frame.h (generic_unwind_get_saved_register): Delete declaration.
440 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
441 defaults to generic_unwind_get_saved_register.
442 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
444 * frv-tdep.c (frv_gdbarch_init): Ditto.
445 * i386-tdep.c (i386_gdbarch_init): Ditto.
446 * s390-tdep.c (s390_gdbarch_init): Ditto.
447 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
448 * v850-tdep.c (v850_gdbarch_init): Ditto.
449 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
450 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
451 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
452
a6b063af
AC
4532002-11-15 Andrew Cagney <cagney@redhat.com>
454
455 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
456 i386-tdep.c.
457
f407986f
AC
4582002-11-15 Andrew Cagney <cagney@redhat.com>
459
460 * frame.h (sigtramp_saved_pc): Delete declaration.
461 * blockframe.c (sigtramp_saved_pc): Delete function.
462 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
463 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
464 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
465 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
466
f18c5a73
AC
4672002-11-15 Andrew Cagney <ac131313@redhat.com>
468
469 * frame.c (frame_pc_unwind): New function.
470 (frame_saved_regs_pc_unwind): New function.
471 (frame_register_unwind): Pass unwind_cache instead of
472 register_unwind_cache.
473 (set_unwind_by_pc): Add unwind_pc parameter, set.
474 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
475 (get_prev_frame): Ditto.
476 * frame.h (frame_pc_unwind_ftype): Declare.
477 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
478 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
479 (frame_pc_unwind): Declare.
480 * dummy-frame.c (dummy_frame_pc_unwind): New function.
481 (struct dummy_frame): Add comment mentioning that values are for
482 previous frame.
483 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
484 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
485 (generic_file_frame_chain_valid): Ditto.
486 * stack.c (frame_info): Ditto.
487
d9285969 4882002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
489
490 * linespec.c (locate_first_half): New function.
491 (decode_line_1): Move code into locate_first_half.
492
d741b867
AC
4932002-11-15 Andrew Cagney <ac131313@redhat.com>
494
495 * complaints.h: Add comment explaining how to eliminate a
496 deprecated_complain call.
24382c5c 497 * complaints.h: Fix spelling errors.
d741b867 498
82d03c99
DC
4992002-11-15 David Carlton <carlton@math.stanford.edu>
500
501 * printcmd.c: Remove #include "disasm.h".
502
c97eb5d9
AC
5032002-11-14 Andrew Cagney <ac131313@redhat.com>
504
505 * frame.h: Move the most relevant interface functions to the start
506 of the file.
507
524d7c18
AC
5082002-11-14 Andrew Cagney <ac131313@redhat.com>
509
510 * regcache.h (deprecated_registers): Rename registers.
511 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
512 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
513 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
514 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
515 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
516 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
517 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
518 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
519 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
520 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
521 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
522 * v850ice.c: Update.
523
6411e720
AC
524Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
525
526 * utils.c (gdb_realpath): Add comment mentioning realpath with a
527 NULL buffer.
528
73937e03
AC
5292002-11-13 Andrew Cagney <cagney@redhat.com>
530
531 * regcache.h (deprecated_read_register_bytes): Rename
532 read_register_bytes.
533 (deprecated_write_register_bytes): Rename write_register_bytes.
534 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
535 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
536 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
537 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
538 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
539 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
540 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
541 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
542 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
543 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
544 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
545 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
546 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
547 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
548
fb0cd46e
JB
5492002-11-13 Jim Blandy <jimb@redhat.com>
550
551 * findvar.c (read_var_value): Doc fix.
552
2d28509a
AC
5532002-11-13 Andrew Cagney <cagney@redhat.com>
554
555 * regcache.c (struct regcache): Replace passthough_p with
556 readonly_p.
557 (regcache_xmalloc): Initialize readonly_p.
558 (build_regcache): Initialize readonly_p.
559 (regcache_save): New function.
560 (regcache_restore): New function.
561 (regcache_cpy): Re-implement using regcache_save and
562 regcache_restore.
563 (regcache_raw_read): Update.
564 (regcache_cooked_read): When a read-only cache, checked for cached
565 pseudo register values.
566 (regcache_raw_write): Assert that the cache is not read-only.
567 Remove code handling a non-passthrough cache.
568 * regcache.h (regcache_save): Declare.
569 (regcache_restore): Declare.
570
067df2e5
AC
5712002-11-13 Andrew Cagney <cagney@redhat.com>
572
573 * regcache.c (struct regcache_descr): Add fields
574 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
575 (init_legacy_regcache_descr): Compute the size of a cooked
576 register cache and then assign that to sizeof_raw_registers. Set
577 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
578 (init_legacy_regcache_descr): Ditto.
579
51b1fe4e
AC
5802002-11-13 Andrew Cagney <cagney@redhat.com>
581
582 * regcache.c (register_buffer): Move to near start of file, update
583 description.
584 (regcache_raw_read): Use.
585 (regcache_raw_write): Use.
586 (struct regcache): Rename raw_registers to registers and
587 raw_register_valid_p to register_valid_p.
588 (regcache_xmalloc): Update.
589 (regcache_xfree): Update.
590 (register_buffer): Update.
591 (regcache_cpy): Update.
592 (regcache_cpy_no_passthrough): Update.
593 (regcache_valid_p): Update.
594 (deprecated_grub_regcache_for_registers): Update.
595 (deprecated_grub_regcache_for_register_valid): Update.
596 (set_register_cached): Update.
597 (regcache_raw_write): Update.
598
80b4c677
PM
5992002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
600
601 * p-exp.y (name_not_typename): Use copy_name to
602 set current_type variable for fields of THIS.
603
0f3fafde
DJ
6042002-11-12 Daniel Jacobowitz <drow@mvista.com>
605
606 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
607 * monitor.c (init_base_monitor_ops): Likewise.
608 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
609 * remote-array.c (init_array_ops): Likewise.
610 * remote-e7000.c (init_e7000_ops): Likewise.
611 * remote-es.c (init_es1800_ops): Likewise.
612 (init_es1800_child_ops): Likewise.
613 * remote-rdp.c (init_remote_rdp_ops): Likewise.
614 * remote-sim.c (init_gdbsim_ops): Likewise.
615 * remote-st.c (init_st2000_ops): Likewise.
616 * sol-thread.c (init_sol_core_ops): Likewise.
617 (init_sol_thread_ops): Likewise.
618 * v850ice.c (init_850ice_ops): Likewise.
619 * win32-nat.c (init_child_ops): Likewise.
620 * wince.c (init_child_ops): Likewise.
621
82c0260e
AC
6222002-11-12 Andrew Cagney <ac131313@redhat.com>
623
624 * utils.c (gdb_realpath): Make rp a constant pointer.
625
70d35819
AC
6262002-11-12 Andrew Cagney <ac131313@redhat.com>
627
628 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
629 a constant buffer; cannonicalize_file_name(); realpath() with a
630 pathconf() defined buffer, xstrdup().
631
9835a8b0
AC
6322002-11-12 Andrew Cagney <ac131313@redhat.com>
633
634 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
635 to hang2.C; hang3.c to hang3.C.
636
3f47be5c
EZ
6372002-11-11 Elena Zannoni <ezannoni@redhat.com>
638
639 * findvar.c (read_var_value): Reenable TLS code.
640
6412002-11-11 Elena Zannoni <ezannoni@redhat.com>
642 Jim Blandy <jimb@redhat.com>
643
644 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
645 * target.c (update_current_target): Add
646 to_get_thread_local_address.
647 * target.h (to_get_thread_local_address): Export.
648 (target_get_thread_local_address): Define.
649 (target_get_thread_local_address_p): Define.
650 * thread-db.c: Include solib-svr4.h.
651 (td_thr_tls_get_addr_p): Define.
652 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
653 (thread_db_get_thread_local_address): New function.
654 (init_thread_db_ops): Initialize to_get_thread_local_address.
655 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
656 * configure: Regenerate.
657 * config.in: Regenerate.
658
636b1a6d
DC
6592002-11-11 David Carlton <carlton@math.stanford.edu>
660
661 * linespec.c (set_flags): New function.
662 (decode_line_1): Move code into set_flags.
663
44fe14ab
DC
6642002-11-11 David Carlton <carlton@math.stanford.edu>
665
666 * linespec.c (decode_line_1): Move chunks of code to separate
667 functions.
668 (initialize_defaults): New function.
669 (decode_indirect): New function.
670
e6f181f5
AC
6712002-11-11 Andrew Cagney <ac131313@redhat.com>
672
8971b011
AC
673 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
674 instead of void_code_ptr.
675 (sigtramp_saved_pc): Ditto.
676
e6f181f5
AC
677 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
678 i386_fp_regnum_p.
679
01ad7f36
DJ
6802002-11-10 Daniel Jacobowitz <drow@mvista.com>
681
682 * gdbtypes.h (struct main_type): Move artificial flag out of
683 loc. New member of ``struct field'' named static_kind. Reduce
684 overloaded meaning of bitsize.
685 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
686 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
687 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
688
689 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
690 new fields.
691 (template_to_fixed_record_type, template_to_static_fixed_type)
692 (to_record_with_fixed_variant_part): Likewise.
693 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
694 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
695 * dwarfread.c (struct_type, enum_type): Likewise.
696 * hpread.c (hpread_read_enum_type)
697 (hpread_read_function_type, hpread_read_doc_function_type)
698 (hpread_read_struct_type): Likewise.
699 * mdebugread.c (parse_symbol): Likewise.
700
bf1e52be
AC
7012002-11-10 Andrew Cagney <ac131313@redhat.com>
702
703 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
704 * stack.c (print_frame_info_base): Update.
705 (print_frame_info_base, frame_info): Update.
706 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
707 (sparc_frame_saved_pc): Update.
708 * ada-lang.c (find_printable_frame): Update.
709 * breakpoint.c (deprecated_frame_in_dummy): Update.
710
ce556f85
MK
7112002-11-09 Mark Kettenis <kettenis@gnu.org>
712
713 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
714 defined.
715 (regmap): Extend to cover all registers.
716 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
717 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
718 definitions.
719 (fetch_register, sore_register): Simplify.
720 (old_fetch_inferior_registers, old_store_inferior_registers):
721 Remove functions.
722 (cannot_fetch_register, cannot_store_register): Change
723 implementation to use regmap array to decide which registers
724 cannot be fetched/stored. This removes $orig_eax from the
725 registers that cannot be fetched/stored.
726 (fetch_inferior_registers): Call fetch_register directly instead
727 of calling old_fetch_inferior_registers.
728 (store_inferior_registers): Call store_register directly instead
729 of calling old_store_inferior_registers.
730 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
731 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
732 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
733
932bb524
KD
7342002-11-09 Klee Dienes <kdienes@apple.com>
735
736 * i387-tdep.c (i387_supply_register): When called with NULL as a
737 buffer, mark the register as not provided (to mirror the behavior
738 of supply_register).
739 (i387_supply_fxsave): Ditto.
740 (i387_supply_fsave): Ditto (inherits the behavior from
741 i387_supply_register).
742
ebe68b27
KD
7432002-11-09 Klee Dienes <kdienes@apple.com>
744
745 * blockframe.c (sigtramp_saved_pc): Use
746 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
747 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
748 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
749
15220c65
AC
7502002-11-09 Andrew Cagney <ac131313@redhat.com>
751
752 * frame.c (get_prev_frame): Test prev_p to identify a previously
753 unwound frame. Initialize prev_p.
754 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
755 comment.
756
95adb866
AC
7572002-11-09 Andrew Cagney <ac131313@redhat.com>
758
759 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
760 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
761 more comments. Zap dead code.
762
e71ecd70
MK
7632002-11-09 Mark Kettenis <kettenis@gnu.org>
764
765 * infcmd.c (print_vector_info, print_float_info): Move code that
766 checks whether the target has any registers and whether there is a
767 selected frame up, such that it is also used if a target provides
768 multi-arch definitions of these functions.
769
c525330d
AC
7702002-11-08 Andrew Cagney <ac131313@redhat.com>
771
72bdd927
AC
772 * Makefile.in (DESTDIR): Define.
773 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
774 prefix.
775
c525330d
AC
776 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
777 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
778
38c968cf
AC
7792002-11-08 Andrew Cagney <ac131313@redhat.com>
780
781 * i386-linux-tdep.c: Include "reggroups.h".
782 (i386_linux_register_reggroup_p): New function.
783 (i386_linux_init_abi): Set register_reggroup_p to
784 i386_linux_register_reggroup_p.
785 * i386-tdep.h (i386_register_reggroup_p): Declare.
786 * i386-tdep.c: Include "reggroups.h".
787 (i386_init_reggroups): New function.
788 (i386_add_reggroups): New function.
789 (i386_register_reggroup_p): New function.
790 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
791 (_initialize_i386_tdep): Call i386_init_reggroups.
792 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
793 specific reggroups.
794
19e33363
MK
7952002-11-09 Mark Kettenis <kettenis@gnu.org>
796
371a6e84
MK
797 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
798 request that's available in *BSD.
799
94ba925a
MK
800 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
801
19e33363
MK
802 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
803 FDOFF_REGNUM.
804
8779790c
AC
8052002-11-08 Andrew Cagney <ac131313@redhat.com>
806
807 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
808 * dummy-frame.c (find_dummy_frame): Rename
809 generic_find_dummy_frame, make static. Return the dummy frame
810 instead of the regcache.
811 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
812 (cached_find_dummy_frame): New function. Use find_dummy_frame.
813 (dummy_frame_register_unwind): Rename
814 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
815 * dummy-frame.h (dummy_frame_register_unwind): Rename
816 generic_call_dummy_register_unwind.
817
8674b74f
MK
8182002-11-08 Mark Kettenis <kettenis@gnu.org>
819
820 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
821 except the inclusion of "i386/tm-i386.h", to...
822 * config/i386/nm-i386v42mp.h: ...here.
823 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
824
4c1e7e9d
AC
8252002-11-08 Andrew Cagney <ac131313@redhat.com>
826
827 * Makefile.in (frame.o): Update dependencies.
828 * blockframe.c (current_frame, frame_obstack_alloc)
829 (frame_saved_regs_zalloc, get_current_frame)
830 (set_current_frame, create_new_frame)
831 (set_unwind_by_pc, get_next_frame)
832 (flush_cached_frames, reinit_frame_cache)
833 (frame_saved_regs_register_unwind)
834 (deprecated_generic_get_saved_register)
835 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
836 (_initialize_blockframe): Move frame code from here...
837 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
838 "annotate.h" and "dummy-frame.h".
839 (_initialize_frame): New function.
840
921e78cf
JB
8412002-11-08 Jim Blandy <jimb@redhat.com>
842
843 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
844 when we finish a function a context.
845 * buildsym.h (outermost_context_p): New macro.
846 (Bug analyzed by David Edelsohn.)
847
9c1412c1
AC
8482002-11-08 Andrew Cagney <ac131313@redhat.com>
849
850 * blockframe.c: Include "dummy-frame.h".
851 (struct dummy_frame, dummy_frame_stack)
852 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
853 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
854 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
855 (generic_save_call_dummy_addr, generic_pop_current_frame)
856 (generic_pop_dummy_frame, generic_fix_call_dummy)
857 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
858 dummy frame code from here...
859 * dummy-frame.c: ...to here. New file.
860 * dummy-frame.h: New file.
861 (generic_call_dummy_register_unwind): Declare.
862 (generic_find_dummy_frame): Declare.
863 * Makefile.in (SFILES): Add dummy-frame.c.
864 (dummy-frame.o): Specify dependencies.
865 (dummy_frame_h): Define.
866 (COMMON_OBS): Add dummy-frame.o.
867 (blockframe.o): Update dependencies.
868
208d8187
JB
8692002-11-08 Jim Blandy <jimb@redhat.com>
870
871 * dwarf2read.c (read_func_scope): Restore local_symbols and
872 param_symbols after we finish the function context. (Based on a
873 patch from David Edelsohn.)
874
413dad4d
DC
8752002-11-08 David Carlton <carlton@math.stanford.edu>
876
877 * linespec.c (symbol_found): New function.
878 (minsym_found): New function.
879 (decode_line_1): Separate out some code into separate functions.
880
5512c44a
JB
8812002-11-08 Joel Brobecker <brobecker@gnat.com>
882
883 * i386-tdep.c (i386_frameless_signal_p): Make non static for
884 the benefit of the interix target.
885 * i386-tdep.h (i386_frameless_signal_p): Declare.
886
1b33ef47
AC
8872002-11-08 Andrew Cagney <ac131313@redhat.com>
888
889 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
890 declaration that snuck in from change below.
891
23a34459
AC
8922002-11-06 Andrew Cagney <cagney@redhat.com>
893
894 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
895 all callers.
896 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
897 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
898 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
899 (i386_mxcsr_regnum_p): new function. Use instead of
900 MXCSR_REGNUM_P.
901 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
902 (i386_sse_regnum_p): Declare.
903 (i386_mxcsr_regnum_p): Declare.
904 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
905 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
906 (IS_FP_REGNUM): Update definition.
907 (IS_FPU_CTRL_REGNUM): Update definition..
908 (IS_SSE_REGNUM): Update definition..
909 * i386v-nat.c (register_u_addr): Update.
910 * go32-nat.c (fetch_register): Update.
911 (store_register): Update.
912
d709c020
JB
9132002-11-07 Joel Brobecker <brobecker@gnat.com>
914
915 Preparation work to convert the hppa targets to multiarch partial.
916
917 * hppa-tdep.c: Add new functions replacing macro bodies from
918 config/pa/tm-hppa.h. These function will be used to initialize
919 the gdbarch structure. Import some comments from tm-hppa.h,
920 and place them where appropriate, to avoid loosing them when
921 we cleanup this file.
922 (hppa_reg_struct_has_addr): New function.
923 (hppa_inner_than): New function.
924 (hppa_stack_align): New function.
925 (hppa_pc_requires_run_before_use): New function.
926 (hppa_instruction_nullified): New function.
927 (hppa_register_byte): New function.
928 (hppa_register_virtual_type): New function.
929 (hppa_store_struct_return): New function.
930 (hppa_cannot_store_register): New function.
931 (hppa_frame_args_address): New function.
932 (hppa_frame_locals_address): New function.
933 (hppa_smash_text_address): New function.
934 (hppa_coerce_float_to_double): New function. Requires the inclusion
935 of "language.h".
936
937 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
938
939 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
940 gdbarch-eligible macro to a call to the new associated function
941 created in hppa-tdep.c.
942 (INNER_THAN): Likewise.
943 (STACK_ALIGN): Likewise.
944 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
945 (INSTRUCTION_NULLIFIED): Likewise.
946 (REGISTER_BYTE): Likewise.
947 (REGISTER_VIRTUAL_TYPE): Likewise.
948 (STORE_STRUCT_RETURN): Likewise.
949 (CANNOT_STORE_REGISTER): Likewise.
950 (FRAME_ARGS_ADDRESS): Likewise.
951 (FRAME_LOCALS_ADDRESS): Likewise.
952 (SMASH_TEXT_ADDRESS): Likewise.
953 (COERCE_FLOAT_TO_DOUBLE): Likewise.
954 (ABOUT_TO_RETURN): Delete, as no longer used.
955
83c31e7d
FN
9562002-11-07 Fernando Nasser <fnasser@redhat.com>
957
958 * printcmd.c (disassemble_command): Remove obsolete function.
959 (_initialize_printcmd): Do not create disassemble command here.
960 * cli/cli-cmds.c (disassemble_command): New function. Implements
961 disassemble command.
962 (init_cli_cmds): Create disassemble command here instead.
963
0ec30a36
AC
9642002-11-07 Andrew Cagney <ac131313@redhat.com>
965
966 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
967
e600bd34
AC
9682002-11-07 Andrew Cagney <ac131313@redhat.com>
969
970 * regcache.h (regcache_cooked_read_using_offset_hack)
971 (regcache_cooked_write_using_offset_hack): Delete declarations.
972 (register_changed): Delete declaration.
973 * regcache.c (regcache_cooked_read_using_offset_hack)
974 (regcache_cooked_write_using_offset_hack): Delete functions.
975 (cooked_xfer_using_offset_hack): Delete function.
976 (register_changed): Delete function.
977
568f8739
JB
9782002-11-07 Jim Blandy <jimb@redhat.com>
979
980 * macroscope.c: #include "complaints.h".
981 (sal_macro_scope): Cope with filenames that appear in the symtabs,
982 but not in the macro table.
983 * Makefile.in (macroscope.o): Record dependency.
984
b0718b7b
JB
9852002-11-07 Joel Brobecker <brobecker@gnat.com>
986
987 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
988
2b9e5f3f
AC
9892002-11-07 Andrew Cagney <ac131313@redhat.com>
990
991 * regcache.c (deprecated_registers_fetched): Update.
992 * regcache.h (deprecated_registers_fetched): Rename
993 registers_fetched.
994 * remote-vxsparc.c (vx_read_register): Update.
995 * remote-vxmips.c (vx_read_register): Update.
996 * remote-vx68.c (vx_read_register): Update.
997 * irix5-nat.c (fetch_core_registers): Update.
998 * mipsm3-nat.c (fetch_inferior_registers): Update.
999 * sun3-nat.c (fetch_inferior_registers): Update.
1000 * symm-nat.c (fetch_inferior_registers): Update.
1001 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1002 (fetch_core_registers): Update.
1003 (fetch_kcore_registers): Update.
1004 * mips-nat.c (fetch_inferior_registers): Update.
1005 * corelow.c (get_core_registers): Update.
1006 * a68v-nat.c (fetch_inferior_registers): Update.
1007
e6e68f1f
JB
10082002-11-06 Joel Brobecker <brobecker@gnat.com>
1009
1010 Put in place the framework necessary for multiarching the hppa targets.
1011 * hppa-tdep.c (hppa_gdbarch_init): New function.
1012 (hppa_dump_tdep): New function.
1013 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1014 tdep structure dumper.
1015 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1016 until the multi-arching conversion has partially been completed.
1017
492254e9
AC
10182002-11-06 Andrew Cagney <ac131313@redhat.com>
1019
1020 * valops.c (value_assign): Merge lval_register case into
1021 lval_reg_frame_relative. Use frame_register and
1022 regcache_cooked_write instead of get_saved_register and
1023 write_register_bytes. After flushing the register cache, try to
1024 re-select the selected frame.
1025
8262ee23
AC
10262002-11-06 Andrew Cagney <ac131313@redhat.com>
1027
1028 * regcache.h (deprecated_register_valid): Rename register_valid.
1029 * regcache.c: Update.
1030 * ia64-aix-nat.c: Update.
1031 * i386gnu-nat.c: Update.
1032 * alpha-nat.c: Update.
1033 * sparc-nat.c: Update.
1034 * lynx-nat.c: Update.
1035 * remote-mips.c: Update.
1036
4facf7e8
JB
10372002-11-06 Joel Brobecker <brobecker@gnat.com>
1038
1039 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1040 to end of file, to be more consistent with the pratice followed
1041 by other targets.
1042
f9418c0f
AC
10432002-11-06 Andrew Cagney <ac131313@redhat.com>
1044
1045 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1046 (print_float_info): Print registers in float_reggroup.
1047 (print_vector_info): Print registers in vector_reggroup.
1048 (default_print_registers_info): When all, print registers in
1049 all_reggroup. Otherwize, print registers in general_reggroup.
1050 (registers_info): Rewrite. Add support for register groups.
1051 Eliminate a goto.
1052
3fe235a7
EZ
10532002-11-06 Elena Zannoni <ezannoni@redhat.com>
1054
1055 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1056 ages.
1057 (symtab_symbol_info): Remove eons old ifdeffed out code.
1058 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1059 command.
1060
ef944135
TR
10612002-11-06 Theodore A. Roth <troth@openavr.org>
1062
1063 * c-exp.y: Add missing semi-colons.
1064 * f-exp.y: Add missing semi-colons.
1065 * m2-exp.y: Add missing semi-colons.
1066 * p-exp.y: Add missing semi-colons.
1067 Add empty action to start rule to avoid a type clash error when
1068 building with bison >= 1.50.
1069
f8302a57
JB
10702002-11-06 Jim Blandy <jimb@redhat.com>
1071
1072 * macrotab.h (struct macro_source_file): Doc fix.
1073
6e382aa3
JJ
10742002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1075
1076 * varobj.c (child_exists, cplus_number_of_children): Change
1077 STREQ macro references to strcmp.
1078 (cplus_name_of_child): Change code to handle the fact that
1079 fields are not necessarily contiguous with regards to their
1080 access control. This is a fix for PR gdb/792.
1081
a216a322
AC
10822002-11-05 Andrew Cagney <ac131313@redhat.com>
1083
1084 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1085 * gdbarch.h, gdbarch.c: Regnerate.
1086 * frame.h (frame_register): Declare.
1087 * frame.c (frame_register): New function.
1088 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1089 GET_SAVED_REGISTER, otherwize call
1090 generic_unwind_get_saved_register.
1091 (frame_register_read): Use frame_register instead of
1092 get_saved_register.
1093
7d5b6fdd
EZ
10942002-11-05 Elena Zannoni <ezannoni@redhat.com>
1095
1096 From Jim Ingham <jingham@apple.com>:
1097 * event-top.c (gdb_disable_readline): New function.
1098 (_initialize_event_loop): Move comment.
1099
b7c64260
EZ
11002002-11-05 Elena Zannoni <ezannoni@redhat.com>
1101
1102 * event-loop.c (start_event_loop): Add comment.
1103 Update copyright.
1104
c2e1b8f2
AC
11052002-11-05 Andrew Cagney <ac131313@redhat.com>
1106
1107 * infcmd.c (default_print_registers_info): Do not call
1108 PRINT_REGISTER_HOOK.
1109
87647bb0
AC
11102002-11-05 Andrew Cagney <ac131313@redhat.com>
1111
1112 * sparc-tdep.c (sparc_print_register_hook): Make static.
1113 (sparc_print_registers_info): New function.
1114 (sparc_do_registers_info): New function.
1115 (sparclet_print_registers_info): New function.
1116 (sparclet_do_registers_info): New function.
1117 (do_sparc_print_registers_info): New function.
1118 (sparc_print_registers): New static function, clone of infcmd.c's
1119 default_print_registers_info.
1120 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1121 (sparclet_do_registers_info): Declare.
1122 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1123 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1124 Re-define.
1125 (sparc_do_registers_info): Declare.
1126 (PRINT_REGISTER_HOOK): Delete macro.
1127 (sparc_print_register_hook): Delete declaration.
1128
8155455b
DC
11292002-11-05 David Carlton <carlton@math.stanford.edu>
1130
1131 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1132 functions.
1133 (lookup_symbol_aux_local): New function.
1134 (lookup_symbol_aux_symtabs): New function.
1135 (lookup_symbol_aux_psymtabs): New function.
1136
29924310
DC
11372002-11-05 David Carlton <carlton@math.stanford.edu>
1138
1139 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1140 previous values of 'objfile' and 'block'.
1141
cc303028
PM
11422002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1143
1144 * values.c (value_change_enclosing_type): Set
1145 enclosing_type field correctly also for the case where
1146 more memory needs to be allocated.
1147
1d70089a
MK
11482002-11-03 Mark Kettenis <kettenis@gnu.org>
1149
f16a25ae
MK
1150 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1151 of puts_filtered.
1152
1d70089a
MK
1153 * i387-tdep.c (i387_print_float_info): Replace calls to
1154 register_read and deprecated_read_register_gen with calls to
1155 frame_register_read, and make the necessary adjustments to the
1156 surrounding code.
1157
7e20f3fb
AC
11582002-11-02 Andrew Cagney <ac131313@redhat.com>
1159
1160 * gdbarch.sh (register_reggroup_p): Allow default value.
1161 * gdbarch.h, gdbarch.c: Regenerate.
1162
192dbe33
AC
11632002-11-02 Andrew Cagney <ac131313@redhat.com>
1164
1165 * regcache.h: Add coment indicating replacements for deprecated
1166 functions.
1167
b59ff9d5
AC
11682002-11-02 Andrew Cagney <cagney@redhat.com>
1169
1170 * reggroups.h, reggroups.c: New files.
1171 * regcache.c: Include "reggroups.h".
1172 (enum regcache_dump_what): Add `regcache_dump_groups'.
1173 (regcache_dump): Contract size of the "Type" column. When
1174 specified, dump the register's groups.
1175 (maintenance_print_register_groups): New function.
1176 (_initialize_regcache): Add command `maint print register-groups'.
1177 * Makefile.in (COMMON_OBS): Add reggroups.o
1178 (SFILES): Add reggroups.c.
1179 (reggroups_h): Define.
1180 (regcache.o, gdbarch.o): Update dependencies.
1181 (reggroups.o): Specify dependencies.
1182 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1183 Add opaque declaration for `struct reggroup' in generated .h file.
1184 Include "reggroups.h" in generated .c file.
1185 gdbarch.h, gdbarch.c: Re-generate.
1186
4caf0990
AC
11872002-11-02 Andrew Cagney <cagney@redhat.com>
1188
1189 * regcache.h (deprecated_read_register_gen): Rename
1190 read_register_gen.
1191 (deprecated_write_register_gen): Rename write_register_gen.
1192 * i387-tdep.c: Update.
1193 * x86-64-linux-nat.c: Update
1194 * wince.c: Update.
1195 * thread-db.c: Update.
1196 * win32-nat.c: Update.
1197 * mips-tdep.c: Update.
1198 * d10v-tdep.c: Update.
1199 * cris-tdep.c: Update.
1200 * remote-sim.c: Update.
1201 * remote-rdi.c: Update.
1202 * remote-rdp.c: Update.
1203 * frame.c: Update.
1204 * target.c: Update.
1205 * blockframe.c: Update.
1206 * x86-64-tdep.c: Update.
1207 * xstormy16-tdep.c: Update.
1208 * sh-tdep.c: Update.
1209 * s390-tdep.c: Update.
1210 * rs6000-tdep.c: Update.
1211 * sparc-tdep.c: Update.
1212 * i386-tdep.c: Update.
1213 * dwarf2cfi.c: Update.
1214 * regcache.c: Update.
1215
7a7adcdf
JB
12162002-11-01 Joel Brobecker <brobecker@gnat.com>
1217
1218 New interix-specific files:
1219 * config/i386/nm-interix.h: New file.
1220 * config/i386/interix.mh: New file.
1221 * config/i386/interix.mt: New file.
1222 * i386-interix-nat.c: New file.
1223 * i386-interix-tdep.c: New file.
1224
bdcdd535
AC
12252002-11-01 Andrew Cagney <cagney@redhat.com>
1226
1227 * frame.h (deprecated_generic_get_saved_register): Rename
1228 generic_get_saved_register.
1229 * blockframe.c (deprecated_generic_get_saved_register): Update.
1230 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1231 (xstormy16_frame_saved_register): Update.
1232 * sh-tdep.c (sh_gdbarch_init): Update.
1233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1234 * ia64-tdep.c (ia64_get_saved_register): Update.
1235 * cris-tdep.c (cris_gdbarch_init): Update.
1236 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1237 * arm-tdep.c (arm_gdbarch_init): Update.
1238
2a4b7c45
DJ
12392002-10-31 Daniel Jacobowitz <drow@mvista.com>
1240
1241 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1242
ef17e74b
DJ
12432002-10-31 Daniel Jacobowitz <drow@mvista.com>
1244
1245 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1246 trampolines in sigaction.
1247
4904ba5b
AC
12482002-10-31 Andrew Cagney <cagney@redhat.com>
1249
1250 * h8300-tdep.c: Include "gdb_assert.h".
1251 (h8300_print_register): Add gdbarch, file and frame parameters.
1252 Use frame_read_unsigned_register to read the register's value.
1253 Use fprintf_filtered to display output.
1254 (h8300_print_registers_info): Replace h8300_do_registers_info.
1255 (h8300_gdbarch_init): Set print_registers_info.
1256
f908a0eb
AC
12572002-10-31 Andrew Cagney <cagney@redhat.com>
1258
1259 * frame.c (frame_read_unsigned_register): New function.
1260 (frame_read_signed_register): New function.
1261 * frame.h (frame_read_unsigned_register): Declare.
1262 (frame_read_signed_register): Declare.
1263
c5646e11
AC
12642002-10-31 Andrew Cagney <cagney@redhat.com>
1265
1266 * h8500-tdep.c (h8500_print_registers_info): New static function,
1267 clone of infcmd.c's default_print_registers_info.
1268 (h8500_do_registers_info): New funtion.
1269 (h8500_print_register_hook): Rename print_register_hook, make
1270 static.
1271
1272 * config/h8500/tm-h8500.h: Update copyright.
1273 (DEPRECATED_DO_REGISTERS_INFO): Define.
1274 (h8500_do_registers_info: Declare.
1275 (PRINT_REGISTER_HOOK): Delete macro.
1276 (print_register_hook): Delete function.
1277
0bdd672b
AC
12782002-10-31 Andrew Cagney <cagney@redhat.com>
1279
1280 * z8k-tdep.c (z8k_print_register_hook): Make static.
1281 (z8k_print_registers_info): New static function, clone of
1282 infcmd.c's default_print_registers_info.
1283 (z8k_do_registers_info): New function. Wrap
1284 z8k_print_registers_info.
1285 * config/z8k/tm-z8k.h: Update copyright.
1286 (PRINT_REGISTER_HOOK): Delete macro.
1287 (z8k_print_register_hook): Delete declaration.
1288 (DEPRECATED_DO_REGISTERS_INFO): Define.
1289 (z8k_do_registers_info): Declare.
1290
bf9c25dc
JB
12912002-10-30 Joel Brobecker <brobecker@gnat.com>
1292
1293 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1294 as this is already provided by value.h, and was actually causing
1295 a compilation error because of a conflict in parameter type
1296 declaration due to a missing const keyword.
1297 (low_text_segment_addres): Fix a compilation warning.
1298
2c665b51
DJ
12992002-10-29 Daniel Jacobowitz <drow@mvista.com>
1300
1301 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1302 registers without a name.
1303 (mips_linux_cannot_store_register): Don't store registers without
1304 a name.
1305
e70ea697
DC
13062002-10-28 David Carlton <carlton@math.stanford.edu>
1307
1308 * symtab.c (find_addr_symbol): Delete. (It was already commented
1309 out.)
1310 * symtab.h: Delete prototype for find_addr_symbol.
1311
903ad3a6
AC
13122002-10-26 Andrew Cagney <cagney@redhat.com>
1313
1314 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1315 DO_REGISTERS_INFO.
1316 gdbarch.h, gdbarch.c: Re-generate.
1317 * infcmd.c (default_print_registers_info): Update reference.
1318 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1319 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1320 * sh-tdep.c (sh_gdbarch_init): Ditto.
1321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1322 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1323
ab91194c
MK
13242002-10-26 Mark Kettenis <kettenis@gnu.org>
1325
e3033f15
MK
1326 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1327 cfi_init_extra_frame_info.
1328 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1329 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1330
b83b026c
MK
1331 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1332 target where necessary. Add more comments and remove the ones
1333 that don't provide any useful information.
1334
267bf4bb
MK
1335 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1336 deprecated_read_register_dummy with
1337 frame_unwind_unsigned_register.
1338
751f1375
MK
1339 * i386-tdep.c (i386_extract_struct_value_address): Use
1340 regcache_raw_read_unsigned instead of
1341 regcache_cooked_read_unsigned since we know that the register
1342 we're reading isn't a pseudo register. Rename variable 'val' into
1343 the more descriptive 'addr'.
1344
26abbdc4
MK
1345 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1346 (x86_64_push_return_address): Add comment.
1347 (x86_64_pop_frame): Make static.
1348 (examine_argument): Clarify comment.
1349 (x86_64_skip_prologue): Make prolog_expact variable static.
1350
9f1549cc
MK
1351 * dwarf2cfi.c: Fix some formatting problems.
1352 (context_cpy, read_encoded_pointer): Clarify comments.
1353
ab91194c
MK
1354 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1355 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1356 i386 target back into x86_64_gdbarch_init. Add some comments and
1357 remove meaningless ones.
1358
72367fb4
AC
13592002-10-25 Andrew Cagney <cagney@redhat.com>
1360
1361 * complaints.h (struct deprecated_complaint): Rename `struct
1362 complaint'.
1363 * complaints.c (complain): Update.
1364 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1365 incorrect comment indicating that "symfile.h" was being included
1366 for the `struct complaint' definition.
1367 * remote-vx.c: Update.
1368 * objc-lang.c: Update.
1369 * xcoffread.c: Update.
1370 * hpread.c: Update.
1371 * mdebugread.c: Update.
1372 * stabsread.c: Update.
1373 * dwarf2read.c: Update.
1374 * dwarfread.c: Update.
1375 * elfread.c: Update.
1376 * coffread.c: Update.
1377 * stabsread.h: Update.
1378 * dbxread.c: Update.
1379 * buildsym.c: Update.
1380 * gdbtypes.c: Update.
1381 * macrotab.c: Update.
1382
1f2baacc
MK
13832002-10-25 Mark Kettenis <kettenis@gnu.org>
1384
0c1a73d6
MK
1385 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1386 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1387 (x86_64_init_abi): ...new function.
1388
6aee4d54 1389 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1390 * i386v-nat.c: Include "i386-tdep.h".
1391
8f9cbe01
AC
13922002-10-25 Andrew Cagney <cagney@redhat.com>
1393
5f11f355
AC
1394 * gdbtypes.c (address_space_name_to_int): Update.
1395 (address_space_int_to_name): Update.
1396 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1397 multi-arch predicate.
1398 (address_class_name_to_type_flags): Ditto.
1399 * gdbarch.h, gdbarch.c: Re-generate.
1400
8f9cbe01
AC
1401 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1402
e8d96a5d
MH
14032002-10-24 Martin M. Hunt <hunt@redhat.com>
1404
1405 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1406
fe39c653
EZ
14072002-10-24 Elena Zannoni <ezannoni@redhat.com>
1408
1409 * symtab.h (INIT_SAL): Delete macro.
1410 (init_sal): Export.
1411 * symtab.c (init_sal): New function.
1412
1413 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1414 to init_sal function call.
1415 (find_sal_from_funcs_and_line): Ditto.
1416 (all_sals_for_line): Ditto.
1417 * breakpoint.c (create_internal_breakpoint): Ditto.
1418 (create_fork_vfork_event_catchpoint): Ditto.
1419 (create_exec_event_catchpoint): Ditto.
1420 (parse_breakpoint_sals): Ditto.
1421 (watch_command_1): Ditto.
1422 (handle_gnu_4_16_catch_command): Ditto.
1423 (clear_command): Ditto.
1424 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1425 * infcmd.c (run_stack_dummy): Ditto.
1426 * infrun.c (process_event_stop_test): Ditto.
1427 (check_sigtramp2): Ditto.
1428 (step_over_function): Ditto.
1429 * linespec.c (decode_line_2): Ditto.
1430 (decode_line_1): Ditto.
1431 * source.c (line_info): Ditto.
1432 * symtab.c (find_pc_sect_line): Ditto.
1433
baed091b
ML
14342002-10-24 Michal Ludvig <mludvig@suse.cz>
1435
1436 * dwarf2cfi.c (struct context)
1437 (struct context_reg): Moved to dwarf2cfi.h
1438 (context_alloc, frame_state_alloc, context_cpy):
1439 Made extern instead of static, removed prototypes.
1440 * dwarf2cfi.h (struct context)
1441 (struct context_reg): New, moved from dwarf2cfi.c
1442 (context_alloc, frame_state_alloc, context_cpy):
1443 New prototypes.
1444 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1445 Changed from static to extern.
1446 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1447 (LINUX_SIGCONTEXT_FP_OFFSET)
1448 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1449 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1450 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1451 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1452 set_gdbarch_*() calls now use x86-64 specific functions
1453 instead of DWARF2 CFI ones.
1454 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1455 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1456 (x86_64_init_extra_frame_info): New prototypes.
1457
c38da1af
DC
14582002-10-23 David Carlton <carlton@math.stanford.edu>
1459
1460 * linespec.c: #include "parser-defs.h".
1461 Delete prototype for find_template_name_end.
1462 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1463
fb9b6b35
JJ
14642002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1465
1466 * NEWS: add recent mi fixes.
1467 * varobj.c (struct varobj): Add new "updated" flag.
1468 (new_variable): Default "updated" flag to 0.
1469 (varobj_set_value): Set "updated" flag to 1 if value
1470 changes.
1471 (varobj_update): Check varobj "updated" flag before
1472 comparing old and refreshed values. Fix for
1473 PR gdb/702.
1474
8da065d5
DC
14752002-10-23 David Carlton <carlton@math.stanford.edu>
1476
1477 * parse.c (parse_exp_1): Use BLOCK_START.
1478 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1479 SYMBOL_BLOCK_VALUE.
1480 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1481
87f2f08c
DC
14822002-10-23 David Carlton <carlton@math.stanford.edu>
1483
1484 * symtab.c: Delete cplusplus_hint.
1485 Delete prototype for find_template_name_end.
1486
88cda038
EZ
14872002-10-23 Elena Zannoni <ezannoni@redhat.com>
1488
1489 * symtab.h: Update comment.
1490
2625d86c
MS
14912002-10-23 Michael Snyder <msnyder@redhat.com>
1492
1493 * printcmd.c (address_info): Restore quotes in output.
1494 * valops.c (value_of_local): Restore quotes in error message.
1495
9cc0d196
EZ
14962002-10-23 Elena Zannoni <ezannoni@redhat.com>
1497
1498 * symtab.c (symbol_demangled_name): New function.
1499 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1500 turning most of it into a function.
1501 (symbol_demangled_name): Export.
1502
19de93d0
MS
15032002-10-23 Michael Snyder <msnyder@redhat.com>
1504
1505 * valops.c (value_of_local): Restore quotes in error message.
1506
89aad1f9
EZ
15072002-10-23 Elena Zannoni <ezannoni@redhat.com>
1508
1509 * symtab.c (symbol_init_language_specific): New function.
1510 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1511 turning most of it into a function.
1512 (symbol_init_language_specific): Export.
1513
d9fa45fe
DC
15142002-10-23 David Carlton <carlton@math.stanford.edu>
1515
1516 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1517 (dwarf_attr_name): Ditto.
1518 (dwarf_type_encoding_name): Ditto.
1519 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1520 (process_die): Handle DW_TAG_namespace,
1521 DW_TAG_imported_declaration, DW_TAG_imported_module.
1522 (read_namespace): New function.
1523
1045b512
JB
15242002-10-22 Joel Brobecker <brobecker@gnat.com>
1525
1526 * configure.in: Define NEW_PROC_API on Interix too.
1527 * configure: Regenerate.
1528
15292002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1530
1531 * configure: Regenerate using the proper version of autoconf.
1532
3987b9d4
EZ
15332002-10-21 Elena Zannoni <ezannoni@redhat.com>
1534
1535 * findvar.c (read_var_value): Temporarily disable TLS code, until
1536 complete TLS support is added.
1537
9d774e44
EZ
15382002-10-21 Jim Blandy <jimb@redhat.com>
1539 Elena Zannoni <ezannoni@redhat.com>
1540
1541 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1542 for thread local storage locations.
1543 (struct symbol): Add objfile field.
1544 (SYMBOL_OBJFILE): Define.
1545 * dwarf2read.c (is_thread_local): New static variable.
1546 (new_symbol): If variable is in thread local fill in address class
1547 and objfile appropriately.
1548 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1549 stack operation.
1550 * printcmd.c (address_info): Print the information for thread
1551 local storage variable.
1552 * findvar.c (read_var_value): In case of thread local variable,
1553 defer to the target vector code to compute address.
1554
bc4a16ae
EZ
15552002-10-21 Elena Zannoni <ezannoni@redhat.com>
1556
1557 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1558 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1559
407caf07
EZ
15602002-10-21 Elena Zannoni <ezannoni@redhat.com>
1561
1562 * symtab.h (address_class): Rename
1563 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1564 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1565 * printcmd.c (address_info): Ditto.
1566 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1567
005328e3
MK
15682002-10-20 Mark Kettenis <kettenis@gnu.org>
1569
afdb036a
MK
1570 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1571 DBREG_DRX macro to acces debug registers.
1572
ca02e098
MK
1573 * Makefile.in (i386obsd-tdep.o): New target.
1574
03cc47f7
MK
1575 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1576 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1577
005328e3
MK
1578 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1579 * config/i386/obsd.mt: New file.
1580 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1581 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1582 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1583 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1584 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1585 * i386obsd-tdep.c: New file.
1586
9c96f9f2
AF
15872002-10-19 Adam Fedor <fedor@gnu.org>
1588
1589 * objc-exp.y (name_not_typename): Fix invalid comment.
1590
ce1ed485
MK
15912002-10-20 Mark Kettenis <kettenis@gnu.org>
1592
1593 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1594 to allocate partial syms and macro byte caches.
1595
1efc7aaa
DC
15962002-10-18 David Carlton <carlton@math.stanford.edu>
1597
1598 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1599
7e1d63ec
AF
16002002-10-18 Adam Fedor <fedor@gnu.org>
1601
1602 * stabsread.c (find_name_end): New function.
1603 (define_symbol): Use it.
1604
6e8d29a9
DJ
16052002-10-18 Daniel Jacobowitz <drow@mvista.com>
1606
1607 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1608 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1609 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1610 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1611
1efc7aaa 16122002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1613
1614 * symfile.h: Add opaque declaration for struct obstack.
1615 Declare obsavestring to take a const char *.
1616 * symfile.c (obsavestring): Make first argument a const char *.
1617
1aeae86e
AF
16182002-10-16 Adam Fedor <fedor@gnu.org>
1619
1620 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1621 names when matching breakpoints in current file.
1622
8b2dbe47
KB
16232002-10-16 Kevin Buettner <kevinb@redhat.com>
1624
1625 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1626 (read_tag_pointer_type): Add address class support.
1627 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1628 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1629 New methods.
1630 * gdbarch.h, gdbarch.c: Regenerate.
1631 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1632 (make_type_with_address_space, recursive_type_dump): Add address
1633 class support.
1634 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1635 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1636 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1637
74451869
KD
16382002-10-16 Klee Dienes <kdienes@apple.com>
1639
1640 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1641 to get the last character of a char[] buffer, not
1642 name[sizeof(vptr_name)-1].
1643
ff4cb3e8
AF
16442002-10-14 Adam Fedor <fedor@gnu.org>
1645
1646 * symtab.h: New objc_specific struct.
1647 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1648 (SYMBOL_DEMANGLED_NAME): Likewise.
1649
da2cf7e0
AF
16502002-10-14 Adam Fedor <fedor@gnu.org>
1651
1652 * symfile.c (init_filename_language_table): Add ObjC file extension.
1653
4a351cef
AF
16542002-10-14 Adam Fedor <fedor@gnu.org>
1655
1656 * utils.c (puts_filtered_tabular): New function.
1657 (fprintf_symbol_filtered): Get ObjC demangled name.
1658 * defs.h (puts_filtered_tabular): Declared.
1659
9750e763
KB
16602002-10-14 Kevin Buettner <kevinb@redhat.com>
1661
1662 * c-lang.h (c_type_print_varspec_prefix): Delete.
1663 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1664 ``need_post_space'' parameter. Adjust all callers.
1665
eee771c1
DJ
16662002-10-14 Daniel Jacobowitz <drow@mvista.com>
1667
1668 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1669 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1670 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1671 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1672
46c82446
AF
16732002-10-13 Adam Fedor <fedor@gnu.org>
1674
1675 * source.c (print_source_lines): Update comments.
1676
d069f99d
AF
16772002-10-13 Adam Fedor <fedor@gnu.org>
1678
1679 * valops.c (value_of_local): New function.
1680 (value_of_this): Use it.
1681 * value.h (value_of_local): Declared.
1682
53c551b7
AF
16832002-10-13 Adam Fedor <fedor@gnu.org>
1684
1685 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1686 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1687
eb392fbf
AF
16882002-10-12 Adam Fedor <fedor@gnu.org>
1689
1690 * language.c (binop_result_type): Add language_objc to case.
1691 (integral_type): Likewise.
1692 (character_type): Likewise.
1693 (string_type): Likewise.
1694 (boolean_type): Likewise.
1695 (structured_type): Likewise.
1696 (binop_type_check): Likewise.
1697
e2b23ee9
AF
16982002-10-11 Adam Fedor <fedor@gnu.org>
1699
1700 * printcmd.c (address_info): Print 'self' for ObjC.
1701
b01ab485
AF
17022002-10-11 Adam Fedor <fedor@gnu.org>
1703
1704 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1705 OP_SELF.
1706
806e6073
AF
17072002-10-11 Adam Fedor <fedor@gnu.org>
1708
1709 * language.h (CAST_IS_CONVERSION): Add language_objc.
1710
50f85cdf
AF
17112002-10-11 Adam Fedor <fedor@gnu.org>
1712
1713 * defs.h (enum language): Add language_objc.
1714
0d540cdf
KD
17152002-10-11 Klee Dienes <kdienes@apple.com>
1716
69266111 1717 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1718 * gdbcore.h (read_memory_typed_address): Add prototype.
1719 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1720 to read a value destined for a CORE_ADDR, not read_memory_integer.
1721 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1722 (f77_get_dynamic_lowerbound): Ditto.
1723
d5dc7960
MH
17242002-10-11 Martin M. Hunt <hunt@redhat.com>
1725
1726 * utils.c (string_to_core_addr): After turning string into
1727 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1728 which will do necessary sign-extension, etc.
1729
8343f86c
DJ
17302002-10-11 Daniel Jacobowitz <drow@mvista.com>
1731
1732 * c-exp.y (THIS): Delete token and grammar rule.
1733 (yylex): Don't return THIS.
1734 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1735 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1736 * demangle.c (cplus_markers): Update comment. Put '$'
1737 first. Remove CPLUS_MARKER.
1738 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1739 * jv-exp.y (THIS): Delete token and grammar rule.
1740 (yylex): Don't return THIS.
1741 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1742 * objc-exp.y (THIS): Delete token and grammar rule.
1743 (yylex): Don't return THIS.
1744 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1745 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1746 (read_member_functions): Likewise for opname.
1747 (read_tilde_fields): Use is_cplus_marker.
1748
1749 * defs.h (CPLUS_MARKER): Don't define.
1750 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1751 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1752 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1753 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1754 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1755
1756 * config/i386/tm-i386v4.h: Delete file.
1757 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1758 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1759 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1760 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1761 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1762 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1763 * config/i386/i386v4.mt (TM_FILE): Likewise.
1764 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1765
967c0d83
MM
17662002-10-10 Marko Mlinar <markom@opencores.org>
1767
1768 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1769 accidentially not commited 2002-10-09
1770 * gdbarch.h, gdbarch.c: Re-generate.
1771
f74fa174
MM
17722002-10-09 Marko Mlinar <markom@opencores.org>
1773
1774 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1775 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1776 * gdbarch.h, gdbarch.c: Re-generate.
1777
57349743
JB
17782002-10-08 Petr Sorfa <petrs@caldera.com>
1779
1780 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1781
1782 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1783 so we can work on more than one compilation unit at a time. This
1784 helps prepare GDB to handle inter-CU die references.
1785 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1786 the code to be defined before struct comp_unit_head.
1787 (comp_unit_head): Added new members - offset, cu_head,
1788 begin_die, next and dwarf2_abbrevs.
1789 (dwarf2_abbrevs): Removed single static var; now member of
1790 struct comp_unit_head.
1791 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1792 members.
1793 (psymtab_to_symtab_1): Changed to work with the new
1794 struct comp_unit_head.
1795 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1796 constructs the dwarf2_abbrevs[] inside the cu_header.
1797 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1798 dwarf2_abbrev table to clean up.
1799 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1800 handling of dwarf2_abbrevs inside the cu_header.
1801 (read_partial_die): Now supports the call to the new
1802 dwarf2_lookup_abbrev.
1803 (read_full_die): Now supports the call to the new
1804 dwarf2_lookup_abbrev.
1805
4092aadb
CF
18062002-10-06 Christopher Faylor <cgf@redhat.com>
1807
1808 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1809 insure that shell variables, such as "transformed_name" are propagated
1810 to later shell statements in rule.
1811
af0b2512
MK
18122002-10-06 Mark Kettenis <kettenis@gnu.org>
1813
1814 * config/i386/nm-i386sco.h: Add protection against
1815 multiple-inclusion. Include "i386/nm-i386v.h".
1816 (REGISTER_U_ADDR): Remove define.
1817 (i386_register_u_addr): Remove prototype.
1818
d6020d45
MS
18192002-10-04 Michael Snyder <msnyder@redhat.com>
1820
1821 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1822 before treating it as a single-step event.
1823
7248f48e
AF
18242002-10-03 Adam Fedor <fedor@gnu.org>
1825
1826 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1827 (objc_demangle): Remove assignment in if statements, Replace
1828 free with xfree.
1829 (add_msglist): Likewise.
1830 (end_msglist): Likewise.
1831 (complare_selectors): Likewise.
1832 (selectors_info): Likewise.
1833 (compare_classes): Likewise.
1834 (classes_info): Likewise.
1835 (print_object_command): Likewise.
1836 (find_objc_msgcall_submethod): Replace PTR with void *.
1837 * objc-lang.h: Remove check for __STDC__.
1838
52c6a6ac
JJ
18392002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1840
1841 * ui-out.h (ui_out_field_fmt_int): New prototype.
1842 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1843 of field width and alignment.
1844 * stack.c (print_frame_info_base): When printing frame level, use
1845 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1846 PR gdb/192
1847
7e3cec17
JJ
18482002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1849
1850 * MAINTAINERS: Add self to Write After Approval list.
1851
a58dd373
EZ
18522002-10-02 Elena Zannoni <ezannoni@redhat.com>
1853
1854 * infcmd.c (interrupt_target_command_wrapper): Delete.
1855 (interrupt_target_command): Make non static.
1856 (nofp_registers_info): Make static.
1857 * stack.c (return_command_wrapper): Delete.
1858 (return_command): Make non static.
1859
cee6ddeb
EZ
18602002-10-02 Elena Zannoni <ezannoni@redhat.com>
1861
1862 * event-top.c (gdb_setup_readline): New function. Code moved from
1863 _initialize_event_loop().
1864 (_initialize_event_loop): Call gdb_setup_readline().
1865
c4ed33b9
AC
18662002-10-02 Andrew Cagney <ac131313@redhat.com>
1867
1868 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1869 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1870 * gdbarch.h, gdbarch.c: Re-generate.
1871
cef4f5dd
DJ
18722002-10-02 Daniel Jacobowitz <drow@mvista.com>
1873
1874 Fix PR gdb/778
1875 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1876 before recursing.
1877 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1878 of fill_in_vptr_fieldno.
1879
36dc181b 18802002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1881
36dc181b
EZ
1882 * inferior.h (registers_info, stepi_command, nexti_command,
1883 continue_command, interrupt_target_command): Export from infcmd.c.
1884 * frame.h (args_info, selected_frame_level_changed_hook,
1885 return_command): Export from stack.c.
1886 * v850ice.c (stepi_command, nexti_command, continue_command): use
1887 prototypes from inferior.h.
1888 * tracepoint.c (registers_info, args_info, locals_info): Use
1889 prototypes from frame.h and inferior.h.
1890 * Makefile.in (mi-main.o): Add dependency on frame.h.
1891
6f99cb26
AC
18922002-10-02 Andrew Cagney <ac131313@redhat.com>
1893
da3eff49
AC
1894 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1895 value in register 3 adjusted by ppc_gp0_regnum.
1896
6f99cb26
AC
1897 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1898
da615bee
MM
18992002-10-02 Marko Mlinar <markom@opencores.org>
1900
1901 * MAINTAINERS: Add myself to the Write After Approval list.
1902
d154bee2
AO
19032002-10-01 Alexandre Oliva <aoliva@redhat.com>
1904
62a49b2c
AO
1905 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1906 of the section for the N64 ABI, fixed.
1907
d154bee2
AO
1908 * config/mips/tm-irix6.h: Include solib.h.
1909
ed348acc
EZ
19102002-10-01 Elena Zannoni <ezannoni@redhat.com>
1911
1912 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1913 GNU operators.
1914
da0f9dcd
AC
19152002-10-01 Andrew Cagney <ac131313@redhat.com>
1916
1917 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1918 and that "mi0" syntax has been removed.
1919
bdf64bac
DC
19202002-09-30 David Carlton <carlton@math.stanford.edu>
1921
1922 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1923 * ppc-sysv-tdep.c: #include "gdb_string.h".
1924 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1925 pacify GCC.
1926
54c2a1e6
AC
19272002-10-01 Andrew Cagney <ac131313@redhat.com>
1928
1929 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1930 "vrsave"'s register number.
1931
cedea778
AC
19322002-09-30 Andrew Cagney <ac131313@redhat.com>
1933
1934 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1935 use frame_unwind_signed_register to obtain the PC.
1936 (mips_frame_chain): Handle a generic dummy frame.
1937 (mips_init_extra_frame_info): When a generic dummy frame, don't
1938 re-compute the frame base.
1939 (mips_pop_frame): Handle generic dummy frames.
1940 (mips_gdbarch_init): When generic dummy frames, set
1941 use_generic_dummy_frames, push_dummy_frame to
1942 generic_push_dummy_frame, pc_in_call_dummy to
1943 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1944 generic_save_dummy_frame_tos.
1945
68315eb8
AC
19462002-09-30 Andrew Cagney <ac131313@redhat.com>
1947
1948 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1949 against TOP when TOP was explictly set.
1950 (generic_push_dummy_frame): Set TOP to zero.
1951
3b8630c3
EZ
19522002-09-30 Elena Zannoni <ezannoni@redhat.com>
1953
1954 * event-loop.c (start_event_loop): Rename variable 'result' to
1955 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1956
28ee05e9
KS
19572002-09-30 Keith Seitz <keiths@redhat.com>
1958
1959 * gdb-events.sh (selected_thread_changed): New event.
1960 * gdb-events.c: Regenerated.
1961 * gdb-events.h: Regenerated.
1962
6eecb1c8
HPN
19632002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1964
1965 * MAINTAINERS: Add self to Write After Approval list.
1966
92df71f0
FN
19672002-09-30 Fernando Nasser <fnasser@redhat.com>
1968
3b8630c3
EZ
1969 * disasm.c: New file.
1970 * disasm.h: New file.
92df71f0
FN
1971 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1972 (compare_lines): Ditto.
1973 (dump_insns): Ditto.
3b8630c3
EZ
1974 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1975 argument.
92df71f0 1976 (do_assembly_only): Ditto.
3b8630c3
EZ
1977 (do_disassembly): Renamed to gdb_disassembly and moved to
1978 disasm.c. Sdded uiout argument.
1979 * Makefile.in: Add new files. Reorder SFILES list. Update
1980 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1981
0c22854d
AC
19822002-09-29 Andrew Cagney <ac131313@redhat.com>
1983
1984 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1985 bfd/elf64-alpha-fbsd.c.
1986
e67f2023
AC
19872002-09-29 Andrew Cagney <ac131313@redhat.com>
1988
1989 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1990 i386gnu-tdep.c.
1991
89396210
AC
19922002-09-29 Andrew Cagney <ac131313@redhat.com>
1993
1994 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1995 __FUNCTION__.
1996 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1997 function name.
1998 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1999 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2000 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2001 (S_msg_sig_post_reply): Ditto.
2002
7079c36c
CV
20032002-09-28 Corinna Vinschen <vinschen@redhat.com>
2004
89396210
AC
2005 * sh-tdep.c (sh_use_struct_convention): Use definition according
2006 to ABI.
7079c36c
CV
2007 (sh_push_arguments): Store in register with correct endianess.
2008 (sh_default_store_return_value): Ditto.
2009 (sh_gdbarch_init): Set sizeof long double to 8.
2010
975ac915
MK
20112002-09-27 Mark Kettenis <kettenis@gnu.org>
2012
2013 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2014 Fix some whitespace problems.
2015
9bbe19fb
DC
20162002-09-27 David Carlton <carlton@math.stanford.edu>
2017
2018 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2019 (mcore-tdep.o): Ditto.
2020 (ns32k-tdep.o): Ditto.
2021 (ns32knbsd-tdep.o): Ditto.
2022 (sh3-rom.o): Ditto.
2023 (vax-tdep.o): Ditto.
2024 * cris-tdep.c: #include "gdb_string.h"
2025 * mcore-tdep.c: Ditto.
2026 * ns32k-tdep.c: Ditto.
2027 * ns32knbsd-tdep.c: Ditto.
2028 * sh3-rom.c: Ditto.
2029 * vax-tdep.c: Ditto.
2030
43b2fdc7
DC
20312002-09-27 David Carlton <carlton@math.stanford.edu>
2032
2033 * config/djgpp/fnchange.lst: Add entries for
2034 gdb/testsuite/gdb.c++/m-static files.
2035
e8cfbbd9
JW
20362002-09-27 Jim Wilson <wilson@redhat.com>
2037
2038 * MAINTAINERS: Add myself to the Write After Approval list.
2039
43b2fdc7 20402002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2041
2042 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2043
2044
9f3b7f07
AC
20452002-09-26 Andrew Cagney <ac131313@redhat.com>
2046
2047 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2048 frame.
2049
11269d7e
AC
20502002-09-26 Andrew Cagney <ac131313@redhat.com>
2051
2052 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2053 (rs6000_struct_return_address): Delete variable.
2054 (rs6000_store_struct_return): Update.
2055 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2056 deprecated_extract_struct_value_address.
2057 (rs6000_frame_align): New function.
2058 (rs6000_gdbarch_init): Set frame_align.
2059
f15ab4a7
AC
20602002-09-26 Andrew Cagney <ac131313@redhat.com>
2061
2062 From Grace Sainsbury <graces@redhat.com>:
2063 * Makefile.in (gdbtk-main.o): New target.
2064 (gdb.o): New target.
2065 (main_h): Define.
2066 (main.o): Update dependencies.
2067 (gdb$(EXEEXT)): Add gdb.o.
2068 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2069 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2070 (SUBDIR_GDBTK_CLEAN): Set.
2071 (install-gdbtk): Install the insight binary.
2072 (uninstall-gdbtk): New target.
2073 (all-gdbtk, clean-gdbtk): New rule.
2074 * top.c (use_windows): Default to zero.
2075 * main.c: Include "main.h".
2076 (main): Delete.
2077 (struct captured_main_args): Delete.
2078 (gdb_main): New function.
2079 * main.h: New file.
2080 * gdb.c: New File.
2081
e36180d7
AC
20822002-09-25 Andrew Cagney <cagney@redhat.com>
2083
2084 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2085 (frame_map_regnum_to_name): New function.
2086 (frame_map_name_to_regnum): New function.
2087 * frame.h (frame_map_name_to_regnum): Declare.
2088 (frame_map_regnum_to_name): Declare.
2089 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2090 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2091 * parse.c: Do not include "builtin-regs.h".
2092 (target_map_name_to_register): Delete function.
2093 (write_dollar_variable): Use frame_map_name_to_regnum.
2094 * parser-defs.h (target_map_name_to_register): Delete declaration.
2095 * expprint.c: Include "frame.h".
2096 (print_subexp): Use frame_map_regnum_to_name.
2097 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2098 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2099
8b69000d
AC
21002002-09-25 Andrew Cagney <ac131313@redhat.com>
2101
2102 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2103 wasn't saved, and the next innermost frame is a dummy, return the
2104 dummy frame's link register.
2105
046ca86a
JB
21062002-09-24 Jim Blandy <jimb@redhat.com>
2107
2108 Fix from Paul Breed:
2109 * main.c (captured_main): Add a `break' after the case for 'b'.
2110
94b66fa7
KS
21112002-09-24 Keith Seitz <keiths@redhat.com>
2112
2113 * varobj.c (c_type_of_child): Use get_target_type instead
2114 of TYPE_TARGET_TYPE.
2115
c214a6fd
FN
21162002-09-22 Fernando Nasser <fnasser@redhat.com>
2117
53cb0458
FN
2118 * source.c (get_current_or_default_source_symtab_and_line): Remove
2119 function.
2120 (set_default_source_symtab_and_line): New function. Attempts to
2121 determine a source file to list lines from if one is not currently
2122 defined.
2123 (get_current_source_symtab_and_line): Initialize sal.pc and
2124 sal.end fields.
2125 (set_current_source_symtab_and_line): Mark argument as const.
2126 * source.h: Update declarations and comments.
2127 * linespec.c (decode_line_1): Replace call to removed routine above.
2128 * stack.c (print_frame_info_base): Ditto.
2129 * cli/cli-cmds.c (edit_command): Ditto.
2130 (list_command): Ditto.
2131
21322002-09-22 Fernando Nasser <fnasser@redhat.com>
2133
d6020d45 2134 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2135 sal.pc and sal.end fields.
c214a6fd
FN
2136 (get_current_or_default_source_symtab_and_line): Ditto.
2137 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2138 so we do not cause a new source symtab to be searched for (reverting an
2139 unintentional change from the 2002-09-20 patch).
2140 * scm-lang.c (scm_unpac): Ditto.
2141
cc3b68a5
AC
21422002-09-21 Andrew Cagney <cagney@redhat.com>
2143
2144 * complaints.c (symfile_explanations): Remove new-line from
2145 ``isolated_message''.
2146 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2147 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2148
5835abe7
NC
21492002-09-20 Nick Clifton <nickc@redhat.com>
2150
2151 * NEWS: Announce that V850EA ISA is no longer supported.
2152 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2153
a15ef5f5
DC
21542002-09-20 David Carlton <carlton@math.stanford.edu>
2155
06ba1b39
DC
2156 * Makefile.in (c-lang.o): Correct dependencies.
2157 (utils.o): Gather dependencies.
2158 (charset.o): Move.
a15ef5f5
DC
2159 * c-lang.c: #include "gdb_string.h"
2160
87885426
FN
21612002-09-20 Fernando Nasser <fnasser@redhat.com>
2162
2163 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2164 * cli/cli-cmds.c (list_command): New function. Implements the new
2165 cli edit command.
2166 (_init_cli_cmds): Add new command definition.
2167 * gdb.1: Document edit command.
2168 * doc/gdb.texinfo: Document edit command.
2169
21702002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2171
2172 * source.c: Make global variables current_source_symtab and
2173 current_source_line static.
2174 (list_command): Moved to cli/cli-cmds.c.
2175 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2176 (get_first_line_listed): New accessor function.
2177 (get_lines_to_list): New accessor function.
2178 (get_current_source_symtab_and_line): New function. Retrieves the
2179 position in the source code that we consider current.
2180 (get_current_or_default_source_symtab_and_line): New function.
2181 Like the above but attempts to determine a default position if one
2182 is not currently defined.
2183 (set_current_source_symtab_and_line): New function. Sets the source
2184 code position considered current and returns the previously set one.
2185 (clear_current_source_symtab_and_line): Reset stored information about
2186 a current source line.
2187 (_initialize_source): Remove registration for the "list" command and
2188 its alias.
2189 * source.h: Add declarations for the new functions above.
2190 * symtab.h: Remove declarations for the global variables mentioned
2191 above.
2192 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2193 obtain current source line.
2194 * linespec.c (decode_line_1): Ditto.
2195 * macroscope.c (default_macro_scope): Ditto.
2196 * scm-lang.c (scm_unpac): Ditto.
2197 * stack.c (print_frame_info_base): Ditto.
2198 * symfile.c (clear_symtab_users): Ditto.
2199 * symtab.c (decode_line_spec): Ditto.
2200 * cli/cli-cmds.c (list_command): Moved here from source.c.
2201 (ambiguous_line_spec): Moved here from source.c.
2202 (_init_cli_cmds): Add definition for "list" and its alias.
2203 * Makefile.in: Update dependencies.
2204
ddd216ea
CV
22052002-09-20 Corinna Vinschen <vinschen@redhat.com>
2206
2207 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2208 with what gcc thinks is correct.
2209
6d305052
CV
22102002-09-20 Corinna Vinschen <vinschen@redhat.com>
2211
2212 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2213 multiple register push instruction.
2214
234b45d4
KB
22152002-09-19 Jim Blandy <jimb@redhat.com>
2216
2217 Add support for distinct host and target character sets.
2218 * charset.c, charset.h: New files.
2219 * c-exp.y: #include "charset.h".
2220 (yylex): Convert character and string literals to the target
2221 character set, before returning them as the semantic value of the
2222 token.
2223 * c-lang.c: #include "charset.h".
2224 (c_emit_char): Use charset-specific methods to recognize
2225 characters with backslash escape forms, to decide which characters
2226 to print literally and which to print using numeric escape
2227 sequences, and to convert target characters to host characters
2228 before printing.
2229 * utils.c: #include "charset.h".
2230 (no_control_char_error): New function.
2231 (parse_escape): Use charset-specific methods to recognize
2232 backslash escapes, parse `control character' notation, and convert
2233 characters from the host character set to the target character set.
2234 * configure.in: Set the default host character set.
2235 Check where to find iconv, and what its argument types might be.
2236 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2237 * Makefile.in (SFILES): List charset.c.
2238 (COMMON_OBS): List charset.o.
2239 (charset.o): New rule.
2240 (charset_h): New header dependency variable.
2241 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2242 (LIBICONV): New variable, set by configure.
2243 (CLIBS): Include $(LIBICONV) here.
2244 * aclocal.m4, config.in, configure: Regenerated.
2245
525d6a61
JB
22462002-09-19 Joel Brobecker <brobecker@gnat.com>
2247
2248 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2249 bison 1.35 warning.
2250
3ed93867
RE
22512002-09-19 Richard Earnshaw <rearnsha@arm.com>
2252
2253 * gdb_mbuild.sh: New file.
2254
437666f8
AC
22552002-09-19 Andrew Cagney <ac131313@redhat.com>
2256
2257 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2258
389e51db
AC
22592002-09-18 Andrew Cagney <ac131313@redhat.com>
2260
2261 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2262 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2263 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2264 valops.c, value.h: Revert previous change.
2265
3b4efeaa
MS
22662002-09-18 Michael Snyder <msnyder@redhat.com>
2267
2268 Preliminary support for Objective-C:
2269 * defs.h (language_objc): New enum value.
2270 (puts_filtered_tabular): Declaration only, exported from utils.c.
2271 (skip_quoted): Delete, declared in completer.h.
2272 * c-exp.y: Include completer.h.
2273 * p-exp.y: Ditto.
2274 * jv-exp.y: Ditto.
2275 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2276 New operator enum values.
2277 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2278 * language.c (binop_result_type): Handle language_objc case.
2279 (integral_type, character_type, string_type, boolean_type,
2280 structured_type, binop_type_check): Ditto.
2281 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2282 (struct objc_specific): Add to general_symbol_info.
2283 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2284 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2285 * parser-defs.h (struct objc_class_str): New struct type.
2286 (start_msglist, end_msglist, add_msglist): Declaration only,
2287 exported from objc-lang.c.
2288 * value.h (value_of_local, value_nsstring,
2289 call_function_by_hand_expecting_type): Exported from valops.c.
2290 * valops.c (find_function_addr): Export.
2291 (call_function_by_hand_expecting_type): New function.
2292 (value_of_local): New function.
2293 * symfile.c (init_filename_language_table): Add ".m" extension
2294 for Objective-C.
2295 * utils.c (puts_filtered_tabular): New function.
2296 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2297 (set/show demangle): Extend help-string to refer to ObjC.
2298 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2299 * stabsread.c (symbol_reference_defined): Objective-C symbols
2300 may contain colons: make allowances when scanning stabs strings
2301 for colons.
2302 (objc_find_colon): New function.
2303 * printcmd.c (address_info): If language == objc then print
2304 "self" instead of "this".
2305 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2306 OP_NSSTRING, and OP_SELF.
2307 (prefixify_subexp): Ditto.
2308 * source.c (print_source_lines): Mention objc in comment.
2309 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2310 method names.
2311
b9caf505
AC
23122002-09-18 Andrew Cagney <ac131313@redhat.com>
2313
2314 * complaints.h: Update copyright.
2315 (struct complaints): Declare.
2316 (struct complaint): Make `message' constant.
2317 (internal_complaint): Declare.
2318 (complaint): Declare.
2319 (complaint_root): Delete declaration.
2320 (symfile_complaints): Delete declaration.
2321 (struct complaints): Add opaque declaration.
2322 (clear_complaints): Add a complaints parameter.
2323 * complaints.c: Update copyright.
2324 (enum complaint_series): Define.
2325 (complaint_root): Delete.
2326 (struct complaints): Define.
2327 (complaint_sentinel, symfile_complaint_book): New variables.
2328 (symfile_explanations, symfile_complaints): New variables.
2329 New variables.
2330 (get_complaints): New function.
2331 (vcomplaint): New function.
2332 (complaint): New function.
2333 (internal_complaint): New function.
2334 (complain): Call vcomplain with symfile_complaint.
2335 (clear_complaints): Rewrite.
2336 (_initialize_complaints): Use add_setshow_command.
2337 * Makefile.in (complaints.o): Update dependencies.
2338 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2339 to call to clear_complaints.
2340 (new_symfile_objfile, reread_symbols): Ditto.
2341 (oldsyms_complaint): Delete.
2342 (empty_symtab_complaint, unknown_option_complaint): Delete.
2343 (free_named_symtabs): Use complaint instead of complain.
2344
d2e6263c
MS
23452002-09-18 Michael Snyder <msnyder@redhat.com>
2346
5fb2031a
AC
2347 Contributed by Apple Computer, Inc. Merged with current sources
2348 by Adam Fedor <fedor@doc.com> [cagney].
2349
d2e6263c
MS
2350 * objc-lang.c: First clean-up round: comments, indentation.
2351 * objc-lang.h: Ditto.
2352 * objc-lang.y: Ditto.
2353
dec43320
AC
23542002-09-18 Andrew Cagney <ac131313@redhat.com>
2355
2356 * maint.c (maintenance_internal_error): Print the parameter as the
2357 error message.
2358 (maintenance_internal_warning): New function.
2359 (_initialize_maint_cmds): Add command `maint internal-warning'.
2360
2361 * defs.h (internal_warning, internal_vwarning): Declare.
2362 * utils.c (struct internal_problem): Define.
2363 (internal_vproblem): New function.
2364 (internal_warning): New function.
2365 (internal_vwarning): New function.
2366 (internal_warning_problem, internal_error_problem): New variables.
2367 (internal_verror): Just call internal_vproblem.
2368
b81654f1
MS
23692002-09-18 Michael Snyder <msnyder@redhat.com>
2370
2371 * objc-lang.c: New file, support for Objective-C.
2372 Preliminary check-in, not yet integrated into gdb.
2373 * objc-lang.h: New file.
2374 * objc-exp.y: New file.
2375
0542c381
AC
23762002-09-18 Andrew Cagney <ac131313@redhat.com>
2377
7bda5e4a
AC
2378 * infrun.c (signal_stop_update): Convert definition to ISO C.
2379 (signal_print_update): Ditto.
2380 (signal_pass_update): Ditto.
2381 * inflow.c (terminal_save_ours): Ditto.
2382
5247b418
AC
2383 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2384 comments.
2385
fc60962c
AC
2386 * config/djgpp/fnchange.lst: Handle name clashes between
2387 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2388 bfd/coff-tic80.c.
2389
0542c381
AC
2390 * i386-linux-tdep.h: Fix tipo.
2391
5b924b9b
AF
23922002-09-18 Adam Fedor <fedor@gnu.org>
2393
2394 * MAINTAINERS: Add myself to the Write After Approval list.
2395
5afc051b
JB
23962002-09-18 Jim Blandy <jimb@redhat.com>
2397
2398 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2399 texthigh and textlow to reader-specific structs caused
2400 objfile_relocate to miss them. This is fixable, but the work that
2401 the change was supposed to prepare GDB for never got done anyway.
2402
eb944380
DC
24032002-09-18 David Carlton <carlton@math.stanford.edu>
2404
2405 * MAINTAINERS: Alphabetize Write After Approval list.
2406
948e66d9
DJ
24072002-09-18 Daniel Jacobowitz <drow@mvista.com>
2408
2409 Fix PR gdb/709
2410 * values.c (value_static_field): Call read_var_value.
2411
dc604539
AC
24122002-09-18 Andrew Cagney <ac131313@redhat.com>
2413
2414 * valops.c (hand_function_call): Align the initial stack pointer
2415 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2416 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2417 return value.
2418 * mips-tdep.c (mips_frame_align): New function.
2419 (mips_gdbarch_init): Set frame_align.
2420 * gdbarch.sh (FRAME_ALIGN): New method.
2421 * gdbarch.h, gdbarch.c: Re-generate.
2422
cb7e422f
ML
24232002-09-18 Michal Ludvig <mludvig@suse.cz>
2424
2425 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2426 registers.
2427
a094c6fb
AC
24282002-09-17 Andrew Cagney <ac131313@redhat.com>
2429
2430 * NEWS: Mention that MIPS $fp behavior changed.
2431 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2432 reference to FP_REGNUM.
2433 (mipsnbsd_cannot_store_register): Ditto.
2434 * mips-linux-nat.c: Update copyright.
2435 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2436 (mips_linux_cannot_store_register): Ditto.
2437 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2438 * config/mips/tm-mips.h: Update copyright.
2439 (FP_REGNUM): Delete macro.
2440 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2441 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2442 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2443 (mips_r3041_reg_names, mips_r3051_reg_names)
2444 (mips_r3081_reg_names): Replace "fp" with "".
2445 Fix PR gdb/480.
2446
45cf40d1
TR
24472002-09-17 Theodore A. Roth <troth@verinet.com>
2448
2449 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2450 generic_read_register_dummy() (PR gdb/703).
2451 (avr_push_return_address): #if 0 out unused vars.
2452 (avr_gdbarch_init): Enable use of avr_push_return_address().
2453
c7e701b5
MS
24542002-09-17 Michael Snyder <msnyder@redhat.com>
2455
d76ba2a5 2456 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2457 RTE will take care of it.
2458
20bcf01c
AC
24592002-09-17 Andrew Cagney <ac131313@redhat.com>
2460
2461 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2462 invalid, return SP_REGNUM.
2463
009a9971 24642002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2465
2466 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2467 point registers without sign extension.
2468
135c175f
AC
24692002-09-17 Andrew Cagney <cagney@redhat.com>
2470
2471 * blockframe.c (deprecated_read_register_dummy): Rename
2472 generic_read_register_dummy.
2473 * frame.c (frame_unwind_signed_register): New function.
2474 (frame_unwind_unsigned_register): New function.
2475 * frame.h (frame_unwind_signed_register): Declare.
2476 (frame_unwind_unsigned_register): Declare.
2477 (deprecated_read_register_dummy): Rename
2478 generic_read_register_dummy.
2479
2480 * h8300-tdep.c (h8300_frame_chain): Update.
2481 (h8300_frame_saved_pc): Update.
2482 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2483 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2484 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2485 (s390_frame_chain): Update.
2486 * v850-tdep.c (v850_find_callers_reg): Update.
2487 (v850_frame_saved_pc): Update.
2488 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2489 (m32r_find_callers_reg): Update.
2490 (m32r_frame_saved_pc): Update.
2491 * sh-tdep.c (sh_find_callers_reg): Update.
2492 (sh64_get_saved_pr): Update.
2493 (sh_init_extra_frame_info): Update.
2494 (sh_init_extra_frame_info): Update.
2495 (sh64_init_extra_frame_info): Update.
2496 (sh64_init_extra_frame_info): Update.
2497 * mcore-tdep.c (mcore_find_callers_reg): Update.
2498 (mcore_frame_saved_pc): Update.
2499 (mcore_init_extra_frame_info): Update.
2500 * i386-tdep.c (i386_frame_saved_pc): Update.
2501 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2502 (ia64_init_extra_frame_info): Update.
2503 (ia64_init_extra_frame_info): Update.
2504 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2505 * cris-tdep.c (cris_init_extra_frame_info): Update.
2506 * avr-tdep.c (avr_frame_chain): Update.
2507 (avr_init_extra_frame_info): Update.
2508 (avr_frame_saved_pc): Update.
2509 * arm-tdep.c (arm_find_callers_reg): Update.
2510 (arm_init_extra_frame_info): Update.
2511 (arm_frame_saved_pc): Update.
2512
a741e514
TT
25132002-09-17 Tom Tromey <tromey@redhat.com>
2514
2515 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2516 is "'".
2517
d1a8e808
CV
25182002-09-17 Corinna Vinschen <vinschen@redhat.com>
2519
2520 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2521 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2522 NEXT_PROLOGUE_INSN.
2523 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2524 NEXT_PROLOGUE_INSN.
2525
d9025a18
JB
25262002-09-16 Joel Brobecker <brobecker@gnat.com>
2527
2528 * osfsolib.c: Remove file, replaced by solib-osf.c.
2529 * Makefile.in: Remove compilation rules for osfsolib.c.
2530
1b2ef1b6
DC
25312002-09-16 David Carlton <carlton@math.stanford.edu>
2532
2533 * cp-valprint.c (cp_print_class_method): Correct args to
2534 check_stub_method_group.
2535
928e48af
CV
25362002-09-16 Corinna Vinschen <vinschen@redhat.com>
2537
2538 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2539 `set architecture'. Unify naming convention of functions.
2540 (h8300_skip_prologue): Improve prologue analysis.
2541 (h8300_push_arguments): Rewritten to more closely match GCC's
2542 bizarre argument-passing behavior, along with the comment describing
2543 said behavior.
2544 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2545 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2546 sim, remote-e7000.c, remote-hms.c and remote.c
2547
5e3397bb
MK
25482002-09-15 Mark Kettenis <kettenis@gnu.org>
2549
2550 * i386-tdep.c (gdb_print_insn_i386): Removed.
2551 (i386_print_insn): New function.
2552 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2553 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2554 tm_print_insn_info.
2555
f710f4fc
MK
25562002-09-14 Mark Kettenis <kettenis@gnu.org>
2557
2558 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2559 zero.
2560
db54fef4
CV
25612002-09-14 Corinna Vinschen <vinschen@redhat.com>
2562
2563 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2564 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2565 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2566
2becadee
CF
25672002-09-13 Christopher Faylor <cgf@redhat.com>
2568
2569 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2570
de17c821
DJ
25712002-09-13 Daniel Jacobowitz <drow@mvista.com>
2572
2573 * gdbtypes.c (check_stub_method): Make static.
2574 (check_stub_method_group): New function.
2575 * gdbtypes.h: Update prototypes.
2576 * cp-support.c: New file.
2577 * cp-support.h: New file.
2578
2579 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2580 (update_method_name_from_physname): New function.
2581 (read_member_functions): Correct method names for operators
2582 and v3 constructors/destructors. Separate v2 constructors and
2583 destructors.
2584 * Makefile.in (stabsread.o): Update dependencies.
2585 (SFILES): Add cp-support.c.
2586 (COMMON_OBS): Add cp-support.o.
2587 (cp_support_h, cp-support.o): Add.
2588
2589 * cp-valprint.c (cp_print_class_method): Call
2590 check_stub_method_group instead of check_stub_method. Remove
2591 extraneous QUITs.
2592 * p-valprint.c (pascal_object_print_class_method): Likewise.
2593 * valops.c (search_struct_method): Likewise.
2594 (find_method_list, value_struct_elt_for_reference): Likewise.
2595
e76cff22
AC
25962002-09-13 Andrew Cagney <cagney@redhat.com>
2597
2598 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2599 * gdbarch.h, gdbarch.c: Regenerate.
2600
905abb3f
AC
26012002-09-13 Andrew Cagney <ac131313@redhat.com>
2602
2603 * frame.c (find_saved_register): Delete function.
2604 * frame.h (find_saved_register): Delete declaration.
2605 Fix PR gdb/631.
2606
64159455
AC
2607Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2608
2609 * mips-tdep.c (read_next_frame_reg): Re-hack using
2610 frame_register_unwind.
2611
795e1e11
AC
2612Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2613
2614 * mips-tdep.c (mips_get_saved_register): Re-hack using
2615 frame_register_unwind.
2616
5720643c
JB
26172002-09-12 Joel Brobecker <brobecker@gnat.com>
2618
2619 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2620 vector. Will be useful for Interix.
2621 * gdbarch.h, gdbarch.c: Regenerate.
2622
2623 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2624 name of the malloc function by NAME_OF_MALLOC.
2625
3bada2a2
JB
26262002-09-12 Joel Brobecker <brobecker@gnat.com>
2627
2628 * value.h (find_function_in_inferior): Add const keyword to
2629 one of the parameters. Allows us to invoke this function with
2630 a const char *.
2631 * valops.c (find_function_in_inferior): Likewise.
2632
3db26b01
JB
26332002-09-12 Joel Brobecker <brobecker@gnat.com>
2634
2635 * exec.c (xfer_memory): Fix compilation warning with old versions
2636 of GCC.
2637 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2638
17c5ed2c
DC
26392002-09-12 David Carlton <carlton@math.stanford.edu>
2640
2641 * symtab.h: Run through gdb_indent.h.
2642 Add 2002 to Copyright year list.
2643
ecd1107e
AM
26442002-09-12 Alan Modra <amodra@bigpond.net.au>
2645
2646 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2647 mach constants.
2648 * MAINTAINERS: Add myself to write after approval list.
2649
e64f66d1
JB
26502002-09-11 J. Brobecker <brobecker@gnat.com>
2651
2652 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2653
f9395794
JB
26542002-09-11 J. Brobecker <brobecker@gnat.com>
2655
2656 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2657 Interix.
2658
1a303dec
MS
26592002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2660
2661 * procfs.c (do_detach): Clear current signal, not just fault.
2662 Corrects problem with breakpoint trap signal leaking to detached
2663 process on Tru64.
2664
c0219d42
MS
26652002-09-10 Michael Snyder <msnyder@redhat.com>
2666
2667 * buildsym.c (finish_block): Protect against null pointer.
2668
9d84ac84
AC
26692002-09-10 Andrew Cagney <cagney@redhat.com>
2670
2671 * infcmd.c (default_print_registers_info): Send all output to
2672 ``file'' instead of ``gdb_stdout''.
2673
77d8f2b4
MS
26742002-09-10 Michael Snyder <msnyder@redhat.com>
2675
2676 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2677 LONGEST, and use signed register read (addresses are sign-
2678 extended for mips).
2679
99656a61
SC
26802002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2681
2682 * event-loop.c (gdb_do_one_event): Make public.
2683 * event-loop.h (gdb_do_one_event): Declare.
2684
da12f4d8
JL
26852002-09-10 Jeff Law <law@redhat.com>
2686
2687 * infttrace.c (child_resume): Simplify and rework to avoid
2688 TT_PROC_CONTINUE.
2689
d0aee0c4
FF
26902002-09-09 Fred Fish <fnf@intrinsity.com>
2691
2692 * printcmd.c (print_scalar_formatted): "len" is the number of
2693 target bytes, NOT the number of target bits.
2694
7cb3ec5e
EZ
26952002-09-09 Elena Zannoni <ezannoni@redhat.com>
2696
2697 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2698 * top.c (init_main): Set rl_terminal_name.
2699
4dc81987
AS
27002002-09-08 Aidan Skinner <aidan@velvet.net>
2701
2702 * ada-lang.c (ada_array_bound, ada_type_match,
2703 _initialize_ada_language): Fix K&R definitions.
2704 * ada-tasks.c (get_current_task): Fix K&R definitions.
2705 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2706
842330b4
CF
27072002-09-07 Christopher Faylor <cgf@redhat.com>
2708
2709 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2710 Add XP.
2711
43156d82
MK
27122002-09-06 Mark Kettenis <kettenis@gnu.org>
2713
66da5fd8
MK
2714 * i386-tdep.c (i386_register_virtual_type,
2715 i386_register_convertible, i386_register_convert_to_virtual,
2716 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2717 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2718 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2719 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2720 Don't set push_arguments twice.
2721
4b218c18
MK
2722 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2723 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2724 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2725 sigtramp_end to NULL.
2726 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2727 defines.
2728 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2729
4cc314d5
MK
2730 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2731 whitespace.
2732
43156d82
MK
2733 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2734 * gdbarch.h, gdbarch.c: Re-generate.
2735 * blockframe.c (find_pc_sect_partial_function): Convert to use
2736 SIGTRAMP_START_P predicate.
2737
6672060b
MS
27382002-09-05 Michael Snyder <msnyder@redhat.com>
2739
a90c3637
MS
2740 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2741 generic_dummy_frame method and old method. Also distinguish
2742 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2743 (arm_extract_return_value): Use new regcache method.
a90c3637 2744
6672060b
MS
2745 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2746 adjustment that doesn't conform to the ABI.
2747 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2748 saved regcache, not from current regcache.
2749
299ffc64
AC
27502002-09-05 Andrew Cagney <ac131313@redhat.com>
2751
2752 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2753 * README: Update.
2754
a3a2ee65
JT
27552002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2756
2757 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2758 if arm_apcs_32 is false.
2759
2bc7eea9
AC
27602002-09-04 Andrew Cagney <ac131313@redhat.com>
2761
2762 GDB 5.3 branch created.
2763
8a55a7c5
TR
27642002-09-03 Theodore A. Roth <troth@verinet.com>
2765
2766 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2767 generic_unwind_get_saved_register.
2768
e26fb1d7
DC
27692002-09-03 David Carlton <carlton@math.stanford.edu>
2770
2771 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2772 argument (PR gdb/653). Update call to smash_to_method_type.
2773 (read_structure_scope): Update call to dwarf2_add_member_fn.
2774
30d52491
ML
27752002-09-03 Michal Ludvig <mludvig@suse.cz>
2776
2777 * x86-64-linux-tdep.c: Include gdb_string.h
2778 * x86-64-linux-nat.c: Ditto.
2779
06891d83
JT
27802002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2781
2782 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2783 when YYDEBUG is set to 1.
2784 * c-exp.y: Likewise.
2785 * f-exp.y: Likewise.
2786 * jv-exp.y: Likewise.
2787 * m2-exp.y: Likewise.
2788 * p-exp.y: Likewise.
2789
7d400e77
JT
27902002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2791
2792 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2793 dependency list.
2794 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2795 solib_svr4_fetch_link_map_offsets to
2796 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2797 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2798 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2799 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2800 solib-svr4.o, and solib-legacy.o.
2801 * config/i386/tm-nbsd.h: Include solib.h.
2802
704a27c4
JT
28032002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2804
2805 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2806 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2807 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2808 comment noting that this needs its own target configuration.
2809 * config/i386/nbsd.mt: New file.
2810 * config/i386/nbsdaout.mt: Remove.
2811 * config/i386/nbsdelf.mt: Ditto.
2812 * config/i386/tm-nbsdaout.h: Ditto.
2813
d66198e1
JT
28142002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2815
2816 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2817 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2818 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2819 tdep->sigtramp_end.
2820 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2821 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2822 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2823
3cac699e
JT
28242002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2825
2826 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2827 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2828 * i386-tdep.h (i386bsd_init_abi): New prototype.
2829 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2830 function declaration.
2831 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2832 for NetBSD-a.out or NetBSD-ELF.
2833 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2834 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2835 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2836 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2837 and nbsd-tdep.h.
2838 (i386nbsd_pc_in_sigtramp): New function.
2839 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2840 i386nbsd_pc_in_sigtramp.
2841 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2842 and i386nbsdelf_init_abi OS ABI handlers.
2843 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2844 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2845
7010ca0a
MK
28462002-09-02 Mark Kettenis <kettenis@gnu.org>
2847
2848 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2849 registers if the target really has them.
2850
6dd93b72
JT
28512002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2852
2853 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2854 than nbsd-tdep.h.
2855
2ca8ae21
JT
28562002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2857
2858 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2859 list.
2860 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2861 (alphanbsd_skip_sigtramp_frame): New functions.
2862 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2863 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2864 to alphanbsd_sigcontext_addr.
2865
3d9b49b0
JT
28662002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2867
2868 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2869 list.
2870 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2871 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2872 nbsd_pc_in_sigtramp.
2873 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2874 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2875 * nbsd-tdep.c: Include gdb_string.h.
2876 (nbsd_pc_in_sigtramp): New function.
2877 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2878 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2879 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2880 ppcnbsd_pc_in_sigtramp.
2881 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2882 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2883 shnbsd_pc_in_sigtramp.
2884 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2885 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2886 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2887
c860120c
PM
28882002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2889
2890 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2891 watchpoints to NULL.
2892 (insert_breakpoints): set val field of watchpoints if NULL.
2893
2894
c7612d53
JB
28952002-08-29 Jim Blandy <jimb@redhat.com>
2896
2897 * symtab.c (lookup_symbol_aux): In the cases where we find a
2898 minimal symbol of an appropriate name and use its address to
2899 select a symtab to read and search, use `name' (as passed to us)
2900 as the demangled name when searching the symtab's global and
2901 static blocks, not the minsym's name.
2902
66609862
KS
29032002-08-29 Keith Seitz <keiths@redhat.com>
2904
2905 * stack.c (print_frame_info_base): Always set current_source_symtab
2906 and current_source_line.
2907
151fefe2
JB
29082002-08-29 Donn Terry <donnte@microsoft.com>
2909
2910 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2911
bfb3754e
KS
29122002-08-28 Keith Seitz <keiths@redhat.com>
2913
2914 * stack.c (select_frame): Add FIXME concerning selected-frame
2915 events.
2916 (select_frame_command): Send selected-frame-level-changed
2917 event notification, but only if the level actually changed.
2918 (up_silently_base): Add selected-frame-level-changed event
2919 notification.
2920 (down_silently_base): Likewise.
2921
e822a2a0
AC
29222002-08-28 Andrew Cagney <ac131313@redhat.com>
2923
2924 * Makefile.in: Update dependencies for all gdb/*.c files.
2925
309367d4
TT
29262002-08-27 Tom Tromey <tromey@redhat.com>
2927
2928 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2929 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2930 Update dependencies.
2931 * i387-tdep.c: Include gdb_string.h.
2932 * osabi.c: Likewise.
2933 * i386-linux-nat.c: Likewise.
2934 * lin-lwp.c: Likewise.
2935 * ax-gdb.c: Likewise.
2936 * signals/signals.c: Likewise.
2937 * jv-valprint.c: Likewise.
2938 * p-lang.c: Likewise.
2939 * c-valprint.c: Likewise.
2940 * cp-abi.c: Likewise.
2941
e1507482
EZ
29422002-08-27 Elena Zannoni <ezannoni@redhat.com>
2943
2944 * cli/cli-script.h (copy_command_lines): Export.
2945 * breakpoint.c: Include cli/cli-script.h.
2946 * Makefile.in (breakpoint.o): Update dependencies.
2947
c6510018
MS
29482002-08-26 Michael Snyder <msnyder@redhat.com>
2949
2950 * breakpoint.c (insert_breakpoints): Protect all references
2951 to 'process_warning'. Shorten long lines.
2952
c2b8ed2c
MS
29532002-08-26 Joel Brobecker <brobecker@gnat.com>
2954
2955 * cli/cli-script.c (copy_command_lines): New function.
2956 * defs.h (copy_command_lines): Export.
2957 * testsuite/gdb.base/commands.exp: New tests for commands
2958 attached to a temporary breakpoint, and for commands that
2959 delete the breakpoint they are attached to.
2960
29612002-08-26 Michael Snyder <msnyder@redhat.com>
2962
2963 * breakpoint.c (bpstat_stop_status): Instead of copying the
2964 pointer to the breakpoint commands struct, make a new copy
2965 of the struct and point to that.
2966 (bpstat_clear): Free the commands struct.
2967 (bpstat_clear_actions): Free the commands struct.
2968 (bpstat_do_actions): Free the command actions. Also execute
2969 the local cleanups, instead of deleting them.
2970 (delete_breakpoint): Leave the commands field of the bpstat
2971 chain alone -- it will be freed later.
2972
64b84175
KB
29732002-08-26 Kevin Buettner <kevinb@redhat.com>
2974
2975 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2976 deleted in 2002-08-20 commit. This function is still used by
2977 ppc-linux-nat.c.
2978
55970da6
KS
29792002-08-26 Keith Seitz <keiths@redhat.com>
2980
2981 * gdb-events.sh: Add selected-frame-level-changed event.
2982 * gdb-events.c: Regenerated.
2983 * gdb-events.h: Regenerated.
2984
a790ad35
SC
29852002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2986
2987 Fix PR gdb/393:
2988 * inflow.c (terminal_save_ours): New function to save terminal
2989 settings.
2990 * inferior.h (terminal_save_ours): Declare.
2991 * target.c (debug_to_terminal_save_ours): New function.
2992 (cleanup_target): Defaults to_terminal_save_ours.
2993 (update_current_target): Inherit to_terminal_save_ours.
2994 (setup_target_debug): Set to_terminal_save_ours.
2995 * target.h (target_terminal_save_ours): New to save terminal settings.
2996 (target_ops): New member to_terminal_save_ours.
2997 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2998 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2999 * inftarg.c (init_child_ops): Likewise.
3000 * m3-nat.c (init_m3_ops): Likewise.
3001 * procfs.c (init_procfs_ops): Likewise.
3002 * wince.c (init_child_ops): Likewise.
3003 * win32-nat.c (init_child_ops): Likewise.
3004 * sol-thread.c (init_sol_thread_ops): Likewise.
3005
c00dcbe9
MK
30062002-08-26 Mark Kettenis <kettenis@gnu.org>
3007
3d7f4f49
MK
3008 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3009 use regcache_* functions.
3010 (i386_gdbarch_init): Set store_return_value instead of
3011 deprecated_store_return_value.
3012
c00dcbe9
MK
3013 * regcache.c (regcache_raw_write_signed,
3014 regcache_raw_write_unsigned): New functions.
3015 * regcache.h (regcache_raw_write_signed,
3016 regcache_raw_write_unsigned): New prototypes.
3017
0e0d15ca
AC
30182002-08-25 Andrew Cagney <ac131313@redhat.com>
3019
3020 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3021 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3022 source file dependencies. Cleanup corresponding generator rules.
3023
d3b22ed5
AC
30242002-08-25 Andrew Cagney <ac131313@redhat.com>
3025
3026 * regcache.h (register_offset_hack): Declare.
3027 (regcache_cooked_read_using_offset_hack): Declare.
3028 (regcache_cooked_write_using_offset_hack): Declare.
3029
3030 * regcache.c (register_offset_hack): New function.
3031 (regcache_cooked_read_using_offset_hack): New function.
3032 (regcache_cooked_write_using_offset_hack): New function.
3033 (regcache_dump): Check that the registers, according to their
3034 offset, are packed hard against each other.
3035 (cooked_xfer_using_offset_hack): New function.
3036
bb425013
AC
30372002-08-25 Andrew Cagney <ac131313@redhat.com>
3038
3039 * regcache.c (struct regcache_descr): Add field register_type.
3040 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3041 in as a parameter
3042 (init_regcache_descr): Initialize register_type. Pass the descr
3043 to init_legacy_regcache_descr. Use register_type instead of
3044 REGISTER_VIRTUAL_TYPE.
3045 (register_type): New function.
3046 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3047 * regcache.h (register_type): Declare.
3048
d0403e00
AC
30492002-08-25 Andrew Cagney <ac131313@redhat.com>
3050
3051 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3052 instead of deprecated_store_return_value. Fix fallout from
3053 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3054
0ed04cce
AC
30552002-08-25 Andrew Cagney <ac131313@redhat.com>
3056
3057 * regcache.c (max_register_size): New function.
3058 (init_legacy_regcache_descr): Ensure that max_register_size is
3059 large enough for REGISTER_VIRTUAL_SIZE.
3060 * regcache.h (max_register_size): Declare.
3061
46d79c04
AC
30622002-08-24 Andrew Cagney <ac131313@redhat.com>
3063
3064 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3065 store_return_value.
3066 (e500_extract_return_value): Change type of valbuf pointer to
3067 void.
3068
853c7bd0
MK
30692002-08-24 Mark Kettenis <kettenis@gnu.org>
3070
cd87e769
MK
3071 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3072 workaround.
3073
853c7bd0
MK
3074 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3075 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3076 long long) to prevent compiler warning on 64-bit systems.
3077
ebba8386
AC
30782002-08-23 Andrew Cagney <cagney@redhat.com>
3079
3080 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3081 (DEPRECATED_STORE_RETURN_VALUE): New method.
3082 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3083 * gdbarch.h, gdbarch.c: Re-generate.
3084
3085 * values.c (set_return_value): Pass current_regcache to
3086 STORE_RETURN_VALUE.
3087 * arch-utils.h (legacy_store_return_value): Declare.
3088 * arch-utils.c (legacy_store_return_value): New function.
3089 (legacy_extract_return_value): Update parameters.
3090
3091 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3092 STORE_RETURN_VALUE.
3093 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3094 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3095 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3096 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3097 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3098 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3099 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3100 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3101 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3102 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3103
3104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3105 * i386-tdep.c (i386_extract_return_value): Update.
3106 * arch-utils.c (legacy_extract_return_value): Update.
3107 * frv-tdep.c (frv_gdbarch_init): Update.
3108 * cris-tdep.c (cris_gdbarch_init): Update.
3109 * d10v-tdep.c (d10v_gdbarch_init): Update.
3110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3111 * m68k-tdep.c (m68k_gdbarch_init): Update.
3112 * mcore-tdep.c (mcore_gdbarch_init): Update.
3113 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3114 * s390-tdep.c (s390_gdbarch_init): Update.
3115 * sparc-tdep.c (sparc_gdbarch_init): Update.
3116 * sh-tdep.c (sh_gdbarch_init): Update.
3117 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3118 * v850-tdep.c (v850_gdbarch_init): Update.
3119 * avr-tdep.c (avr_gdbarch_init): Update.
3120 * ia64-tdep.c (ia64_gdbarch_init): Update.
3121 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3122 * vax-tdep.c (vax_gdbarch_init): Update.
3123 * alpha-tdep.c (alpha_gdbarch_init): Update.
3124 * arm-tdep.c (arm_gdbarch_init): Update.
3125 * mips-tdep.c (mips_gdbarch_init): Update.
3126 * i386-tdep.c (i386_gdbarch_init): Update.
3127
5bd8c6d0
AC
31282002-08-23 Andrew Cagney <ac131313@redhat.com>
3129
3130 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3131 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3132
e73e1724
MK
31332002-08-24 Mark Kettenis <kettenis@gnu.org>
3134
3135 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3136 problems.
3137
3e6564e1
JB
31382002-08-23 Joel Brobecker <brobecker@gnat.com>
3139
3140 * infrun.c (handle_inferior_event): Move a comment outside of a
3141 function call, in order to avoid indent reformatting this part
3142 of the code in an unreadable way.
3143
81d0cc19
GS
31442002-08-23 Grace Sainsbury <graces@redhat.com>
3145
3146 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3147 when breakpoints fail. Move general breakpoint error messages to
3148 insert_breakpoints.
3149 * breakpoint.c (insert_breakpoints): Change warnings when
3150 breakpoints are nto inserted to specify the type. Remove call to
3151 memory_error when hardware breakpoints can't be inserted. Remove
3152 multiple calls to warning so all messages are sent to the user at
3153 once.
3154 (delete_breakpoints): Make insert error messsages more explicit.
3155
17574093
DJ
31562002-08-23 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3159 gdbserver/ChangeLog.
3160
8acc2935
MK
31612002-08-23 Mark Kettenis <kettenis@gnu.org>
3162
dfe01d39
MK
3163 * i386-tdep.c: Include "objfiles.h".
3164 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3165 skip_trampoline_code.
3166 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3167 (CPLUS_MARKER): Define to '.'.
3168
8acc2935
MK
3169 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3170 member.
3171 (linux_corefile_thread_callback): Increase args->num_notes.
3172 (linux_make_note_section): Initialize thread_args.num_notes, and
3173 use it to determine whether notes for any threads were created.
3174
151fefe2 31752002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3176
3177 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3178 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3179 and PCUNKILL.
3180 (write_with_trace): Conditionalize out the switch branch handling
3181 PCSHOLD if the corresponding macro is not defined. Likewise for
3182 PRSABORT and PRSTOP.
3183 This change will be needed by the Interix port.
3184
e1507482
EZ
31852002-08-22 Elena Zannoni <ezannoni@redhat.com>
3186
3187 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3188 write_register wherever possible instead of manipulating the
3189 register bytes directly.
3190 Assign VALUE_CONTENTS to a variable and use that.
3191 The GPR numbers are now dependent on the architecture.
3192
96ff0de4
EZ
31932002-08-22 Elena Zannoni <ezannoni@redhat.com>
3194
3195 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3196 ev_offset fields.
3197 (skip_prologue): Add support for BookE/e500 instructions.
3198 (e500_extract_return_value): New function.
3199 (frame_get_saved_regs): Add support for saving ev registers and
3200 pseudo gpr's.
3201 (e500_store_return_value): New function.
3202 (rs6000_gdbarch_init): Move up default intializations of
3203 deprecated_extract_return_value and store_return_value. Overwrite
3204 init of store_return_value with e500 specific version.
3205 Set extract_return_value for e500.
3206
fbefca5b
EZ
32072002-08-22 Elena Zannoni <ezannoni@redhat.com>
3208
3209 * blockframe.c (generic_call_dummy_register_unwind): Use
3210 regcache_cooked_read to catch cases in which the variable is
3211 stored in a pseudo register.
3212
4d210288
AC
32132002-08-22 Andrew Cagney <cagney@redhat.com>
3214
3215 * NEWS: Mention that the i960 has been made obsolete.
3216 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3217 i960-tdep.c
3218 (remote-nrom.o): Obsolete target.
3219 (remote-nindy.o, i960-tdep.o): Ditto.
3220 * remote-nrom.c: Make file obsolete.
3221 * remote-nindy.c, remote-vx960.c: Ditto.
3222 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3223 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3224 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3225 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3226 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3227 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3228 i960-*-vxworks* obsolete.
3229 * MAINTAINERS: Note that the i960 is obsolete.
3230
6c0c456d
CV
32312002-08-21 Corinna Vinschen <vinschen@redhat.com
3232
3233 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3234 detach to allow reinitialization.
3235
9f9d12b3
AC
32362002-08-22 Andrew Cagney <ac131313@redhat.com>
3237
3238 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3239 attempt).
3240
ebeb39fe
JB
32412002-08-22 Jim Blandy <jimb@redhat.com>
3242
3243 * coffread.c (coff_symfile_read): Don't try to read the line
3244 number table from disk if the image file doesn't have a symbol
3245 table; we'll never actually look at the info anyway, and Windows
3246 ships DLL's with bogus file offsets for the line number data.
3247
5bf1c677
EZ
32482002-08-21 Elena Zannoni <ezannoni@redhat.com>
3249
3250 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3251 an e500 executable.
3252
71b8ef93
MS
32532002-08-21 Michael Snyder <msnyder@redhat.com>
3254
3255 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3256 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3257 (DEFAULT_MIPS_TYPE): Delete unused macro.
3258 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3259 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3260
d174216d
JB
32612002-08-21 Jim Blandy <jimb@redhat.com>
3262
3263 * valops.c (value_cast): Simplify and correct logic for doing a
3264 static cast from a pointer to a base class to a pointer to a
3265 derived class.
3266
0ab7a791
AC
32672002-08-21 Andrew Cagney <ac131313@redhat.com>
3268
3269 * infcmd.c (default_print_registers_info): Replace
3270 do_registers_info.
3271 (registers_info): Use gdbarch_print_registers_info instead of
3272 DO_REGISTERS_INFO.
3273 * inferior.h (default_print_registers_info): Replace
3274 do_registers_info.
3275 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3276 (DO_REGISTERS_INFO): Change to a predicate function.
3277 * gdbarch.h, gdbarch.c: Regenerate.
3278
e23792cc
KS
32792002-08-21 Keith Seitz <keiths@redhat.com>
3280
3281 * gdb-events.sh: Add target-changed event.
3282 * gdb-events.c: Regenerated.
3283 * gdb-events.c: Regenerated.
3284 * valops.c (value_assign): Add target-changed event notification
3285 to inlval_register, lval_memory, and lval_reg_frame_relative.
3286
9fb14e79
JB
32872002-08-21 Joel Brobecker <brobecker@gnat.com>
3288
3289 * NEWS: Add an entry regarding the improvement of the next/step
3290 operation on Alpha Tru64 multi-processor machines.
3291
6d39a69f
AC
32922002-08-21 Andrew Cagney <ac131313@redhat.com>
3293
72acd513
AC
3294 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3295 directores.
342af04b 3296 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3297 * Makefile.in (install-gdbtk): Move to install section.
3298 (rdi-share/libangsd.a): Move to end of file.
3299
fa5f27c7
AC
33002002-08-19 Andrew Cagney <ac131313@redhat.com>
3301
3302 * frame.c (frame_register_unwind): When a register, set addrp to
3303 the register's byte.
3304
5a89d8aa
MS
33052002-08-20 Michael Snyder <msnyder@redhat.com>
3306
3307 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3308 used locally, so move them from the target machine header to here.
3309 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3310 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3311 Make static.
3312 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3313
822e978b
AC
33142002-08-20 Andrew Cagney <cagney@redhat.com>
3315
3316 * NEWS: Mention that the Apollo line was made obsolete.
3317 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3318 m68*-hp-hpux* obsolete.
3319 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3320 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3321 * buildsym.c (make_blockvector): Make static.
3322 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3323 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3324 (ALLDEPFILES): Remove dstread.c.
3325 (dstread.o): Obsolete make rule.
3326 * dstread.c: Makefile obsolete.
3327 * dst.h: Ditto.
3328 * config/m68k/hp300hpux.mt: Ditto.
3329 * config/m68k/hp300hpux.mh: Ditto.
3330 * config/m68k/hp300bsd.mt: Ditto.
3331 * config/m68k/hp300bsd.mh: Ditto.
3332 * config/m68k/apollo68b.mt: Ditto.
3333 * config/m68k/apollo68v.mh: Ditto.
3334 * config/m68k/apollo68b.mh: Ditto.
3335
e41b17f0
MS
33362002-08-20 Michael Snyder <msnyder@redhat.com>
3337
3338 * mips-tdep.c (mips_in_return_stub): Make static.
3339 (mips_gdbarch_init): Set in_solib_return_trampoline.
3340 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3341
d50355b6
MS
33422002-08-20 Michael Snyder <msnyder@redhat.com>
3343
3344 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3345 * gdbarch.c, gdbarch.h: Regenerate.
3346 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3347 Add.
3348 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3349
757a7cc6
MS
33502002-08-20 Michael Snyder <msnyder@redhat.com>
3351
3352 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3353 (mips_gdbarch_init): Set skip_trampoline_code,
3354 in_solib_call_trampoline.
3355 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3356 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3357
c8001721
EZ
33582002-08-20 Elena Zannoni <ezannoni@redhat.com>
3359
3360 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3361
3362 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3363 vector type for ev registers.
3364 (e500_pseudo_register_read): New function.
3365 (e500_pseudo_register_write): New function.
3366 (e500_dwarf2_reg_to_regnum): New function.
3367 (PPC_UISA_NOFP_SPRS): New macro.
3368 (PPC_EV_REGS): New macro.
3369 (PPC_GPRS_PSEUDO_REGS): New macro.
3370 (registers_e500): New register set for e500.
3371 (variants): Add e500 variant.
3372 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3373 before setting architectural dependent variations. Initialize ev
3374 registers numbers. Add case for e500 architecture. Set the
3375 number of pseudo registers.
3376
64366f1c
EZ
33772002-08-20 Elena Zannoni <ezannoni@redhat.com>
3378
3379 * rs6000-tdep.c: Clean up comments.
3380
7e78f0ca
AC
33812002-08-20 Andrew Cagney <cagney@redhat.com>
3382
3383 * h8300-tdep.c: Re-indent file.
3384
697f7479
JB
33852002-08-20 Jim Blandy <jimb@redhat.com>
3386
3387 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3388 default for this.
697f7479 3389
e86ae29f
KS
33902002-08-20 Keith Seitz <keiths@redhat.com>
3391
3392 * breakpoints.c (watch_command_1): Use internal breakpoint
3393 when setting a watchpoint_scope breakpoint.
3394
216b504f
EZ
33952002-08-20 Elena Zannoni <ezannoni@redhat.com>
3396
3397 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3398 (build_builtin_type_vec64i): Ditto.
3399 (build_builtin_type_vec128): Ditto.
3400 (build_builtin_type_vec128i): Ditto.
3401
f7ab6ec6
MS
34022002-08-19 Michael Snyder <msnyder@redhat.com>
3403
3404 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3405 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3406 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3407 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3408 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3409 CALL_DUMMY_ADDRESS): Delete.
3410 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3411 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3412 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3413 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3414 push_return_address.
3415 (mips_register_raw_size, mips_eabi_use_struct_convention,
3416 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3417 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3418 mips_init_extra_frame_info, mips_eabi_push_arguments,
3419 mips_n32n64_push_arguments, mips_push_return_address,
3420 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3421 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3422
b5d1566e
MS
34232002-08-19 Michael Snyder <msnyder@redhat.com>
3424
3425 * mips-tdep.c (mips_frame_num_args): New function.
3426 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3427 frame_saved_pc, frame_args_address, frame_locals_address,
3428 frame_num_args, and frame_args_skip.
3429 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3430 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3431 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3432 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3433
2f1488ce
MS
34342002-08-20 Michael Snyder <msnyder@redhat.com>
3435
3436 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3437 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3438 * mips-tdep.c (mips_store_struct_return): New function.
3439 (mips_extract_struct_value_address): New function.
3440 (mips_gdbarch_init): Set store_struct_return and
3441 extract_struct_value_address.
3442
41ff2da1
DC
34432002-08-20 David Carlton <carlton@math.stanford.edu>
3444
3445 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3446 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3447 (read_file_scope): Check that line_header is nonzero before
3448 decoding macro information.
3449
e5451d58
MK
34502002-08-20 Mark Kettenis <kettenis@gnu.org>
3451
3452 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3453 flag the general-purpose registers as floating-point on targets
3454 that don't support the floating-point registers.
3455
4a6daafa
EZ
34562002-08-20 Elena Zannoni <ezannoni@redhat.com>
3457
3458 * rs6000-tdep.c (altivec_register_p): Delete.
3459 (rs6000_do_altivec_registers): Delete.
3460 (rs6000_altivec_registers_info): Delete.
3461 (rs6000_do_registers_info): Delete.
3462 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3463 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3464
ab4327e0
EZ
34652002-08-20 Elena Zannoni <ezannoni@redhat.com>
3466
3467 * infcmd.c (do_registers_info): Print vector registers in hex
3468 format only.
3469 (print_vector_info): Check that printing registers
3470 makes sense.
3471 (print_float_info): Ditto.
3472
cb1d2653
AC
34732002-08-20 Andrew Cagney <ac131313@redhat.com>
3474
3475 * mips-tdep.c (mips_gdbarch_init): Update.
3476 (mips_o32_extract_return_value): Rewrite.
3477 (mips_o32_store_return_value): Rewrite.
3478 (mips_o32_xfer_return_value): New function.
3479 (mips_xfer_register): Tweak debug print message. Allow for
3480 buf_offset when dumping the value transfered.
3481
dfc3d9b2
AC
34822002-08-20 Andrew Cagney <ac131313@redhat.com>
3483
3484 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3485 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3486 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3487 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3488 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3489
7807aa61
MS
34902002-08-14 Michael Snyder <msnyder@redhat.com>
3491
3492 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3493
489461e2
EZ
34942002-08-19 Elena Zannoni <ezannoni@redhat.com>
3495
3496 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3497 register.
3498 (P): New macro to define a register as a pseudo register.
3499 (R, R4, R8, R16, FR32, R64, R0): Updated.
3500 (struct variant): Add new fields for number of pseudo registers
3501 and number of total registers.
3502 (tot_num_registers): New macro replacing....
3503 (num_registers): ...deleted macro.
3504 (num_registers): New function.
3505 (num_pseudo_registers): New function.
3506 (variants): Update all variants to intialize new fields correctly.
3507 Postpone initialization of number of pseudo regs and real regs.
3508 (init_variants): New function.
3509 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3510 registers offsets.
3511
fcaffe4c
DC
35122002-08-19 David Carlton <carlton@math.stanford.edu>
3513
2c2738a0
DC
3514 * valops.c (search_struct_field): Change error message to treat
3515 return value of 0 from value_static_field as meaning that field is
3516 optimized out.
3517 (value_struct_elt_for_reference): Ditto.
3518 * values.c (value_static_field): Treat an unresolved location the
3519 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3520 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3521 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3522 * MAINTAINERS: Add self to Write After Approval list.
3523
88658117
AC
35242002-08-19 Andrew Cagney <ac131313@redhat.com>
3525
3526 * mips-tdep.c (mips_xfer_register): New function.
3527 (mips_n32n64_extract_return_value): Rewrite.
3528 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3529 instead of deprecated_extract_return_value.
3530
21283beb
EZ
35312002-08-19 Elena Zannoni <ezannoni@redhat.com>
3532
3533 * rs6000-tdep.c (TDEP): Delete macro.
3534 (branch_dest): Replace use of TDEP macro with its body.
3535 (rs6000_pop_frame): Ditto.
3536 (rs6000_push_arguments): Ditto.
3537 (rs6000_skip_trampoline_code): Ditto.
3538 (rs6000_frame_saved_pc): Ditto.
3539 (rs6000_frame_chain): Ditto.
3540 (rs6000_register_name): Ditto.
3541 (rs6000_register_byte): Ditto.
3542 (rs6000_register_raw_size): Ditto.
3543 (rs6000_register_virtual_type): Ditto.
3544 (rs6000_register_convertible): Ditto.
3545 (rs6000_convert_from_func_ptr_addr): Ditto.
3546
bf072999
DJ
35472002-08-19 Daniel Jacobowitz <drow@mvista.com>
3548
3549 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3550 conditionally.
3551 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3552 MIPS_LINUX_JB_ELEMENT_SIZE.
3553 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3554 for MAX_REGISTER_RAW_SIZE arrays.
3555 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3556 MIPS_LINUX_JB_ELEMENT_SIZE.
3557
9b949a49
PM
35582002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3559
3560 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3561
6d3e79c6
AS
35622002-08-19 Aidan Skinner <aidan@velvet.net>
3563
3564 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3565 ada-valprint.c ada-tasks.c.
3566 (YYFILES): Add ada-exp.y.
3567 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3568 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3569 (ada-exp.tab.o): New target.
3570
06c0b04e
AC
35712002-08-18 Andrew Cagney <ac131313@redhat.com>
3572
3573 * regcache.c (regcache_xfer_part): New function.
3574 (regcache_raw_read_part): New function.
3575 (regcache_raw_write_part): New function.
3576 (regcache_cooked_read_part): New function.
3577 (regcache_cooked_write_part): New function.
3578 * regcache.h (regcache_raw_read_part): Declare.
3579 (regcache_raw_write_part): Declare.
3580 (regcache_cooked_read_part): Declare.
3581 (regcache_cooked_write_part): Declare.
3582
92d1e331
DJ
35832002-08-18 Daniel Jacobowitz <drow@mvista.com>
3584
3585 * remote.c (remote_open_1): Add async_p.
3586 (remote_async_open_1): Delete.
3587 (open_remote_target): Delete.
3588 (remote_open, extended_remote_open): Update calls to remote_open_1.
3589 (remote_async_open, extended_remote_async_open): Call
3590 remote_open_1 instead of remote_async_open_1.
3591
247055de
MK
35922002-08-19 Mark Kettenis <kettenis@gnu.org>
3593
3594 * blockframe.c: Fix a few coding standard violations.
3595
641eda39
MK
35962002-08-19 Mark Kettenis <kettenis@gnu.org>
3597
0b717710
MK
3598 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3599 here from ...
3600 * config/i386/tm-i386sco5.h: ... here. File removed.
3601 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3602
26d28e12 3603 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3604 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3605 (TM_FILE): Set to tm-i386.h.
3606 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3607 * config/i386/tm-i386v.h: Remove file.
3608 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3609 instead of "i386/tm-i386v.h".
3610 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3611 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3612 "i386/tm-i386v.h".
3613 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3614 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3615 "i386/tm-i386.h".
3616
d4e0bab4
MK
36172002-08-18 Mark Kettenis <kettenis@gnu.org>
3618
3619 * config/i386/nm-i386v.h: Add protection against
3620 multiple-inclusion.
3621 (i386_register_u_addr): Remove prototype.
3622 (register_u_addr): New prototype.
3623 (REGISTER_U_ADDR): Redefine accordingly.
3624 * i386v-nat.c: Improve several comments.
3625 (i386_register_u_addr): Change signature and rename to
3626 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3627 ubase variable.
3628
46cac009
AC
36292002-08-18 Andrew Cagney <ac131313@redhat.com>
3630
3631 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3632 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3633 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3634 deprecated_extract_return_value.
3635 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3636 rename mips_o32o64_push_arguments.
3637 (mips_gdbarch_init): Update.
3638 (mips_extract_return_value): Delete.
3639 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3640 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3641 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3642 (mips_n32n64_extract_return_value): Clone
3643 mips_extract_return_value.
3644 (mips_store_return_value): Delete.
3645 (mips_o32_store_return_value): Clone mips_store_return_value.
3646 (mips_o64_store_return_value): Clone mips_store_return_value.
3647 (mips_eabi_store_return_value): Clone mips_store_return_value.
3648 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3649
d2e4a39e
AS
36502002-08-18 Aidan Skinner <aidan@velvet.net>
3651
0c30c098
AS
3652 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3653 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3654
36552002-08-18 Aidan Skinner <aidan@velvet.net>
3656
3657 * ada-lang.c: Run through gdb_indent.sh.
3658 * ada-lang.h: Run through gdb_indent.sh.
3659 * ada-tasks.c: Run through gdb_indent.sh.
3660 * ada-typeprint.c: Run through gdb_indent.sh.
3661 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3662
01fc4e33
AC
36632002-08-18 Andrew Cagney <ac131313@redhat.com>
3664
3665 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3666 ABI.
3667
d8ee244c
MK
36682002-08-18 Mark Kettenis <kettenis@gnu.org>
3669
c38d8261
MK
3670 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3671
222db64c
MK
3672 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3673 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3674
c2848c82
MK
3675 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3676 write_register_gen instead of write_register_bytes.
3677
d8ee244c
MK
3678 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3679 i[3456]-*-osf1mk* configurations have been made obsolete.
3680 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3681 i[3456]86-*-osf1mk* hosts obsolete.
3682 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3683 targets obsolete.
3684 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3685 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3686 config/i386/i386m3.mt, config/i386/nm-m3.h,
3687 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3688 config/i386/i386mk.mh, config/i386/i386mk.mt,
3689 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3690 obsolete.
3691 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3692 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3693 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3694
61d8d407
AC
36952002-08-18 Andrew Cagney <ac131313@redhat.com>
3696
3697 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3698 (hppa_value_returned_from_stack): Declare.
3699 (hppa_extract_return_value): Declare.
3700 * config/pa/hppa.mt: New file.
3701 * configure.tgt: Recognize hppa*-*-*.
3702 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3703
0c52bd59
MK
37042002-08-18 Mark Kettenis <kettenis@gnu.org>
3705
3706 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3707 comment.
3708
b5686e99
MK
37092002-08-17 Mark Kettenis <kettenis@gnu.org>
3710
3711 * top.c (gdb_rl_operate_and_get_next): Make sure
3712 operate-and-get-next functions correctly even when the history
3713 list is completely filled.
3714
c1bab85b
AC
37152002-08-18 Andrew Cagney <ac131313@redhat.com>
3716
3717 * MAINTAINERS (Target Instruction Set Architectures): Rename
3718 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3719 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3720 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3721 already listed under Host/Native.
3722
3723 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3724 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3725 mips*-*-*.
3726
32089c7c
AC
37272002-08-17 Andrew Cagney <ac131313@redhat.com>
3728
3729 * config/ia64/ia64.mt: New file.
3730 * config/alpha/alpha.mt: New file.
3731 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3732 ia64-linux-gnu. Mention that ia64-elf is broken.
3733 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3734
b4671f85
MK
37352002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3736
3737 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3738 generic_func_frame_valid instead of func_frame_valid.
3739
c8edd8b4
JB
37402002-08-16 Joel Brobecker <brobecker@gnat.com>
3741
3742 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3743 procfs appears to be broken when debugging on multi-processor
3744 machines. So enable software single stepping in order to avoid
3745 using the procfs interface to do next/step operations, using
3746 internal breakpoints instead.
3747
3748 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3749 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3750 make this pc address equal to the value it would have if the
3751 system stepping capability was used. Also set a new flag used
3752 to ensure that we don't readjust the PC one more time later.
3753
3754 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3755 address by DECR_PC_AFTER_BREAK when software single step is
3756 in use for this architecture, as this has already been taken
3757 care of in handle_inferior_event().
3758
238617f6
JB
37592002-08-16 Joel Brobecker <brobecker@gnat.com>
3760
3761 * infrun.c (handle_inferior_event): Minor reformatting, to make
3762 a rather long condition expression easier to read.
3763
541a7aac
AC
37642002-08-16 Andrew Cagney <ac131313@redhat.com>
3765
3766 * Makefile.in (gdbtk.o): Move to end of file.
3767 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3768 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3769 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3770 (gdbtk-wrapper.o, gdbres.o): Ditto.
3771
f92d4a7b
AC
37722002-08-16 Andrew Cagney <ac131313@redhat.com>
3773
3774 * Makefile.in (copying.o): Separate out compile rule.
3775 (hpux-thread.o, procfs.o, signals.o): Ditto.
3776 (v850ice.o, z8k-tdep.o): Ditto.
3777 (tui-file.o): Move to TUI section.
3778 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3779 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3780
1cce71eb
JB
37812002-08-16 Joel Brobecker <brobecker@gnat.com>
3782
3783 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3784 skip_trampoline_code, for better namespace-proofing.
3785
3786 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3787
0851f23d
JB
37882002-08-16 Joel Brobecker <brobecker@gnat.com>
3789
3790 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3791
f8d40ec8
JB
37922002-08-16 Joel Brobecker <brobecker@gnat.com>
3793
3794 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3795 signal, check whether we hit a breakpoint before checking for a
3796 single step breakpoint. Otherwise, GDB fails to notice that a
3797 breakpoint has been hit when stepping onto a breakpoint.
3798
63d022e0
KS
37992002-08-16 Keith Seitz <keiths@redhat.com>
3800
3801 * gdb-events.sh (clear_gdb_event_hooks): New function.
3802 * gdb-events.c: Regenerate.
3803 * gdb-events.h: Regenerate.
3804
6e31adb3
AC
38052002-08-16 Andrew Cagney <ac131313@redhat.com>
3806
3807 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3808 not_a_sw_breakpoint.
3809 * breakpoint.h (bpstat_stop_status): Add parameter names.
3810
c8189ed1
GS
38112002-08-16 Grace Sainsbury <graces@redhat.com>
3812
3813 * remote.c (remote_insert_hw_breakpoint)
3814 (remote_remove_hw_breakpoint): Fix calculation of length field
3815 for Z-packet.
3816
d05285fa
MS
38172002-08-15 Michael Snyder <msnyder@redhat.com>
3818
466d7106
MS
3819 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3820 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3821 (supply_fpregset): Ditto.
3822
d05285fa
MS
3823 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3824 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3825 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3826 (TARGET_READ_SP): Delete.
bf1f5b4c 3827 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3828 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3829 Delete.
3830 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3831 from macros to functions.
bf1f5b4c 3832
d05285fa
MS
3833 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3834 (mips_register_convertible, mips_register_convert_to_virtual,
3835 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3836 (mips_read_sp): New function.
3837 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3838 (mips_do_registers_info): Make static.
3839 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3840 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3841 (mips_register_convert_from_type, mips_register_convert_to_type):
3842 New functions.
3843 (mips_gdbarch_init): Set up function_start_offset,
3844 register_virtual_size, pc_in_sigtramp.
d05285fa 3845
e76f1f2e
AC
38462002-08-15 Andrew Cagney <ac131313@redhat.com>
3847
3848 * infcmd.c (vector_info): New function.
3849 (_initialize_infcmd): Add command "info vector".
3850 (print_vector_info): New function.
3851
3852 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3853 * gdbarch.h, gdbarch.c: Regenerate.
3854
4782dc19
AC
38552002-08-15 Andrew Cagney <ac131313@redhat.com>
3856
3857 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3858 ``print_all''. Only print vector registers when ``print_all''.
3859
23e3a7ac
AC
38602002-08-15 Andrew Cagney <ac131313@redhat.com>
3861
8e186fd6
AC
3862 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3863 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3864
23e3a7ac
AC
3865 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3866 Add `args' parameter.
3867 * gdbarch.h, gdbarch.c: Regenerate.
3868
3869 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3870
3871 * infcmd.c (float_info): Call print_float_info.
3872 (print_float_info): New function. By default, print the
3873 floating-point registers.
3874
3875 * arch-utils.h (default_print_float_info): Delete declaration.
3876 * arch-utils.c (default_print_float_info): Delete function.
3877
e0ca2bb9
MK
38782002-08-16 Mark Kettenis <kettenis@gnu.org>
3879
3f733acc
MK
3880 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3881 out define.
3882
7d8d2918
MK
3883 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3884 FRAME.
3885
1c7cc583
MK
3886 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3887 * configure.host: Make i[3456]86-*-aix host obsolete.
3888 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3889 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3890 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3891 config/i386/xm-i386aix.h: Make files obsolete.
3892 * i386aix-nat.c: Make file obsolete.
3893 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3894 (i386aix-nat.o): Make target obsolete.
3895
e0ca2bb9
MK
3896 * config/i386/nm-gnu.h: Removed.
3897 * config/i386/nm-i386gnu.h: New file.
3898 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3899 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3900 Moved here from ...
3901 * config/i386/tm-i386gnu.h: ... here. Removed.
3902 * config/i386/xm-i386gnu.h: Removed.
3903 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3904 (NAT_FILE): Set to nm-i386gnu.h.
3905 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3906 * i386-tdep.c: New file.
3907 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3908 (i386gnu-tdep.o): Specify dependencies.
3909
16057ec7 39102002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3911
6b99ee2e
MK
3912 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3913 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3914 Adjust a few comments to reflect reality a bit closer.
3915 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3916 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3917 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3918 target_insert_watchpoint, target_remove_watchpoint):
3919 Move defines to ...
3920 * config/i386/nm-i386sco5.h: ... here.
3921 (kernel_u_size): Add prototype. Improve a few comments and add
3922 protection against multiple inclusion.
3923
d9a6f65c
MK
3924 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3925 out define.
3926
047eff6a
MK
3927 * uw-thread.c (SP_ARG0): Define if not already defined.
3928 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3929
dcdb1290
MK
3930 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3931
5d2d0b2a
MK
3932 * config/i386/tm-i386.h: Don't include "regcache.h".
3933
61113f8b
MK
3934 * i387-tdep.h (i387_print_float_info): New prototype.
3935 * i387-tdep.c (print_i387_value, print_i387_ext,
3936 print_i387_status_word, print_i387_control_word): Add `struct
3937 ui_file *' argument and use it for output.
3938 (i387_print_float_info): Renamed from i387_float_info. Add
3939 `struct gdbarch *' and `struct ui_file *' arguments and use the
3940 latter for output.
3941 * i386-tdep.c: Include "i387-tdep.h".
3942 (i386_gdbarch_init): Set print_float_info.
3943 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3944 (FLOAT_INFO): Remove define.
3945
46e0f506
MS
39462002-08-13 Michael Snyder <msnyder@redhat.com>
3947
3948 * mips-tdep.c (mips_push_arguments): Rename to
3949 mips_eabi_push_arguments, and tune for EABI.
3950 (MIPS_REGS_HAVE_HOME_P): Delete.
3951 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3952 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3953 Delete references to mips_regs_have_home_p.
3954
409268de
KS
39552002-08-14 Keith Seitz <keiths@redhat.com>
3956
3957 * Makefile.in (install-gdbtk): Create insight plugin directory.
3958 Install plugins.tcl file.
3959
ffc6a242
KS
39602002-08-14 Keith Seitz <keiths@redhat.com>
3961
3962 * configure.in: Move SUBDIRS to near top of the file so that
3963 --enable options may add things to it.
3964 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3965 * configure: Regenerate.
3966
ebafbe83
MS
39672002-08-13 Michael Snyder <msnyder@redhat.com>
3968
3969 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3970 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3971 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3972
32f6f25d
AC
39732002-08-13 Andrew Cagney <ac131313@redhat.com>
3974
3975 * vax-tdep.c (vax_get_saved_register): Delete function.
3976 (vax_gdbarch_init): Update.
3977 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3978 (ns32k_gdbarch_init): Update.
3979 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3980 (alpha_gdbarch_init): Update.
3981
53826de9
AC
39822002-08-13 Andrew Cagney <cagney@redhat.com>
3983
3984 * regcache.c (init_regcache_descr): Overallocate the
3985 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3986 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3987 nr_raw_registers.
3988 (set_register_cached): Add range checking assertions. Use
3989 current_regcache.
3990
16057ec7 39912002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3992
3993 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3994 numbers for MMX registers.
3995
7b4c2dce
AC
39962002-08-13 Andrew Cagney <cagney@redhat.com>
3997
3998 * i386-tdep.c (i386_gdbarch_init): Use
3999 generic_unwind_get_saved_register.
4000
1e03ad20
KB
40012002-08-13 Kevin Buettner <kevinb@redhat.com>
4002
4003 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4004 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4005 target vector.
4006 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4007 Delete. Add comment regarding this now-deleted target method.
4008
548bcbec
SC
40092002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4010
4011 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4012 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4013 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4014 real PC and the page number (if it's within the memory bank window).
4015 (m68hc11_pseudo_register_write): Likewise when saving.
4016 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4017 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4018 (m68hc11_register_raw_size): And use 32-bit for it.
4019 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4020 16K memory bank is used by the prog; also use the virtual pc.
4021
7df11f59
SC
40222002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4023
4024 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4025 (m68hc11_gdbarch_init): Install it in gdbarch.
4026 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4027 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4028 (MSYMBOL_SIZE): New for documentation.
4029 (insn_return_kind): Enum to specify how a function returns.
4030 (frame_extra_info): Cleanup and record the return mode.
4031 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4032 register in address computation.
4033 (m68hc11_get_return_insn): New to obtain the return instruction used
4034 by the function.
4035 (m68hc11_frame_init_saved_regs): Take into account the return
4036 instruction used by the function for far and interrupt functions.
4037 (m68hc11_init_extra_frame_info): Take into account page register.
4038 (m68hc11_frame_args_address): Adjust according to the return mode.
4039 (show_regs): Print page register only when it's used.
4040
5706502a
SC
40412002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4042
4043 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4044 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4045 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4046 registers.
4047 (m68hc11_register_raw_size): Likewise.
4048
28fc6740
AC
40492002-08-13 Andrew Cagney <cagney@redhat.com>
4050
4051 * i386-tdep.c (i386_register_name): Handle mmx registers.
4052 (mmx_regnum_p): New function.
4053 (i386_mmx_names): New array.
4054 (mmx_num_regs): New variable.
4055 (i386_pseudo_register_read): New function.
4056 (i386_pseudo_register_write): New function.
4057 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4058
4059 * regcache.c (regcache_raw_read_unsigned): New function.
4060 (regcache_raw_read_signed): New function.
4061 * regcache.h (regcache_raw_read_unsigned): Declare.
4062 (regcache_raw_read_signed): Declare.
4063
a378f419
AC
40642002-08-13 Andrew Cagney <cagney@redhat.com>
4065
4066 * regcache.c (regcache_raw_read_as_address): Delete function.
4067 (regcache_cooked_read_signed): New function.
4068 (regcache_cooked_read_unsigned): New function.
4069 * regcache.h (regcache_cooked_read_signed): Declare.
4070 (regcache_cooked_read_unsigned): Declare.
4071 (regcache_raw_read_as_address): Delete declaration.
4072
4073 * blockframe.c (generic_read_register_dummy): Use
4074 regcache_cooked_read_unsigned.
4075 * i386-tdep.c (i386_extract_struct_value_address): Use
4076 regcache_cooked_read_unsigned.
4077
81967506
SC
40782002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4079
4080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4081 double sizes according to ELF ABI flags.
4082 (gdbarch_tdep): Record elf_flags.
4083
ffe1f3ee
SC
40842002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4085
4086 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4087 (m6812_prolog): They can appear in 68HC12 function prologue.
4088 (m68hc11_frame_chain): Cleanup.
4089
98216c5d
AC
40902002-08-12 Andrew Cagney <cagney@redhat.com>
4091
4092 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4093 declarations.
4094 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4095 (i386_linux_register_raw_size): Delete function.
4096 (i386_linux_init_abi): Update.
4097 * i386-tdep.c (i386_register_raw_size): Delete function.
4098 (i386_register_byte): Delete function.
4099 (i386_gdbarch_init): Update.
4100 (i386_register_size): Delete array.
4101 (i386_register_offset): Delete array.
4102
4103 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4104 (REGISTER_RAW_SIZE): Delete macro.
4105 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4106 (REGISTER_BYTE): Delete macro.
4107
3b19021e
AS
41082002-08-11 Aidan Skinner <aidan@velvet.net>
4109
4110 * ada-lang.c (ada_lookup_partial_symbol)
4111 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4112 prototype names so that grep ^func works properly.
4113
4114 * ada-lang.c (ada_array_element_type)
4115 (ada_lookup_partial_symbol): Fix typos in parameter list.
4116
4117 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4118 Fix prototype names so that grep ^func works properly.
4119
b063e7a2
AC
41202002-08-10 Andrew Cagney <cagney@redhat.com>
4121 Elena Zannoni <ezannoni@redhat.com>
4122 Martin M. Hunt <hunt@redhat.com>
4123
4124 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4125 (build_builtin_type_vec128i): Set the vector bit.
4126 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4127 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4128 (build_builtin_type_vec64): New function.
4129 (build_builtin_type_vec64i): New function.
4130 (build_gdbtypes): Initialize builtin_type_vec64 and
4131 builtin_type_vec64i.
4132
a7e3c2ad
AC
41332002-08-09 Andrew Cagney <cagney@redhat.com>
4134
4135 * regcache.c (regcache_dump): Compare the register offset
4136 with REGISTER_BYTE.
4137 * arch-utils.c (generic_register_byte): New function.
4138 * arch-utils.h (generic_register_byte): Declare.
4139 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4140 * gdbarch.h, gdbarch.c: Regenerate.
4141
af030b9a
AC
41422002-08-09 Andrew Cagney <cagney@redhat.com>
4143
4144 * regcache.c: Include "gdbcmd.h"
4145 (_initialize_regcache): Add commands "maintenance print
4146 registers", "maintenance print raw-registers" and "maintenance
4147 print cooked-registers".
4148 (enum regcache_dump_what): Define.
4149 (dump_endian_bytes): New function.
4150 (regcache_dump): New function.
4151 (regcache_print): New function.
4152 (maintenance_print_registers): New function.
4153 (maintenance_print_raw_registers): New function.
4154 (maintenance_print_cooked_registers): New function.
4155 * Makefile.in (regcache.o): Update dependencies.
4156
cb3d25d1
MS
41572002-08-09 Michael Snyder <msnyder@redhat.com>
4158
4159 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4160 (mips_push_arguments): Correct some comments. Use paddr_nz
4161 for printing addresses in debug output. Replace static
4162 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4163 (mips_n32n64_push_arguments): New function, cloned from
4164 mips_push_arguments and tuned for the n32/n64 ABI.
4165 (mips_push_register): Buffer needs dynamic allocation.
4166 (mips_print_register): Ditto.
4167 (do_gp_register_row): Ditto.
4168 (mips_store_return_value): Ditto.
4169 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4170
2163ab9d
DH
41712002-08-09 Don Howard <dhoward@redhat.com>
4172
4173 * memattr.c (mem_info_command): Print special case of upper bound
4174 as max CORE_ADDR + 1.
4175
b78bcb18
MS
41762002-08-08 Michael Snyder <msnyder@redhat.com>
4177
4178 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4179 returns structs by ref if they're too big to fit in two registers.
4180
ffabd70d
KB
41812002-08-09 Kevin Buettner <kevinb@redhat.com>
4182
4183 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4184 saved regs value.
4185 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4186 mips_find_saved_regs().
4187 (mips_pop_frame): Likewise.
4188
fbcdb4a3
KB
41892002-08-09 Kevin Buettner <kevinb@redhat.com>
4190
4191 * blockframe.c (frame_saved_regs_register_unwind): Revise
4192 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4193 frames are in use.
4194
3c3bea1c
GS
41952002-08-09 Grace Sainsbury <graces@redhat.com>
4196
4197 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4198 T-packets; the 'a' is not taken as a register number.
4199 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4200 (remote_stopped_data_address): New functions; add to target
4201 vector.
4202 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4203 prototypes to match other implementations of this
4204 function. replace integer argument with pointer -- the length
4205 field in the Z-packet is the length of what is pointed to or 1 if
4206 pointer is null. Add to target vector.
4207 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4208 target vector.
4209
4210 From Mark Salter:
4211 * remote.c (remote_wait): Add support to extract optional
4212 watchpoint information from T-packet. Ignore unrecognized
4213 optional info in T-packet.
4214 (remote_async_wait): Ditto.
4215
5d1d95de
CV
42162002-08-09 Corinna Vinschen <vinschen@redhat.com>
4217
4218 * cli/cli-dump.c: Change fopen modes to use binary open modes
4219 as defined in include/fopen-bin.h throughout.
4220
c86b5b38
MS
42212002-08-08 Michael Snyder <msnyder@redhat.com>
4222
4223 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4224
b30590dc
KB
42252002-08-08 Kevin Buettner <kevinb@redhat.com>
4226
4227 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4228 assertion failure by returning early after a warning.
4229
498868ed
KB
42302002-08-08 Kevin Buettner <kevinb@redhat.com>
4231
4232 * mips-tdep.c (mips_find_saved_regs): Make static.
4233 (mips_frame_init_saved_regs): New function.
4234 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4235 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4236 (mips_find_saved_regs): Delete declaration.
4237
b2dd6311
GS
42382002-08-08 Grace Sainsbury <graces@redhat.com>
4239
3c3bea1c
GS
4240 * remote.c (remote_wait, remote_async_wait): Change
4241 thread_num from int to ULONGEST.
4242 (unpack_varlen_hex): Change result parameter from
4243 int * to ULONGEST *.
b2dd6311 4244
ea47855f
AC
42452002-08-08 Andrew Cagney <ac131313@redhat.com>
4246
4247 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4248 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4249 powerpc*-*-*.
4250 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4251
69db8bae
AC
42522002-08-08 Andrew Cagney <cagney@redhat.com>
4253
4254 * gcore.c (override_derive_stack_segment): Delete variable.
4255 (preempt_derive_stack_segment): Delete function.
4256 (derive_stack_segment): Delete function.
4257 (default_derive_stack_segment): Renamed to derive_stack_segment.
4258 (override_derive_heap_segment): Delete variable.
4259 (preempt_derive_heap_segment): Delete function.
4260 (derive_heap_segment): Delete function.
4261 (default_derive_heap_segment): Rename to derive_heap_segment.
4262
cb811fe7
MS
42632002-08-06 Michael Snyder <msnyder@redhat.com>
4264
4265 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4266 * mips-tdep.c (mips_EABI_use_struct_convention,
4267 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4268 New functions. (mips_use_struct_convention): Delete.
4269 (mips_gdbarch_init): set use_gdbarch_convention.
4270
8b389c40
MS
42712002-08-06 Michael Snyder <msnyder@redhat.com>
4272
4273 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4274 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4275 mips_o32_reg_struct_has_addr): New functions.
4276 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4277
5c27f28a
AC
42782002-08-07 Andrew Cagney <ac131313@redhat.com>
4279
4280 * regcache.c (pseudo_register): Delete function.
4281 (fetch_register): Delete function.
4282 (store_register): Delete function.
4283 (regcache_raw_read, legacy_read_register_gen): Use
4284 target_fetch_registers instead of fetch_register.
4285 (legacy_write_register_gen, regcache_raw_write): Use
4286 target_store_register instead of store_register.
4287 (write_register_bytes): Ditto.
4288
4289 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4290 (STORE_PSEUDO_REGISTER): Delete.
4291 * gdbarch.h, gdbarch.c: Regenerate.
4292
5b331675
CV
42932002-08-06 Corinna Vinschen <vinschen@redhat.com>
4294
4295 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4296 write dump file binary.
4297
6acdf5c7
MS
42982002-08-05 Michael Snyder <msnyder@redhat.com>
4299
4300 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4301 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4302 (mips_gdbarch_init): Set N32 target to be mips64.
4303
b2f01c35
KB
43042002-08-06 Kevin Buettner <kevinb@redhat.com>
4305
4306 * frame.c (find_saved_register): Break out of loop once saved
4307 register address is found. Don't mention sparc in loop comment
4308 anymore.
4309
63db5580
KB
43102002-08-06 Kevin Buettner <kevinb@redhat.com>
4311
4312 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4313 mips_default_saved_regsize to 8.
4314
5e34e75e
AC
43152002-08-06 Andrew Cagney <ac131313@redhat.com>
4316
4317 * gcore.c: Do not include <sys/procfs.h>.
4318 * Makefile.in (gcore.o): Update dependencies.
4319
eb4c54a2
AC
43202002-08-06 Andrew Cagney <cagney@redhat.com>
4321
4322 * configure.tgt: Make arc-*-* obsolete.
4323 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4324 * MAINTAINERS: Make arc-elf obsolete.
4325 * arc-tdep.c: Make file obsolete.
4326 * config/arc/arc.mt: Ditto.
4327 * config/arc/tm-arc.h: Ditto.
4328
ced15480
TR
43292002-08-05 Theodore A. Roth <troth@verinet.com>
4330
c1bab85b 4331 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4332
b4743822
AC
43332002-08-05 Andrew Cagney <ac131313@redhat.com>
4334
4335 * mcore-tdep.c (mcore_gdbarch_init): Use
4336 generic_unwind_get_saved_register instead of
4337 generic_get_saved_register.
4338 * v850-tdep.c (v850_gdbarch_init): Ditto.
4339 * frv-tdep.c (frv_gdbarch_init): Ditto.
4340 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4341 * s390-tdep.c (s390_gdbarch_init): Ditto.
4342 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4343 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4344 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4345
3956d554
JB
43462002-08-05 Joel Brobecker <brobecker@gnat.com>
4347
4348 * objfiles.h: Add missing #include "symfile.h"
4349
4350 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4351
8249c0d6
AC
43522002-08-04 Andrew Cagney <ac131313@redhat.com>
4353
4354 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4355 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4356 of FIELD_BITSIZE.
4357
b9d14705
DJ
43582002-08-04 Daniel Jacobowitz <drow@mvista.com>
4359
4360 * NEWS: Cleanup and nitpick.
4361
dd73b9bb
AC
43622002-08-03 Andrew Cagney <ac131313@redhat.com>
4363
4364 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4365
043a27f8
AC
43662002-08-03 Andrew Cagney <ac131313@redhat.com>
4367
4368 * Makefile.in (gdbtk-bp.o): Update dependencies.
4369 (gdbtk-register.o): Ditto.
4370 (gdbtk-varobj.o): Ditto.
4371
46ce284d
AC
43722002-08-03 Andrew Cagney <cagney@redhat.com>
4373
4374 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4375 m68hc11_fetch_pseudo_register.
4376 (m68hc11_pseudo_register_write): Replace
4377 m68hc11_store_pseudo_register.
4378 (m68hc11_gdbarch_init): Update.
4379
b66d6d2e
AC
4380Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4381
4382 * gdbarch.sh: Include "gdb_string.h".
4383 * gdbarch.c: Regenerate.
4384
4385 * regcache.c: Include "gdb_string.h".
4386 * ax-general.c: Ditto.
4387 * varobj.c: Ditto.
4388 * std-regs.c: Ditto.
4389 * fbsd-proc.c: Ditto.
4390 * thread.c: Ditto.
4391
4392 * Makefile.in (regcache.o): Update dependencies.
4393 (thread.o, gdbarch.o): Ditto.
4394 (ax-general.o, gdbarch.o): Ditto.
4395 (varobj.o, std-regs.o): Ditto.
4396 (fbsd-proc.o): Specify dependencies.
4397
29e1842b
AC
43982002-08-02 Andrew Cagney <cagney@redhat.com>
4399
4400 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4401 regnum.
4402 (regcache_cooked_write): Ditto.
4403
68365089
AC
44042002-08-02 Andrew Cagney <ac131313@redhat.com>
4405
4406 * regcache.c (regcache_cooked_read): New function.
4407 (regcache_cooked_write): New function.
4408 (read_register_gen): Rewrite using regcache_cooked_read.
4409 (write_register_gen): Rewrite using regcache_cooked_write.
4410
4411 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4412 Declare.
4413
d8124050
AC
44142002-08-02 Andrew Cagney <cagney@redhat.com>
4415
4416 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4417 Replace the architecture methods register_read and register_write.
4418 * gdbarch.h, gdbarch.c: Regenerate.
4419 * regcache.c (init_regcache_descr): Update.
4420 (read_register_gen): Update.
4421 (write_register_gen): Update.
4422 (supply_register): Update comment.
4423
4424 * sh-tdep.c (sh_gdbarch_init): Update.
4425 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4426 `regcache' and `gdbarch' parameters. Make `buffer' a void
4427 pointer. Update code.
4428 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4429 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4430 void pointer. Update code.
4431 (sh64_register_write): Delete.
4432 (sh4_register_read): Delete.
4433 (sh64_register_read): Delete.
4434 (sh4_register_write): Delete.
4435 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4436 void pointer, `to' parameter a void pointer.
4437 (sh_sh64_register_convert_to_raw): Ditto.
4438
a6425924
KB
44392002-08-01 Kevin Buettner <kevinb@redhat.com>
4440
4441 * mips-tdep.c (mips_register_virtual_type): Use architecture
4442 invariant return values.
4443
ff5922b5
AC
44442002-08-01 Andrew Cagney <cagney@redhat.com>
4445
4446 * linux-proc.c: Include "gdb_string.h".
4447 * Makefile.in (linux-proc.o): Update dependency list.
4448
32a6503c
KB
44492002-08-01 Kevin Buettner <kevinb@redhat.com>
4450
4451 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4452 comment.
4453
ccaa32c7
GS
44542002-08-01 Grace Sainsbury <graces@redhat.com>
4455
4456 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4457 to_insert_watchpoint, to_remove_watchpoint,
4458 to_stopped_by_watchpoint, to_stopped_data_address,
4459 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4460 target vecctor. Define their corresponding macros so they call
4461 them.
4462
4463 * target.c: Add default and debug versions of for
4464 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4465 to_insert_watchpoint, to_remove_watchpoint,
4466 to_stopped_by_watchpoint, to_stopped_data_address,
4467 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4468
78fde5f8
KB
44692002-08-01 Kevin Buettner <kevinb@redhat.com>
4470
4471 * mips-tdep.c (mips_register_virtual_type): New function.
4472 (mips_gdbarch_init): Register mips_register_virtual_type()
4473 with gdbarch machinery.
4474 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4475 this file instead of tm-bigmips.h.
4476 (MIPS_REGSIZE): Delete this macro.
4477 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4478 multiarch version in mips-tdep.c will be found.
4479
db034ac5
AC
44802002-08-01 Andrew Cagney <cagney@redhat.com>
4481
4482 * NEWS: Menion that CHILL has been made obsolete.
4483
4484 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4485 * stabsread.c (read_range_type): Ditto.
4486 * gdbtypes.h: Ditto.
4487 * language.c (binop_type_check): Ditto.
4488 (binop_result_type): Ditto.
4489 (integral_type): Ditto.
4490 (character_type): Ditto.
4491 (string_type): Ditto.
4492 (boolean_type): Ditto.
4493 (structured_type): Ditto.
4494 (lang_bool_type): Ditto.
4495 (binop_type_check): Ditto.
4496 * language.h (_LANG_chill): Ditto.
4497 * dwarfread.c (set_cu_language): Ditto.
4498 * dwarfread.c (CHILL_PRODUCER): Ditto.
4499 * dwarfread.c (handle_producer): Ditto.
4500 * expression.h (enum exp_opcode): Ditto.
4501 * eval.c: Ditto for comments.
4502 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4503 * expprint.c (print_subexp): Ditto.
4504 (print_subexp): Ditto.
4505 * valops.c (value_cast): Ditto.
4506 (search_struct_field): Ditto.
4507 * value.h (COERCE_VARYING_ARRAY): Ditto.
4508 * symfile.c (init_filename_language_table): Ditto.
4509 (add_psymbol_with_dem_name_to_list): Ditto.
4510 * valarith.c (value_binop): Ditto.
4511 (value_neg): Ditto.
4512 * valops.c (value_slice): Ditto.
4513 * symtab.h (union language_specific): Ditto.
4514 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4515 (SYMBOL_DEMANGLED_NAME): Ditto.
4516 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4517 * defs.h (enum language): Ditto.
4518 * symtab.c (got_symtab): Ditto.
4519 * utils.c (fprintf_symbol_filtered): Ditto.
4520
4521 * ch-typeprint.c: Make file obsolete.
4522 * ch-valprint.c: Make file obsolete.
4523 * ch-lang.h: Make file obsolete.
4524 * ch-exp.c: Make file obsolete.
4525 * ch-lang.c: Make file obsolete.
4526
4527 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4528 CHILL_LIB.
4529 (TARGET_FLAGS_TO_PASS): Ditto.
4530 (CHILLFLAGS): Obsolete.
4531 (CHILL): Obsolete.
4532 (CHILL_FOR_TARGET): Obsolete.
4533 (CHILL_LIB): Obsolete.
4534 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4535 ch-valprint.c.
4536 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4537 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4538 ch-lang.o.
4539 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4540 targets.
4541
8aaf0b47
JB
45422002-07-31 Joel Brobecker <brobecker@gnat.com>
4543
4544 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4545 This does not change anything at the moment, but will be helpful
4546 later when full Ada support is integrated.
4547
f3a7b3a5
KB
45482002-07-31 Kevin Buettner <kevinb@redhat.com>
4549
4550 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4551 help message.
4552
fb850278
KB
45532002-07-31 Kevin Buettner <kevinb@redhat.com>
4554
4555 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4556 and save it in a local variable. Use variable in later test.
4557
e3bddbfa
KB
45582002-07-31 Kevin Buettner <kevinb@redhat.com>
4559
4560 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4561 test. (Thanks to Daniel Jacobowitz.)
4562
28d169de
KB
45632002-07-31 Kevin Buettner <kevinb@redhat.com>
4564
4565 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4566 (mips_abi_strings): Add "n64".
4567 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4568
7fe7e44e
KB
45692002-07-31 Kevin Buettner <kevinb@redhat.com>
4570
4571 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4572 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4573
c6caf090
KB
45742002-07-31 Kevin Buettner <kevinb@redhat.com>
4575
4576 * utils.c (host_pointer_to_address, address_to_host_pointer):
4577 Use gdb_assert() instead of explicit call to internal_error().
4578
c41669e0
KB
45792002-07-30 Kevin Buettner <kevinb@redhat.com>
4580
4581 * Makefile.in (rs6000-nat.o): Update dependencies.
4582
4583 From Nicholas Duffek:
4584 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4585 (aix-thread.o): New rule.
4586 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4587 * config/powerpc/aix432.mh: New file.
4588
2fda4977
DJ
45892002-07-30 Daniel Jacobowitz <drow@mvista.com>
4590
4591 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4592 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4593 (fetch_core_registers, ppc_linux_supply_gregset)
4594 (ppc_linux_supply_fpregset): New functions.
4595 (ppc_linux_regset_core_fns): New.
4596 (_initialize_ppc_linux_tdep): Call add_core_fns.
4597 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4598 and ppc_linux_supply_gregset.
4599 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4600 (supply_fpregset): Call ppc_linux_supply_fpregset.
4601 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4602 corelow.o.
4603 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4604
729051e6
DJ
46052002-07-30 Daniel Jacobowitz <drow@mvista.com>
4606
4607 * symtab.c (lookup_symbol): Demangle before lowercasing.
4608
5f8a3188
AC
46092002-07-30 Andrew Cagney <ac131313@redhat.com>
4610
4611 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4612 declaration.
4613 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4614 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4615 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4616 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4617 "gdb_string.h".
4618 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4619 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4620 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4621 (avr-tdep.o, mon960-rom.o): Ditto.
4622 (aout_stabs_gnu_h): Define.
4623 (symtab_h): Remove $(gdb_obstack_h).
4624
67f07146
JB
46252002-07-30 Jim Blandy <jimb@redhat.com>
4626
4627 Patch from David Carlton <carlton@math.stanford.edu>:
4628 * gdbinit.in: Move the `dir' commands that add GDB's own source
4629 directory to the search path to the end, so that the `gdb' source
4630 directory will be searched first.
4631
04ea0df1
AC
46322002-07-29 Andrew Cagney <ac131313@redhat.com>
4633
4634 * gdb_obstack.h: New file.
4635 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4636 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4637 * objfiles.h: Include "gdb_obstack.h".
4638 * Makefile.in (gdb_obstack_h): Define.
4639 (symtab_h): Add $(gdb_obstack_h).
4640 (objfiles_h): Add $(gdb_obstack_h).
4641
4642 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4643 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4644 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4645 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4646 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4647 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4648 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4649 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4650
4651 * Makefile.in (bcache.o): Update dependencies.
4652 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4653 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4654 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4655 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4656 (stabsread.o, symfile.o, symmisc.o): Ditto.
4657 (symtab.o, typeprint.o, macroexp.o): Ditto.
4658 (macrotab.o, mdebugread.o): Ditto.
4659 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4660 (coff_ecoff_h, aout_aout64_h): Define.
4661 (aout_stabs_gnu_h, libaout_h): Define.
4662
d138e37a
AC
46632002-07-29 Andrew Cagney <cagney@redhat.com>
4664
4665 * regcache.c (struct regcache_descr): Rename nr_registers to
4666 nr_cooked_registers. Revise comments describing the structure
4667 member fields.
4668 (init_regcache_descr): Update.
4669 (init_legacy_regcache_descr): Update.
4670 (read_register_gen, write_register_gen): When a cooked register in
4671 the raw register range, directly access the value from the raw
4672 register cache.
4673
460e6ec3
AC
46742002-07-29 Andrew Cagney <ac131313@redhat.com>
4675
4676 * z8k-tdep.c: Do not include "obstack.h".
4677 * h8300-tdep.c, h8500-tdep.c: Ditto.
4678 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4679 * valprint.c, v850-tdep.c: Ditto.
4680 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4681 * mn10200-tdep.c: Ditto.
4682
4683 * Makefile.in (z8k-tdep.o): Update dependencies.
4684 (m68hc11-tdep.o, valprint.o): Ditto.
4685 (v850-tdep.o, d10v-tdep.o): Ditto.
4686 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4687 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4688 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4689 (sh_opc_h, gdb_sim_sh_h): Define.
4690 (elf_sh_h, elf_bfd_h): Define.
4691 (opcode_m68hc11_h): Define.
4692 (OPCODES_SRC, OPCODES_DIR): define.
4693 (OPCODES): Use $(OPCODES_DIR).
4694 (gdb_sim_d10v_h): Rename sim_d10v_h.
4695 (gdb_sim_arm_h): Rename sim_arm_h.
4696
790c9cf0
KB
46972002-07-26 Kevin Buettner <kevinb@redhat.com>
4698
4699 * utils.c (host_pointer_to_address, address_to_host_pointer):
4700 Change internal_error() message to indicate function responsible
4701 for the error.
4702
9647fa49
KB
47032002-07-26 Kevin Buettner <kevinb@redhat.com>
4704
4705 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4706 calls to local_hex_string_custom().
4707
dabbe2c0
KB
47082002-07-26 Kevin Buettner <kevinb@redhat.com>
4709
4710 * irix5-nat.c: Move IRIX shared library support from here...
4711 * solib-irix.c: ...to here. Revised substantially to work with
4712 generic solib framework.
4713
b96d0a4e
KB
4714 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4715 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4716 * mips-irix-tdep.c: New file.
4717
313fb2f6
KB
4718 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4719 (mips-irix-tdep.o, solib-irix.o): New rules.
4720 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4721 solib-irix.o.
4722 * config/mips/irix6.mt (TDEPFILES): Likewise.
4723 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4724
ab2eaf26
KB
47252002-07-26 Kevin Buettner <kevinb@redhat.com>
4726
177e4768 4727 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4728 disabled (via ``#if 0'') includes.
4729
7244546a
KB
47302002-07-26 Kevin Buettner <kevinb@redhat.com>
4731
4732 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4733 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4734 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4735 Add support for the fpscr register.
4736 * rs6000-nat.c (regmap, fetch_inferior_registers)
4737 (store_inferior_registers, fetch_core_registers): Likewise.
4738
dd7be90a
KB
47392002-07-26 Kevin Buettner <kevinb@redhat.com>
4740
4741 * rs6000-nat.c (language.h): Include.
4742 (special_regs): Delete this array.
4743 (regmap): New function.
4744 (fetch_register, store_register): Use regmap() to map gdb
4745 register numbers to ptrace register numbers. Also, use
4746 outputs from regmap() to make decisions regarding type of
4747 ptrace() call to make. In particular, don't compare against
4748 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4749 (fetch_inferior_registers, store_inferior_registers): Where
4750 possible, obtain register numbers from tdep struct. Don't
4751 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4752 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4753 (LAST_UISA_SP_REGNUM): Delete.
4754
11bf77db
KB
47552002-07-25 Kevin Buettner <kevinb@redhat.com>
4756
4757 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4758 (fetch_registers, store_register, fetch_core_registers): Don't
4759 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4760 regcache_collect() as appropriate.
4761 (find_toc_address): Format hex address with local_hex_string().
4762
06afebeb
AC
47632002-07-25 Andrew Cagney <ac131313@redhat.com>
4764
4765 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4766 bfd/elf32-frv.c.
4767
8c554d79
TT
47682002-07-24 Tom Tromey <tromey@redhat.com>
4769
4770 * jv-exp.y: Marked all strings with _().
4771 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4772 internal_error.
4773 (MethodInvocation, CastExpression, parse_number, yyerror,
4774 java_type_from_name, push_expression_name, yylex): Typo fixes.
4775
e4c242d9
DJ
47762002-07-24 Daniel Jacobowitz <drow@mvista.com>
4777
4778 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4779 (tee_file_flush, tee_file_write, tee_file_fputs)
4780 (tee_file_isatty): New.
4781 * ui-file.h (tee_file_new): Add prototype.
4782
ebf56fd3
AS
47832002-07-24 Aidan Skinner <aidan@velvet.net>
4784
4785 * ada-lang.c: Change k&r style function definitions to prototyped
4786 form.
4787 * ada-typeprint.c: Change k&r style function definitions to prototyped
4788 form.
4789 * ada-valprint.c: Change k&r style function definitions to prototyped
4790 form.
4791
7fb623f7
AC
47922002-07-24 Andrew Cagney <cagney@redhat.com>
4793
4794 * README: Remove reference to remote-bug.
4795 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4796 remote-bug.c.
4797 (m88k-nat.o): Delete rule.
4798 (m88k-tdep.o): Delete rule.
4799 (remote-bug.o): Delete rule.
4800 * MAINTAINERS: Mark as obsolete.
4801 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4802 * m88k-tdep.c: Make file obsolete.
4803 * config/m88k/m88k.mh: Ditto.
4804 * config/m88k/delta88v4.mh: Ditto.
4805 * config/m88k/delta88v4.mt: Ditto.
4806 * config/m88k/delta88.mt: Ditto.
4807 * config/m88k/delta88.mh: Ditto.
4808 * remote-bug.c: Ditto.
4809 * config/m88k/tm-delta88.h: Ditto.
4810 * config/m88k/nm-delta88v4.h: Ditto.
4811 * config/m88k/xm-delta88.h: Ditto.
4812 * config/m88k/xm-dgux.h: Ditto.
4813 * config/m88k/tm-m88k.h: Ditto.
4814 * config/m88k/nm-m88k.h: Ditto.
4815 * config/m88k/tm-delta88v4.h: Ditto.
4816 * m88k-nat.c: Ditto.
4817 * cxux-nat.c: Ditto.
4818 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4819 and m88*-*-* obsolete.
4820 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4821 m88*-*-* obsolete.
4822
37611a2b
AC
48232002-07-24 Andrew Cagney <cagney@redhat.com>
4824
4825 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4826 constant. Same for local pointer variables.
4827 (extract_signed_integer): Ditto.
4828 * defs.h (extract_unsigned_integer): Update.
4829 (extract_signed_integer): Update.
4830
1aaa5f99
AC
48312002-07-24 Andrew Cagney <cagney@redhat.com>
4832
4833 * regcache.c (regcache_raw_write): Change buf parameter to a
4834 constant void pointer.
4835 (regcache_raw_read): Change buf parameter to a void pointer.
4836 (legacy_write_register_gen): Change myaddr parameter a constant
4837 void pointer.
4838 (supply_register): Change val parameter to a const void pointer.
4839 * regcache.h (regcache_raw_write): Update declaration.
4840 (regcache_raw_read): Update declaration.
4841 (supply_register): Update declaration.
4842
b4f5539f
TT
48432002-07-24 Tom Tromey <tromey@redhat.com>
4844
4845 * defs.h (gdb_readline_wrapper): Declare.
4846 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4847 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4848 * top.c (gdb_readline_wrapper): New function.
4849 (command_line_input): Use it.
4850
0818c12a
AC
48512002-07-24 Andrew Cagney <cagney@redhat.com>
4852
4853 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4854 regcache_read and regcache_write.
4855 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4856 * regcache.c: Update.
4857 * sh-tdep.c (sh64_push_arguments): Update comment.
4858 (sh_pseudo_register_read): Update.
4859 (sh_pseudo_register_write): Update.
4860 (sh4_register_read): Update.
4861 (sh4_register_write): Update.
4862 (sh64_pseudo_register_read): Update.
4863 (sh64_pseudo_register_write): Update.
4864 (sh64_register_read): Update.
4865 (sh64_register_write): Update.
4866 * i386-tdep.c (i386_extract_return_value): Update.
4867 (i386_extract_struct_value_address): Update.
4868 (i386_extract_return_value): Update.
4869 * blockframe.c (generic_read_register_dummy): Update.
4870 (generic_call_dummy_register_unwind): Update
4871 * infrun.c (write_inferior_status_register): Update.
4872
f7321c06
JB
48732002-07-23 Jim Blandy <jimb@redhat.com>
4874
4875 * parser-defs.h (expression_context_pc): Make this extern.
4876 (Thanks to Michael Snyder.)
4877
2037aebb
AC
48782002-07-23 Andrew Cagney <ac131313@redhat.com>
4879
4880 GDB 5.2.1 released from 5.2 branch.
4881 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4882 * README: Update to mention 5.2.1.
4883
66504d44
MS
48842002-07-23 Mark Salter <msalter@redhat.com>
4885
4886 * remote.c (remote_read_bytes): Fix check for error.
4887
27bae383
KB
48882002-07-22 Kevin Buettner <kevinb@redhat.com>
4889
4890 * aix-thread.c (language.h): Include.
4891 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4892 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4893 Print newlines at end of debug messages.
4894 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4895 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4896
48972002-07-22 Kevin Buettner <kevinb@redhat.com>
4898
4899 * aix-thread.c (ppc-tdep.h): Include.
4900 (special_register_p): New function.
4901 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4902 (store_regs_user_thread): Use register number information from
4903 gdbarch_tdep struct instead of hardcoded offsets relative to
4904 FIRST_UISA_SP_REGNUM.
4905 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4906 special_register_p() instead of using FPLAST_REGNUM and
4907 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4908 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4909 will be MQ's register number.
4910
49112002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4912
4913 * aix-thread.c (ops): Rename to aix_thread_ops.
4914 (base_ops): Rename to base_target.
4915 (ops_attach): Rename to aix_thread_attach.
4916 (ops_detach): Rename to aix_thread_detach.
4917 (ops_resume): Rename to aix_thread_detach.
4918 (ops_wait): Rename to aix_thread_wait.
4919 (ops_kill): Rename to aix_thread_kill.
4920 (init_ops): Rename to init_aix_thread_ops.
4921 (ops_fetch_register): Rename to aix_thread_fetch_register.
4922 (ops_store_register): Rename to aix_thread_store_register.
4923 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4924 (ops_thread_alive): Rename to aix_thread_thread_alive.
4925 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4926 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4927 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4928 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4929 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4930 (store_regs_lib): Rename to store_regs_user_thread.
4931 (store_regs_kern): Rename to store_regs_kernel_thread.
4932
27bae383 49332002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4934
4935 * aix-thread.c (ops_prepare_to_store): Eliminate.
4936 (init_ops): Don't initialize ops.prepare_to_store.
4937 (store_regs_kern): Pre-fetch register buffers from child,
4938 because some registers may not be in the cache. Copy
4939 regs from register cache only if they are cached.
4940 (store_regs_lib): Copy regs from register cache only
4941 if they are cached.
4942 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4943 fill_gprs64): Ditto.
4944
61c5da0b
KB
49452002-07-22 Kevin Buettner <kevinb@redhat.com>
4946
4947 * aix-thread.c (gdb_assert.h): Include.
4948 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4949 register sizes (from register cache) match size of buffer holding
4950 register data.
4951 (fill_sprs32): Change parameter types to match those in the ptrace()
4952 buffer.
4953 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4954 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4955
49562002-07-22 Michael Snyder <msnyder@redhat.com>
4957
4958 * aix-thread.c (supply_sprs64): Cosmetic change.
4959 (supply_sprs32): Cosmetic change.
4960 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4961 (fill_sprs64): Use regcache_collect instead of read_register.
4962 (store_regs_lib): Use regcache_collect instead of
4963 read_register. Use fill_sprs32 instead of fill_sprs64,
4964 if debugging a 32-bit architecture.
4965 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4966 out of the register cache, instead of passing a pointer into
4967 the register cache directly to ptrace. Use regcache_collect
4968 insteaad of read_register.
4969 (ops_prepare_to_store): Use target_read_registers instead
4970 of read_register_bytes.
4971
36479eb1
AS
49722002-07-20 Aidan Skinner <aidan@velvet.net>
4973
4974 * MAINTAINERS: Add self under write after approval.
4975
80ae6ee2
AS
49762002-07-20 Aidan Skinner <aidan@velvet.net>
4977
4978 * ada-tasks.c: Change k&r style function definitions to prototyped
4979 form.
4980
8a8ab2b9
AC
49812002-07-19 Andrew Cagney <ac131313@redhat.com>
4982
4983 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4984 * x86-64-tdep.c: Include "objfiles.h".
4985 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4986 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4987
fb16b900
ML
49882002-07-17 Michal Ludvig <michal@suse.cz>
4989
4990 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4991 (update_context): Initialise cfa variable.
4992
0fe7bf7b
MS
49932002-07-17 Michael Snyder <msnyder@redhat.com>
4994
4995 * aix-thread.c: Shorten some long lines.
4996 Bring comments into line with code spec.
4997
488f131b
JB
49982002-07-18 Joel Brobecker <brobecker@gnat.com>
4999
5000 * infrun.c: Re-indent using gdb_indent.sh.
5001
46c415d2
JB
50022002-07-18 Joel Brobecker <brobecker@gnat.com>
5003
5004 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5005 Leave the indentation temporarily untouched, to minimize the diffs.
5006
cdecafbe
EZ
50072002-07-18 Elena Zannoni <ezannoni@redhat.com>
5008
5009 * stabsread.c: Make os9k sections of the code obsolete,
5010 for real this time.
5011 * stabsread.h: Make os9k sections of the code obsolete.
5012
7b6aa020
ML
50132002-07-18 Michal Ludvig <mludvig@suse.cz>
5014
09ec9b38
ML
5015 * linux-low.c (regsets_store_inferior_registers): Add free()
5016 at the end of a loop to prevent memory leak.
5017 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5018 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5019 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5020 line a comment.
4894ac5d 5021 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5022
233282cd
JB
50232002-07-17 Jim Blandy <jimb@redhat.com>
5024
5025 * macrocmd.c (info_macro_command): Remove newline from error
5026 message.
5027
7b6aa020 50282002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5029
5030 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5031 (sh_gdbarch_init): Use it for sh-dsp.
5032
f7ef9339
KB
50332002-07-16 Kevin Buettner <kevinb@redhat.com>
5034
5035 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5036 64-bit DWARF2 format.
5037
8dd72958
JB
50382002-07-16 Joel Brobecker <brobecker@gnat.com>
5039
5040 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5041 <sys/proc.h> when not available.
5042
a99a9e1b
AC
50432002-07-16 Andrew Cagney <ac131313@redhat.com>
5044
5045 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5046 * stabsread.c: Make os9k sections of the code obsolete.
5047 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5048 * config/i386/i386os9k.mt: Make file obsolete.
5049 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5050 (COMMON_OBS): Remove os9kread.o
5051 (SFILES): Remove os9kread.c.
5052 (os9kread.o, remote-os9k.o): Make target obsolete.
5053 * remote-os9k.c: Make file obsolete.
5054 * os9kread.c: Make file obsolete.
5055 * Makefile.in
5056
7a3085c1
AC
50572002-07-16 Andrew Cagney <ac131313@redhat.com>
5058
5059 * NEWS: Mention that the FR30 has been made obsolete.
5060 * fr30-tdep.c: Make file obsolete.
5061 * config/fr30/tm-fr30.h: Ditto.
5062 * config/fr30/fr30.mt: Ditto.
5063 * configure.tgt: Make fr30-*-elf obsolete.
5064 * MAINTAINERS: Make fr30-elf obsolete.
5065
28a93f5a
PM
50662002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5067
5068 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5069 found is not inside a section.
5070
be006b8b
KB
50712002-07-15 Kevin Buettner <kevinb@redhat.com>
5072
5073 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5074 strerror().
5075 (pdc_realloc): Use xrealloc() instead of realloc().
5076
14fa3751
KB
50772002-07-15 Kevin Buettner <kevinb@redhat.com>
5078
5079 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5080 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5081 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5082 macros.
5083
42cc437f
KB
50842002-07-15 Kevin Buettner <kevinb@redhat.com>
5085
5086 * aix-thread.c (ptrace_check): Eliminate goto.
5087 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5088 problem.
5089
8e2c28d4
KB
50902002-07-15 Kevin Buettner <kevinb@redhat.com>
5091
5092 * aix-thread.c (gdbcmd.h): Include.
5093 (DEBUG, DBG, DBG2, dbg): Eliminate.
5094 (debug_aix_thread): New static global.
5095 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5096 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5097 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5098 invocations to DBG and DBG2 macros to test against
5099 ``debug_aix_thread'' and call fprintf_unfiltered().
5100 (_initialize_aix_thread): Add new command "set debug aix-thread".
5101
30413464
AC
51022002-07-15 Andrew Cagney <ac131313@redhat.com>
5103
5104 From Gerhard Tonn <TON@de.ibm.com>:
5105 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5106 instead of supply_register.
5107
7c43edc1
AC
51082002-07-15 Andrew Cagney <ac131313@redhat.com>
5109
5110 * dwarf2cfi.c: Include "gdb_assert.h".
5111 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5112 non-NULL.
5113 (update_context): Do not use __func__. Add missing ``break''.
5114 (update_context): Do not use __func__.
5115
9364a0ef
EZ
51162002-07-15 Elena Zannoni <ezannoni@redhat.com>
5117
5118 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5119 and its setting. Set gdbarch instruction printing functions
5120 directly. For non-rs6000 case use new function
5121 gdb_print_insn_powerpc.
5122 (gdb_print_insn_powerpc): New function.
5123
3fbeef0b
AC
51242002-07-13 Andrew Cagney <ac131313@redhat.com>
5125
92eb23c5 5126 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5127 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5128 * configure.tgt: Mark d30v-*-* as obsolete.
5129 * d30v-tdep.c: Mark file as obsolete.
5130 * config/d30v/d30v.mt: Ditto.
5131 * config/d30v/tm-d30v.h: Ditto.
5132
aacb1f0a
AS
51332002-07-13 Aidan Skinner <aidan@velvet.net>
5134
5135 * ada-tasks.c (add_task_entry): replace calls to
5136 malloc() with xmalloc
5137 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5138
5139 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5140 ada_finish_decode_line_1, all_sals_for_line
5141 ada_breakpoint_rewrite): replace calls to free() with xfree()
5142
c11d79f2
KB
51432002-07-12 Kevin Buettner <kevinb@redhat.com>
5144
5145 From Nicholas Duffek (with minor changes by Martin Hunt,
5146 Louis Hamilton, and Kevin Buettner):
5147 * aix-thread.c: New file.
5148
8e19ed76
PS
51492002-07-12 Petr Sorfa <petrs@caldera.com>
5150
5151 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5152 complaint for invalid attribute class or form.
5153 (read_func_scope): DW_AT_frame_base
5154 better handling of DW_AT_block*.
5155 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5156 better handling of DW_AT_block*.
5157 (read_common_block): DW_AT_location
5158 better handling of DW_AT_block*.
5159 (read_partial_die): DW_AT_location better handling
5160 of DW_AT_block*.
5161 (new_symbol): DW_AT_external better handling of
5162 DW_AT_block*. Proper initialization of variable
5163 "addr".
5164 (attr_form_is_block): New function that returns true
5165 if the attribute's form is of DW_FORM_block*.
5166
295401f7
DJ
51672002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5168
5169 * valops.c (find_method_list): Remove comment about
5170 removed STATIC_MEMFUNCP argument.
5171 (value_find_oload_method_list): Likewise.
5172
e42dc924
KB
51732002-07-12 Kevin Buettner <kevinb@redhat.com>
5174
5175 From Nicholas Duffek:
5176 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5177 target_new_objfile_hook.
5178
6904b546
KB
51792002-07-12 Kevin Buettner <kevinb@redhat.com>
5180
5181 From Nicholas Duffek:
5182 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5183 csect.
5184
53fe9346
AC
51852002-07-12 Andrew Cagney <cagney@redhat.com>
5186
5187 * MAINTAINERS: Mention --enable-sim-build-warnings.
5188 (m68hc11-elf): Disable sim build warnings.
5189 (m32r-elf): Mark as broken obsolete candidate.
5190 (x86_64-linux-gnu): Mark as buildable with -Werror.
5191 (arm-elf): Change -w to ``,'' which enables warnings but not
5192 -Werror.
5193
af5f3db6
AC
51942002-07-12 Andrew Cagney <ac131313@redhat.com>
5195
5196 * bcache.h: Update copyright.
5197 (struct bstring, struct bcache): Move definition to "bcache.c".
5198 Replaced by opaque declaration.
5199 (bcache_xfree): Replace free_bcache.
5200 (bcache_xmalloc, bcache_memory_used): Declare.
5201
5202 * bcache.c: Update copyright.
5203 (struct bstring, struct bcache): Moved to here from "bcache.h".
5204 Update comments.
5205 (bcache_xmalloc, bcache_memory_used): New functions.
5206 (bcache_xfree): Replace function free_bcache.
5207
5208 * Makefile.in (objfiles.o): Add $(bcache_h).
5209 (objfiles_h): Remove $(bcache_h).
5210 (symfile.o): Add $(bcache_h).
5211
5212 * symmisc.c: Update copyright.
5213 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5214 (print_objfile_statistics): Use bcache_memory_used.
5215
5216 * symfile.c: Include "bcache.h".
5217 (reread_symbols): Use bcache_xfree.
5218 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5219 (add_psymbol_to_list): Pass psymbol_cache by value.
5220 (add_psymbol_with_dem_name_to_list): Ditto.
5221
5222 * objfiles.h: Update copyright.
5223 (struct bcache): Declare opaque. Do not include "bcache.h".
5224 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5225 bcache'' pointers.
5226 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5227
5228 * objfiles.c: Include "bcache.h". Update copyright.
5229 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5230 macro_cache.
5231 (free_objfile): Use bcache_xfree.
5232
444199e7
GS
52332002-07-11 Grace Sainsbury <graces@redhat.com>
5234
5235 * monitor.c (monitor_fetch_register): Make name a constant.
5236 (monitor_store_register): Same.
5237
261397f8
DJ
52382002-07-11 Daniel Jacobowitz <drow@mvista.com>
5239
5240 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5241 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5242 (finish_block) For non-function blocks, hash the symbol table. For
5243 function blocks, mark the symbol table as unhashed.
5244 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5245 (msymbol_hash_iw): Likewise.
5246 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5247 value.
5248 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5249 (lookup_minimal_symbol): Likewise for both.
5250 * symtab.h (struct block): Add `hashtable' flag. Comment the
5251 hashtable.
5252 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5253 (ALL_BLOCK_SYMBOLS): Update.
5254 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5255 (struct symbol): Add `hash_next' pointer.
5256 * symtab.c (lookup_block_symbol): Search using the hash table when
5257 possible.
5258 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5259 (search_symbols, find_addr_symbol): Likewise.
5260
5261 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5262 (read_dst_symtab): Likewise.
5263 * jv-lang.c (get_java_class_symtab): Likewise.
5264 * mdebugread.c: Include "gdb_assert.h".
5265 (shrink_block): Assert that the block being modified is not hashed.
5266 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5267 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5268 symbols.
5269 (dump_symtab): Recognize hashed blocks.
5270 * printcmd.c (print_frame_args): Assert that function blocks do not
5271 have hashed symbol tables.
5272 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5273 (fill_in_ada_prototype, debug_print_block): Likewise.
5274 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5275
6f0eaa01
CV
52762002-07-11 Corinna Vinschen <vinschen@redhat.com>
5277
5278 * stack.c (print_frame): Use result of frame_address_in_block()
5279 instead of fi->pc when evaluating symbols.
5280 (backtrace_command_1): Ditto.
5281
a208b0cb
AC
52822002-07-11 Andrew Cagney <cagney@redhat.com>
5283
5284 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5285 Make static.
5286
5287 * arm-tdep.c (arm_register_name): Make return type constant.
5288
a6b6b089
AC
52892002-07-10 Andrew Cagney <ac131313@redhat.com>
5290
5ae5f592
AC
5291 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5292 prototype.
5293 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5294 * s390-tdep.c (s390_fp_regnum): Ditto.
5295 (s390_read_fp): Ditto.
5296 (s390_pop_frame): Ditto.
5297 (_initialize_s390_tdep): Ditto.
5298 * remote.c (get_remote_state): Ditto.
5299 * procfs.c (mappingflags): Ditto.
5300 * memattr.c (_initialize_mem): Ditto.
5301 * mcore-tdep.c (mcore_pop_frame): Ditto.
5302 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5303 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5304 * language.c (set_case_str): Ditto.
5305 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5306 * frv-tdep.c (new_variant): Ditto.
5307 (frv_stopped_data_address): Ditto.
5308 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5309 (context_alloc): Ditto.
5310 (frame_state_alloc): Ditto.
5311 (unwind_tmp_obstack_init): Ditto.
5312 (unwind_tmp_obstack_free): Ditto.
5313 (cfi_read_fp): Ditto.
5314 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5315 (cris_pop_frame): Ditto.
5316 * c-lang.c (scanning_macro_expansion): Ditto.
5317 (finished_macro_expansion): Ditto.
5318 (c_preprocess_and_parse): Ditto.
5319 * gdbarch.sh: Ditto.
5320 * gdbarch.h, gdbarch.c: Regenerate.
5321 * config/mn10200/tm-mn10200.h: Adjust indentation.
5322 * target.c: Adjust indentation.
5323 * symtab.h: Adjust indentation.
5324 * stabsread.h: Adjust indentation.
5325 * remote-es.c: Adjust indentation.
5326 * os9kread.c: Adjust indentation.
5327
53282002-07-10 Andrew Cagney <ac131313@redhat.com>
5329
a6b6b089
AC
5330 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5331 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5332
a1789893
GS
53332002-07-10 Grace Sainsbury <graces@redhat.com>
5334
5335 * NEWS: Mention m68k, mcore multi-arching.
5336 * MAINTAINERS: Change status of m68k, mcore to reflect
5337 multi-arching.
5338
02f0d45d
DJ
53392002-07-10 Daniel Jacobowitz <drow@mvista.com>
5340
5341 * valops.c (find_overload_match): Free oload_syms.
5342
f15f768e
JB
53432002-07-09 Joel Brobecker <brobecker@gnat.com>
5344
5345 Define HAVE_SYS_PROC_H if sys/proc.h exists
5346 * configure.in: Add check for sys/proc.h
5347 * config.in: Regenerate.
5348 * configure: Regenerate.
5349
902a7139
GS
53502002-07-09 Grace Sainsbury <graces@redhat.com>
5351
5352 * config/m68k/tm-m68k.h: Remove macros wrapped in
5353 #if !GDB_MULTI_ARCH.
5354
a534e424
AC
53552002-07-08 Andrew Cagney <ac131313@redhat.com>
5356
5357 * config.in, configure: Regenerate.
5358
9b94f7bf
MK
53592002-07-08 Mark Kettenis <kettenis@gnu.org>
5360
5361 * dwarf2cfi.c: Include "gcore.h".
5362 (execute_stack_op): Fix implementation of the
5363 DW_OP_deref and DW_OP_deref_size operators by letting do their
5364 lookup in the target.
5365
1d34db41
MK
53662002-07-07 Mark Kettenis <kettenis@gnu.org>
5367
5368 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5369 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5370 tdep->sc_sp_offset.
5371
79d5b63a
DJ
53722002-07-05 Daniel Jacobowitz <drow@mvista.com>
5373
5374 Fix PR gdb/595, gdb/602
5375 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5376 Don't call value_cast, just read the vtable pointer; update comments
5377 to match.
5378
3bb912e8
GS
53792002-07-05 Grace Sainsbury <graces@redhat.com>
5380
5381 * config/mcore/tm-mcore.h: Remove file.
5382 * config/mcore/mcore.mt: Remove definition of TM_FILE
5383 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5384
ca39387d
MK
53852002-07-05 Mark Kettenis <kettenis@gnu.org>
5386
5387 * i386bsd-tdep.c: Include "gdb_string.h".
5388
efdc1108
GS
53892002-07-04 Grace Sainsbury <graces@redhat.com>
5390
5391 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5392 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5393 mcore-tdep.
5394 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5395 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5396 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5397 (RETVAL_REGNUM): Move macros from tm-mcore.h
5398 (mcore_reg_struct_has_addr): New function.
5399 (mcore_gdbarch_init): Added initializations for the macros removed
5400 from tm-mcore.h.
5401
bb21884d
MK
54022002-07-04 Mark Kettenis <kettenis@gnu.org>
5403
5404 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5405 traditonal string branding within the ELF header.
5406
228c6d41
DJ
54072002-07-04 Daniel Jacobowitz <drow@mvista.com>
5408
5409 * symtab.c (remove_params): New function.
5410 (make_symbol_overload_list): Use it instead of cplus_demangle.
5411 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5412
2404952e
MK
54132002-07-04 Mark Kettenis <kettenis@gnu.org>
5414
e5e4acad
MK
5415 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5416
baadce09
MK
5417 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5418 New variables.
5419 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5420 and tdep->sigtramp_end.
5421 * i386obsd-nat.c: New file.
5422 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5423
2404952e
MK
5424 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5425 Don't call get_current_frame().
5426
9b4f1ba7
PM
54272002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5428
5429 * i386-nat.c (child_post_startup_inferior): New function
5430 calling i386_cleanup_dregs if
5431 I386_USE_GENERIC_WATCHPOINTS is defined.
5432 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5433 conditional to acknowledge that i386-nat.c has its
5434 own child_post_startup_inferior function.
5435
c0d1d883
MK
54362002-07-04 Mark Kettenis <kettenis@gnu.org>
5437
00f8375e
MK
5438 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5439 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5440 instead of MAX_REGISTER_RAW_SIZE.
5441 (i386_extract_return_value, i386_extract_struct_value_address):
5442 Convert to use regcache.
5443 (i386_gdbarch_init): Set max_register_raw_size and
5444 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5445 Set extract_return_value and extract_struct_value_address instead
5446 of their deprecated variants.
5447
c0d1d883
MK
5448 Convert i386 target to generic dummy frames.
5449 * i386-tdep.c: Include "symfile.h".
5450 (i386_frameless_signal_p): Consider a function to be frameless if
5451 the pc points at the first instruction of the function.
5452 (i386_frame_chain): Handle (generic) call dummies.
5453 (i386_frame_saved_pc): Likewise.
5454 (i386_frame_init_saved_regs): Remove code dealing with call
5455 dummies on the stack.
5456 (i386_push_dummy_frame): Removed.
5457 (i386_call_dummy_words): Removed.
5458 (i386_fix_call_dummy): Removed.
5459 (i386_push_return_address): New function.
5460 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5461 parameter, and don't call get_current_frame.
5462 (i386_pop_frame): New function.
5463 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5464 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5465 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5466 call_dummy_length to 0, set call_dummy_words to NULL, set
5467 sizeof_call_dummy_words to 0, set fix_call_dummy to
5468 generic_fix_call_dummy, set pc_in_call_dummy to
5469 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5470 generic_push_dummy_frame, set push_return_address to
5471 i386_push_return_address and set frame_chain_valid to
5472 generic_file_frame_chain_valid.
5473
049ee0e4
AC
54742002-07-03 Andrew Cagney <ac131313@redhat.com>
5475
5476 * gdbarch.sh (struct regcache): Add opaque declaration.
5477 (EXTRACT_RETURN_VALUE): New architecture method.
5478 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5479 * gdbarch.h, gdbarch.c: Regenerate.
5480 * arch-utils.c (legacy_extract_return_value): New function.
5481 * arch-utils.h (legacy_extract_return_value): Declare.
5482 * values.c (value_being_returned): Re-enable code handling
5483 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5484 deprecated_grub_regcache_for_registers call to block handling
5485 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5486 (EXTRACT_RETURN_VALUE): Do not define.
5487
4e0d9804
GS
54882002-07-03 Grace Sainsbury <graces@redhat.com>
5489
5490 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5491 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5492 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5493 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5494 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5495 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5496 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5497 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5498 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5499 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5500 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5501 argument so the function fits the prototype in the architecture
5502 vector.
5503 (mcore_pop_frame): Remove argument so the function fits the
5504 prototype. Use get_current_frame instead of the argument.
5505 (mcore_push_arguments): Change type of struct_return so the
5506 function can be used in the architecture vector.
5507 (mcore_store_struct_return): Add.
5508 (mcore_frame_init_saved_regs): Add.
5509 (mcore_gdbarch_init): Add function calls to replace the macros
5510 removed from tm-mcore.h
5511
36160dc4
AC
55122002-07-03 Andrew Cagney <ac131313@redhat.com>
5513
5514 * infcmd.c (print_return_value): Remove compatibility code calling
5515 deprecated_grub_regcache_for_registers.
5516
5517 * values.c: Include "regcache.h".
5518 (value_being_returned): Update. Use
5519 deprecated_grub_regcache_for_registers to extract the register
5520 buffer address.
5521 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5522 ``struct regcache''.
5523 * Makefile.in (values.o): Add dependency on $(regcache_h).
5524
5525 * inferior.h (run_stack_dummy): Change type of second parameter to
5526 a ``struct regcache''.
5527 * valops.c (hand_function_call): Change type of retbuf to ``struct
5528 regcache''. Allocate using regcache_xmalloc, clean using
5529 make_cleanup_regcache_xfree.
5530 * infcmd.c (run_stack_dummy): Update. Use
5531 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5532
5533 * regcache.c (do_regcache_xfree): New function.
5534 (make_cleanup_regcache_xfree): New function.
5535 * regcache.h (make_cleanup_regcache_xfree): Declare.
5536
e64d9b3d
MH
55372002-07-03 Martin M. Hunt <hunt@redhat.com>
5538
4dd79c29
MH
5539 * event-top.c (command_line_handler): Don't read past
5540 beginning of buffer.
e64d9b3d 5541
4dd79c29
MH
55422002-07-03 Martin M. Hunt <hunt@redhat.com>
5543
e64d9b3d
MH
5544 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5545 struct frame_id.
5546 (varobj_create): Store frame_id for root.
5547 (varobj_gen_name): Use xasprintf.
5548 (varobj_update): Save and restore frame using get_frame_id() and
5549 frame_find_by_id().
5550 (create_child): Use xasprintf.
5551 (new_root_variable): Initialize frame_id.
5552 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5553 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5554 to prevent memory leak.
5555
26e6c56a
AC
55562002-07-03 Andrew Cagney <ac131313@redhat.com>
5557
5558 * valops.c (hand_function_call): Move declaration of retbuf to
5559 start of function, allocate using malloc, add a cleanup but before
5560 the inf_status cleanup, cleanup the buffer. Rename local variable
5561 old_chain to inf_status_cleanup.
5562
f436dd25
MH
55632002-07-03 Martin M. Hunt <hunt@redhat.com>
5564
5565 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5566
5567 * cli/cli-decode.c (cmd_func_p): New function.
5568 (cmd_func): New function.
5569
5570 * command.h: Add cmd_func() and cmd_func_p().
5571
4cfe2084
GS
55722002-07-03 Grace Sainsbury <graces@redhat.com>
5573
5574 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5575 (REGISTER_SIZE): Remove.
5576 (MAX_REGISTER_RAW_SIZE): Remove.
5577 (REGISTER_VIRTUAL_TYPE): Remove.
5578 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5579 (REGISTER_NAME): Remove.
5580 (USE_GENERIC_DUMMY_FRAMES): Remove.
5581 (CALL_DUMMY): Remove.
5582 (CALL_DUMMY_START_OFFSET): Remove.
5583 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5584 (CALL_DUMMY_LOCATION): Remove.
5585 (FIX_CALL_DUMMY): Remove.
5586 (CALL_DUMMY_ADDRESS): Remove.
5587 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5588 (SAVE_DUMMY_FRAME_TOS): Remove.
5589 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5590 (mcore_register_virtual_type): New function.
5591 (mcore_register_byte): New function.
5592 (mcore_register_size): New function.
5593 (mcore_register_name): New function.
5594 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5595 macros removed from tm-mcore.h.
5596 (mcore_dump_tdep): Add.
5597 (_initialize_mcore_tdep): Add gdbarch_register call.
5598
4fd667e9
MK
55992002-07-03 Mark Kettenis <kettenis@gnu.org>
5600
5601 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5602 frameless_look_for_prologue, such that we actually call this
5603 function.
5604
42f99ac2
JB
56052002-07-02 Joel Brobecker <brobecker@gnat.com>
5606
5607 * frame.h (frame_address_in_block): New function.
5608
5609 * blockframe.c (frame_address_in_block): New function extracted
5610 from get_frame_block().
5611 (get_frame_block): Use frame_address_in_block().
5612 (block_innermost_frame): Use frame_address_in_block() to match
5613 the frame pc address against the block boundaries rather than
5614 the frame pc directly. This prevents a failure when a frame pc
5615 is actually a return-address pointing immediately after the end
5616 of the given block.
5617
103a1597 56182002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5619
5620 * MAINTAINERS: Add self under write after approval.
5621
56222002-07-02 Grace Sainsbury <graces@redhat.com>
5623
103a1597
GS
5624 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5625 used in architecture vector. The default is
5626 m68k_local_breakpoint_from_pc.
5627 (m68k_local_breakpoint_from_pc): Add.
5628 (enum): Add register numbers from tm-m68k.h.
5629 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5630 vector.
5631 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5632 GDB_MULTI_ARCH_PARTIAL.
5633 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5634 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5635 m68k-tdep.c.
5636 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5637 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5638 to enum in m68k-tdep.c
5639
7a5a0534
JB
56402002-07-02 Joel Brobecker <brobecker@gnat.com>
5641
5642 * solib-osf.c (open_map): Compute the list of shared libraries
5643 loaded by the inferior, rather than the list of libraries loaded
5644 by GDB itself. Otherwise, GDB ends up reading the symbols from
5645 the wrong shared libraries...
5646
6f558d74
MK
56472002-07-02 Mark Kettenis <kettenis@gnu.org>
5648
b7d15bf7
MK
5649 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5650 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5651 macros.
5652 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5653 Remove functions.
5654 (FRAMELESS_SIGNAL): Remove function.
5655 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5656 i386_linux_saved_pc_after_call): Removed.
5657 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5658 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5659 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5660
6bff26de
MK
5661 * i386-tdep.c (i386_frameless_signal_p): New function.
5662 (i386_frame_chain): Deal with frameless signals.
5663 (i386_sigtramp_saved_sp): New function.
5664 (i386_frame_saved_pc): Deal with frameless signals.
5665 (i386_saved_pc_after_call): Make sure the correct value is
5666 returned just after entry into a sigtramp.
5667 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5668 i386fbsd4_sc_sp_offset): New variables.
5669 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5670 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5671 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5672 similiar to what we already did for sc_pc_offset.
5673 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5674 tdep->sc_sp_offset.
5675
6f558d74
MK
5676 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5677
145564b7
ML
56782002-07-02 Michal Ludvig <mludvig@suse.cz>
5679
5680 * config/i386/tm-x86-64linux.h: New.
5681 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5682 definitions.
5683 * config/i386/nm-x86-64.h: Rename to ...
5684 * config/i386/nm-x86-64linux.h: ... this one.
5685 * config/i386/x86-64linux.mh: Reflect the above change.
5686
3a1e71e3
MK
56872002-07-01 Mark Kettenis <kettenis@gnu.org>
5688
21d0e8a4
MK
5689 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5690 with sigcontext_addr. Add sc_sp_offset.
5691 (i386bsd_sigtramp_saved_pc): Remove prototype.
5692 (i386bsd_sicontext_addr): Add prototype.
5693 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5694 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5695 (i386_svr4_sigtramp_saved_pc): Removed.
5696 (i386_svr4_sigcontext_addr): New function.
5697 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5698 Initialize tdep->sigcontext_addr instead. Initialize
5699 tdep->sc_pc_offset and tdep->sc_sp_offset.
5700 (i386_gdbarch_init): Likewise.
5701 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5702 any more.
5703 (i386bsd_sigtramp_saved_pc): Remove function.
5704 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5705 Initialize tdep->sigcontext_addr instead. Initialize
5706 tdep->sc_pc_offset.
5707 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5708 of tdep->sigtramp_saved_pc.
5709 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5710 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5711 instead.
5712
3a1e71e3
MK
5713 * i386-tdep.c (i386_frameless_function_invocation,
5714 i386_frame_num_args, i386_frame_init_saved_regs,
5715 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5716 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5717 i386_extract_return_value, i386_store_return_value,
5718 i386_extract_struct_value_address, i386_register_virtual_type,
5719 i386_register_convertible, i386_register_convert_to_virtual,
5720 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5721 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5722 static.
5723
52e9098c
MK
57242002-07-01 Mark Kettenis <kettenis@gnu.org>
5725
77b13a25
MK
5726 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5727
52e9098c
MK
5728 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5729 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5730 this macro. Include "value.h".
5731
1b372fff
AS
57322002-06-30 Aidan Skinner <aidan@velvet.net>
5733
5734 * ada-exp.tab.c: remove as it's a generated file
5735 * ada-lex.c: remove as it's a generated file
5736
9c5045b5
MK
57372002-06-30 Mark Kettenis <kettenis@gnu.org>
5738
4a93c5bb
MK
5739 * config/i386/tm-i386.h (struct frame_info, struct
5740 frame_saved_regs, struct value, struct type): Remove forward
5741 declarations.
5742
322d4fe0
MK
5743 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5744 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5745 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5746 (FILL_FPXREGSET): Define.
5747
fdd8263d
MK
5748 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5749
482e577b
MK
5750 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5751 i[3456]86-*-netbsd* case.
5752 * config/i386/tm-obsd.h: Removed.
5753 * config/i386/obsd.mt: Removed.
5754 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5755 core-aout.o.
5756 (MH_CFLAGS): Add -DYYDEBUG=0.
5757
6916549a
MK
5758 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5759 i386nbsd_sc_pc_offset on OpenBSD too.
5760
9c5045b5
MK
5761 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5762 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5763 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5764 define.
5765 * i386bsd-tdep.c: Include "arch-utils.h".
5766 (i386bsd_aout_in_solib_call_trampoline): New function.
5767 (i386bsd_init_abi): Set in_solib_call_trampoline to
5768 i386bsd_aout_in_solib_call_trampoline.
5769 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5770 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5771
aa84d1bb
AC
57722002-06-28 Andrew Cagney <ac131313@redhat.com>
5773
5774 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5775 (struct obstack, struct bcache): Add opaque declarations.
5776 * Makefile.in (macrotab_h): Update
5777
b4d83933
AC
57782002-06-28 Andrew Cagney <ac131313@redhat.com>
5779
5780 * blockframe.c (generic_find_dummy_frame): Change return type to
5781 ``struct regcache''.
5782 (struct dummy_frame): Replace field ``registers'' with regcache, a
5783 struct regcache object.
5784 (generic_find_dummy_frame): Update.
5785 (generic_push_dummy_frame): Update. Use regcache_xfree,
5786 regcache_xmalloc and regcache_cpy.
5787 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5788 regcache_xfree.
5789 (deprecated_generic_find_dummy_frame): Update.
5790 (generic_read_register_dummy): Update. Use
5791 regcache_read_as_address.
5792 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5793 (generic_get_saved_register): Update. Use regcache_read.
5794
08c0b5bc
AC
57952002-06-28 Andrew Cagney <ac131313@redhat.com>
5796
5797 * Makefile.in (objfiles_h): Add $(bcache_h).
5798 * objfiles.h: Include "bcache.h".
5799
5800 * Makefile.in (symtab_h): Remove $(bcache_h).
5801 * symtab.h: Do not include "bcache.h".
5802
1f89801a
AC
58032002-06-28 Andrew Cagney <ac131313@redhat.com>
5804
5805 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5806 generic_func_frame_chain_valid.
5807
b9644b58
DB
58082002-06-28 David O'Brien <obrien@FreeBSD.org>
5809
5810 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5811 * config/i386/tm-fbsd.h: Likewise.
5812
dd486634
AC
58132002-06-28 Andrew Cagney <ac131313@redhat.com>
5814
5815 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5816 generic_unwind_get_saved_register.
5817
0b434a00
AC
58182002-06-27 Andrew Cagney <ac131313@redhat.com>
5819
5820 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5821 * regcache.c (supply_register): Add missing argument to
5822 register_buffer call.
5823
f30e5a77
AC
58242002-06-27 Andrew Cagney <ac131313@redhat.com>
5825
5826 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5827 Solaris /bin/grep does not not like it. From Peter Schauer.
5828
9f064c95
TT
58292002-06-26 Tom Tromey <tromey@redhat.com>
5830
5831 * command.h (add_setshow_cmd): Declare.
5832 (add_setshow_cmd_full): Declare.
5833 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5834 returns void. Use add_setshow_cmd_full.
5835 (add_setshow_cmd_full): New function.
5836 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5837 (add_setshow_boolean_cmd): Likewise.
5838
099c7589
JT
58392002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5840
5841 * config/vax/tm-vax.h: Protect from multiple inclusion.
5842 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5843 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5844 * config/vax/tm-vaxbsd.h: ...here. New file.
5845 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5846
1d049c5e
JT
58472002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5848
5849 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5850 (BELIEVE_PCC_PROMOTION): Remove.
5851 (AP_REGNUM): Move to...
5852 * config/vax/nm-vax.h: ...here.
5853 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5854 (vax_breakpoint_from_pc): New function.
5855 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5856 and gdbarch_believe_pcc_promotion.
5857
4791e091
JT
58582002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5859
5860 * Makefile.in (vax_tdep_h): Define.
5861 (vax-tdep.o): Use $(vax_tdep_h).
5862 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5863 (vax_dump_tdep): New function.
5864 (_initialize_vax_tdep): Register vax_dump_tdep.
5865 * vax-tdep.h: Include osabi.h.
5866 (struct gdbarch_tdep): New.
5867
da130f98
AC
58682002-06-26 Andrew Cagney <cagney@redhat.com>
5869
5870 * frame.h (deprecated_generic_find_dummy_frame): Rename
5871 generic_find_dummy_frame.
5872 * blockframe.c (generic_find_dummy_frame): Make static.
5873 (deprecated_generic_find_dummy_frame): New function.
5874 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5875 generic_find_dummy_frame with deprecated_find_dummy_frame.
5876 (sh64_nofp_frame_init_saved_regs): Ditto.
5877 (sh_fp_frame_init_saved_regs): Ditto.
5878 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5879 (s390_frame_chain): Ditto.
5880 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5881
6300c360
GS
58822002-06-26 Grace Sainsbury <graces@redhat.com>
5883
5884 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5885 gdbarch vector are at the top.
5886 (NUM_REGS): Remove.
5887 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5888 (FRAME_ARGS_ADDRESS): Remove.
5889 (FRAME_LOCALS_ADDRESS): Remove.
5890 (FRAME_NUM_ARGS): Remove.
5891 (FRAME_ARGS_SKIP): Remove.
5892 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5893 (m68k_gdbarch_init): Add gdbarch initializations for macros
5894 undefined in tm-m68k.h
5895
1c617db8
GS
58962002-06-26 Grace Sainsbury <graces@redhat.com>
5897
5898 * monitor.h: Add the function regname to monitor_ops
5899 structure. This way NUM_REGS does not have to be a constant.
5900 * monitor.c (monitor_fetch_register): Added support for regname
5901 function. The function is called if the array regnames is NULL.
5902 (monitor_store_register): Same.
da130f98
AC
5903 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5904 regnames array.
1c617db8
GS
5905 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5906 cpu32bug_cmds.regname to point to new function.
5907 * abug-rom.c (abug_regname): Same as above.
5908 (init_abug_cmds): Same.
5909 * dbug-rom.c (dbug_regname): Same as above.
5910 (init_dbug_cmds): Same.
5911 * remote-est.c (est_regname): Same.
5912 (init_est_cmds): Same.
5913 * rom68k-rom.c (rom68k_regname): Same.
5914 (init_rom68k_cmds): Same.
5915
ea9365bb
TT
59162002-06-25 Tom Tromey <tromey@redhat.com>
5917
5918 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5919
72cec141
AC
59202002-06-25 Andrew Cagney <cagney@redhat.com>
5921
5922 * infrun.c (stop_registers): Change variable's type to ``struct
5923 regcache'''.
5924 (xmalloc_inferior_status): Delete function.
5925 (free_inferior_status): Delete function.
5926 (normal_stop): Use regcache_cpy.
5927 (struct inferior_status): Change type of fields ``stop_registers''
5928 and ``registers'' to ``struct regcache''.
5929 (write_inferior_status_register): Use regcache_write.
5930 (save_inferior_status): Instead of calling
5931 xmalloc_inferior_status, allocate the inf_status buffer directly.
5932 Use regcache_dup_no_passthrough and regcache_dup to save the
5933 buffers.
5934 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5935 Replace the stop_registers regcache instead of overriding it. Use
5936 regcache_xfree. Instead of calling free_inferior_status, xfree
5937 the buffer directly.
5938 (discard_inferior_status): Use regcache_xfree. Instead of calling
5939 free_inferior_status, xfree the buffer directly.
5940 (build_infrun): Use regcache_xmalloc.
5941 (_initialize_infrun): Delete redundant call to build_infrun.
5942
5943 * Makefile.in (infcmd.o): Add $(regcache_h).
5944
5945 * infcmd.c: Include "regcache.h".
5946 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5947 obtain the address of `stop_registers' register buffer.
5948 (print_return_value): Ditto.
5949
5950 * inferior.h (struct regcache): Add opaque declaration.
5951 (stop_registers): Change variable's declared type to ``struct
5952 regcache''.
5953
defc6f8c
TT
59542002-06-24 Tom Tromey <tromey@redhat.com>
5955
c0e624e7
TT
5956 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5957 * target.c (initialize_targets): Fixed typo in
5958 trust-readonly-sections `show' documentation.
5959
defc6f8c
TT
5960 * main.c: Marked all strings with _().
5961
2b236d82
DH
59622002-06-24 Don Howard <dhoward@redhat.com>
5963
5964 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5965 that means max CORE_ADDR+1.
5966 (lookup_mem_region): Ditto.
5967 (mem_info_command): Ditto.
5968
942dc0e9
GS
59692002-06-24 Grace Sainsbury <graces@redhat.com>
5970
5971 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5972 (REGISTER_BYTES_OK): Remove.
5973 (REGISTER_BYTES): Remove.
5974 (STORE_STRUCT_RETURN): Remove.
5975 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5976 (STORE_RETURN_VALUE): Remove.
5977 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5978 (FRAME_CHAIN): Remove.
5979 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5980 (FRAME_SAVED_PC): Remove.
5981 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5982 (m68k_store_struct_return): Add.
5983 (m68k_deprecated_extract_return_value): Add.
5984 (m68k_deprecated_extract_struct_value_address): Add.
5985 (m68k_store_return_value): Add.
5986 (m68k_frame_chain): Add.
5987 (m68k_frameless_function_invocation): Add.
5988 (m68k_frame_saved_pc): Add.
5989 (m68k_gdbarch_init): added set_gdbarch calls for new
5990 functions and deleted macros.
5991
03c30d4d
TT
59922002-06-23 Tom Tromey <tromey@redhat.com>
5993
5994 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5995 (ALLDEPFILES): Likewise.
5996 (udiheaders): Removed.
5997 (udip2soc.o): Likewise.
5998 (udi2go32.o): Likewise.
5999 (udr.o): Likewise.
6000 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6001
37e71372
AC
60022002-06-22 Andrew Cagney <ac131313@redhat.com>
6003
06a6ac57
AC
6004 * infrun.c (_initialize_infrun): Delete unnecessary call to
6005 build_infrun.
6006
37e71372
AC
6007 * regcache.h: Update comments describing the regcache_cpy family
6008 of functions.
6009 (regcache_save, regcache_restore): Delete declaration.
6010 (regcache_save_no_passthrough): Delete declaration.
6011 (regcache_restore_no_passthrough): Delete declaration.
6012 * regcache.c (regcache_save): Delete function.
6013 (regcache_save_no_passthrough): Delete function.
6014 (regcache_restore): Delete function.
6015 (regcache_restore_no_passthrough): Delete function.
6016
78f6d055
AC
60172002-06-21 Andrew Cagney <ac131313@redhat.com>
6018
6019 * config/m68k/tm-m68k.h: Fix typo.
6020 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6021 (m68k_frame_init_saved_regs): Declare.
6022
78b119cb
JB
60232002-06-21 Jim Blandy <jimb@redhat.com>
6024
6025 Remove some vestiges of Harris 88k support.
6026 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6027 register numbering quirk.
6028 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6029 odd symbols occurring in Harris 88k ELF targets.
6030
0fbb3da7
TT
60312002-06-21 Tom Tromey <tromey@redhat.com>
6032
6033 * gdb_locale.h: New file.
6034 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6035 (defs_h): Added gdb_locale.h.
6036 * configure, config.in: Rebuilt.
6037 * configure.in (PACKAGE): Define.
6038 * defs.h: Include gdb_locale.h.
6039 * main.c (captured_main): Call setlocale, bindtextdomain,
6040 textdomain.
6041
456f8b9d
DB
60422002-06-21 Dave Brolley <brolley@redhat.com>
6043
6044 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6045 * config/frv/frv.mt: New file.
6046 * config/frv/tm-frv.h: New file.
6047 * configure.tgt: Support frv-*-*.
6048 * Makefile.in (frv-tdep.o): New target.
6049 * frv-tdep.c: New file.
6050 * NEWS: Mention frv.
6051
cdd463f9
DB
60522002-06-21 Dave Brolley <brolley@redhat.com>
6053
6054 * MAINTAINERS: Add self to "Write After Approval" list.
6055
5d3ed2e3
GS
60562002-06-21 Grace Sainsbury <graces@redhat.com>
6057
6058 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6059 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6060 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6061 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6062 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6063
6064 * m68k-tdep.c: Include arch-utils.h
6065 (m68k_register_raw_size): Add.
6066 (m68k_register_virtual_size): Add.
6067 (m68k_register_virtual_type): Add.
6068 (m68k_register_name): Add.
6069 (m68k_stack_align): Add.
6070 (m68k_register_byte): Add.
6071 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6072 tm-m68k.h.
6073
7f8e7424
GS
60742002-06-21 Grace Sainsbury <graces@redhat.com>
6075
a2c6a6d5 6076 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6077 m68k_find_saved_regs.
6078 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6079 references to it with frame->saved_regs.
7f8e7424
GS
6080 (m68k_gdbarch_init): Added function calls to initialize the
6081 gdbarch structure.
a2c6a6d5
GS
6082 (m68k_fix_call_dummy): Add.
6083 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6084 (CALL_DUMMY): Remove.
6085 (CALL_DUMMY_LENGTH): Remove.
6086 (CALL_DUMMY_START_OFFSET): Remove.
6087 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6088 (FIX_CALL_DUMMY): Remove.
6089 (PUSH_DUMMY_FRAME): Remove.
6090 (POP_FRAME): Remove.
7f8e7424 6091
f461f5cf
PM
60922002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6093
6094 * parse.c (parse_fprintf): New function used to avoid calls to
6095 fprintf in bison parser generated debug code.
6096 * parser-defs.h: Declaration of new parse_fprintf function.
6097 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6098 Set YYDEBUG to 1 by default.
6099 Set YYFPRINTF as parse_fprintf.
6100
7f0c12ed
ML
61012002-06-21 Michal Ludvig <mludvig@suse.cz>
6102
6103 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6104 encoding anymore.
6105 (pointer_encoding, enum ptr_encoding): New.
6106 (execute_cfa_program): Take care about pointer encoding.
6107 (dwarf2_build_frame_info): Only call parse_frame_info for
6108 .debug_frame and .eh_frame.
6109 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6110 fixed augmentation handling, added relative addressing,
6111 ignore duplicate FDEs. Added comments.
19d833a2 6112 * dwarf2cfi.c: Reindented.
7f0c12ed 6113
87c4a039
EZ
61142002-06-20 Elena Zannoni <ezannoni@redhat.com>
6115
6116 * event-top.c (command_handler): Don't use space_at_cmd_start
6117 unless there is sbrk() on the host. Assign time and space data
6118 to union fields of the appropriate length.
6119
1cf877ad
ML
61202002-06-20 Michal Ludvig <mludvig@suse.cz>
6121
6122 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6123 x86_64_register_name. Return type changed to 'const char *'.
6124 (x86_64_register_name2nr): Rename to x86_64_register_number.
6125 (x86_64_gdbarch_init): Update to reflect the change.
6126 * x86-64-tdep.h: Ditto.
6127 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6128 (supply_fpregset): Ditto.
6129
3fadccb3
AC
61302002-06-19 Andrew Cagney <cagney@redhat.com>
6131
6132 * regcache.h: Update copyright.
6133 (struct regcache, struct gdbarch): Add opaque declarations.
6134 (current_regcache): Declare global variable.
6135 (regcache_read, regcache_write): Add gdbarch parameter.
6136 (regcache_save, regcache_save_no_passthrough)
6137 (regcache_restore, regcache_restore_no_passthrough)
6138 (regcache_dup, regcache_dup_no_passthrough)
6139 (regcache_cpy, regcache_cpy_no_passthrough)
6140 (deprecated_grub_regcache_for_registers)
6141 (deprecated_grub_regcache_for_register_valid)
6142 (regcache_valid_p): Add function declarations.
6143
6144 * regcache.c: Update copyright.
6145 (regcache_descr_handle): New global variable.
6146 (struct regcache_descr): Define.
6147 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6148 (regcache_descr, xfree_regcache_descr): New functions.
6149 (struct regcache): Define.
6150 (regcache_xmalloc, regcache_xfree): New functions.
6151 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6152 (regcache_dup, regcache_dup_no_passthrough): New functions.
6153 (regcache_valid_p, regcache_read_as_address): New functions.
6154 (deprecated_grub_regcache_for_registers): New function.
6155 (deprecated_grub_regcache_for_register_valid): New function.
6156 (current_regcache): New global variable.
6157 (register_buffer): Add regcache parameter. Update calls.
6158 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6159 (read_register_gen, write_register_gen): Update register_buffer
6160 call. Test for legacy_p instead of gdbarch_register_read_p or
6161 gdbarch_register_write_p.
6162 (regcache_collect): Update register_buffer call.
6163 (build_regcache): Rewrite. Use deprecated grub functions.
6164 (regcache_save, regcache_save_no_passthrough): New functions.
6165 (regcache_restore, regcache_restore_no_passthrough): New
6166 functions.
6167 (_initialize_regcache): Create the regcache_data_handle. Swap
6168 current_regcache global variable.
6169
6170 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6171 parameter to regcache_read and regcache_write calls.
6172 (sh4_register_read): Ditto.
6173 (sh64_pseudo_register_read): Ditto.
6174 (sh64_register_read): Ditto.
6175 (sh_pseudo_register_write): Ditto.
6176 (sh4_register_write): Ditto.
6177 (sh64_pseudo_register_write): Ditto.
6178 (sh64_register_write): Ditto.
6179
6180 * defs.h (XCALLOC): Define.
6181
152d9db6
GS
61822002-06-19 Grace Sainsbury <graces@redhat.com>
6183
6184 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6185 * m68k-tdep.c (m68k_gdbarch_init): Added.
6186 (m68k_dump_tdep): Added.
6187
170911c7
DJ
61882002-06-19 Daniel Jacobowitz <drow@mvista.com>
6189
6190 * ada-lang.c (fill_in_ada_prototype): Update comment.
6191
2e4ebe70
DJ
61922002-06-19 Daniel Jacobowitz <drow@mvista.com>
6193
6194 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6195 MIPS_ABI_LAST.
6196 (mips_abi_string, mips_abi_strings): New.
6197 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6198 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6199 tdep->mips_abi_string. Honor mips_abi_string. Default to
6200 O32 if no ABI is found.
6201 (mips_dump_tdep): Use mips_abi_strings.
6202 (mips_abi_update): New function.
6203 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6204 ``set mips abi'' and ``show mips abi''. Check the size of
6205 mips_abi_strings.
6206
16775908
AC
62072002-06-19 Andrew Cagney <cagney@redhat.com>
6208
6209 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6210 constant.
6211
5051bfa4 62122002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6213
5051bfa4
JB
6214 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6215 current frame using only the first stack size adjustment. All
6216 subsequent size adjustments are not considered to be part of
6217 the "static" part of the current frame.
6218 Compute the address of the saved registers relative to the
6219 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6220 in use in this frame.
6221
56468235
DH
62222002-06-18 Don Howard <dhoward@redhat.com>
6223
6224 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6225 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6226 suggesting this solution.
6227
0b624158
AC
62282002-06-18 Andrew Cagney <ac131313@redhat.com>
6229
6230 * config/romp/xm-rtbsd.h: Delete file.
6231 * config/romp/rtbsd.mh: Delete file.
6232
221ea385
KS
62332002-06-18 Keith Seitz <keiths@redhat.com>
6234
6235 * breakpoint.c (condition_command): Post breakpoint_modify
6236 when a condition is added to an existing breakpoint.
6237 (commands_command): Likewise for commands.
6238 (set_ignore_count): Likewise for ignore counts.
6239 If no tty, do not simply return, still need to send event
6240 notification.
6241 (ignore_command): Only print a newline if the command came
6242 from a tty.
6243 Don't call breakpoints_changed, since this is now properly
6244 handled by set_ignore_count.
6245
5402eed1
AC
62462002-06-18 Andrew Cagney <cagney@redhat.com>
6247
6248 * MAINTAINERS: Note that cris-elf target can be compiled with
6249 -Werror.
6250 * cris-tdep.c (cris_register_name): Make return type constant.
6251 (cris_breakpoint_from_pc): Ditto.
6252
cc22880b
ML
62532002-06-18 Michal Ludvig <mludvig@suse.cz>
6254
6255 * frame.h (struct frame_info): Change type of context to
6256 'struct context'.
6257
fa88f677
AC
62582002-06-17 Andrew Cagney <cagney@redhat.com>
6259
6260 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6261 pointer.
6262 * gdbarch.h, gdbarch.c: Regenerate.
6263 * config/mips/tm-mips.h (mips_register_name): Update.
6264 * i386-tdep.h (i386_register_name): Update.
6265 * mips-tdep.c (mips_register_name): Update
6266 * alpha-tdep.c (alpha_register_name): Update.
6267 * arch-utils.c (legacy_register_name): Update.
6268 * arch-utils.h (legacy_register_name): Update.
6269 * avr-tdep.c (avr_register_name): Update.
6270 * ia64-tdep.c (ia64_register_name): Update.
6271 * i386-tdep.c (i386_register_name): Update.
6272 * sparc-tdep.c (sparc32_register_name): Update.
6273 (sparc64_register_name): Update.
6274 (sparclite_register_name): Update.
6275 (sparclet_register_name): Update.
6276 * sh-tdep.c (sh_generic_register_name): Update.
6277 (sh_sh_register_name): Update.
6278 (sh_sh3_register_name): Update.
6279 (sh_sh3e_register_name): Update.
6280 (sh_sh_dsp_register_name): Update.
6281 (sh_sh3_dsp_register_name): Update.
6282 (sh_sh4_register_name): Update.
6283 (sh_sh64_register_name): Update.
6284 * s390-tdep.c (s390_register_name): Update.
6285 * rs6000-tdep.c (rs6000_register_name): Update.
6286 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6287 (ns32k_register_name_32382): Update.
6288 * d10v-tdep.c (d10v_ts2_register_name): Update.
6289 (d10v_ts3_register_name): Update.
6290 * xstormy16-tdep.c (xstormy16_register_name): Update.
6291 * vax-tdep.c (vax_register_name): Update.
6292 * v850-tdep.c (v850_register_name): Update.
6293 * m68hc11-tdep.c (m68hc11_register_name): Update.
6294 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6295 (am33_register_name): Update.
6296
ea1e7ef6
GS
62972002-06-17 Grace Sainsbury <graces@redhat.com>
6298
6299 * m68k-tdep.c: Reindented.
6300
9b02dd1b
AC
63012002-06-17 Andrew Cagney <ac131313@redhat.com>
6302
6303 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6304 list of predefined types.
6305
8758dec1
MK
63062002-06-16 Mark Kettenis <kettenis@gnu.org>
6307
b6197528
MK
6308 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6309 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6310 REGISTER_CONVERT_TO_RAW): Remove defines.
6311 (i386_register_virtual_type, i386_register_convertible,
6312 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6313 Remove prototypes.
6314 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6315 macros mentioned above.
6316
82b47e62
MK
6317 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6318 (i386lynx_saved_pc_after_call): Remove prototype.
6319 * i386ly-tdep.c: Include "i386-tdep.h".
6320 (i386lynx_saved_pc_after_call): Make static. Use
6321 read_memory_nobpt instead of read_memory. Use
6322 read_memory_unsigned_integer instead of read_memory_integer.
6323 (i386lynx_init_abi): New function.
6324 (i386lynx_coff_osabi_sniffer): New function.
6325 (_initialize_i386bsd_tdep): New function.
6326
8758dec1
MK
6327 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6328 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6329 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6330 (i386_fix_call_dummy): Remove prototype.
6331 * i386-tdep.c (i386_call_dummy_words): New variable.
6332 (i386_gdbarch_init): Adjust for removal of the
6333 macros mentioned above.
6334
e9e68a56
AC
63352002-06-15 Andrew Cagney <ac131313@redhat.com>
6336
6337 * command.h (add_setshow_auto_boolean_cmd): Replace
6338 add_set_auto_boolean_cmd.
6339 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6340 add_set_auto_boolean_cmd.
6341 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6342 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6343 mask-address'' command.
6344 (show_mask_address): Add cmd parameter.
6345 * remote.c (add_packet_config_cmd): Update. Change type of
6346 set_func and show_func to cmd_sfunc_ftype.
6347 (_initialize_remote): Update `set remote Z-packet'
6348 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6349 (show_remote_protocol_e_packet_cmd): Ditto.
6350 (show_remote_protocol_E_packet_cmd): Ditto.
6351 (show_remote_protocol_P_packet_cmd): Ditto.
6352 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6353 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6354 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6355 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6356 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6357 (show_remote_protocol_Z_packet_cmd): Ditto.
6358 (show_remote_protocol_binary_download_cmd): Ditto.
6359 (show_remote_cmd): Pass NULL to all of above.
6360
fc08ec52
MK
63612002-06-15 Mark Kettenis <kettenis@gnu.org>
6362
6363 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6364 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6365 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6366 POP_FRAME): Remove defines.
6367 (i386_push_arguments, i386_store_struct_return,
6368 i386_extract_return_value, i386_store_return_value,
6369 i386_extract_struct_value_address, i386_push_dummy_frame,
6370 i386_pop_frame): Renove prototypes.
6371 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6372 macros mentioned above.
6373
e707bbc2
AC
63742002-06-15 Andrew Cagney <ac131313@redhat.com>
6375
6376 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6377 add_set_boolean_cmd.
6378 (add_setshow_cmd): New function.
6379 * command.h (add_setshow_boolean_cmd): Replace
6380 add_set_boolean_cmd.
6381 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6382 and ``set rdiromatzero''.
6383 * maint.c (_initialize_maint_cmds): Update commented out code.
6384 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6385 * target.c (initialize_targets): Update `set
6386 trust-readonly-sections'.
6387 * remote.c (_initialize_remote): Update `set remotebreak'.
6388
42fdc8df
MK
63892002-06-15 Mark Kettenis <kettenis@gnu.org>
6390
93924b6b
MK
6391 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6392 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6393 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6394 fit into multi-arch framework.
6395 (i386_breakpoint_from_pc): New function.
6396 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6397 above.
6398
42fdc8df
MK
6399 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6400 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6401 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6402 (i386_frameless_function_invocation, i386_frame_num_args,
6403 i386_frame_init_saved_regs): Remove prototypes.
6404 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6405 macros mentioned above.
6406
9773a94b
AC
64072002-06-15 Andrew Cagney <ac131313@redhat.com>
6408
6409 * cli/cli-decode.c (set_cmd_cfunc): Update.
6410 (set_cmd_sfunc): Update.
6411 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6412 (set_cmd_sfunc, set_cmd_cfunc): Update.
6413 * cli/cli-decode.h: Update.
6414
6e157172
MK
64152002-06-15 Mark Kettenis <kettenis@gnu.org>
6416
6417 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6418 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6419
7f19b9a2
AC
64202002-06-15 Andrew Cagney <ac131313@redhat.com>
6421
6422 * defs.h (auto_boolean): Declare enum.
6423 * command.h (cmd_auto_boolean): Delete enum.
6424 * mips-tdep.c (mask_address_var): Update.
6425 (mips_mask_address_p): Update.
6426 (show_mask_address): Update.
6427 * remote.c (struct packet_config): Update.
6428 (update_packet_config): Update.
6429 (show_packet_config_cmd): Update.
6430 (packet_ok): Update.
6431 (add_packet_config_cmd): Update.
6432 (_initialize_remote):
6433 * command.h: Update.
6434 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6435 (do_setshow_command): Update.
6436 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6437 * cli/cli-decode.h: Update.
6438
1cf88de5
MK
64392002-06-15 Mark Kettenis <kettenis@gnu.org>
6440
22ba8cf2
MK
6441 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6442 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6443 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6444 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6445 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6446 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6447
762c5349
MK
6448 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6449 list of DJGPP COFF targets.
6450
091198bb
MK
6451 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6452 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6453 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6454 (FP0_REGNUM): Remove define.
6455 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6456 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6457 (i386_register_virtual_size): Remove protoype.
6458 * i386-tdep.c (i386_register_virtual_size): Removed.
6459 (i386_extract_return_value, i386_store_return_value): Use
6460 FP0_REGNUM instead of NUM_FREGS to determine whether the
6461 floating-point registers are available.
6462 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6463 Adjust for removal of macros mentioned above.
6464
64652002-06-15 Mark Kettenis <kettenis@gnu.org>
6466
fcc9bf01
MK
6467 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6468 comments.
6469 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6470 Remove prototypes.
6471 (supply_gregset, fill_gregset): Remove use of register keyword and
6472 remove declaration for regmap. Use I386_NUM_GREGS instead of
6473 NUM_REGS and NUM_FREGS.
6474 (FPREGSET_FSAVE_OFFSET): Remove.
6475 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6476 NUM_FREGS to determine whether the floating-point registers are
6477 available.
6478
65e78234
MK
6479 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6480 gnu_store_registers): Replace usage of NUM_GREGS with
6481 I386_NUM_GREGS.
6482
98df6387
MK
6483 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6484 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6485 usage of NUM_GREGS with I386_NUM_GREGS.
6486
099a9414
MK
6487 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6488
57976e88
MK
6489 * i386bsd-nat.c: Include "i386-tdep.h".
6490 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6491 I386_NUM_GREGS.
6492
b335f4a6
MK
6493 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6494 and associated comment. They no longer make any sense, since we
6495 don't use this file anymore on Linux.
6496
1cf88de5
MK
6497 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6498 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6499 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6500 elements in these arrays.
6501 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6502 MAX_NUM_REGS.
6503
daa66587
MK
65042002-06-15 Mark Kettenis <kettenis@gnu.org>
6505
6506 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6507 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6508
26e9b323
AC
65092002-06-14 Andrew Cagney <cagney@redhat.com>
6510
6511 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6512 EXTRACT_RETURN_VALUE.
6513 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6514 EXTRACT_STRUCT_VALUE_ADDRESS.
6515 * gdbarch.h, gdbarch.c: Regenerate.
6516
6517 * values.c (value_being_returned): Handle
6518 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6519 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6520
6521 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6522 * arm-tdep.c (arm_gdbarch_init): Update.
6523 * avr-tdep.c (avr_gdbarch_init): Update.
6524 * cris-tdep.c (cris_gdbarch_init): Update.
6525 * d10v-tdep.c (d10v_gdbarch_init): Update.
6526 * ia64-tdep.c (ia64_gdbarch_init): Update.
6527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6528 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6529 * s390-tdep.c (s390_gdbarch_init): Update.
6530 * sh-tdep.c (sh_gdbarch_init): Update.
6531 * s390-tdep.c (s390_gdbarch_init): Update.
6532 * sparc-tdep.c (sparc_gdbarch_init): Update.
6533 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6534 * v850-tdep.c (v850_gdbarch_init): Update.
6535 * vax-tdep.c (vax_gdbarch_init): Update.
6536 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6538
6539 * config/arc/tm-arc.h: Update.
6540 * config/d30v/tm-d30v.h: Update.
6541 * config/fr30/tm-fr30.h: Update.
6542 * config/h8300/tm-h8300.h: Update.
6543 * config/h8500/tm-h8500.h: Update.
6544 * config/i386/tm-i386.h: Update.
6545 * config/i386/tm-ptx.h: Update.
6546 * config/i386/tm-symmetry.h: Update.
6547 * config/i960/tm-i960.h: Update.
6548 * config/m32r/tm-m32r.h: Update.
6549 * config/m68k/tm-delta68.h: Update.
6550 * config/m68k/tm-linux.h: Update.
6551 * config/m68k/tm-m68k.h: Update.
6552 * config/m88k/tm-m88k.h: Update.
6553 * config/mcore/tm-mcore.h: Update.
6554 * config/mips/tm-mips.h: Update.
6555 * config/mn10200/tm-mn10200.h: Update.
6556 * config/pa/tm-hppa.h: Update.
6557 * config/pa/tm-hppa64.h: Update.
6558 * config/sparc/tm-sp64.h: Update.
6559 * config/sparc/tm-sparc.h: Update.
6560 * config/sparc/tm-sparclet.h: Update.
6561 * config/z8k/tm-z8k.h: Update.
6562
5179e78f
AC
65632002-06-14 Andrew Cagney <cagney@redhat.com>
6564
6565 * Makefile.in (i386_linux_tdep_h): Define.
6566 (i386_tdep_h, i387_tdep_h): Define.
6567 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6568 $(i386_tdep_h) and $(i387_tdep_h).
6569 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6570
8201327c
MK
65712002-06-14 Mark Kettenis <kettenis@gnu.org>
6572
edf393ac
MK
6573 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6574 Already covered by the default.
6575
896fb97d
MK
6576 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6577 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6578 (i386_gdbarch_init): Initialize long_double_format and long_double
6579 bit.
6580
8201327c
MK
6581 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6582 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6583 Move these to ...
6584 * config/i386/i386sol2.mh: ... here.
6585 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6586 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6587 (SIGCONTEXT_PC_OFFSET): Remove define.
6588 (IN_SIGTRAMP): Remove define.
6589 * i386-sol2-tdep.c: New file.
6590
6591 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6592 * config/i386/tm-i386nw.h: Removed.
6593
6594 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6595 USE_STRUCT_CONVENTION): Remove defines.
6596 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6597 (get_longjmp_target): Remove prototype.
6598 (IN_SIGTRAMP): Remove define.
6599 (i386bsd_in_sigtramp): Remove prototype.
6600 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6601 function. Update comment accordingly
6602 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6603 (FRAME_SAVED_PC): Remove define.
6604 (i386bsd_frame_saved_pc): Remove prototype.
6605 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6606 GET_LONGJMP_TARGET): Remove defines.
6607 (get_longjmp_target): Remove prototype.
6608 (IN_SIGTRAMP): Remove define.
6609 (i386bsd_in_sigtramp): Remove prototype.
6610 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6611 function. Update comment accordingly
6612 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6613 (FRAME_SAVED_PC): Remove define.
6614 (i386bsd_frame_saved_pc): Remove prototype.
6615 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6616 Remove prototype.
6617 (USE_STRUCT_CONVENTION): Remove prototype.
6618 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6619 declaration.
6620 (_initialize_i386bsd_nat): Revise logic to determine some
6621 constants at compile time when compiling a native GDB. Warn if
6622 things don't match up with what we expect.
6623 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6624 Remove variables.
6625 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6626 to use date stored in `struct gdbarch_tdep'.
6627 (i386bsd_sigcontext_offset): Remove varaible.
6628 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6629 stored in `struct gdbarch_tdep'.
6630 (i386bsd_frame_saved_pc): Make static.
6631 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6632 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6633 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6634 i386fbsd4_sc_pc_offset): New variables.
6635 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6636 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6637 functions.
6638 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6639 functions.
6640 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6641 Modify the value of i386fbsd_sigtramp_start and
6642 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6643 i386fbsd_sigtramp_end.
6644 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6645 function.
6646
6647 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6648 define to i386-linux-tdep.h.
6649 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6650 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6651 defines.
6652 (i386_linux_register_name, i386_linux_register_byte,
6653 i386_linux_register_raw_size): Remove prototypes.
6654 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6655 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6656 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6657 TARGET_WRITE_PC): Remove defines.
6658 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6659 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6660 i386_linux_write_pc): Remove prototypes.
6661 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6662 (get_longjmp_target): Remove prototype.
6663 * i386-linux-tdep.h: New file.
6664 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6665 * i386-linux-tdep.c: Include "i386-tdep.h" and
6666 "i386-linux-tdep.h".
6667 (i386_linux_register_name, i386_linux_register_byte,
6668 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6669 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6670 Make static.
6671 (i386_linux_init_abi): New function.
6672 (_initialize_i386_linux_tdep): New function.
6673
6674 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6675 (i386_saved_pc_after_call): Remove prototype.
6676 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6677 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6678 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6679 (i386_register_name, i386_stab_reg_to_regnum,
6680 i386_dwarf_reg_to_regnum): Remove prototypes.
6681 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6682 SIZEOF_SSE_REGS): Remove defines.
6683 (REGISTER_BYTES): Remove define.
6684 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6685 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6686 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6687 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6688 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6689 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6690 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6691 (get_longjmp_target): Remove prototype.
6692 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6693 (sigtramp_saved_pc): Remove define.
6694 (i386v4_sigtramp_saved_pc): Remove prototype.
6695 * config/i386/tm-go32.h (FRAME_CHAIN,
6696 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6697 (i386go32_frame_saved_pc): Remove prototype.
6698 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6699 (get_longjmp_target): Remove prototype.
6700 * i386-tdep.h: Include "osabi.h".
6701 (enum i386_abi): Removed.
6702 (enum struct_return): New enum.
6703 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6704 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6705 sc_pc_offset members.
6706 (i386_gdbarch_register_os_abi): Remove prototype.
6707 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6708 I386_SSE_NUM_REGS): New defines.
6709 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6710 I386_SSE_SIZEOF_REGS): New defines.
6711 (i386_register_name, i386_register_byte, i386_register_raw_size):
6712 New prototypes.
6713 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6714 (i386bsd_sigtramp_saved_pc): New prototype.
6715 * i386-tdep.c: Don't include "elf-bfd.h".
6716 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6717 i386_frame_chain, i386_saved_pc_after_call): Make static.
6718 (i386_frame_saved_pc): Rewrite to call architecture dependent
6719 function to deal with signal handlers. Make static.
6720 (i386go32_frame_saved_pc): Removed.
6721 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6722 Removed.
6723 (i386_get_longjmp_target): New function.
6724 (default_struct_convention, pcc_struct_convention,
6725 reg_struct_convention, valid_conventions, struct_convention): New
6726 variables.
6727 (i386_use_struct_convention): New function.
6728 (i386v4_sigtramp_saved_pc): Renamed to
6729 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6730 (i386_pc_in_sigtramp): New function.
6731 (i386_abi_names): Removed.
6732 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6733 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6734 Removed.
6735 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6736 i386_gdbarch_register_os_abi): Removed.
6737 (struct i386_abi_handler): Removed.
6738 (i386_abi_handler_list): Removed.
6739 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6740 functions.
6741 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6742 i386_nw_init_abi): New functions.
6743 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6744 Use set_gdbarch_xxx() calls instead of relying on macros for a
6745 number of calls.
6746 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6747 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6748 Register the various architecture variants defined in this file.
6749
ad2f7632
DJ
67502002-06-14 Daniel Jacobowitz <drow@mvista.com>
6751
6752 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6753 (struct main_type): Remove arg_types member. Update comments for
6754 struct field.
6755 (TYPE_ARG_TYPES): Remove.
6756 (TYPE_FN_FIELD_ARGS): Update.
6757 (smash_to_method_type): Update prototype.
6758
6759 * c-typeprint.c (cp_type_print_method_args): Take method type
6760 instead of argument list. Use new argument layout. Simplify.
6761 (c_type_print_args): Use new argument layout. Simplify.
6762 (c_type_print_base): Update call to cp_type_print_method_args.
6763 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6764 argument; use die->type instead. Update call to
6765 smash_to_method_type.
6766 (read_structure_scope): Update call to dwarf2_add_member_fn.
6767 * gdbtypes.c (allocate_stub_method): Update comment.
6768 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6769 Use new argument layout.
6770 (check_stub_method): Use new argument layout. Don't count
6771 void as an argument.
6772 (print_arg_types): Update comments. Use new argument layout.
6773 (recursive_dump_type): Don't print arg_types member.
6774 * hpread.c (hpread_read_struct_type): Use new argument layout.
6775 (fixup_class_method_type): Likewise.
6776 (hpread_type_lookup): Likewise.
6777 * stabsread.c (read_type): Update calls to read_args and
6778 smash_to_method_type.
6779 (read_args): Use new argument layout. Simplify.
6780 * valops.c (typecmp): Use new argument layout. Update parameters
6781 and comments. Simplify.
6782 (hand_function_call): Use new argument layout.
6783 (search_struct_method): Update call to typecmp.
6784 (find_overload_match): Use new argument layout.
6785
6da02953
DJ
67862002-06-13 Daniel Jacobowitz <drow@mvista.com>
6787
6788 * NEWS: Mention multithreaded debug support for gdbserver.
6789
519b2366
DJ
67902002-06-13 Daniel Jacobowitz <drow@mvista.com>
6791
6792 * MAINTAINERS: Mention NEWS.
6793
6c0d6680
DJ
67942002-06-13 Daniel Jacobowitz <drow@mvista.com>
6795
6796 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6797 (struct mips_objfile_private, compare_pdr_entries): New.
6798 (non_heuristic_proc_desc): Read the ".pdr" section if it
6799 is present.
6800
6529d2dd
AC
68012002-06-12 Andrew Cagney <ac131313@redhat.com>
6802
6803 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6804 (arm_debug): New static variable.
6805 (_initialize_arm_tdep): Add ``set debug arm'' command.
6806
26216b98
AC
68072002-06-12 Andrew Cagney <ac131313@redhat.com>
6808
6809 * Makefile.in (sim_arm_h): Define.
6810 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6811 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6812 (arm_register_sim_regno): New function, map an internal REGNUM
6813 onto a simulator register number.
6814 (arm_gdbarch_init): Set register_sim_regno.
6815
814b3ba0
AH
68162002-06-09 Aldy Hernandez <aldyh@redhat.com>
6817
6818 * MAINTAINERS: Add self.
6819
475b0867
JB
68202002-06-11 Jim Blandy <jimb@redhat.com>
6821
919d772c
JB
6822 * source.c (source_info): Mention whether the symtab has
6823 information about preprocessor macros.
6824
475b0867
JB
6825 Call the command `info macro', not `show macro'.
6826 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6827 Fix error message.
6828 (_initialize_macrocmd): Register `info_macro_command' in
6829 `infolist', not `showlist'.
6830
9e364162
DJ
68312002-06-11 Daniel Jacobowitz <drow@mvista.com>
6832
6833 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6834 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6835 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6836 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6837 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6838 unconditionally.
6839 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6840 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6841 (_initialize_mips_tdep): Remove dead code.
6842 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6843 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6844 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6845 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6846 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6847 MIPS_LAST_FP_ARG_REGNUM): Remove.
6848
23aa4c72
ML
68492002-06-11 Michal Ludvig <mludvig@suse.cz>
6850
6851 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6852 (unwind_tmp_obstack_free, parse_frame_info)
6853 (update_context, cfi_read_fp, cfi_write_fp)
6854 (cfi_frame_chain, cfi_init_extra_frame_info)
6855 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6856 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6857
70eb15a4
CV
68582002-06-11 Corinna Vinschen <vinschen@redhat.com>
6859
6860 * v850-tdep.c (v850_type_is_scalar): New function.
6861 (v850_use_struct_convention): Match current gcc implementation
6862 as close as possible.
6863 (v850_push_arguments): Fix stack_offset handling. Don't write
6864 struct_addr into register. This is done by v850_store_struct_return.
6865 (v850_extract_return_value): Care for structs.
6866 (v850_store_return_value): Ditto.
6867 (v850_store_struct_return): Actually write address.
6868
482a4d06
ML
68692002-06-11 Michal Ludvig <mludvig@suse.cz>
6870
6871 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6872 without debug information too.
6873
d855c300
AC
68742002-06-10 Andrew Cagney <ac131313@redhat.com>
6875
6876 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6877 Make multi-arch pure.
6878 * gdbarch.h, gdbarch.c: Re-generate.
6879 * arm-tdep.c (arm_print_float_info): Update.
6880 * arch-utils.h (default_print_float_info): Update.
6881 * arch-utils.c (default_print_float_info): Update.
6882 * infcmd.c (float_info): Update call.
6883
dd12a101
AC
68842002-06-10 Andrew Cagney <ac131313@redhat.com>
6885
6886 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6887 the front of the initialize list.
6888
101dcfbe
AC
68892002-06-10 Andrew Cagney <ac131313@redhat.com>
6890
6891 * infrun.c (struct inferior_status): Replace fields
6892 selected_frame_address and selected_level with field
6893 selected_frame_id.
6894 (save_inferior_status): Update. Use get_frame_id.
6895 (struct restore_selected_frame_args): Delete.
6896 (restore_selected_frame): Update. Use frame_find_by_id.
6897 (restore_inferior_status): Update.
6898
6899 * breakpoint.h (struct breakpoint): Change type of
6900 watchpoint_frame to frame_id.
6901 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6902 call to get_current_frame.
6903 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6904 get_current_frame.
6905 (watchpoint_check): Use frame_find_by_id.
6906
6907 * frame.h (record_selected_frame): Delete declaration.
6908 * stack.c (record_selected_frame): Delete function.
6909
6910 * frame.h (struct frame_id): Define.
6911 (get_frame_id): Declare.
6912 (frame_find_by_id): Declare.
6913 * frame.c (frame_find_by_id): New function.
6914 (get_frame_id): New function.
6915
304270b6
AV
69162002-06-10 Andrey Volkov <avolkov@transas.com>
6917
6918 * ser-e7kpc.c: Fix duplicated define and call of
6919 _initialize_ser_e7000pc
6920
2f2cf184
DJ
69212002-06-09 Daniel Jacobowitz <drow@mvista.com>
6922
6923 * signals/signals.c (target_signal_from_host): Fix #ifdef
6924 SIGRTMIN case.
6925 (do_target_signal_to_host): Likewise.
6926
caaa3122
DJ
69272002-06-09 Daniel Jacobowitz <drow@mvista.com>
6928
6929 * mips-tdep.c (mips_find_abi_section): New function.
6930 (mips_gdbarch_init): Call it.
6931
6ac5df3a
MK
69322002-06-09 Mark Kettenis <kettenis@gnu.org>
6933
6934 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6935 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6936 after Andrew's 2002-06-08 gdbarch change.
6937
82ea117a
MK
69382002-06-09 Mark Kettenis <kettenis@gnu.org>
6939
6940 * i386-linux-nat.c (suppy_gregset): Don't supply
6941 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6942 register cache.
6943 (fill_gregset): Don't fetch it under the same circumstances.
6944
3c25f8c7
AC
69452002-06-09 Andrew Cagney <cagney@redhat.com>
6946
6947 * Makefile.in (callback_h): Define.
6948 (remote_sim_h): Update path to remote-sim.h.
6949 (remote-rdp.o): Add $(callback_h).
6950 (remote-sim.o): Use $(callback_h).
6951 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6952 * remote-rdp.c: Include "gdb/callback.h".
6953
1029b7fa
MK
69542002-06-09 Mark Kettenis <kettenis@gnu.org>
6955
6956 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6957 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6958
616675d3
AC
69592002-06-08 Andrew Cagney <ac131313@redhat.com>
6960
a3efda28
AC
6961 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6962 * rdi-share/serpardr.c: Ditto.
6963 * rdi-share/unixcomm.c: Ditto.
6964 * rdi-share/serdrv.c: Ditto.
6965 * rdi-share/hostchan.h: Ditto.
6966 * rdi-share/hostchan.c: Ditto.
6967 * rdi-share/host.h: Ditto.
6968 * rdi-share/devsw.c: Ditto.
6969
c5f10366
AC
6970 * objfiles.h: Change type of obj_private to void pointer.
6971 * pa64solib.c: Update copyright. Don't include "assert.h", use
6972 strcmp instead of STREQ, use LONGEST, do not use PTR
6973 * somsolib.c: Ditto.
6974
616675d3
AC
6975 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6976 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6977 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6978
e4b415d9
AC
69792002-06-08 Andrew Cagney <ac131313@redhat.com>
6980
6981 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6982 (default_get_saved_register): Delete function.
6983 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6984 generic_unwind_get_saved_register.
6985 * gdbarch.h, gdbarch.c: Re-generate.
6986
ca0d0b52
AC
69872002-06-08 Andrew Cagney <ac131313@redhat.com>
6988
6989 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6990 generic_func_frame_chain_valid.
6991 * gdbarch.h, gdbarch.c: Re-generate.
6992 * blockframe.c (generic_func_frame_chain_valid): Only check
6993 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6994 passing FP to PC_IN_CALL_DUMMY.
6995 Fix PR gdb/360.
6996
76860b5f
AC
69972002-06-08 Andrew Cagney <ac131313@redhat.com>
6998
6999 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7000 (register_gdbarch_data): Initialize init_p.
7001 (gdbarch_data): Initialize data pointer using the init function.
7002 (init_gdbarch_data): Delete function.
7003 (gdbarch_update_p): Update.
7004 (initialize_non_multiarch): Update.
7005 (struct gdbarch): Add field initialized_p.
7006 * gdbarch.h, gdbarch.c: Re-generate.
7007
8dda9770
ML
70082002-06-07 Michal Ludvig <mludvig@suse.cz>
7009
7010 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7011 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7012 better do the things actually here.
7013 * x86-64-tdep.c (x86_64_register_name2nr): New.
7014 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7015 (x86_64_gdbarch_init): Respect the above change.
7016 * x86-64-tdep.h (x86_64_register_name2nr)
7017 (x86_64_register_nr2name): Add prototypes.
7018 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7019
3d79a47c
MS
70202002-06-06 Michael Snyder <msnyder@redhat.com>
7021
7bd91a28
MS
7022 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7023 Delete extra braces and re-indent.
7024 (d10v_store_return_value): Char return values
3d79a47c
MS
7025 must be shifted over by one byte in R0.
7026 (d10v_extract_return_value): Delete extra braces, re-indent.
7027
095a4c96
EZ
70282002-06-06 Elena Zannoni <ezannoni@redhat.com>
7029
7030 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7031 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7032 (d10v_integer_to_address): Rewrite.
7033 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7034 the d10v specific functions which take care of converting to the
7035 correct space.
7036
e8a77ca4
EZ
70372002-06-06 Elena Zannoni <ezannoni@redhat.com>
7038
7039 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7040 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7041
4f2e4a4f
AC
70422002-06-02 Andrew Cagney <ac131313@redhat.com>
7043
7044 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7045 includes.
7046 * config/tm-linux.h: Ditto.
7047 * config/alpha/tm-alphalinux.h: Ditto.
7048 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7049 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7050 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7051 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7052 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7053 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7054 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7055 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7056 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7057 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7058 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7059 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7060 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7061 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7062 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7063 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7064 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7065 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7066 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7067 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7068 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7069 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7070 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7071 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7072 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7073 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7074 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7075 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7076 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7077 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7078 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7079 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7080 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7081 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7082 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7083 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7084 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7085
ae2ab2ce
AS
70862002-05-04 Aidan Skinner <aidan@velvet.net>
7087
7088 * ada-exp.tab.c: New file
7089 * ada-exp.y: New file
7090 * ada-lang.c: New file
7091 * ada-lang.h: New file
7092 * ada-lex.c: New file
7093 * ada-lex.l: New file
7094 * ada-tasks.c: New file
7095 * ada-typeprint.c: New file
7096 * ada-valprint.c: New file
7097
0ddd0135
JT
70982002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7099
7100 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7101 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7102
750fbacc
JT
71032002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7104
7105 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7106 insetead of ppc-linux-tdep.o.
7107 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7108 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7109
df94e18a
AC
71102002-06-02 Andrew Cagney <ac131313@redhat.com>
7111
7112 2002-05-07 Christian Groessler <chris@groessler.org>
7113 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7114 bit register contents for little endian hosts.
7115
1a38ab75
AC
71162002-06-01 Andrew Cagney <ac131313@redhat.com>
7117
7118 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7119 any maintainer.
7120
8b1632ac
AC
71212002-06-01 Andrew Cagney <ac131313@redhat.com>
7122
7123 * gdbarch.h: Regenerate.
7124
627054c8
AC
71252002-06-01 Andrew Cagney <ac131313@redhat.com>
7126
7127 * MAINTAINERS: Add everyone to write-after-approval list.
7128
4f460812
AC
71292002-06-01 Andrew Cagney <ac131313@redhat.com>
7130
7131 * stack.c (frame_info): Use frame_register_unwind instead of
7132 saved_regs. Mention when the SP is on the stack or in a register.
7133
7134 * frame.h (frame_register_unwind_ftype): Define. Document.
7135 (struct frame_info): Add field register_unwind and
7136 register_unwind_cache.
7137 (frame_register_unwind): Declare.
7138 (generic_unwind_get_saved_register): Declare.
7139
7140 * frame.c (frame_register_unwind): New function.
7141 (generic_unwind_get_saved_register): New function.
7142
7143 * blockframe.c (generic_call_dummy_register_unwind): New function.
7144 (frame_saved_regs_register_unwind): New function.
7145 (set_unwind_by_pc): New function.
7146 (create_new_frame): New function.
7147 (get_prev_frame): New function.
7148
de888f76
AC
71492002-05-30 Andrew Cagney <ac131313@redhat.com>
7150
7151 * a29k-share/: Delete directory.
7152 * remote-vx29k.c: Delete file.
7153
2f2c3626
JT
71542002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7155
7156 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7157 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7158
9ce5c36a
JT
71592002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7160
7161 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7162 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7163 (sparc64nbsd-nat.o)
7164 (sparcnbsd-nat.o)
7165 (sparcnbsd-tdep.o): New dependency lists.
7166 * NEWS: Note new UltraSPARC NetBSD native configuration.
7167 * configure.host (sparc64-*-netbsd*): New host.
7168 * configure.tgt (sparc-*-netbsdelf*)
7169 (sparc-*-netbsd*): Set gdb_target to nbsd.
7170 (sparc64-*-netbsd*): New target.
7171 * sparc64nbsd-nat.c: New file.
7172 * sparcnbsd-nat.c: New file.
7173 * sparcnbsd-tdep.c: New file.
7174 * sparcnbsd-tdep.h: New file.
7175 * config/sparc/nbsd.mt: New file.
7176 * config/sparc/nbsd64.mh: New file.
7177 * config/sparc/nbsd64.mt: New file.
7178 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7179 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7180 (HOST_IPC): Remove.
7181 * config/sparc/nbsdaout.mt: Remove.
7182 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7183 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7184 (HOST_IPC): Remove.
7185 * config/sparc/nbsdelf.mt: Remove.
7186 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7187 sparc-nat.c compatiblity defines.
7188 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7189 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7190 * config/sparc/tm-nbsd64.h: New file.
7191 * config/sparc/tm-nbsdaout.h: Remove.
7192 * config/sparc/xm-nbsd.h: Remove.
7193
ef3cf062
JT
71942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7195
7196 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7197 * sparc-tdep.c: Include osabi.h.
7198 (gdbarch_tdep): Add osabi member.
7199 (_initialize_sparc_tdep): Use gdbarch_register.
7200 (sparc_gdbarch_init): Use generic OS ABI framework.
7201 (sparc_dump_tdep): New function.
7202
ee8ff470
KB
72032002-05-30 Kevin Buettner <kevinb@redhat.com>
7204
7205 * corefile.c (do_captured_read_memory_integer): Return non-zero
7206 result.
7207 (safe_read_memory_integer): Copy result of memory read when
7208 status is non-zero. Also, add comments.
7209
7b112f9c
JT
72102002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7211
7212 * Makefile.in (ppc_tdep_h): Define.
7213 (ppc-linux-nat.o)
7214 (ppc-linux-tdep.o)
7215 (rs6000-tdep.o): Use $(ppc_tdep_h).
7216 (ppc-sysv-tdep.o)
7217 (ppcnbsd-nat.o)
7218 (ppcnbsd-tdep.o): New dependency lists.
7219 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7220 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7221 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7222 (ppc_sysv_abi_broken_use_struct_convention)
7223 (ppc_sysv_abi_use_struct_convention)
7224 (ppc_sysv_abi_push_arguments): Move to...
7225 * ppc-sysv-tdep.c: ...here.
7226 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7227 * rs6000-tdep.c (process_note_abi_tag_sections)
7228 (get_elfosabi): Remove.
7229 (rs6000_gdbarch_init): Use generic OS ABI framework.
7230 (rs6000_dump_tdep): New function.
7231 (_initialize_rs6000_tdep): Use gdbarch_register.
7232 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7233 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7234 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7235 of ppc-linux-tdep.o.
7236 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7237 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7238 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7239 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7240 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7241 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7242
480dd42a
JB
72432002-05-29 Jim Blandy <jimb@redhat.com>
7244
7245 * macroscope.c (default_macro_scope): Put `void' in empty argument
7246 list.
7247
4182591f
AC
72482002-05-29 Andrew Cagney <ac131313@redhat.com>
7249
7250 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7251 * arch-utils.c: Include "sim-regno.h".
7252 * gdbarch.sh: Don't include "sim-regno.h".
7253 * gdbarch.h, gdbarch.c: Regenerate.
7254 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7255 here.
7256 * arch-utils.h (legacy_register_sim_regno): To here.
7257 * remote-sim.c (legacy_register_sim_regno): Move function from
7258 here.
7259 * arch-utils.c (legacy_register_sim_regno): To here.
7260
8238d0bf
AC
72612002-05-28 Andrew Cagney <ac131313@redhat.com>
7262
7263 * sim-regno.h: New file.
7264 * Makefile.in (sim_regno_h): Define.
7265 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7266 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7267 (legacy_register_sim_regno): New function.
7268 (one2one_register_sim_regno): New function.
7269 (gdbsim_fetch_register): Rewrite.
7270 (gdbsim_store_register): Only store a register when
7271 REGISTER_SIM_REGNO is valid.
7272 * d10v-tdep.c: Include "sim-regno.h".
7273 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7274 (d10v_ts3_register_sim_regno): Ditto.
7275 * gdbarch.sh: Include "sim-regno.h".
7276 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7277 * gdbarch.h, gdbarch.c: Regenerate.
7278 * arch-utils.h (default_register_sim_regno): Delete declaration.
7279 * arch-utils.c (default_register_sim_regno): Delete function.
7280
485721b1
JT
72812002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7282
7283 * ppcnbsd-nat.c: Rewrite.
7284 * ppcnbsd-tdep.c: New file.
7285 * ppcnbsd-tdep.h: New file.
7286 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7287 solib.o, and solib-svr4.o.
7288 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7289 nbsd-tdep.o, and corelow.o.
7290
697f244d
AC
72912002-05-28 Andrew Cagney <ac131313@redhat.com>
7292
7293 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7294 `tr' and `sed'. Mention that `broken' targets are not expected to
7295 build.
7296
f08caad1 72972002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7298
7299 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7300 Let PC point right after the prologue before looking up symbols.
7301
3139facc
MH
73022002-05-27 Martin M. Hunt <hunt@redhat.com>
7303
7304 * i386-tdep.c (i386_register_virtual_type): Return
7305 builtin_type_vec128i for SSE registers.
7306
7307 * gdbtypes.h (builtin_type_vec128i): Declare.
7308
7309 * gdbtypes.c (build_builtin_type_vec128i): New function.
7310 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7311 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7312 (build_gdbtypes): Initialize new builtin vector types.
7313 (_initialize_gdbtypes): Register new vector types with gdbarch.
7314
6e3ba3b8
JT
73152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7316
7317 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7318 since it has been multi-arch'd.
7319 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7320 Move Alpha and VAX multi-arch news entries to same section
7321 as other multi-arch news.
7322
93d5585d
JT
73232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7324
7325 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7326 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7327 static. Rename some register numbers to put them in ns32k-tdep
7328 private namespace.
7329 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7330 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7331 functions.
7332 (_initialize_ns32k_tdep): Use gdbarch_register.
7333 * ns32k-tdep.h: New file.
7334 * ns32knbsd-tdep.c: New file.
7335 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7336 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7337 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7338 REGISTER_BYTES, REGISTER_BYTE): Remove.
7339 * config/ns32k/tm-ns32k.h: New file.
7340 * config/ns32k/tm-umax.h: Remove.
7341
efb2c70e
JT
73422002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7343
7344 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7345 ns32k_store_struct_return, ns32k_extract_return_value,
7346 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7347 functions.
7348 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7349 ns32k_saved_pc_after_call.
7350 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7351 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7352 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7353 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7354 ns32k_extract_struct_value_address.
7355
7bcc927b
JT
73562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7357
7358 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7359 ns32k_fix_call_dummy): New.
7360 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7361 ns32k_call_dummy_words.
7362 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7363 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7364 CALL_DUMMY_NARGS): Remove.
7365 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7366
78f9d765
JT
73672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7368
7369 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7370 ns32k_frame_saved_pc, ns32k_frame_args_address,
7371 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7372 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7373 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7374 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7375 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7376 (BREAKPOINT): Remove..
7377 (FRAME_CHAIN): Define as ns32k_frame_chain.
7378 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7379 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7380 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7381 (FRAME_FIND_SAVED_REGS): Remove.
7382 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7383 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7384 (POP_FRAME): Define as ns32k_pop_frame.
7385
f2c762e0
JT
73862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7387
7388 * ns32k-tdep.c (ns32k_register_byte_32082,
7389 ns32k_register_byte_32382, ns32k_register_raw_size,
7390 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7391 functions.
7392 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7393 ns32k_register_byte_32382.
7394 * config/ns32k/tm-umax.h: Update copyright years.
7395 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7396 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7397 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7398 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7399 (ns32k_get_enter_addr): Fix prototype.
7400
af137673
JT
74012002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * ns32k-tdep.c: Update copyright years.
7404 (ns32k_register_name_32082): New function.
7405 (ns32k_register_name_32382): Ditto.
7406 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7407 (REGISTER_NAME): Define as ns32k_register_name_32382.
7408 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7409 (REGISTER_NAME): Define as ns32k_register_name_32082.
7410
a8bc7b56
JB
74112002-05-24 Jim Blandy <jimb@redhat.com>
7412
7413 * dwarf2read.c (free_line_header): Use xfree, not free.
7414
83a45910
JT
74152002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7416
7417 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7418 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7419
0db71247
AC
74202002-05-23 Andrew Cagney <ac131313@redhat.com>
7421
7422 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7423
b9e5e4dd
AC
74242002-05-23 Andrew Cagney <ac131313@redhat.com>
7425
7426 From Ross Alexander at NEC Europe:
7427 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7428
de530e84
MS
74292002-05-23 Michael Snyder <msnyder@redhat.com>
7430
7431 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7432 for input, rather than parse_and_eval_address.
7433
b91b96f4
AC
74342002-05-23 Andrew Cagney <ac131313@redhat.com>
7435
7436 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7437 * Makefile.in (sim_d10v_h): Update definition.
7438
8b279e7a
AC
74392002-05-24 Andrew Cagney <cagney@redhat.com>
7440
7441 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7442 change `2002-05-22 Michael Snyder' below.
7443 (d10v_push_arguments): Ditto.
7444 (d10v_extract_return_value): Ditto.
7445
0a3d0425
JB
74462002-05-23 Jim Blandy <jimb@redhat.com>
7447
7448 * macrotab.c (check_for_redefinition): Don't complain if the new
7449 definition is the same as the previous one. Take more arguments
7450 to allow the comparison.
7451 (macro_define_object, macro_define_function): Pass more arguments
7452 to check_for_redefinition.
7453
78eac43e
MS
74542002-05-22 Michael Snyder <msnyder@redhat.com>
7455
7456 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7457 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7458 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7459 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7460 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7461 Add a temp variable to save a call (and a memory read).
7462 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7463 if possible (so that PC_IN_CALL_DUMMY will work).
7464
9bc1edb8
CV
74652002-05-22 Corinna Vinschen <vinschen@redhat.com>
7466
7467 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7468
005ef3d2
ML
74692002-05-22 Michal Ludvig <mludvig@suse.cz>
7470
7471 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7472 fde->cie_ptr.
7473 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7474 (dwarf2_build_frame_info): Add offset to fde->initial_location
7475 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7476 (execute_stack_op): Change type of 'result' from ULONGEST to
7477 CORE_ADDR.
005ef3d2 7478
fcf4f891
JT
74792002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7480
7481 * config/alpha/tm-nbsd.h: Include solib.h.
7482
cfef91e4
JT
74832002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7484
7485 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7486 assumptions about the host's byte order.
7487
9964235a
JT
74882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7489
7490 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7491 to dependency list.
7492 * alphanbsd-tdep.c: Include solib-svr4.h.
7493 * shnbsd-tdep.c: Ditto.
7494
9eeef8ef
JT
74952002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7496
7497 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7498 nbsd-tdep.h to dependency list.
7499 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7500 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7501 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7502 nbsdaout.mh and nbsdelf.mh consistently.
7503 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7504 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7505 nbsdaout.mt and nbsdelf.mh consistently.
7506 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7507 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7508 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7509 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7510 a.out shared library stuff from here...
7511 * config/nm-nbsdaout.h: ...to here.
7512 * config/tm-nbsd.h: Remove.
7513 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7514 * config/arm/nbsd.mh: Remove.
7515 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7516 nbsd-tdep.o.
7517 * config/arm/nbsdaout.mh: New file.
7518 * config/arm/nbsdelf.mh: New file.
7519 * config/arm/nm-nbsdaout.h: New file.
7520 * config/i386/nbsd.mh: Remove.
7521 * config/i386/nbsd.mt: Remove.
7522 * config/i386/nbsdaout.mh: New file.
7523 * config/i386/nbsdaout.mt: New file.
7524 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7525 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7526 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7527 i386_register_u_addr): Remove.
7528 * config/i386/nm-nbsdaout.h: New file.
7529 * config/i386/nm-nbsdelf.h: Remove.
7530 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7531 (USE_STRUCT_CONVENTION): Remove.
7532 * config/i386/tm-nbsdaout.h: New file.
7533 * config/i386/tm-nbsdelf.h: Remove.
7534 * config/m68k/nbsd.mh: Remove.
7535 * config/m68k/nbsd.mt: Remove.
7536 * config/m68k/nbsdaout.mh: New file.
7537 * config/m68k/nbsdaout.mt: New file.
7538 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7539 * config/m68k/nm-nbsdaout.h: New file.
7540 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7541 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7542 * config/ns32k/nbsd.mh: Remove.
7543 * config/ns32k/nbsd.mt: Remove.
7544 * config/ns32k/nbsdaout.mh: New file.
7545 * config/ns32k/nbsdaout.mt: New file.
7546 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7547 * config/ns32k/nm-nbsdaout.h: New file.
7548 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7549 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7550 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7551 (SVR4_SHARED_LIBS): Remove.
7552 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7553 * config/sparc/nbsd.mh: Remove.
7554 * config/sparc/nbsd.mt: Remove.
7555 * config/sparc/nbsdaout.mh: New file.
7556 * config/sparc/nbsdaout.mt: New file.
7557 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7558 * config/sparc/nbsdelf.mt: New file.
7559 * config/sparc/nm-nbsdaout.h: New file.
7560 * config/sparc/nm-nbsdelf.h: Remove.
7561 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7562 * config/sparc/tm-nbsdaout.h: New file.
7563
257ce470
JT
75642002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7565
7566 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7567 mipsnbsd-tdep.c
7568 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7569
76a6d5fe
JT
75702002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7571
7572 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7573 shnbsd-nat.c.
7574 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7575
45888261
JT
75762002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7577
7578 * NEWS: Note new MIPS NetBSD native configuration.
7579 * configure.host (mips*-*-netbsd*): New host.
7580 * configure.tgt (mips*-*-netbsd*): New target.
7581 * mipsnbsd-nat.c: New file.
7582 * mipsnbsd-tdep.c: New file.
7583 * mipsnbsd-tdep.h: New file.
7584 * config/mips/nbsd.mh: New file.
7585 * config/mips/nbsd.mt: New file.
7586 * config/mips/nm-nbsd.h: New file.
7587 * config/mips/tm-nbsd.h: New file.
7588
70f80edf
JT
75892002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7590
7591 * Makefile.in (SFILES): Add osabi.c.
7592 (COMMON_OBS): Add osabi.o.
7593 (osabi.o): New dependency list.
7594 * osabi.c: New file.
7595 * osabi.h: New file.
7596 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7597
7598 * Makefile.in (alpha_tdep_h): Define and use instead of
7599 alpha-tdep.h.
7600 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7601 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7602 Remove.
7603 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7604 * alpha-tdep.h: Include osabi.h.
7605 (alpha_abi): Remove.
7606 (gdbarch_tdep): Use generic OS ABI framework.
7607 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7608 gdbarch_register_osabi.
7609 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7610 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7611 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7612
7613 * Makefile.in (sh_tdep_h): Add osabi.h.
7614 * sh-tdep.h (sh_osabi): Remove.
7615 (gdbarch_tdep): Use generic OS ABI framework.
7616 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7617 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7618 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7619 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7620
7621 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7622 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7623 gdbarch_register_osabi.
7624 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7625 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7626 (get_elfosabi): Rename to...
7627 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7628 ABI framework support routines.
7629 (arm_gdbarch_init): Use generic OS ABI framework.
7630 (arm_dump_tdep): Likewise.
7631 (_initialize_arm_tdep): Likewise.
7632 * arm-tdep.h: Include osabi.h.
7633 (arm_abi): Remove.
7634 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7635 osabi member.
7636 (arm_gdbarch_register_os_abi): Remove prototype.
7637 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7638 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7639
7640 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7641 * mips-tdep.c: Include osabi.h.
7642 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7643 OS ABI framework.
7644
d194345b
KH
76452002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7646
7647 * h8300-tdep.c: Fix formatting.
7648
70c6b0d1
EZ
76492002-05-20 Elena Zannoni <ezannoni@redhat.com>
7650
7651 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7652 printing vector registers.
7653
165b8e33
AC
76542002-05-19 Andrew Cagney <ac131313@redhat.com>
7655
7656 From Fernando Nasser:
7657 * remote.c (remote_async_open_1): Re-throw the exception when the
7658 connection fails.
7659 (remote_cisco_open): Ditto.
7660 (remote_open_1): Ditto.
7661
36918e70
AC
76622002-05-19 Andrew Cagney <ac131313@redhat.com>
7663
7664 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7665 (remote_start_remote): Add uiout parameter. Pass through to
7666 remote_start_remote_dummy.
7667 (remote_open_1): Use catch_exception instead of catch_errors.
7668 (remote_async_open_1): Ditto.
7669 (remote_cisco_open): Ditto.
7670
ae44c0c4
AC
76712002-05-19 Andrew Cagney <ac131313@redhat.com>
7672
7673 * remote.c (remote_start_remote): Replace PTR with void pointer.
7674 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7675 static.
7676
8efe637d
AC
76772002-05-18 Andrew Cagney <ac131313@redhat.com>
7678
7679 * gdb_indent.sh: Allow the script to be run in the sim directory.
7680
2f1b5984
MK
76812002-05-18 Mark Kettenis <kettenis@gnu.org>
7682
f0f625e2
MK
7683 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7684 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7685
2f1b5984
MK
7686 * corelow.c (core_open): Only call set_gdbarch_from_file if
7687 exec_bfd is NULL.
7688
fc974602
AV
76892002-05-17 Andrey Volkov <avolkov@transas.com>
7690
7691 * h8300-tdep.c: Add support of EXR register
7692 * config/h8300/tm-h8300.h: Ditto.
7693
906709f4
AV
76942002-05-17 Andrey Volkov <avolkov@transas.com>
7695
7696 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7697
6e591d68
AV
76982002-05-17 Andrey Volkov <avolkov@transas.com>
7699
7700 * h8300-tdep.c: Change literal regnums to REGNO.
7701
84f0252a
JB
77022002-05-17 Jim Blandy <jimb@redhat.com>
7703
e0e9281e
JB
7704 * NEWS: Note addition of macro support.
7705
84f0252a
JB
7706 Expand preprocessor macros in C expressions.
7707 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7708 (scan_macro_expansion, scanning_macro_expansion,
7709 finished_macro_expansion): New function declarations.
7710 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7711 variable declarations.
7712 * parser-defs.h (expression_context_pc): New declaration.
7713 * parse.c (expression_context_pc): New variable.
7714 (parse_exp_1): Set expression_context_pc, as well as
7715 expression_context_block.
7716 * c-exp.y (yylex): If we're not already reading the result of a
7717 macro expansion, try to macro-expand the next token. When we're
7718 done scanning a macro expansion, switch back to the mainline text.
7719 Commas and `if's in a macro's expansion don't terminate the input.
7720 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7721 (macro_original_text, macro_expanded_text,
7722 expression_macro_lookup_func, expression_macro_lookup_baton): New
7723 variables.
7724 (scan_macro_expansion, scanning_macro_expansion,
7725 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7726 c_preprocess_and_parse): New functions.
7727 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7728 c_preprocess_and_parse, instead of c_parse.
7729 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7730 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7731
1c509ca8
JR
7732Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7733
7734 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7735 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7736 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7737
2250ee0c
CV
77382002-05-17 Corinna Vinschen <vinschen@redhat.com>
7739
7740 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7741
ab3b8126
JT
77422002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7743
7744 * Makefile.in (sh_tdep_h): Define and use.
7745 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7746 register enum): Move to...
7747 * * sh-tdep.h: ...here.
7748 * sh-tdep.c: Include sh-tdep.h.
7749 * sh3-rom.c: Likewise.
7750 * shnbsd-tdep.c: Likewise.
7751
ed9d4749
MS
77522002-05-16 Michael Snyder <msnyder@redhat.com>
7753
7754 * arm-tdep.c: Spelling fix in comment.
7755
2e276125
JB
77562002-05-16 Jim Blandy <jimb@redhat.com>
7757
6821892e
JB
7758 Add commands for manually expanding macros and showing their
7759 definitions.
7760 * macrocmd.c, macroscope.c, macroscope.h: New files.
7761 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7762 (macroscope_h): New variable.
7763 (HFILES_NO_SRCDIR): Add macroscope.h.
7764 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7765 (macroscope.o, macrocmd.o): New rules.
7766
2e276125
JB
7767 Teach the Dwarf 2 reader to read macro information.
7768 * dwarf2read.c: #include "macrotab.h".
7769 (dwarf_macinfo_buffer): New variable.
7770 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7771 dwarf_macinfo_size.
7772 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7773 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7774 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7775 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7776 dwarf2_macro_spaces_in_definition): New complaints.
7777 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7778 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7779 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7780 the partial symbol table.
7781 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7782 from what's recorded in the partial symbol table.
7783 (read_file_scope): If the compilation unit has a
7784 `DW_AT_macro_info' attribute, read its macro information.
7785 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7786
2f53fe6c
DJ
77872002-05-16 Daniel Jacobowitz <drow@mvista.com>
7788
7789 Fix PR gdb/546
7790 * ser-tcp.c: Don't include <netinet/udp.h>.
7791
2be99286
SC
77922002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7793
7794 * MAINTAINERS: Update my email address.
7795
c9af212b 77962002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7797
7798 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7799 include file of the same name.
7800
bf5f1a52
CV
78012002-05-16 Corinna Vinschen <vinschen@redhat.com>
7802
7803 * configure.tgt: Mark v850 as multi-arched.
7804 * config/v850/tm-v850.h: Remove file.
7805 * config/v850/v850.mt: Eliminate TM_FILE.
7806
435e042a
CV
78072002-05-16 Corinna Vinschen <vinschen@redhat.com>
7808
7809 * v850-tdep.c: Full multi-arch.
7810 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7811 Define GDB_MULTI_ARCH to 2.
7812
9819c6c8
PM
78132002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7814
7815 * p-exp.y (current_type): New static variable.
7816 Carries the type of the expression at the position that is parsed.
7817 (push_current_type, pop_current_type): Two new functions. Used
7818 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7819 (search_field): New static variable. Set to one after parsing a point
7820 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7821 (FIELDNAME): New token. After a point only a token belonging to
7822 current_type type definition is allowed.
7823 (all over token rules): reset and change current_type according
7824 to rules.
7825 (exp '[' rule): insert implicit array index field if
7826 exp is a pascal string type.
7827
3a06899a
CV
78282002-05-16 Corinna Vinschen <vinschen@redhat.com>
7829
7830 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7831 frame info. Use frame_info's saved_regs instead of matching member
7832 in extra_frame_info throughout.
7833 (v850_frame_init_saved_regs): New function.
7834 (v850_init_extra_frame_info): Move most functionality into
7835 v850_frame_init_saved_regs().
7836 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7837 (v850_frame_find_saved_regs): Remove declaration.
7838 (FRAME_FIND_SAVED_REGS): Remove definition.
7839 (v850_frame_init_saved_regs): Add declaration.
7840 (FRAME_INIT_SAVED_REGS): Add definition.
7841
6ed14b0e
CV
78422002-05-16 Corinna Vinschen <vinschen@redhat.com>
7843
7844 * v850-tdep.c: Begin multi-arch'ing v850.
7845 (v850_target_architecture_hook): Remove function.
7846 (v850_gdbarch_init): New function. Add code previously in
7847 v850_target_architecture_hook().
7848 (_initialize_v850_tdep): Don't set target_architecture_hook.
7849 Call register_gdbarch_init() instead.
7850
42725910
DJ
78512002-05-16 Daniel Jacobowitz <drow@mvista.com>
7852
7853 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7854 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7855 (fixup_class_method_type): Likewise.
7856
99d9066e
JB
78572002-05-15 Jim Blandy <jimb@redhat.com>
7858
7859 Add macro structures to GDB's symbol tables. Nobody puts anything
7860 in them yet.
7861 * symtab.h (struct symtab): New member: `macro_table'.
7862 * buildsym.h (pending_macros): New global variable.
7863 * buildsym.c: #include "macrotab.h".
7864 (buildsym_init): Initialize `pending_macros'.
7865 (end_symtab): If we found macro information while reading a CU's
7866 debugging info, do build a symtab structure for it. Make the
7867 symtab point to the macro information, and clear the
7868 `pending_macros' pointer which held it while we were reading the
7869 debug info.
7870 (really_free_pendings): Free any pending macro table.
7871 * objfiles.h (struct objfile): New member: `macro_cache'.
7872 * objfiles.c (allocate_objfile): Set allocate and free functions
7873 for the macro cache's objstack.
7874 (free_objfile): Empty the macro cache's obstack.
7875 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7876 set new allocate and free functions for it.
7877 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7878 free functions for the macro cache's objstack. (Why is this
7879 function building its own objfile?)
7880 * symmisc.c (print_objfile_statistics): Print statistics on the
7881 macro bcache.
7882 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7883
c899585b
RE
78842002-05-15 Richard Earnshaw <rearnsha@arm.com>
7885
7886 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7887 (REGISTER_U_ADDR): Delete definition.
7888 (arm_register_u_addr): Delete declaration.
7889
a6cdd8c5
RE
78902002-05-15 Richard Earnshaw <rearnsha@arm.com>
7891
7892 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7893 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7894
c97dcfc7
AC
78952002-05-14 Andrew Cagney <ac131313@redhat.com>
7896
7897 * regcache.c (register_valid): Revise comments refering to "Not
7898 available" and "unavailable".
7899 * frame.c (frame_register_read): Ditto.
7900 * findvar.c (value_of_register): Ditto.
7901
93021b7d
AC
79022002-05-15 Andrew Cagney <cagney@redhat.com>
7903
7904 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7905 (remote-sim.o): Update dependencies.
7906 (d10v-tdep.o): Specify dependencies.
7907 (sim_d10v_h): Define.
7908
a86bc61c
JB
79092002-05-14 Jim Blandy <jimb@redhat.com>
7910
7911 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7912 * macrotab.c (macro_lookup_inclusion, find_definition,
7913 new_macro_table): Same.
7914
7915 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7916 not `! strcmp ()'. This is a dubious improvement.
7917 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7918
7919 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7920 although it's not necessary, to avoid a warning.
7921
2fdde8f8
DJ
79222002-05-14 Daniel Jacobowitz <drow@mvista.com>
7923
7924 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7925 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7926 TYPE_INSTANCE_FLAGS.
7927 (struct main_type): New.
7928 (struct type): Move most members to struct main_type. Change
7929 cv_type and as_type to new type_chain member. Add instance_flags.
7930 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7931 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7932 (finish_cv_type): Remove prototype.
7933 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7934 Set TYPE_CHAIN.
7935 (alloc_type_instance): New function.
7936 (smash_type): New function.
7937 (make_pointer_type, make_reference_type, make_function_type)
7938 (smash_to_member_type, smash_to_method_type): Call smash_type.
7939 (make_qualified_type): New function.
7940 (make_type_with_address_space): Call make_qualified_type.
7941 (make_cv_type): Likewise.
7942 (finish_cv_type): Remove unnecessary function.
7943 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7944 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7945 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7946 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7947 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7948 * hpread.c (hpread_read_struct_type): Likewise.
7949 * stabsread.c (read_struct_type): Likewise.
7950
843fedf4
EZ
79512002-05-14 Elena Zannoni <ezannoni@redhat.com>
7952
7953 * configure.tgt: Add a catch all sh* target, for cases like
7954 sh[2,3,4]-elf and sh-hms.
7955
05a6c72c
KS
79562002-05-14 Keith Seitz <keiths@redhat.com>
7957
7958 * event-loop.c (create_file_handler): Don't do anything but
7959 update data when we are given a fd which we are already
7960 monitoring.
7961
5d085aaf
ML
79622002-05-14 Michal Ludvig <mludvig@suse.cz>
7963
7964 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7965 (update_context): Use __func__ in warnings.
7966
9db8d71f
DJ
79672002-05-14 Daniel Jacobowitz <drow@mvista.com>
7968
7969 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7970 and tcp_close to net_open and net_close.
7971 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7972 using UDP if requested. Don't try to disable Nagle on UDP
7973 sockets.
7974 * remote.c (remote_serial_open): New function. Warn about UDP.
7975 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7976
5dbc6baa
EZ
79772002-05-13 Elena Zannoni <ezannoni@redhat.com>
7978
7979 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7980
cc3023f7
EZ
79812002-05-13 Elena Zannoni <ezannoni@redhat.com>
7982
7983 * configure.tgt: Remove sh-hms target.
7984 * MAINTAINERS: Don't list sh-hms as a separate target.
7985
ec2bcbe7
JB
79862002-05-13 Jim Blandy <jimb@redhat.com>
7987
7988 Add first preprocessor macro-expansion files.
7989 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7990 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7991 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7992 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7993 (COMMON_OBS): Add macrotab.o, macroexp.o.
7994 (macroexp.o, macrotab.o): New rules.
7995
6d531722
AC
79962002-05-13 Andrew Cagney <ac131313@redhat.com>
7997
7998 * config/m88k/tm-m88k.h: Update copyright.
7999 (m88k_target_write_pc): Declare
8000 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8001 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8002 (SHIFT_INST_REGS): Update definition.
8003 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8004 using old definition of TARGET_WRITE_PC.
8005 * regcache.c (generic_target_write_pc): Delete code handling
8006 NNPC_REGNUM.
8007 * gdbarch.sh (NNPC_REGNUM): Delete.
8008 * gdbarch.h, gdbarch.c: Regenerate.
8009
3e3f2739
RE
80102002-05-13 Richard Earnshaw <rearnsha@arm.com>
8011
8012 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8013 builtin reg number.
8014
0004e5a2
DJ
80152002-05-13 Daniel Jacobowitz <drow@mvista.com>
8016
8017 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8018 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8019 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8020 access macros.
8021 * c-typeprint.c (cp_type_print_method_args): Likewise.
8022 (c_type_print_args): Likewise.
8023 * d10v-tdep.c (d10v_push_arguments): Likewise.
8024 (d10v_extract_return_value): Likewise.
8025 * expprint.c (print_subexp): Likewise.
8026 * gdbtypes.c (lookup_primitive_typename): Likewise.
8027 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8028 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8029 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8030 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8031 (TYPE_VECTOR): Likewise.
8032 * hpread.c (hpread_read_struct_type)
8033 (fix_static_member_physnames, fixup_class_method_type)
8034 (hpread_type_lookup): Likewise.
8035 * mdebugread.c (parse_symbol, parse_type): Likewise.
8036 * p-lang.c (is_pascal_string_type): Likewise.
8037 * valops.c (hand_function_call): Likewise.
8038 * x86-64-tdep.c (classify_argument): Likewise.
8039
8040 * hpread.c (hpread_read_function_type)
8041 (hpread_read_doc_function_type): Call replace_type.
8042 * dstread.c (create_new_type): Delete.
8043 (decode_dst_structure, process_dst_function): Call alloc_type.
8044 Use type access macros.
8045
dff95cc7
MK
80462002-05-12 Mark Kettenis <kettenis@gnu.org>
8047
8048 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8049 the're not supported by the current architecture.
8050 (i387_fill_fxsave): Likewise.
8051
bbcd32ad
FF
80522002-05-12 Fred Fish <fnf@redhat.com>
8053
8054 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8055 sect_index_xxx members to index the first slot in section_offsets
8056 if all of the section_offsets are zero.
8057
89cf4787
MK
80582002-05-12 Mark Kettenis <kettenis@gnu.org>
8059
8060 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8061 checked in with last change.
8062
1f77ffc5
MK
80632002-05-12 Mark Kettenis <kettenis@gnu.org>
8064
8065 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8066 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8067 config.sub.
8068
89b8b4a9
DJ
80692002-05-12 Daniel Jacobowitz <drow@mvista.com>
8070
8071 * Makefile.in: Update dependencies.
8072
14a5e767
AC
80732002-05-11 Andrew Cagney <ac131313@redhat.com>
8074
8075 * language.c (local_hex_string_custom): Simplify. Do not depend
8076 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8077
8078 * memattr.c (mem_info_command): Replace calls to
8079 longest_local_hex_string and longest_local_hex_string_custom.
8080 * buildsym.c (make_blockvector): Ditto.
8081 * solib.c (info_sharedlibrary_command): Ditto.
8082 * tracepoint.c (tracepoints_info): Ditto.
8083 * symtab.c (print_msymbol_info): Ditto.
8084
8085 * language.c (local_hex_string): Delete.
8086 (local_hex_string_custom): Delete.
8087 (longest_local_hex_string): Rename to local_hex_string.
8088 (longest_local_hex_string_custom): Rename to
8089 local_hex_string_custom.
8090 * language.h (local_hex_string): Change parameter type to LONGEST.
8091 (local_hex_string_custom): Ditto.
8092 (longest_local_hex_string): Delete declaration.
8093 (longest_local_hex_string_custom): Ditto.
8094
8095 * solib.c: Update copyright.
8096 * memattr.c: Update copyright.
8097
13d01224
AC
80982002-05-11 Andrew Cagney <ac131313@redhat.com>
8099
8100 * arch-utils.h (legacy_register_to_value): Declare.
8101 (legacy_value_to_register): Declare.
8102 (legacy_convert_register_p): Declare.
8103 * arch-utils.c (legacy_register_to_value): New function.
8104 (legacy_value_to_register): New function.
8105 (legacy_convert_register_p): New function.
8106
8107 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8108 (VALUE_TO_REGISTER): Define.
8109 (CONVERT_REGISTER_P): Define.
8110 * gdbarch.h, gdbarch.c: Regenerate.
8111
8112 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8113 VALUE_TO_REGISTER.
8114 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8115 CONVERT_REGISTER_P.
8116
4a1970e4
DJ
81172005-05-11 Daniel Jacobowitz <drow@mvista.com>
8118 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8119
8120 * Makefile.in: Update dependencies for valops.c.
8121 * valops.c: Include "gdb_assert.h".
8122 (typecmp): Skip THIS parameter to methods.
8123 (find_method_list): Remove static_memfuncp argument,
8124 update callers. Check for stub methods.
8125 (find_value_oload_method_list): Don't set *static_memfuncp.
8126 (find_overload_match): Don't check for stub methods. Assert
8127 that methods are not stubbed. Handle static methods.
8128 (value_find_oload_method_list): Remove static_memfuncp argument.
8129 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8130 to the argument list for static stub methods.
8131 * value.h (value_find_oload_method_list): Update prototype.
8132
b2e75d78
AC
81332002-05-11 Andrew Cagney <ac131313@redhat.com>
8134
8135 * arch-utils.h (generic_register_size): Declare.
8136 (generic_register_raw_size, generic_register_virtual_size): Delete
8137 declarations.
8138 * arch-utils.c (generic_register_raw_size): Delete.
8139 (generic_register_size): New function.
8140 (generic_register_virtual_size): Delete.
8141
8142 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8143 default generic_register_size.
8144 * gdbarch.h, gdbarch.c: Re-generate.
8145
8146 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8147 register_virtual_size.
8148 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8149 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8150
451fbdda
AC
81512002-05-11 Andrew Cagney <ac131313@redhat.com>
8152
8153 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8154 * gdbarch.h, gdbarch.c: Regenerate.
8155 * gnu-v3-abi.c: Update copyright.
8156 (vtable_address_point_offset): Update.
8157 (gnuv3_rtti_type): Update.
8158 (gnuv3_baseclass_offset): Update.
8159 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8160 (init_fetch_link_map_offsets): Update.
8161 * remote.c (get_remote_state): Update.
8162
6d2f5cea
DJ
81632002-05-11 Daniel Jacobowitz <drow@mvista.com>
8164
8165 * TODO: Remove value_headof/value_from_vtable_info comment.
8166 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8167 * values.c (value_headof, value_from_vtable_info): Delete.
8168 * value.h (value_from_vtable_info): Delete prototype.
8169
d2324da4
AC
81702002-05-11 Andrew Cagney <ac131313@redhat.com>
8171
8172 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8173 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8174 $(gdb_regex_h).
8175 (gdb_assert_h): Define.
8176 (gdb_wait_h): Define.
8177 (gdb_regex_h): Define.
8178
5c717440
DJ
81792002-05-11 Daniel Jacobowitz <drow@mvista.com>
8180
8181 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8182 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8183
6c7861b3
JT
81842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8185
8186 * nbsd-tdep.c: Fix comment.
8187
ea5bc2a6
JT
81882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8189
8190 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8191 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8192 (nbsd-tdep.o): New dependency list.
8193 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8194 nbsd-tdep.h.
8195 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8196 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8197 * nbsd-tdep.c: New file.
8198 * nbsd-tdep.h: New file.
8199 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8200 nbsd-tdep.h.
8201 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8202 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8203 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8204 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8205
b28da865
JT
82062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8207
8208 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8209 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8210 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8211 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8212 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8213 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8214
4b8ff1fa
JT
82152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8216
8217 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8218 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8219 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8220 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8221 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8222 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8223 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8224
dfe6eb1f
JT
82252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8226
8227 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8228 fetch_elfcore_registers to...
8229 * i386nbsd-tdep.c: ...here.
8230 (i386nbsd_use_struct_convention): Rename to...
8231 (i386nbsd_aout_use_struct_convention): ...this.
8232 (i386nbsd_supply_reg): New function.
8233 (i386nbsd_fill_reg): New function.
8234 (fetch_core_registers): Use i386nbsd_supply_reg.
8235 (fetch_elfcore_registers): Likewise.
8236 (_initialize_i386nbsd_tdep): New function.
8237 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8238 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8239 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8240 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8241 (i386nbsd_aout_use_struct_convention): ...this.
8242
20cb8cda
JT
82432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8244
8245 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8246 (store_inferior_registers): Use shnbsd_fill_reg.
8247 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8248 sh_nbsd_supply_register): Collapse into...
8249 (shnbsd_supply_reg): ...this.
8250 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8251 (shnbsd_fill_reg): ...this.
8252 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8253 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8254 (fetch_core_registers): Use shnbsd_supply_reg.
8255 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8256 (sh_nbsd_core_fns): Rename to...
8257 (shnbsd_core_fns): ...this.
8258 (sh_nbsd_elfcore_fns): Rename to...
8259 (shnbsd_elfcore_fns): ...this.
8260 (sh_nbsd_init_abi): Rename to...
8261 (shnbsd_init_abi): ...this.
8262 (_initialize_sh_nbsd_tdep): Rename to...
8263 (_initialize_shnbsd_tdep): ...this.
8264 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8265 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8266 sh_nbsd_fill_register): Remove prototypes.
8267 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8268
e750d25e
JT
82692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8270
8271 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8272 (i387-nat.o): Delete dependency list.
8273 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8274 (x86-64-linux-nat.o): Likewise.
8275 * i387-nat.c: Delete file, moving contents to...
8276 * i387-tdep.c: ...here.
8277 * i387-nat.h: Rename...
8278 * i387-tdep.h: ...to this.
8279 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8280 * i386-linux-nat.c: Likewise.
8281 * i386bsd-nat.c: Likewise.
8282 * i386gnu-nat.c: Likewise.
8283 * i386nbsd-nat.c: Likewise.
8284 * i386v4-nat.c: Likewise.
8285 * x86-64-linux-nat.c: Likewise.
8286 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8287 * config/i386/go32.mh (NATDEPFILES): Likewise.
8288 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8289 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8290 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8291 * config/i386/linux.mh (NATDEPFILES): Likewise.
8292 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8293 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8294 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8295 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8296
1aee598a
JT
82972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8298
8299 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8300 (alphanbsd-nat.o): Remove dependency list.
8301 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8302 * alphanbsd-nat.c: Delete. Contents moved to...
8303 * alphanbsd-tdep.c: ...here.
8304 (_initialize_alphanbsd_tdep): Register core functions.
8305 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8306
12bcb0fe
JT
83072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8308
8309 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8310 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8311 (alphanbsd-nat.o): Likewise.
8312 (alphabsd-tdep.o): New dependency list.
8313 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8314 (fill_gregset): Use alphabsd_fill_reg.
8315 (supply_fpregset): Use alphabsd_supply_fpreg.
8316 (fill_fpregset): Use alphabsd_fill_fpreg.
8317 (fetch_inferior_registers): Use struct reg and struct fpreg
8318 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8319 and alphabsd_supply_fpreg.
8320 (store_inferior_registers): Use struct reg and struct fpreg
8321 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8322 and alphabsd_fill_fpreg.
8323 * alphabsd-tdep.c: New file.
8324 * alphabsd-tdep.h: New file.
8325 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8326 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8327 alphabsd_supply_fpreg.
8328 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8329 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8330
361d1df0
EC
83312002-05-11 Eric Christopher <echristo@redhat.com>
8332
8333 * mips-tdep.c (mips_double_register_type): Fix thinko.
8334 (mips_single_register_type): Ditto.
8335 * MAINTAINERS: Add self.
8336
92dd7cee
MK
83372002-05-11 Mark Kettenis <kettenis@gnu.org>
8338
8339 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8340 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8341 right thing on architectures with different endianness and/or
8342 integer sizes.
8343
e27da16d
JT
83442002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8345
8346 From Christian Limpach <chris@Pin.LU>
8347 * configure.in: Change sed expression which comments out
8348 NATDEPFILES to also comment out continuation lines.
8349 * configure: Regenerate.
8350
ddde02bd
EZ
83512002-05-10 Elena Zannoni <ezannoni@redhat.com>
8352
8353 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8354 big patch.
8355
1c922164
EZ
83562002-05-10 Elena Zannoni <ezannoni@redhat.com>
8357
8358 * sh-tdep.c: Include correct file.
8359
283150cd
EZ
83602002-05-10 Elena Zannoni <ezannoni@redhat.com>
8361
8362 New support for sh64-elf (sh5) target.
8363
8364 * configure.tgt: For sh64-elf target, default to sh-elf.
8365
8366 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8367 (struct gdbarch_tdep): Add new fields for new registers and ABI
8368 info.
361d1df0 8369
283150cd
EZ
8370 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8371 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8372 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8373 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8374 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8375 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8376 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8377 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8378 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8379 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8380 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8381 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8382 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8383 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8384 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8385 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8386 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8387 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8388 sign_extend, sh64_nofp_frame_init_saved_regs,
8389 sh64_init_extra_frame_info, sh64_get_saved_register,
8390 sh64_extract_struct_value_address, sh64_pop_frame,
8391 sh64_push_arguments, sh64_extract_return_value,
8392 sh64_store_return_value, sh64_show_media_regs,
8393 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8394 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8395 sh_sh64_register_virtual_type,
8396 sh_sh64_register_convert_to_virtual,
8397 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8398 sh64_register_read, sh64_pseudo_register_write,
8399 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8400 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8401 sh64_do_pseudo_register, sh_compact_do_registers_info,
8402 sh64_do_registers_info, sh_gdbarch_init): New functions.
8403
3117ed25
EZ
84042002-05-10 Elena Zannoni <ezannoni@redhat.com>
8405
8406 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8407
2654e6d4
DJ
84082002-05-10 Daniel Jacobowitz <drow@mvista.com>
8409
8410 * linespec.c (decode_line_1): Check for a double quote after
8411 a filename correctly.
8412
9ab3e532
JB
84132002-05-10 Jim Blandy <jimb@redhat.com>
8414
8415 Properly track the size of the current objfile's .debug_line section.
8416 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8417 (DWARF_LINE_SIZE): New macro.
8418 (dwarf2_build_psymtabs_hard): Record the line section's size in
8419 the partial symbol table.
8420 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8421 symbol table.
8422
126fa72d
PS
84232002-05-10 Petr Sorfa <petrs@caldera.com>
8424
8425 * ia64-tdep.c: Handle breakpoints on L instruction type
8426 in MLX instruction bundle by moving the breakpoint to
8427 the third slot (X instruction type) as L holds only data.
8428
1f077a3e
KB
84292002-05-10 Kevin Buettner <kevinb@redhat.com>
8430
8431 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8432 (process_one_symbol): Complain about discarding local symbols
8433 due to a misplaced N_LBRAC entry.
8434
8120c9d5 84352002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8436
8437 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8438 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8439 decrease the depth we are at, in the case of templates.
361d1df0 8440
67b2c998
DJ
84412002-05-09 Daniel Jacobowitz <drow@mvista.com>
8442
8443 * mips-tdep.c (mips_float_register_type): New function.
8444 (mips_double_register_type): New function.
8445 (mips_print_register): Use them.
8446 (do_fp_register_row): Likewise.
8447
fd326606
DJ
84482002-05-09 Daniel Jacobowitz <drow@mvista.com>
8449
6609d9af 8450 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8451 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8452 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8453
bef35864
MS
84542002-05-09 Michael Snyder <msnyder@redhat.com>
8455
8456 * remote-rdp.c (remote_rdp_can_run): Remove.
8457
c55a3f73
TT
84582002-05-09 Tom Tromey <tromey@redhat.com>
8459
8460 * jv-valprint.c (java_val_print): Handle `char' as a special case
8461 of TYPE_CODE_INT.
8462
b8d5e71d
MS
84632002-05-09 Michael Snyder <msnyder@redhat.com>
8464
8465 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8466 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8467 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8468 str r(0123),[sp,#nn].
361d1df0 8469 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8470 order-independent by placing it in a loop.
8471
e2cd42dd
MS
84722002-05-06 Michael Snyder <msnyder@redhat.com>
8473
8474 * stabsread.c (read_type): Add recognition for new attribute:
8475 "@V;" means that an array type is actually a vector.
8476 This is analogous to the vector flag that's been added to dwarf2.
8477
3ce1502b
MK
84782002-05-09 Mark Kettenis <kettenis@gnu.org>
8479
8480 * i386-tdep.h (i386_abi): New enum.
8481 (struct gdbarch_tdep): Replace os_ident member with abi.
8482 (i386_gdbarch_register_os_abi): New prototype.
8483 * i386-tdep.c (i386_abi_names): New array.
8484 (process_note_abi_tag_sections): Removed.
8485 (process_note_sections): New function.
8486 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8487 (struct i386_abi_handler): New struct.
8488 (i386_abi_handler_list): New variable.
8489 (i386_gdbarch_register_os_abi): New function.
8490 (i386_gdbarch_init): Adapt for the changes given above.
8491
084c156a
DJ
84922002-05-08 Daniel Jacobowitz <drow@mvista.com>
8493
8494 * gregset.h: Say "GNU/Linux".
8495
6599f021
EZ
84962002-05-08 Elena Zannoni <ezannoni@redhat.com>
8497
8498 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8499 (build_gdbtypes): Build builtin_type_v2_float.
8500 (_initialize_gdbtypes): Register new builtin type.
8501
40af4b0c
AC
85022002-05-08 Andrew Cagney <ac131313@redhat.com>
8503
8504 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8505 (clear_gdbarch_swap): New function.
8506 (initialize_non_multiarch): Call.
8507 (gdbarch_update_p): Before calling init(), swap out and clear the
8508 existing architecture.
8509 * gdbarch.c: Regenerate.
8510
4fe84f46
JT
85112002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8512
8513 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8514 alphanbsd-tdep.c.
8515
4015edd1
JT
85162002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8517
8518 * sh-nbsd-nat.c: Rename to...
8519 * shnbsd-nat.c: ...this.
8520 * sh-nbsd-tdep.c: Rename to...
8521 * shnbsd-tdep.c: ...this.
8522 * sh-nbsd-tdep.h: Rename to...
8523 * shnbsd-tdep.h: ...this.
8524 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8525 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8526
0e2bd219
RE
85272002-05-08 Richard Earnshaw <rearnsha@arm.com>
8528
8529 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8530 concatenation for command help messages.
8531
13a38d45
JT
85322002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8533
8534 * NEWS: Note new sh*-*-netbsdelf* configuration.
8535 * configure.host: Set gdb_host_cpu to sh for all sh*.
8536 (sh*-*-netbsdelf*): New host.
8537 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8538 (sh*-*-netbsdelf*): New target.
8539 * sh-nbsd-nat.c: New file.
8540 * sh-nbsd-tdep.c: New file.
8541 * sh-nbsd-tdep.h: New file.
8542 * config/sh/nbsd.mh: New file.
8543 * config/sh/nbsd.mt: New file.
8544 * config/sh/nm-nbsd.h: New file.
8545 * config/sh/tm-nbsd.h: New file.
8546
d658f924
JT
85472002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8548
8549 * sh-tdep.c (sh_osabi_names): Declare.
8550 (process_note_abi_tag_sections): New function.
8551 (get_elfosabi): Ditto.
8552 (sh_gdbarch_register_os_abi): Ditto.
8553 (sh_dump_tdep): Ditto.
8554 _initialize_sh_tdep): Use gdbarch_register to register
8555 sh_gdbarch_init and sh_dump_tdep.
8556 * config/sh/tm-sh.h (sh_osabi): Declare.
8557 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8558
848cfffb
AC
85592002-05-07 Andrew Cagney <ac131313@redhat.com>
8560
8561 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8562 (thumb_scan_prologue): Ditto.
8563 (arm_find_callers_reg): Ditto.
8564 (arm_frame_chain): Ditto.
8565 (arm_init_extra_frame_info): Ditto.
8566 (arm_frame_saved_pc): Ditto.
8567 (arm_pop_frame): Ditto.
8568 (arm_push_return_address): New function.
8569 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8570 call_dummy_location, call_dummy_breakpoint_offset_p,
8571 call_dummy_breakpoint_offset, call_dummy_p,
8572 call_dummy_stack_adjust_p, call_dummy_words,
8573 sizeof_call_dummy_words, call_dummy_start_offset,
8574 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8575 call_dummy_address, push_return_address and push_dummy_frame for
8576 generic dummy frames.
8577
e7d717c0
JT
85782002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8579
8580 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8581 size computation for alloca.
8582 (sh_fp_frame_init_saved_regs): Likewise.
8583
7bbcf283
RE
85842002-05-07 Richard Earnshaw <rearnsha@arm.com>
8585
8586 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8587 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8588 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8589 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8590 * remote-rdp.c (remote_rdp_fetch_register): Use
8591 ARM_MAX_REGISTER_RAW_SIZE.
8592 (remote_rdp_store_register): Likewise.
8593
4657573b
ML
85942002-05-07 Michal Ludvig <mludvig@suse.cz>
8595
361d1df0 8596 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8597 added default labels to switch {} statements.
8598 * x86-64-tdep.c: Ditto.
8599 * x86-64-linux-nat.c: Ditto.
8600
010f3b2f
JT
86012002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8602
8603 * solib.h: Protect against multiple inclusion.
8604
debd256d
JB
86052002-05-06 Jim Blandy <jimb@redhat.com>
8606
9ab3e532
JB
8607 Add first preprocessor macro-expansion files.
8608 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8609 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8610 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8611 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8612 (COMMON_OBS): Add macrotab.o, macroexp.o.
8613 (macroexp.o, macrotab.o): New rules.
8614
debd256d
JB
8615 Separate the job of reading the line number info statement program
8616 header (...expialidocious) out into its own function.
8617 * dwarf2read.c (struct line_head, struct filenames, struct
8618 directories): Replace with...
8619 (struct line_header): New structure, containing the full
8620 contents of the statement program header, including the
8621 include directory and file name tables.
8622 (read_file_scope): If we have line number info, instead of just
8623 calling dwarf_decode_lines to do all the work, call
8624 dwarf_decode_line_header first to get a `struct line_header'
8625 containing the data in the statement program header, and then
8626 pass that to dwarf_decode_lines, which will pick up where that
8627 left off. Be sure to clean up the `struct line_header' object.
8628 (dwarf_decode_line_header, free_line_header, add_include_dir,
8629 add_file_name): New functions.
8630 (dwarf_decode_lines): Move all the code to read the statement
8631 program header into dwarf_decode_line_header. Take the line
8632 header it built as the first argument, instead of the offset to
8633 the compilation unit's line number info. Use the new `struct
8634 line_header' type instead of the old structures. No need to do
8635 cleanups here now, since we don't allocate anything.
8636 (dwarf2_statement_list_fits_in_line_number_section,
8637 dwarf2_line_header_too_long): New complaints.
8638
ac3aafc7
EZ
86392002-05-06 Elena Zannoni <ezannoni@redhat.com>
8640
8641 * gdbtypes.c (init_vector_type): New function.
8642 (build_builtin_type_vec128): Simplify the representation of SIMD
8643 registers.
8644 (build_gdbtypes): Initialize new builtin vector types.
8645 (_initialize_gdbtypes): Register new vector types with gdbarch.
8646 (builtin_type_v4_float, builtin_type_v4_int32,
8647 builtin_type_v8_int16, builtin_type_v16_int8,
8648 builtin_type_v2_int32, builtin_type_v4_int16,
8649 builtin_type_v8_int8): New (renamed) SIMD types.
8650
13e49980
MK
86512002-05-06 Mark Kettenis <kettenis@gnu.org>
8652
8653 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8654 (i387_fill_fxsave): Likewise.
8655
997b20b8
AO
86562002-05-05 Alexandre Oliva <aoliva@redhat.com>
8657
8658 * alpha-tdep.c (alpha_extract_return_value): Don't use
8659 non-constant array size in prototype.
8660
535c96ce
AC
86612002-05-04 Andrew Cagney <ac131313@redhat.com>
8662
8663 From Brian Taylor <briant at model dot com>:
8664 * ui-out.c (ui_out_field_core_addr): Use the function
8665 longest_local_hex_string_custom'to format addresses > 32 bits
8666 wide.
8667
8668 * ui-out.c (ui_out_field_core_addr): Update comment.
8669
bedfa57b
AC
86702002-05-04 Andrew Cagney <ac131313@redhat.com>
8671
8672 * stack.c (select_and_print_frame): Make static. Delete the
8673 parameter `level'.
8674 (func_command): Update call.
8675 (select_frame_command): Delete code computing the frame level.
8676 * frame.h (select_and_print_frame): Delete declaration.
8677
f621c63e
AC
86782002-05-04 Andrew Cagney <ac131313@redhat.com>
8679
8680 * sparc-tdep.c (sparc_get_saved_register): Comment why
8681 get_prev_frame call is safe.
8682
0f7d239c
AC
86832002-05-04 Andrew Cagney <ac131313@redhat.com>
8684
8685 * frame.h (select_frame): Delete level parameter.
8686 * stack.c (select_frame): Update. Use frame_relative_level to
8687 obtain the frame's level.
8688 (select_and_print_frame): Update call.
8689 (select_frame_command): Ditto.
8690 (up_silently_base): Ditto.
8691 (down_silently_base): Ditto.
8692 * ocd.c (ocd_start_remote): Ditto.
8693 * remote-rdp.c (remote_rdp_open): Ditto.
8694 * remote-mips.c (mips_initialize): Ditto.
8695 (common_open): Ditto.
8696 * remote-e7000.c (e7000_start_remote): Ditto.
8697 * m3-nat.c (select_thread): Ditto.
8698 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8699 (child_get_current_exception_event): Ditto.
8700 * varobj.c (varobj_create): Ditto.
8701 (varobj_update): Ditto.
8702 (c_value_of_root): Ditto.
8703 * tracepoint.c (finish_tfind_command): Ditto.
8704 * corelow.c (core_open): Ditto.
8705 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8706 * thread.c (info_threads_command): Ditto.
8707 (switch_to_thread): Ditto.
8708 * infrun.c (normal_stop): Ditto.
8709 (restore_selected_frame): Ditto.
8710 (restore_inferior_status): Ditto.
8711 * breakpoint.c (insert_breakpoints): Ditto.
8712 (watchpoint_check): Ditto.
8713 (bpstat_stop_status): Ditto.
8714 (do_enable_breakpoint): Ditto.
8715 * blockframe.c (flush_cached_frames): Ditto.
8716 (reinit_frame_cache): Ditto.
8717
71d6c7b1
AC
87182002-05-04 Andrew Cagney <ac131313@redhat.com>
8719
8720 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8721 maintainer.
8722
cda6c68a
JB
87232002-05-04 Jim Blandy <jimb@redhat.com>
8724
8725 * gdbtypes.c (replace_type): Doc fix.
8726
5c1c87f0
AC
87272002-05-04 Andrew Cagney <ac131313@redhat.com>
8728
8729 * valprint.c (strcat_longest): Delete commented out function.
8730 Update copyright.
8731
cd9bfe15
AC
87322002-05-04 Andrew Cagney <ac131313@redhat.com>
8733
8734 * MAINTAINERS: Mark a29k as deleted.
8735 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8736 Move new configurations to the top.
8737 * configure.tgt: Remove a29k.
8738 * config/a29k/tm-vx29k.h: Delete.
8739 * config/a29k/vx29k.mt: Delete.
8740 * config/a29k/tm-a29k.h: Delete.
8741 * config/a29k/a29k-udi.mt: Delete.
8742 * config/a29k/a29k.mt: Delete.
8743 * a29k-tdep.c: Delete.
8744 * remote-udi.c: Delete.
8745 * remote-mm.c: Delete.
8746 * remote-eb.c: Delete.
8747 * remote-adapt.c: Delete.
8748 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8749 * config/s390/s390x.mt: Ditto.
8750 * config/s390/s390.mt: Ditto.
8751 * config/sparc/sparclynx.mh: Ditto.
8752 * config/sparc/linux.mh: Ditto.
8753 * config/pa/hppaosf.mh: Ditto.
8754 * config/pa/hppabsd.mh: Ditto.
8755 * config/ns32k/nbsd.mt: Ditto.
8756 * config/mips/vr5000.mt: Ditto.
8757 * config/m68k/sun3os4.mh: Ditto.
8758 * config/m68k/nbsd.mt: Ditto.
8759 * config/m68k/m68klynx.mh: Ditto.
8760 * config/m32r/m32r.mt: Ditto.
8761 * config/i386/x86-64linux.mt: Ditto.
8762 * config/i386/nbsdelf.mt: Ditto.
8763 * config/i386/nbsd.mt: Ditto.
8764 * config/i386/i386lynx.mh: Ditto.
8765
bf0c5130
AC
87662002-05-04 Andrew Cagney <ac131313@redhat.com>
8767
8768 * target.c (debug_print_register): New function. Handle oversize
8769 registers.
8770 (debug_to_fetch_registers): Call.
8771 (debug_to_store_registers): Call.
8772
2ae1c2d2
JB
87732002-05-03 Jim Blandy <jimb@redhat.com>
8774
13a393b0
JB
8775 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8776 (read_type): Doc fix.
8777 * gdbtypes.c (replace_type): Doc fix.
8778
2ae1c2d2
JB
8779 * stabsread.c (multiply_defined_struct): New complaint.
8780 (read_struct_type): If the type we were passed isn't empty, or
8781 incomplete, don't read the new struct type into it; complain,
8782 and return the original type unchanged. Take a new `type_code'
8783 argument, which is the type code for the new type.
8784 (read_type): Rather than storing the type's type code here, pass
8785 it as an argument to read_struct_type, and let that take care of
8786 storing it. That way, we don't overwrite the original type code,
8787 so read_struct_type can use it to decide whether we're overwriting
8788 something we shouldn't.
8789 (complain_about_struct_wipeout): New function.
8790
8de9bdc4
AC
87912002-05-03 Andrew Cagney <ac131313@redhat.com>
8792
8793 * gdbarch.sh: Assert that gdbarch is non-NULL.
8794 * gdbarch.c: Regenerate.
8795
f773fdbb
JM
87962002-05-03 Jason Merrill <jason@redhat.com>
8797
8798 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8799 and return NULL.
8800
0e04a514
ML
88012002-05-03 Michal Ludvig <mludvig@suse.cz>
8802
8803 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8804 (x86_64_dwarf2gdb_regno_map_length),
8805 (x86_64_dwarf2_reg_to_regnum): Added.
8806 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8807 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8808 (_initialize_x86_64_tdep): Synced with the change above.
8809 (x86_64_skip_prologue): Reformulated message.
8810
065432a8
PM
88112002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8812
8813 * f-exp.y: Also use new prev_lexptr variable
8814 to improve error reporting. Based on Michael Snyder
8815 2002-04-24 dated patch to c-exp.y.
8816 * jv-exp.y: Likewise.
8817 * m2-exp.y: Likewise.
8818
a3162708
EZ
88192002-05-02 Elena Zannoni <ezannoni@redhat.com>
8820
8821 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8822 we are dealing with vectors.
8823
03620c38
PM
88242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8825
8826 * config/m68k/tm-nbsd.h: Obvious fix,
8827 correct machine name.
8828
6604db2e
PM
88292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8830
8831 * p-typeprint.c (pascal_type_print_base): Add support
8832 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8833
0906b739
PM
88342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8835
8836 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8837 for fondamental pascal 'char' type.
8838
e2625b33
PM
88392002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8840
8841 * p-lang.h (is_pascal_string_type): Declaration changed,
8842 new sixth argument of type char ** added.
361d1df0 8843 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8844 changed. Args length_pos, length_size, string_pos, char_size
8845 can now be NULL. New argument arrayname set to the field
8846 name of the char array. Return value set to char array
8847 field index plus one.
361d1df0 8848 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8849 is_pascal_string_type function.
8850
cf17c188
AC
88512002-05-02 Andrew Cagney <cagney@redhat.com>
8852
8853 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8854 <cagney@redhat.com> change.
8855 * gdbarch.c: Regenerate.
8856
52bca491
AC
88572002-05-02 Andrew Cagney <cagney@redhat.com>
8858
8859 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8860 before probing for a new one. Detect errorenous gdbarch_init
8861 functions.
8862 * gdbarch.c: Regenerate.
8863
d5e72505
AC
88642002-05-01 Andrew Cagney <cagney@redhat.com>
8865
8866 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8867 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8868 * config/v850/tm-v850.h: Ditto. Update copyright.
8869
af566d9f
AC
88702002-04-30 Andrew Cagney <ac131313@redhat.com>
8871
8872 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8873 current_gdbarch.
8874
880d85fa
MS
88752002-04-30 Michael Snyder <msnyder@redhat.com>
8876
94c30b78
MS
8877 * arm-tdep.c: Whitespace clean-ups.
8878 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8879 should have been removed as part of 4/24 change.
8880
6f5987a6
KB
88812002-04-30 Kevin Buettner <kevinb@redhat.com>
8882
8883 * rs6000-tdep.c: Added comment describing how fpscr register
8884 numbers were chosen.
8885
1a113c93
MS
88862002-04-30 Michael Snyder <msnyder@redhat.com>
8887
8888 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8889
9a6f53fe
EZ
88902002-04-29 Elena Zannoni <ezannoni@redhat.com>
8891
8892 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8893 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8894 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8895
11ed25ac
KB
88962002-04-29 Kevin Buettner <kevinb@redhat.com>
8897
8898 From Louis Hamilton <hamilton@redhat.com>:
8899 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8900 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8901 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8902 not bfd-private xcoff data, to determine wordsize.
8903 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8904
ae232405
AC
89052002-04-29 Andrew Cagney <ac131313@redhat.com>
8906
8907 GDB 5.2 released from 5.2 branch.
8908
91fd20f7
ML
89092002-04-29 Michal Ludvig <mludvig@suse.cz>
8910
8911 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8912 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8913 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8914
2dc5091b
EZ
89152002-04-29 Elena Zannoni <ezannoni@redhat.com>
8916
8917 * rs6000-tdep.c (rs6000_extract_return_value,
8918 rs6000_store_return_value): Handle returning vectors.
8919 (rs6000_gdbarch_init): Use
8920 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8921 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8922 New function.
8923 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8924 vectors.
8925 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8926 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8927
2b9848d8
PM
89282002-04-24 Pierre Muller <ics.u-strasbg.fr>
8929
8930 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8931 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8932 with fprintf_unfiltered (gdb_stderr,...).
8933
f8d17dc5
PM
89342002-04-24 Pierre Muller <ics.u-strasbg.fr>
8935
8936 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8937 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8938 Replace fprintf (stderr,...
8939 with fprintf_unfiltered (gdb_stderr,....
8940 * remote-es.c: Likewise.
8941 * remote-os9k.c: Likewise.
8942 * remote-st.c: Likewise.
8943
2f2f1ad1
AS
89442002-04-28 Andreas Schwab <schwab@suse.de>
8945
8946 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8947 linux-proc.o and gcore.o.
8948
b6779aa2
AC
89492002-04-26 Michal Ludvig <mludvig@suse.cz>
8950
8951 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8952 code without frame pointers.
8953
7e57f5f4
AC
89542002-04-26 Andrew Cagney <ac131313@redhat.com>
8955
8956 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8957 ON_STACK is needed.
8958
2ceb85d0
BE
89592002-04-26 Ben Elliston <bje@redhat.com>
8960
8961 * target.c (do_xfer_memory): Correct reference to the new option
8962 "trust-readonly-sections".
8963
f5f8a009
EZ
89642002-04-26 Elena Zannoni <ezannoni@redhat.com>
8965
8966 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8967 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8968 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8969 vectors.
8970 (read_array_type): Record the fact that this array type is really a
8971 vector (i.e. are passed in by value).
8972
5868c862
JT
89732002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8974
8975 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8976 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8977 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8978 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8979 * alpha-linux-tdep.c: Include frame.h.
8980 (alpha_linux_sigcontext_addr): New function.
8981 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8982 alpha_linux_sigcontext_addr.
8983 * alpha-osf1-tdep.c: Include gdbcore.h.
8984 (alpha_osf1_sigcontext_addr): New function.
8985 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8986 alpha_osf1_sigcontext_addr.
8987 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8988 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8989
bfb01f37
AC
89902002-04-26 Andrew Cagney <ac131313@redhat.com>
8991
361d1df0 8992 * stack.c (selected_frame_level):
bfb01f37
AC
8993 (select_frame): Do not set selected_frame_level.
8994 * frame.h (selected_frame_level): Delete declaration.
8995
15813d3f
AC
89962002-04-26 Andrew Cagney <ac131313@redhat.com>
8997
8998 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8999 convert_from_func_ptr-addr when AIX / PowerOpen.
9000
6096c27a
AC
90012002-04-25 Andrew Cagney <ac131313@redhat.com>
9002
9003 * valops.c (hand_function_call): Call
9004 generic_save_call_dummy_addr.
9005 * frame.h (generic_save_call_dummy_addr): Declare.
9006 * blockframe.c (struct dummy_frame): Add fields call_lo and
9007 call_hi.
9008 (generic_find_dummy_frame): Check for PC in range call_lo to
9009 call_hi instead of entry_point_address.
9010 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9011 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9012 (generic_save_call_dummy_addr): New function.
9013
f510d44e
DM
90142002-04-24 David S. Miller <davem@redhat.com>
9015
9016 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9017 sparc_skip_prologue.
9018 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9019 information to find prologue when possible.
9020 (sparc_prologue_frameless_p): Call examine_prologue directly.
9021 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9022 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9023 second argument.
9024 (SKIP_PROLOGUE): Likewise.
9025
15d72a92
JT
90262002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9027
9028 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9029 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9030 indicate that the condition it was testing is always true.
9031 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9032 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9033 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9034
accc6d1f
JT
90352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9036
9037 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9038 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9039 tdep->jb_pc and tdep->jb_elt_size.
9040 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9041 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9042 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9043 * alpha-nat.c (get_longjmp_target): Remove.
9044 (JB_ELEMENT_SIZE): Ditto.
9045 (JB_PC): Ditto.
9046 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9047 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9048 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9049 to alpha_get_longjmp_target.
9050 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9051 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9052 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9053
1bfdc549
AC
90542002-04-25 Andrew Cagney <ac131313@redhat.com>
9055
9056 * README: Update to GDB 5.2.
9057
1bd316f0
AC
90582002-04-25 Andrew Cagney <ac131313@redhat.com>
9059
9060 * gdbarch.sh (LC_ALL): Set to `c'.
9061
2e5ff58c
TR
90622002-04-25 Theodore A. Roth <troth@verinet.com>
9063
9064 * avr-tdep.c: Ran through gdb_indent.sh.
9065
e33ce519
TR
90662002-04-25 Theodore A. Roth <troth@verinet.com>
9067
9068 * MAINTAINERS: Add myself as AVR maintainer.
9069 * NEWS: Note new target avr.
9070
8818c391
TR
90712002-04-25 Theodore A. Roth <troth@verinet.com>
9072
9073 * Makefile.in: Add support for AVR target.
9074 * configure.tgt: Add support for AVR target.
9075 * avr-tdep.c: New file
9076 * config/avr/avr.mt: New file.
9077
79509c2d
TR
90782002-04-25 Theodore A. Roth <troth@verinet.com>
9079
9080 * MAINTAINERS: Add myself to write-after-approval.
9081
dac8068e
PM
90822002-04-24 Pierre Muller <ics.u-strasbg.fr>
9083
9084 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9085 with fprintf_unfiltered (gdb_stderr,....
9086
25bf3106
PM
90872002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9088
9089 Fix PR gdb/508.
9090 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9091
24467a86
PM
90922002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9093
9094 * p-exp.y: Also use new prev_lexptr variable
9095 to improve error reporting. Based on Michael Snyder
9096 2002-04-24 dated patch to c-exp.y.
9097
95b80706
JT
90982002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9099
9100 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9101 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9102 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9103 to 0.
9104 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9105 and struct value.
9106 (FUNCTION_START_OFFSET): Remove.
9107 (BREAKPOINT): Ditto.
9108
e90cc612
JT
91092002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9110
9111 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9112 * NEWS: Ditto.
9113
6c72f9f9
JT
91142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9115
9116 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9117 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9118 alpha_linux_pc_in_sigtramp.
9119 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9120 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9121 alpha_osf1_pc_in_sigtramp.
9122 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9123 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9124 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9125 alphafbsd_pc_in_sigtramp.
9126 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9127 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9128 alphanbsd_pc_in_sigtramp.
9129 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9130 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9131
5e4f3379
JT
91322002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9133
9134 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9135
da8ca43d
JT
91362002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9137
9138 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9139 alphanbsd-tdep.c.
9140 (alphanbsd-nat.o): New dependency list.
9141 (alphanbsd-tdep.o): Ditto.
9142 * NEWS: Note new native NetBSD/alpha configuration.
9143 * alphanbsd-nat.c: New file.
9144 * alphanbsd-tdep.c: Ditto.
9145 * configure.host (alpha*-*-netbsd*): New host.
9146 * configure.tgt (alpha*-*-netbsd*): New target.
9147 * config/alpha/nbsd.mh: New file.
9148 * config/alpha/nbsd.mt: Ditto.
9149 * config/alpha/nm-nbsd.h: Ditto.
9150 * config/alpha/tm-nbsd.h: Ditto.
9151
36a6271d
JT
91522002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9153
9154 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9155 (alpha-osf1-tdep.o): New dependency list.
9156 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9157 and skip_sigtramp_frame members.
9158 * alpha-linux-tdep.c: Include gdbcore.h.
9159 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9160 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9161 * alpha-osf1-tdep.c: New file.
9162 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9163 alpha-osf1-dep.c.
9164 (alpha_frame_past_sigtramp_frame): New function.
9165 (alpha_dynamic_sigtramp_offset): Ditto.
9166 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9167 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9168 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9169 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9170 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9171 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9172 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9173 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9174 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9175 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9176 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9177 to find_solib_trampoline_target.
9178 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9179 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9180 (SKIP_TRAMPOLINE_CODE): Remove.
9181 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9182 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9183 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9184 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9185 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9186 (PROC_SIGTRAMP_MAGIC): Ditto.
9187 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9188 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9189 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9190 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9191 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9192
2f4bc57b
JT
91932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9194
9195 * NEWS: Note that Alpha targets are now multi-arch.
9196
665132f9
MS
91972002-04-24 Michael Snyder <msnyder@redhat.com>
9198
9199 * parser-defs.h (prev_lexptr): New external variable.
9200 * parse.c (parse_exp_1): Set prev_lexptr to null before
9201 calling the language-specific parser.
9202 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9203 (yyerror): Use prev_lexptr in error reporting.
9204
32872fa7
DJ
92052002-04-24 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9208 * gregset.h: If FILL_FPXREGSET is defined, provide
9209 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9210 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9211 is defined, call fill_fpxregset.
9212
57e76fac
MS
92132002-04-24 Roland McGrath <roland@frob.com>
9214
9215 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9216 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9217 (supply_gregset, supply_fpregset): New functions.
9218
9219 * gnu-nat.c (gnu_find_memory_regions): New function.
9220 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9221 (gnu_xfer_memory): Add a cast.
9222
f43845b3
MS
92232002-04-24 Michael Snyder <msnyder@redhat.com>
9224
361d1df0 9225 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9226 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9227 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9228 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9229 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9230 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9231
a0abec03
AC
9232Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9233
9234 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9235 NUM_PSEUDO_REGS can be used.
9236
d7bd68ca
AC
92372002-04-24 Andrew Cagney <ac131313@redhat.com>
9238
9239 * arch-utils.h: Update copyright.
9240
9241 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9242 * gdbarch.h, gdbarch.c: Re-generate.
9243
9244 * inferior.h (IN_SIGTRAMP): Delete definition.
9245 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9246 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9247
9248 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9249 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9250 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9251 (find_proc_framesize): Ditto.
9252 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9253 (alpha_init_extra_frame_info): Ditto.
9254 * infrun.c (handle_inferior_event): Ditto.
9255 (handle_inferior_event): Ditto.
9256 (check_sigtramp2): Ditto.
9257 * blockframe.c (create_new_frame): Ditto.
9258 (get_prev_frame): Ditto.
9259 * ppc-linux-tdep.c: Update comments.
9260 * i386-linux-tdep.c: Update comments.
9261 * breakpoint.c (bpstat_what): Update comment.
9262
4867e41e
DM
92632002-04-24 David S. Miller <davem@redhat.com>
9264
21d83aa5
DM
9265 * i960-tdep.c (register_in_window_p): New function.
9266 (i960_find_saved_register): Use it instead of
9267 REGISTER_IN_WINDOW_P.
9268 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9269
4867e41e
DM
9270 * symtab.h (find_stab_function_addr): Kill extern.
9271 * minsyms.c (find_stab_function_addr): Remove from here...
9272 * dbxread.c: ... to here, and mark it static.
9273
69cdf6a2
DM
92742002-04-20 David S. Miller <davem@redhat.com>
9275
9276 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9277 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9278
5a595886
DM
92792002-04-21 David S. Miller <davem@redhat.com>
9280
9281 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9282 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9283 (vx_write_register): Likewise.
9284
1da1a192
JB
92852002-04-23 J. Brobecker <brobecker@gnat.com>
9286
9287 * source.c (is_regular_file): New function.
9288 (openp): Check wether file to open is a regular file
9289 to avoid opening directories.
9290
baa6f10b
JT
92912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9292
9293 * findvar.c (extract_signed_integer): Cast printf argument
9294 to suppress format warning.
9295 (extract_unsigned_integer): Likewise.
9296 * infcmd.c (registers_info): Likewise.
9297 * top.c (get_prompt_1): Likewise.
9298 * valops.c (value_assign): Likewise.
9299 * valprint.c (print_decimal): Likewise.
9300
b2c4da81
L
93012002-04-22 H.J. Lu (hjl@gnu.org)
9302
9303 * c-exp.y (typebase): Support
361d1df0 9304
b2c4da81
L
9305 [long|long long|short] [signed|unsigned] [int|]
9306
9307 and
9308
9309 signed [long|long long|short] int
9310
f267bd6a
JT
93112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9312
9313 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9314 and vax-tdep.h.
9315 * vax-tdep.h: New file.
9316 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9317 Make several routines static.
9318 (vax_get_saved_register): New function.
9319 (vax_gdbarch_init): New function.
9320 (_initialize_vax_tdep): Register vax_gdbarch_init.
9321 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9322 Remove macros now under the control of gdbarch.
9323
da3c6d4a
MS
93242002-04-22 Michael Snyder <msnyder@redhat.com>
9325
11d3b27d
MS
9326 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9327 Some whitespace and coding standards tweaks.
da3c6d4a 9328
a33f7558
JT
93292002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9330
9331 * vax-tdep.c: Include regcache.h.
9332 (vax_call_dummy_words): New.
9333 (sizeof_vax_call_dummy_words): New.
9334 (vax_fix_call_dummy): New function.
9335 (vax_saved_pc_after_call): Ditto.
9336 * config/vax/tm-vax.h: Don't include regcache.h.
9337 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9338 (CALL_DUMMY): Remove.
9339 (CALL_DUMMY_WORDS): Define.
9340 (SIZEOF_CALL_DUMMY_WORDS): Define.
9341 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9342
47a73475
MS
93432002-04-18 Michael Snyder <msnyder@redhat.com>
9344
9345 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9346
52efde73
JT
93472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9348
9349 * vax-tdep.c (vax_frame_chain): New function.
9350 (vax_push_dummy_frame): Ditto.
9351 (vax_pop_frame): Ditto.
9352 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9353 (FRAMELESS_FUNCTION_INVOCATION): Use
9354 generic_frameless_function_invocation_not.
9355 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9356 (POP_FRAME): Use vax_pop_frame.
9357
ea74468c
JT
93582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9359
9360 * vax-tdep.c (vax_store_struct_return): New function.
9361 (vax_extract_return_value): Ditto.
9362 (vax_store_return_value): Ditto.
9363 (vax_extract_struct_value_address): Ditto.
9364 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9365 vax_store_struct_return.
9366 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9367 (STORE_RETURN_VALUE): Use vax_store_return_value.
9368 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9369
5516aa92
JT
93702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9371
9372 * vax-tdep.c (vax_frame_saved_pc): New function.
9373 (vax_frame_args_address_correct): Ditto.
9374 (vax_frame_args_address): Ditto.
9375 (vax_frame_locals_address): Ditto.
9376 (vax_frame_num_args): Move code to be in proximity to
9377 other frame-related functions.
9378 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9379 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9380 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9381 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9382 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9383
36af0b35
L
93842002-04-22 H.J. Lu (hjl@gnu.org)
9385
9386 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9387 includedir.
9388
ab62c900
JT
93892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9390
9391 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9392 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9393 (FRAME_INIT_SAVED_REGS): New macro.
9394
7232b100
JT
93952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9396
9397 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9398
b70d2aee
JT
93992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9400
9401 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9402 where needed.
9403 (fetch_osf_core_registers): Likewise.
9404 (supply_gregset): Likewise.
9405
a0e8a2d1 94062002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9407
a0e8a2d1
JB
9408 * symfile.h (get_section_index): Define.
9409 * symfile.c (get_section_index): New function.
9410 * mdebugread.c (SC_IS_SBSS): New macro.
9411 (SC_IS_BSS): Return true for the scBss storage class only, as
9412 the scSBss storage class refers to the .sbss section.
9413 (parse_partial_symbols): Discard the symbols which associated
9414 section does not exist.
9415 Make sure to use the .sbss section index for symbols which
9416 storage class is scBss, rather than using the .bss section index.
9417
51eb8b08
JT
94182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9419
9420 * vax-tdep.c: Update copyright years.
9421 (vax_register_name): New function.
9422 (vax_register_byte): Ditto.
9423 (vax_register_raw_size): Ditto.
9424 (vax_register_virtual_size): Ditto.
9425 (vax_register_virtual_type): Ditto.
9426 * config/vax/tm-vax.h: Update copyright years.
9427 (REGISTER_NAMES): Remove.
9428 (REGISTER_NAME): Define.
9429 (REGISTER_BYTE): Use vax_register_byte.
9430 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9431 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9432 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9433
6cc1c0a8
AC
94342002-04-21 Andrew Cagney <ac131313@redhat.com>
9435
9436 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9437 declaration
9438 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9439
9319a2fe
DM
94402002-04-21 David S. Miller <davem@redhat.com>
9441
9442 * arch-utils.c (generic_prologue_frameless_p): Kill
9443 SKIP_PROLOGUE_FRAMELESS_P code.
9444 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9445 references.
9446 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9447 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9448 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9449 references.
9450 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9451 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9452 (sparc_gdbarch_init): Pass it to
9453 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9454
e9ed6d01
JT
94552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9456
9457 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9458 (alphabsd-nat.o): New dependency list.
9459
36012033
JT
94602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9461
9462 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9463 alphafbsd-tdep.c.
9464 (alpha-linux-tdep.o): New dependency list.
9465 (alphafbsd-tdep.o): Likewise.
9466
3379287a
JT
94672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9468
9469 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9470 to here...
9471 * alpha-tdep.c: ...from here.
9472 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9473
4bcbd6cb
JT
94742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9475
9476 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9477 prototype from here...
9478 * alpha-tdep.h: ...to here.
9479
b31da25e
AC
94802002-04-21 Andrew Cagney <ac131313@redhat.com>
9481
9482 * frame.h (selected_frame_level): Document as deprecated.
9483 (frame_relative_level): Declare.
9484 * stack.c (frame_relative_level): New function.
9485 (selected_frame_level): Document as deprecated.
9486 (select_frame): Do not set the selected_frame_level.
9487
9488 * stack.c (frame_info, record_selected_frame): Update.
9489 (frame_command, current_frame_command): Update.
9490 (up_silently_base, up_command, down_silently_base): Update.
9491 (down_command): Update.
9492 * inflow.c (kill_command): Update.
9493 * tracepoint.c (finish_tfind_command): Update.
9494 * corelow.c (core_open): Update.
9495 * thread.c (info_threads_command): Update.
9496 (do_captured_thread_select): Update.
9497 * infcmd.c (finish_command): Update.
9498 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9499
9c1d6fe5
JT
95002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9501
9502 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9503
ab89facf
AC
95042002-04-21 Andrew Cagney <ac131313@redhat.com>
9505
9506 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9507 type const.
9508
82a4efa1
JT
95092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9510
9511 * alphafbsd-tdep.c: Update copyright years. Include
9512 alpha-tdep.h.
9513 (alphafbsd_use_struct_convention): Make static.
9514 (alphafbsd_init_abi): New function.
9515 (_initialize_alphafbsd_tdep): New function.
9516 * config/alpha/tm-fbsd.h: Update copyright years.
9517 (USE_STRUCT_CONVENTION): Remove.
9518
44dffaac
JT
95192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9520
9521 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9522 an Alpha ABI variant.
9523 (alpha_abi_handler_list): Declare.
9524 (alpha_gdbarch_register_os_abi): New function.
9525 (alpha_gdbarch_init): Give registered ABI variant handlers a
9526 chance to tweak the gdbarch once we have set up defaults.
9527 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9528
65585be4
JT
95292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9530
9531 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9532 to standard_coerce_float_to_double.
9533 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9534
d9b023cc
JT
95352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9536
9537 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9538 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9539 from gdbarch_tdep rather than a constant.
9540 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9541 the default text address for all Alpha Unix ABIs.
9542 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9543 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9544
dc129d82
JT
95452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9546
9547 * alpha-tdep.h: New file. Includes several Alpha target constants
9548 taken from...
9549 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9550 let gdbarch deal with.
9551 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9552 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9553 to dependency list.
9554 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9555 Alpha target register names.
9556 * alphabsd-nat.c: Likewise.
9557 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9558 Alpha target register names. Make serveral routines static.
9559 (alpha_get_saved_register): New function.
9560 (alpha_abi_names): New.
9561 (process_note_abi_tag_sections): New function.
9562 (get_elfosabi): New function.
9563 (alpha_gdbarch_init): New function.
9564 (alpha_dump_tdep): New function.
9565 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9566
d49d1e0a
AC
95672002-04-21 Andrew Cagney <ac131313@redhat.com>
9568
9569 * frame.c (find_saved_register): Delete #ifdef
9570 HAVE_REGISTER_WINDOWS code.
9571 * config/sparc/tm-sparc.h: Update comments.
9572 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9573
92e8c9ed
AC
95742002-04-21 Andrew Cagney <ac131313@redhat.com>
9575
9576 * i960-tdep.c (i960_find_saved_register): New function.
9577 (i960_get_saved_register): New function.
9578 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9579 (i960_get_saved_register): Declare.
9580 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9581
e1925118
DM
95822002-04-20 David S. Miller <davem@redhat.com>
9583
9584 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9585
29673b29
AC
95862002-04-20 Andrew Cagney <ac131313@redhat.com>
9587
9588 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9589 instead of NUM_PSEUDO_REGS.
9590
6c86dcd5
DM
95912002-04-20 David S. Miller <davem@redhat.com>
9592
9593 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9594 GDB_MULTI_ARCH_PARTIAL
9595 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9596 define, let tm-sp64.h do it.
9597
aa40ec90
JT
95982002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9599
9600 * frame.c (find_saved_register): Avoid a NULL pointer
9601 dereference and actually walk the frame list.
9602
0f79675b
AC
96032002-04-20 Andrew Cagney <ac131313@redhat.com>
9604
9605 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9606 sorted in most most-recent-used order. Document.
9607 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9608
f91305dd 96092002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9610
9611 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9612 instead of ->prev.
9613 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9614 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9615 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9616 instead of ->prev.
9617
73d322b1
EZ
96182002-04-19 Elena Zannoni <ezannoni@redhat.com>
9619
9620 Fix PR gdb/471.
9621 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9622 (build_builtin_type_vec128): Ditto.
9623 (append_composite_type_field): Fix calculation of type length in
9624 union case.
9625
ccd9a834
EZ
96262002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9627
9628 * config/djgpp/README: Update.
9629
9630 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9631 compiler warnings.
9632
a57f9e49
JT
96332002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9634
9635 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9636 (alpha_setup_arbitrary_frame): ...to this.
9637 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9638 for alpha_setup_arbitrary_frame.
9639
f4f9705a
AC
96402002-04-18 Andrew Cagney <cagney@redhat.com>
9641
9642 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9643 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9644
f4f9705a
AC
9645 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9646 * target.h (memory_breakpoint_from_pc): Update declaration.
9647 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9648
9649 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9650 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9651 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9652 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9653 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9654 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9655 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9656 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9657 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9658 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9659 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9660 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9661
9662 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9663 const pointer.
9664 * monitor.c (monitor_insert_breakpoint): Ditto.
9665 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9666
9667 * config/mcore/tm-mcore.h: Update copyright.
9668 * mem-break.c: Ditto.
9669 * xstormy16-tdep.c: Ditto.
9670
29f319b8
PM
96712002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9672
9673 * p-exp.y: Add precedence rule for '^' token.
9674 This removes the shift/reduce conflicts.
9675 Remove the comment concerning these shift/reduce conflicts.
9676
ebeac11a
EZ
96772002-04-18 Elena Zannoni <ezannoni@redhat.com>
9678
9679 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9680 (registers_powerpc_nofp): New register set for processors
9681 without floating point unit.
9682
27c31547
DM
96832002-04-18 David S. Miller <davem@redhat.com>
9684
9685 * MAINTAINERS: Add myself to write-after-approval.
9686
47a73475
MS
96872002-04-17 Michael Snyder <msnyder@redhat.com>
9688
9689 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9690
953836b2
AC
96912002-04-17 Andrew Cagney <ac131313@redhat.com>
9692
9693 * rs6000-tdep.c (frame_initial_stack_address): Use
9694 frame_register_read to read the alloca_reg.
9695
8b0d4340
AC
96962002-04-17 Andrew Cagney <ac131313@redhat.com>
9697
9698 * frame.c (find_saved_register): Find saved registers in the next
9699 not prev frame.
9700 Fix PR gdb/365.
9701
d8864532
AC
97022002-04-17 Andrew Cagney <ac131313@redhat.com>
9703
9704 * gdbarch.sh (LANG): Set to ``c''.
9705
36cc83a3 97062002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9707
36cc83a3 9708 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9709
2f4150cc 97102002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9711
9712 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9713 Update copyright.
9714
628703c6 9715 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9716 Also fix PR gdb/391.
361d1df0 9717
56157b4a
AC
97182002-04-14 Andrew Cagney <ac131313@redhat.com>
9719
9720 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9721 * aclocal.m4, configure: Re-generate.
9722 Fix PR gdb/391.
361d1df0 9723
6d1e3329
EZ
97242002-04-14 Elena Zannoni <ezannoni@redhat.com>
9725
9726 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9727 instead of tm_print_insn.
9728
cb06fa07
EZ
97292002-04-14 Elena Zannoni <ezannoni@redhat.com>
9730
9731 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9732
f208ba17
AC
97332002-04-14 Andrew Cagney <ac131313@redhat.com>
9734
9735 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9736 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9737 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9738
20f01a46
DH
97392002-04-12 Don Howard <dhoward@redhat.com>
9740
9741 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9742 max_user_call_depth.
9743 (init_cmd_lists): Initialize the new value;
9744 * cli/cli-script.c (execute_user_command): Limit the call depth of
9745 user defined commands. This avoids a core-dump when user commands
9746 are infinitly recursive.
9747
a88376a3
KB
97482002-04-12 Kevin Buettner <kevinb@redhat.com>
9749
9750 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9751 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9752 from tdep struct instead of DEFAULT_LR_SAVE.
9753 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9754 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9755 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9756
f2172603
MS
97572002-04-12 Michael Snyder <msnyder@redhat.com>
9758
694f61fb 9759 * Remote.c: Spelling fix.
20fe79c8
MS
9760 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9761 If no symbol found for "sbrk", try "_sbrk".
9762 (make_output_phdrs): Use bfd_section_name.
9763 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9764 * eval.c: Indentation fix-ups.
169a7369
MS
9765 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9766 in case it gets applied to an address that is already
9767 in the instruction space.
de74f71f
MS
9768 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9769 * symfile.c: Fix indentation, long lines.
f2172603
MS
9770 * source.c: White space fix-up.
9771
cda5a58a
AC
97722002-04-12 Andrew Cagney <cagney@redhat.com>
9773
9774 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9775 * frame.c (frame_register_read): New function. Return non-zero on
9776 success.
9777 (read_relative_register_raw_bytes_for_frame): Delete.
9778 (read_relative_register_raw_bytes): Delete.
9779 * frame.h (frame_register_read): Declare.
9780 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9781 * sh-tdep.c: Ditto.
9782 * infcmd.c (do_registers_info): Ditto.
9783 * hppa-tdep.c: Ditto.
9784 * rs6000-tdep.c: Ditto.
9785 * h8500-tdep.c: Ditto.
9786 * mips-tdep.c: Ditto.
9787 * h8300-tdep.c: Ditto.
9788 * z8k-tdep.c: Ditto.
9789
2ea5f656
KB
97902002-04-12 Kevin Buettner <kevinb@redhat.com>
9791
9792 From Jimi X <jimix@watson.ibm.com>:
9793 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9794 64-bit SysV ABI.
9795
27b15785
KB
97962002-04-12 Kevin Buettner <kevinb@redhat.com>
9797
9798 From Jimi X <jimix@watson.ibm.com>:
9799 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9800 bfd info.
9801
5d57ee30
KB
98022002-04-12 Kevin Buettner <kevinb@redhat.com>
9803
9804 From Jimi X <jimix@watson.ibm.com>:
9805 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9806 register sets for these processor variants.
9807
bc1e36ca
DJ
98082002-04-11 Daniel Jacobowitz <drow@mvista.com>
9809
bc1e36ca
DJ
9810 * regformats/reg-ppc.dat: Support FPSCR.
9811
e3f36dbd
KB
98122002-04-11 Kevin Buettner <kevinb@redhat.com>
9813
9814 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9815 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9816 Add fpscr as an invalid/unfetchable register.
9817 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9818 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9819 (fill_fpregset): Add support for register fpscr.
9820 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9821 (fill_gregset): Account for the fact that register ``mq'' might
9822 not exist.
9823 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9824 (registers_power): Add fpscr to register set at slot 71.
9825 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9826 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9827
943c9c25
MS
98282002-04-11 Michael Snyder <msnyder@redhat.com>
9829
9830 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9831 * configure: Regenerate.
9832 * config.in: Regenerate.
9833 * acconfig.h: Add define for _SYSCALL32.
9834 * core-sol2.c: Remove #define _SYSCALL32.
9835 * solib-legacy.c: Remove #define _SYSCALL32.
9836
d8c0a2e7
AC
98372002-04-10 Andrew Cagney <ac131313@redhat.com>
9838
9839 * stack.c (select_frame): Cleanup internal error message, do not
9840 use %p.
9841
7cc19214
AC
98422002-04-10 Andrew Cagney <ac131313@redhat.com>
9843
9844 * stack.c (select_frame): Check that selected_frame and the
9845 specified level are as expected.
9846 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9847 Update copyright.
9848 * frame.h (struct frame_info): Add field `level'. Update
9849 copyright.
9850 Work-in-progress PR gdb/464.
9851
67a2b77e
AC
98522002-04-10 Andrew Cagney <ac131313@redhat.com>
9853
9854 * maint.c (maint_print_section_info): Rename print_section_info.
9855 (print_bfd_section_info, print_objfile_section_info): Update.
9856 * inferior.h (struct gdbarch): Add opaque declaration.
9857 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9858 * gdbarch.h: Regenerate.
9859
8cfda98c
ML
98602002-04-10 Michal Ludvig <mludvig@suse.cz>
9861
9862 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9863 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9864 (kernel_u_size): Added.
9865 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9866 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9867
ca439ad2 98682002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9869
ca439ad2
JI
9870 * valarith.c (find_size_for_pointer_math): New function, either returns
9871 the size for a pointer's target, returns 1 for void *, or errors for
9872 incomplete types.
9873 (value_add, value_sub): use find_size_for_pointer_math.
9874
2f2893d9
DJ
98752002-04-09 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * linux-low.c (linux_look_up_symbols): New hook.
9878 (linux_target_ops): Add linux_look_up_symbols.
9879 * remote-utils.c (decode_address): New function.
9880 (look_up_one_symbol): New function.
9881 * server.c (handle_query): Call target look_up_symbols hook.
9882 * server.h (look_up_one_symbol): Add prototype.
9883 * target.h (struct target_ops): Add look_up_symbols hook.
9884
96cb11df
AC
98852002-04-09 Andrew Cagney <ac131313@redhat.com>
9886
9887 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9888 override FP_REGNUM with frame->fp. Update copyright.
9889 * parse.c (num_std_regs, std_regs): Delete.
9890 (target_map_name_to_register): Do not search std_regs. Update
9891 function description.
9892 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9893 declarations. Update copyright.
9894 Fix PR gdb/251.
361d1df0 9895
97658e92
DJ
98962002-04-09 Daniel Jacobowitz <drow@mvista.com>
9897
9898 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9899 after the last symbol in a block.
9900
6044e3eb
PM
99012002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9902
9903 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9904 is non zero as a found symbol.
9905
0406ec40
AC
99062002-04-08 Andrew Cagney <ac131313@redhat.com>
9907
9908 * findvar.c: Include "builtin-regs.h".
9909 (value_of_register): Call value_of_builtin_reg when applicable.
9910 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9911 (target_map_name_to_register): Call
9912 builtin_reg_map_name_to_regnum.
9913 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9914 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9915 (builtin_regs_h): Define.
9916 (builtin-regs.o): New target.
9917 (findvar.o): Add $(builtin_regs_h).
9918 * builtin-regs.c, builtin-regs.h: New files.
9919 * std-regs.c: New file.
9920 Partial fix for PR gdb/251.
9921
56a6dfb9
KB
99222002-04-08 Kevin Buettner <kevinb@redhat.com>
9923
9924 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9925 it's no longer required.
9926
3a808432
AC
99272002-04-08 Andrew Cagney <ac131313@redhat.com>
9928
9929 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9930
7c40d541
KB
99312002-04-08 Kevin Buettner <kevinb@redhat.com>
9932
9933 From Jimi X <jimix@watson.ibm.com>:
9934 * rs6000-tdep.c (rs6000_software_single_step): Use
9935 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9936 and size. Use target_insert_breakpoint() and
9937 target_remove_breakpoint() to insert and remove breakpoints
9938 instead of explicit memory reads and writes.
9939
cc9836a8
KB
99402002-04-08 Kevin Buettner <kevinb@redhat.com>
9941
9942 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9943 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9944 ELF_OBJECT_FORMAT ifdef.
9945
7495d1dc
KB
99462002-04-08 Kevin Buettner <kevinb@redhat.com>
9947
9948 From Jimi X <jimix@watson.ibm.com>:
9949 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9950
4288e836
KB
99512002-04-08 Kevin Buettner <kevinb@redhat.com>
9952
9953 From Jimi X <jimix@watson.ibm.com>:
9954 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9955 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9956
a4e4e501
MK
99572002-04-07 Mark Kettenis <kettenis@gnu.org>
9958
9959 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9960 s/asprintf/xasprintf/.
9961 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9962
006defba
AC
99632002-04-07 Andrew Cagney <ac131313@redhat.com>
9964
9965 I believe Jeff Law denies responsability for this one:
9966 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9967 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9968 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9969 Work-around for PR gdb/366.
9970
7aa83cac
EZ
99712002-04-07 Elena Zannoni <ezannoni@redhat.com>
9972
9973 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9974 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9975 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9976
cf1fcca1
EZ
99772002-04-07 Elena Zannoni <ezannoni@redhat.com>
9978
9979 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9980 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9981 information.
9982
3f289e6f
AC
99832002-04-07 Andrew Cagney <ac131313@redhat.com>
9984
9985 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9986 maintainer.
9987
129188f6
AC
99882002-04-07 Andrew Cagney <ac131313@redhat.com>
9989
9990 * README (Reporting Bugs in GDB): Document the bug web page as the
9991 prefered way of submitting bugs.
9992 Fix PR gdb/402.
9993
1200cd6e
AC
99942002-04-06 Andrew Cagney <ac131313@redhat.com>
9995
9996 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9997 -1. Update comment.
9998 * gdbarch.h, gdbarch.c: Re-generate.
9999
2853c33c
AS
100002002-04-07 Andreas Schwab <schwab@suse.de>
10001
10002 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10003 buffer to regcache_collect.
10004
c2169756
AC
100052002-04-06 Andrew Cagney <ac131313@redhat.com>
10006
10007 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10008 * gdbarch.c, gdbarch.h: Re-generate.
10009
25f1b008
AC
100102002-04-06 Andrew Cagney <ac131313@redhat.com>
10011
10012 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10013 declaration. Fix -Werror.
10014
59263426
DJ
100152002-04-05 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10018 * gdbarch.c: Regenerate.
10019
f5db4da3
MS
100202002-04-05 Michael Snyder <msnyder@redhat.com>
10021
80f8a6eb
MS
10022 * breakpoint.c (clear_command): Rewrite middle section to
10023 combine two loops with identical control conditions.
10024 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10025 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10026
ad3dcc5c
L
100272002-04-05 H.J. Lu (hjl@gnu.org)
10028
10029 * solib-svr4.c (bkpt_names): Add "__start".
10030
f32e7a74
AC
100312002-04-04 Andrew Cagney <ac131313@redhat.com>
10032
10033 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10034 as test for 64 bit target.
10035
8227c0ff
AC
100362002-04-05 Andrew Cagney <ac131313@redhat.com>
10037
10038 * h8500-tdep.c (h8500_write_fp): Delete function.
10039 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10040 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10041 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10043 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10044 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10045 (s390_write_fp):
10046 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10047 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10048 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10049 (d10v_write_fp): Delete function.
10050 * inferior.h (write_fp, generic_target_write_fp): Delete
10051 declarations.
10052 * regcache.c (generic_target_write_fp): Delete function.
10053 (write_fp): Delete function.
10054 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10055 * gdbarch.h, gdbarch.c: Regenerate.
10056 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10057 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10058 (sparc64_write_fp): Delete declaration.
10059 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10060 (h8500_write_fp): Delete declaration.
10061
2757dd86
AC
100622002-04-04 Andrew Cagney <ac131313@redhat.com>
10063
10064 * sparc-tdep.c (sparc64_write_fp): Delete.
10065 (sparc_push_dummy_frame): Replace write_fp call with code to store
10066 the FP directly.
10067 (sparc_gdbarch_init): Do not initialize write_fp.
10068
c69255e1
KB
100692002-04-05 Kevin Buettner <kevinb@redhat.com>
10070
10071 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10072 clause.
10073
ae767bfb
JB
100742002-03-29 Jim Blandy <jimb@redhat.com>
10075
10076 * stack.c (get_selected_block): Add new argument `addr_in_block',
10077 used to return the exact code address we used to select the block,
10078 not just the block.
10079 * blockframe.c (get_frame_block, get_current_block): Same.
10080 * frame.h (get_frame_block, get_current_block,
10081 get_selected_block): Update declarations.
10082 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10083 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10084
84d2ac95
MS
100852002-04-05 Michael Snyder <msnyder@redhat.com>
10086
10087 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10088 warning message.
10089
596aa3bf
JB
100902002-04-05 J. Brobecker <brobecker@gnat.com>
10091
10092 * utils.c (xfullpath): New function.
10093 * defs.h (xfullpath): Add declaration.
10094 * source.c (openp): Use xfullpath in place of gdb_realpath to
10095 avoid resolving the basename part of filenames when the
10096 associated file is a symbolic link. This fixes a potential
10097 inconsistency between the filenames known to GDB and the
10098 filenames it prints in the annotations.
10099 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10100 to be able to match a filename with either the real filename, or
10101 the name of any symbolic link to this file.
10102 (lookup_partial_symtab): Ditto.
10103
c02f5703
MS
101042002-04-04 Michael Snyder <msnyder@redhat.com>
10105
10106 * breakpoint.c: Add support for hardware breakpoints in overlays.
10107 (overlay_events_enabled): New state variable.
10108 (insert_breakpoints): Use overlay_events_enabled to decide
10109 whether to attempt to set a breakpoint at the overlay load addr.
10110 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10111 (remove_breakpoint): Use overlay_events_enabled to decide
10112 whether breakpoints need to be removed from overlay load addr.
10113 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10114 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10115 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10116 disable_overlay_breakpoints): Update overlay_events_enabled.
10117
5fb290d7
DJ
101182002-04-04 Daniel Jacobowitz <drow@mvista.com>
10119
10120 * dwarf2read.c (struct function_range): New.
10121 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10122 (check_cu_functions): New.
10123 (read_file_scope): Initialize global function lists.
10124 Call dwarf_decode_line after processing children.
10125 (read_func_scope): Add to global function list.
10126 (dwarf_decode_lines): Call check_cu_functions everywhere
10127 record_line is called. Call record_line with a linenumber
10128 of 0 to mark sequence ends.
10129
7b3fabf0
ML
101302002-04-04 Michal Ludvig <mludvig@suse.cz>
10131
361d1df0 10132 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10133 change sync with glibc.
10134
bce58c09
JB
101352002-04-03 Jim Blandy <jimb@redhat.com>
10136
10137 * configure.in: Call AC_C_INLINE.
10138 * configure: Regenerated.
361d1df0 10139
2fccf04a
DJ
101402002-04-01 Daniel Jacobowitz <drow@mvista.com>
10141
10142 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10143 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10144
2d1bfe2e
MK
101452002-03-31 Mark Kettenis <kettenis@gnu.org>
10146
a5941fbf
MK
10147 * NEWS: Mention gcore support on FreeBSD/i386.
10148
a90cd31d
MK
10149 * fbsd-proc.c: New file.
10150 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10151 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10152
2d1bfe2e
MK
10153 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10154 while statement.
10155
9eb6e5a1
JB
101562002-03-29 Jim Blandy <jimb@redhat.com>
10157
10158 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10159 unescaped newlines in string literals, but newer ones don't. So
10160 escape them.
10161
f02df580
MS
101622002-03-26 Michael Snyder <msnyder@redhat.com>
10163 Andrew Cagney <cagney@redhat.com>
10164
361d1df0 10165 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10166 restore file to memory.
10167 * cli/cli-dump.h: New file.
10168 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10169 * NEWS: Mention new commands.
f02df580 10170
109f874e
MS
101712002-03-28 Michael Snyder <msnyder@redhat.com>
10172
10173 * symfile.c (symbol_file_add): Move test for null symbols to later.
10174
520f6ade
AC
101752002-03-27 Andrew Cagney <ac131313@redhat.com>
10176
10177 From veksler at il.ibm.com:
10178 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10179 the xstrduped original path.
10180 Fix PR gdb/417.
10181
d4654627
MS
101822002-03-27 Michael Snyder <msnyder@redhat.com>
10183
10184 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10185 * infcmd.c (_initialize_infcmd): Ditto.
10186 * language.c (_initialize_language): Ditto.
10187 * symfile.c (_initialize_symfile): Ditto.
10188 * top.c (_init_main): Ditto.
10189 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10190
6be8bc0c
EZ
101912002-03-27 Elena Zannoni <ezannoni@redhat.com>
10192
10193 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10194 vector registers handling.
10195 (skip_prologue): Handle new AltiVec instructions. Fill in new
10196 fields of frame data.
10197 (frame_get_saved_regs): Fill in information for AltiVec registers.
10198
12af6855
JB
101992002-03-27 Jim Blandy <jimb@redhat.com>
10200
10201 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10202 a function; leave this macro here to invoke that function.
10203 (symbol_init_mangled_name): Declaration for that function.
10204 * symtab.c (symbol_init_mangled_name): New function.
10205
dc672865
AC
102062002-03-27 Andrew Cagney <ac131313@redhat.com>
10207
10208 * valarith.c: Replace strerror with safe_strerror.
10209 * tracepoint.c: Ditto.
10210 * lin-lwp.c: Ditto.
10211 * go32-nat.c: Ditto.
10212 * inflow.c: Ditto.
10213 * gnu-nat.c: Ditto.
10214
d96429cd
AS
102152002-03-27 Andreas Schwab <schwab@suse.de>
10216
10217 * event-top.c (command_line_handler): Remove useless if.
10218
7e336ba1
AJ
102192002-03-27 Andreas Jaeger <aj@suse.de>
10220
10221 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10222 comment.
10223
de220d0f
ML
102242002-03-27 Michal Ludvig <mludvig@suse.cz>
10225
10226 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10227 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10228 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10229 (x86_64_linux_dr_get_status, supply_gregset),
10230 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10231 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10232 (x86_64_register_info_table): Add.
10233 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10234 (x86_64_register_raw_size, x86_64_register_virtual_type),
10235 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10236 general x86_64_register_info_table.
10237 (i386_gdbarch_init): gdbarch_register_bytes is now set
10238 dynamicaly during initialization.
10239 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10240 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10241
0e98d0a7
DJ
102422002-03-27 Daniel Jacobowitz <drow@mvista.com>
10243
10244 * gdbserver/server.c (main): Call target_signal_to_host_p
10245 and target_signal_to_host on signals received from the remote.
10246 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10247 target_signal_from_host on signals sent to the remote.
10248 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10249 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10250
3130066b
DJ
102512002-03-27 Daniel Jacobowitz <drow@mvista.com>
10252
10253 * signals/signals.c: Include "server.h" in gdbserver build.
10254 (target_signal_from_name): Don't use STREQ.
10255 (_initialize_signals): Likewise. Don't include function in
10256 gdbserver build.
10257
9aedf4f4
DJ
102582002-03-27 Daniel Jacobowitz <drow@mvista.com>
10259
10260 * signals.c: Moved to...
10261 * signals/signals.c: Here.
7e336ba1 10262 * Makefile (signals.o): Update.
9aedf4f4 10263
3fa41cdb
JL
102642002-03-26 Jeff Law (law@redhat.com)
10265
10266 * somread.c (som_symtab_read): Remove some commented out code and
10267 updated related comments. Do not set the minimal symbol table to
10268 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10269 in a dynamic executable.
10270 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10271 where we are unable to find the minimal symbol for the given
10272 PC value.
10273
ee677e8d
MS
102742002-03-25 Jeff Law (law@redhat.com)
10275
10276 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10277
e76e1718
ML
102782002-03-25 Michal Ludvig <mludvig@suse.cz>
10279
10280 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10281
18a642a1
AC
102822002-03-23 Andrew Cagney <ac131313@redhat.com>
10283
10284 * command.h: Update copyright.
10285 (struct cmd_list_element): Replace definition with opaque
10286 declaration.
10287 (enum cmd_types): Document that it will eventually be moved to
10288 cli/cli-decode.h
10289 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10290 (MALLOCED_REPLACEMENT): Delete macro.
10291 * Makefile.in (cli_decode_h): Add $(command_h).
10292 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10293 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10294 * completer.c: Include "cli/cli-decode.h".
10295 * maint.c: Include "cli/cli-decode.h".
10296 * cli/cli-decode.h: Include "command.h".
10297 (enum command_class): Delete.
10298 (enum cmd_types): Comment out.
10299 (enum cmd_auto_boolean): Delete.
10300 (enum var_types): Delete.
10301
b2875cc0
AC
103022002-03-23 Andrew Cagney <ac131313@redhat.com>
10303
10304 * cli/cli-decode.c: Include "gdb_assert.h".
10305 (add_set_or_show_cmd): New static function.
10306 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10307 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10308 all fields, such as func, from the set command.
10309
3b45974e
AC
103102002-03-23 Andrew Cagney <ac131313@redhat.com>
10311
10312 * MAINTAINERS (sh-elf): Change warning flag to -w.
10313
823ca731
AC
103142002-03-23 Andrew Cagney <cagney@redhat.com>
10315
10316 * defs.h (error): Add printf format attribute.
10317 * thread-db.c (thread_from_lwp): Fix error format string.
10318 * stack.c (parse_frame_specification): Ditto.
10319 * cli/cli-decode.c (undef_cmd_error): Ditto.
10320 * scm-lang.c (scm_lookup_name): Ditto.
10321 * tracepoint.c (trace_error): Ditto.
10322 * remote-utils.c (usage): Ditto.
10323 * remote.c (compare_sections_command): Ditto.
10324 Fix PR gdb/328.
10325
0e101458
AC
103262002-03-22 Andrew Cagney <ac131313@redhat.com>
10327
10328 * gdbtypes.c (append_composite_type_field): New function.
10329 (init_composite_type): New function.
10330 * gdbtypes.h (append_composite_type_field): Declare.
10331 (init_composite_type): Ditto.
10332
8e0662df
EZ
103332002-03-22 Elena Zannoni <ezannoni@redhat.com>
10334
10335 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10336 function.
8e0662df
EZ
10337 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10338 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10339 structure returning convention for SYSV ABI case, but not
10340 for GNU/Linux, FreeBSD, or NetBSD.
10341
3121eff0
DJ
103422002-03-22 Daniel Jacobowitz <drow@mvista.com>
10343
10344 * symtab.h (lookup_block_symbol): Add mangled_name argument
10345 to prototype.
10346
10347 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10348 with new mangled_name argument.
10349 * linespec.c (decode_line_1): Likewise.
10350 * valops (value_of_this): Likewise.
10351 * symtab.c (lookup_transparent_type): Likewise.
10352 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10353 (lookup_symbol): If we are given a mangled name, pass it down
10354 to lookup_symbol_aux.
10355 (lookup_block_symbol): If we are given a mangled name to check
10356 against, only return symbols which match it.
10357
349b409f
CF
103582002-03-22 Christopher Faylor <cgf@redhat.com>
10359
10360 * win32-nat.c (child_create_inferior): Check for proper shell to use
10361 here, in case the user changes it on the fly.
10362 (_initialize_inftarg): Remove shell path considerations.
10363
2a873819
EZ
103642002-03-21 Elena Zannoni <ezannoni@redhat.com>
10365
10366 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10367 for gdbarch_max_register_raw_size and max_register_virtual_size.
10368 Adjust copyright year.
10369
a1b9830c
DJ
103702002-03-21 Daniel Jacobowitz <drow@mvista.com>
10371
10372 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10373 in a function to cover the entire beginning of the function
10374 as well if it does not already.
10375
8b5790f2
TR
103762002-03-21 Tom Rix <trix@redhat.com>
10377
10378 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10379 (rs6000_ptrace64): Renamed from ptrace64.
10380
bdbe5747
MH
103812002-03-20 Martin M. Hunt <hunt@redhat.com>
10382
10383 * gdbserver/remote-utils.c (remote_open): Don't call
10384 getprotobyname, we're all using TCP here so just use
10385 IPPROTO_TCP.
7e336ba1 10386 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10387
103882002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10389
bdbe5747
MH
10390 * regcache.c (_initialize_regcache): No need to call
10391 build_regcache() at this time; it gets called whenever
10392 the gdbarch changes.
10393
7781cd62
DB
103942002-03-20 David O'Brien <obrien@FreeBSD.org>
10395
10396 * sparc-nat.c: Include sys/param.h where possible.
10397
f65ca430
DJ
103982002-03-20 Daniel Jacobowitz <drow@mvista.com>
10399
10400 Fix PR gdb/422.
10401 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10402 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10403 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10404 complex types.
10405 * stabsread.c (rs6000_builtin_type): Likewise.
10406 (read_sun_floating_type): Likewise.
10407
0c867556
PS
104082002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10409
10410 * stabsread.c (read_member_functions): Remove skip code for duplicate
10411 constructor/destructor methods. Use standard parsing for these
10412 methods and just do not chain them to the list of methods after
10413 parsing.
10414
12b9c64f
AO
104152002-03-19 Alexandre Oliva <aoliva@redhat.com>
10416
10417 * coffread.c: Remove redundant static declarations. Replace
10418 occurrences of `PTR' with `void *'.
10419 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10420 * top.h (quit_cover): Likewise.
10421 * defs.h (catch_errors): Likewise.
10422
349c5d5f
AC
104232002-03-18 Andrew Cagney <ac131313@redhat.com>
10424
10425 * defs.h (XMALLOC): Define.
10426 * gdb-events.sh (XMALLOC): Delete macro.
10427 * gdb-events.c, gdb-events.h: Regenerate.
10428 * gdbarch.sh (XMALLOC): Delete macro.
10429 * gdbarch.c: Regenerate.
10430 * serial.c (XMALLOC): Delete macro.
10431 * ui-file.c (XMALLOC): Ditto.
10432 * ser-unix.h (XMALLOC): Ditto.
10433 * sh-tdep.c (XMALLOC): Ditto.
10434 * ui-out.c (XMALLOC): Ditto.
10435 * utils.c (XMALLOC): Ditto.
10436 * i386-tdep.c (XMALLOC): Ditto.
10437 * gdb-events.c (XMALLOC): Ditto.
10438 * d10v-tdep.c (XMALLOC): Ditto.
10439 * cli-out.c (XMALLOC): Ditto.
10440
10441 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10442 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10443 * ui-file.c, ui-out.c: Ditto.
10444
7d0766f3
AC
104452002-03-18 Andrew Cagney <ac131313@redhat.com>
10446
10447 * command.h (struct cmd_list_element): Add field context.
10448 (set_cmd_context, get_cmd_context): Declare.
10449 * cli/cli-decode.h: Ditto.
10450 * cli/cli-decode.c (get_cmd_context): New function.
10451 (set_cmd_context): New function.
10452 (add_cmd): Initialize context.
10453 Part of fixing PR gdb/145 and PR gdb/146.
10454
5913bcb0
AC
104552002-03-17 Andrew Cagney <ac131313@redhat.com>
10456
1868c04e
AC
10457 * cli/cli-decode.c (cmd_type): New function.
10458 * command.h (cmd_type): Declare.
10459 * infrun.c (set_schedlock_func): Call function cmd_type.
10460 * kod.c (kod_set_os): Call cmd_type.
10461 * cris-tdep.c (cris_version_update): Use function cmd_type.
10462 (cris_mode_update, cris_abi_update): Ditto.
10463
5913bcb0
AC
10464 * command.h: (execute_cmd_post_hook): Declare.
10465 (execute_cmd_pre_hook): Declare.
10466 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10467 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10468 functions. Execute pre/post hook while ensuring that afterwords
10469 hook_in is cleared.
10470 * top.c (execute_command): Use execute_cmd_post_hook, and
10471 execute_cmd_pre_hook to execute pre/post commands.
10472 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10473 hook_stop_stub.
10474 (hook_stop_stub): Call execute_cmd_pre_hook.
10475
b51450c9
AC
104762002-03-17 Andrew Cagney <ac131313@redhat.com>
10477
10478 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10479 set'' and this leads to a core dump. Move xstrdup of
10480 operating_system to after check that it is not NULL.
10481
f66c9f11
AC
104822002-03-17 Andrew Cagney <ac131313@redhat.com>
10483
8e694ecf
AC
10484 * kod.c (kod_set_os): Remove unnecessary check that
10485 ``command->type'' is set_cmd.
10486
f66c9f11
AC
10487 * valprint.c (set_input_radix): Use input_radix.
10488 (set_output_radix): Use output_radix.
10489 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10490 isn't reverted.
10491
9d01611c
AC
104922002-03-16 Andrew Cagney <ac131313@redhat.com>
10493
10494 * value.h (struct value): Delete field ``substring_addr''. Change
10495 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10496 force_core_addr_align and force_pointer_aligh.
10497
10498 * value.h (struct value): Fix typo in above change.
9d01611c 10499
4156bb53
PS
105002002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10501
10502 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10503 to fix internal_error from ``maintenance print architecture''.
10504
0e5e3ea6
PS
105052002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10506
10507 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10508 for gcc versions after gcc-2.8.1.
10509
9b013045
PS
105102002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10511
10512 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10513 for method resolution. Restore adjustment of ``this'' pointer after
10514 calling value_struct_elt, which was accidentally removed during the
10515 HP merge.
10516
376c9600
AC
105172002-03-15 Andrew Cagney <ac131313@redhat.com>
10518
10519 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10520 value_of_register.
10521 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10522 get_saved_register.
10523 * value.h (value_of_register): Update.
10524
a4db0f07
RH
105252002-03-14 Richard Henderson <rth@redhat.com>
10526
10527 * configure.in: Detect declaration for canonicalize_file_name.
10528 * utils.c (canonicalize_file_name): Declare, if needed.
10529 (gdb_realpath): Prefer realpath if available and usable.
10530 * config.in, configure: Rebuild.
10531
96383835
RH
105322002-03-14 Richard Henderson <rth@redhat.com>
10533
10534 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10535 a constant array bound.
10536
10537 * MAINTAINERS: Add myself to write-after-approval.
10538
75245b24
MS
105392002-03-14 Michael Snyder <msnyder@redhat.com>
10540
10541 * symfile.c (syms_from_objfile): Return immediately if no syms.
10542 (symbol_file_add): Return immediately if no syms.
10543 (find_sym_fns): Return immediately if no syms.
10544
e641a1ca
ML
105452002-03-13 Michal Ludvig <mludvig@suse.cz>
10546
10547 * gdbserver/remote-util.c (remote_open): Print remote-side's
10548 IP address when remote debugging over the network.
7e336ba1 10549
df08bfec
DB
105502002-03-12 David O'Brien <obrien@FreeBSD.org>
10551
10552 * config/sparc/fbsd.mh: Fix copyright.
10553 * config/sparc/fbsd.mt: Likewise.
10554
9a57864f
RE
105552002-03-11 Richard Earnshaw <rearnsha@arm.com>
10556
10557 * MAINTAINERS: Fix typo in name of gdb warnings option.
10558 (x86-64): Fix formating so that this can be parsed by awk.
10559
dd7bf85e
DJ
105602002-03-10 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10563 * defs.h: Include "gdb/signals.h".
10564 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10565
33a0a2ac
ML
105662002-03-10 Michal Ludvig <mludvig@suse.cz>
10567
10568 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10569 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10570 from x86-64-tdep.h
10571
dd824b04
DJ
105722002-03-10 Daniel Jacobowitz <drow@mvista.com>
10573 Don Howard <dhoward@redhat.com>
10574
10575 * mips-tdep.c (ST0_FR): Define.
10576 (mips2_fp_compat): New function, temporarily disabled.
10577 (mips_read_fp_register_single): New function.
10578 (mips_read_fp_register_double): New function.
10579 (mips_print_register): Use them.
10580 (do_fp_register_row): Likewise.
10581
6a41ff59
AC
105822002-03-09 Andrew Cagney <ac131313@redhat.com>
10583
10584 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10585 approval''.
10586
4ea09c10
PS
105872002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10588
10589 * stabsread.c (read_member_functions): Fix is_stub test for
10590 static member functions, improve comment.
10591
6ccc741d
RE
105922002-03-07 Richard Earnshaw <rearnsha@arm.com>
10593
10594 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10595 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10596 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10597 commands that set boolean values.
10598 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10599 (arm_rdi_resume): Always initialize PC.
10600 (arm_rdi_open): Don't use rslt as a boolean.
10601 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10602 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10603 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10604 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10605
438013df
AO
106062002-03-06 Alexandre Oliva <aoliva@redhat.com>
10607
10608 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10609 * configure: Rebuilt.
10610
70ed8774
SC
106112002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10612
10613 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10614 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10615
5ba2abeb
AC
106162002-03-06 Andrew Cagney <ac131313@redhat.com>
10617
10618 * cli/cli-decode.c (set_cmd_completer): New function.
10619 * command.h (set_cmd_completer): Declare.
10620 * cli/cli-decode.h (set_cmd_completer): Ditto.
10621
10622 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10623 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10624 * win32-nat.c (_initialize_inftarg): Ditto.
10625 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10626 * proc-api.c (_initialize_proc_api): Ditto.
10627 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10628 * source.c (_initialize_source): Ditto.
10629 * exec.c (_initialize_exec): Ditto.
10630 * solib.c (_initialize_solib): Ditto.
10631 * top.c (init_main): Ditto.
10632 * tracepoint.c (_initialize_tracepoint): Ditto.
10633 * symfile.c (_initialize_symfile): Ditto.
10634 * printcmd.c (_initialize_printcmd): Ditto.
10635 * infcmd.c (_initialize_infcmd): Ditto.
10636 * corefile.c (_initialize_core): Ditto.
10637
f779ca99
AC
106382002-03-05 Andrew Cagney <ac131313@redhat.com>
10639
10640 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10641
01a3934b
AC
106422002-03-05 Andrew Cagney <ac131313@redhat.com>
10643
10644 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10645
37057839
AC
106462002-03-05 Andrew Cagney <ac131313@redhat.com>
10647
10648 * NEWS: Update headings, 5.2 has branched.
10649
c6ecbae5
DJ
106502002-03-04 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10653 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10654 (register_addr, REGISTER_RAW_SIZE): Likewise.
10655 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10656 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10657
e9f30c21
ML
106582002-03-03 Michal Ludvig <mludvig@suse.cz>
10659
10660 * MAINTAINERS (x86-64): Add myself.
10661 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10662 changed value_ptr -> struct value *
10663
54394ac3
DB
106642002-03-01 David O'Brien <obrien@FreeBSD.org>
10665
10666 * configure.host (sparc64-*-freebsd): Add.
10667 * configure.tgt: Likewise.
10668 * config/sparc/fbsd.mh: New file.
10669 * config/sparc/fbsd.mt: Likewise.
10670 * config/sparc/nm-fbsd.h: Likewise.
10671 * config/sparc/tm-fbsd.h: Likewise.
10672
bfe95955
DJ
106732002-03-01 Daniel Jacobowitz <drow@mvista.com>
10674
10675 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10676 regformats/reg-s390x.dat.
10677
f33c6cbf
AC
106782002-03-01 Andrew Cagney <ac131313@redhat.com>
10679
10680 * utils.c: Add FIXME explaining true/false problem.
10681
5ecaa7dd
AC
106822002-02-28 Andrew Cagney <ac131313@redhat.com>
10683
10684 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10685
2a251cc2
MC
106862002-02-28 Michael Chastain <mec@shout.net>
10687
10688 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10689
6a8031a3 106902002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10691
10692 * gdbserver/linux-s390-low.c: New file.
10693 * regformats/reg-s390.dat: New file.
10694 * regformats/reg-s390x.dat: New file.
10695 * gdbserver/configure.srv: Add S/390.
10696 * gdbserver/Makefile.in: Add S/390.
10697 * configure.tgt: Enable gdbserver for S/390.
10698
ac469903
EZ
106992002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10700
10701 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10702 first line of the doc string for "info dos", except at the end of
10703 the sentence, since the short help stops at the first period.
10704
985cb1a3
JM
107052002-02-28 Jason Merrill <jason@redhat.com>
10706
10707 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10708
c570663e
FF
107092002-02-27 Fred Fish <fnf@redhat.com>
10710
10711 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10712 comment (dumy -> dummy).
10713
43630227
PS
107142002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10715
10716 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10717
b84911e8
RB
107182002-02-27 Rodney Brown <rbrown64@csc.com.au>
10719
10720 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10721
58caa3dc
DJ
107222002-02-27 Daniel Jacobowitz <drow@mvista.com>
10723
10724 * gdbserver/acconfig.h: New file.
10725 * gdbserver/i387-fp.c: New file.
10726 * gdbserver/i387-fp.h: New file.
10727 * gdbserver/linux-x86-64.c: New file.
10728 * regformats/reg-x86-64.dat: New file.
10729 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10730 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10731 * gdbserver/configure.in: Add support for regsets.
10732 * gdbserver/config.in: Regenerate.
10733 * gdbserver/configure: Regenerate.
10734 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10735 * gdbserver/linux-low.h: New file.
10736 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10737 for regsets.
10738 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10739 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10740 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10741 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10742 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10743 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10744 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10745 "i387-fp.h". Add PTRACE_GETREGS and friends.
10746 * gdbserver/regcache.c (supply_register): New function.
10747 (supply_register_by_name): New function.
10748 (collect_register): New function.
10749 (collect_register_by_name): New function.
10750
93652174
DJ
107512002-02-27 Daniel Jacobowitz <drow@mvista.com>
10752
10753 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10754 (config.status): Add configure.srv dependency.
10755 (server_h): Add config.h dependency.
10756
a02e4a61
DJ
107572002-02-27 Daniel Jacobowitz <drow@mvista.com>
10758
10759 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10760 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10761 * gdbserver/configure.srv: Change i386-*-linux* to use
10762 reg-i386-linux.o.
10763
ce0eebec
AC
107642002-02-26 Andrew Cagney <ac131313@redhat.com>
10765
10766 * x86-64-tdep.c: Re-indent. Update copyright date.
10767
82dbc5f7
AC
107682002-02-26 Andrew Cagney <ac131313@redhat.com>
10769
10770 From Michal Ludvig <mludvig@suse.cz>:
10771 * x86-64-tdep.c (value.h): Delete.
10772 (gdb_assert.h): Include.
10773 (x86_64_register_convert_to_virtual,
10774 x86_64_register_convert_to_raw ): Add check which lets only
10775 floating-point values to be converted.
10776 (value_push): Delete.
10777 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10778 (i386_gdbarch_init): Number of register_bytes fixed.
10779
e4621584
AC
107802002-02-26 Andrew Cagney <ac131313@redhat.com>
10781
10782 * MAINTAINERS: Add x86-64 target.
10783
81a9a963
AC
107842002-02-26 Andrew Cagney <ac131313@redhat.com>
10785
10786 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10787 * osfsolib.c (solib_map_sections): Ditto.
10788 * irix5-nat.c (solib_map_sections): Ditto.
10789 * corelow.c (gdb_check_format): Ditto.
10790 * symfile.c (symfile_bfd_open): Ditto.
10791 * solib.c (solib_map_sections): Ditto.
10792 Fix PR gdb/354.
7e336ba1 10793
0f017ab9
AC
107942002-02-26 Andrew Cagney <ac131313@redhat.com>
10795
10796 * remote.c (_initialize_remote): By default, disable ``e'' and
10797 ``E'' step out-of-range packets.
10798
75738c29
AS
107992002-02-26 Andreas Schwab <schwab@suse.de>
10800
10801 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10802 m68k_linux_frame_saved_pc.
10803 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10804 in_sigtramp.
10805 (SIGCONTEXT_PC_OFFSET): Remove.
10806 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10807 m68k_linux_sigtramp_saved_pc): New functions.
10808 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10809 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10810 (UCONTEXT_PC_OFFSET): Define.
10811 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10812 non-RT and RT signal trampolines.
10813
7e8ed687
RE
108142002-02-26 Richard Earnshaw <rearnsha@arm.com>
10815
10816 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10817 (TARGET_NBPG, STACK_END_ADDR): Delete
10818 (VARIABLES_INSIDE_BLOCK): Delete.
10819
6972bc8b
AC
108202002-02-25 Andrew Cagney <ac131313@redhat.com>
10821
10822 * utils.c (perror_with_name): Make string parameter constant.
10823 (print_sys_errmsg): Ditto.
10824 (query): Ditto.
10825 * defs.h (perror_with_name): Update.
10826 (print_sys_errmsg): Update.
10827 (query): Update.
10828
aa32f823
DJ
108292002-02-25 Daniel Jacobowitz <drow@mvista.com>
10830
10831 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10832 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10833
19caaa45
PS
108342002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10835
10836 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10837 if it already matches the current architecture from the exec file.
10838 Include arch-utils.h for gdbarch_info_init prototype.
10839 * Makefile.in (rs6000-nat.o): Update dependencies.
10840
d951901f
EZ
108412002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10842
10843 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10844 list of exported variables.
10845
7ea81414
DJ
108462002-02-24 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * gdbserver/configure.srv: New file.
10849 * gdbserver/configure.in: Use configure.srv instead
10850 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10851 from it.
10852 * gdbserver/configure: Regenerated.
10853 * gdbserver/terminal.h: New file.
10854 * gdbserver/Makefile.in: Update for configure changes. Remove
10855 more unneeded include paths.
10856
080fe24b
AC
108572002-02-24 Andrew Cagney <ac131313@redhat.com>
10858
10859 From wiz at danbala:
10860 * config/sparc/tm-sp64.h: Fix grammar and typos.
10861 Fix PR gdb/287.
10862
8605d56e
AC
108632002-02-24 Andrew Cagney <ac131313@redhat.com>
10864
10865 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10866 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10867 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10868 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10869 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10870 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10871 * s390-tdep.c: Ditto.
92362027
AC
10872 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10873 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10874 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10875 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10876 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10877 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10878 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10879 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10880 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10881 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10882 Fix PR gdb/378.
7e336ba1 10883
8ed32cc0
AC
108842002-02-23 Andrew Cagney <ac131313@redhat.com>
10885
a3007b6f
AC
10886 * lin-thread.c: Delete file.
10887 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10888 to gdb_proc_service.h.
10889 * configure: Re-generate.
10890
50a9e2f1
AC
10891 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10892 * serial.c (serial_open): Delete check for "ocd".
10893 Fix PR gdb/349.
10894
8b6e7932
AC
10895 * Makefile.in (linux-thread.o): Delete target.
10896 * linux-thread.c: Delete file.
10897
d155c46b
AC
10898 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10899 renamed SH files to be consistent.
10900
8ed32cc0
AC
10901 * symtab.c (sort_search_symbols): Use xfree.
10902
0e18d038
RE
109032002-02-23 Richard Earnshaw <rearnsha@arm.com>
10904
10905 * arm-linux-tdep.c (arm_linux_init_abi): Register
10906 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10907 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10908 definition with undef, since we don't want the sysvr4 definition.
10909 (SKIP_TRAMPOLINE_CODE): Likewise.
10910
27aac7ff
AC
109112002-02-23 Andrew Cagney <ac131313@redhat.com>
10912
10913 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10914
10915 * configure.in: (AC_CHECK_FUNCS) Added test for
10916 canonicalize_file_name Regenerated.
10917 * config.in, configure: Regenerated.
10918 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10919 defined use canonicalize_file_name.
7e336ba1 10920
65a6e0ee
MC
109212002-02-23 Michael Chastain <mec@shout.net>
10922
10923 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10924
47b95330
AC
109252002-02-23 Andrew Cagney <ac131313@redhat.com>
10926
10927 * README: Remove references to cygnus.com.
10928 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10929 dot com'' form. Remove references to cygnus.com and sourceware.
10930
696f451b
AC
109312002-02-23 Andrew Cagney <ac131313@redhat.com>
10932
10933 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10934 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10935 1003.1-2001 no longer allows "head -1".
10936 * gdb/Makefile.in (version.c): Likewise.
10937 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10938 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10939 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10940
bbaca940
AC
109412002-02-23 Andrew Cagney <ac131313@redhat.com>
10942
10943 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10944 * command.h (cmd_cfunc_eq): Declare.
10945 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10946
10947 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10948 ``struct cmd_list_element *''.
10949 * cli/cli-cmds.c (is_complete_command): Update. Use
10950 cmd_cfunc_eq.
10951 * top.c (execute_command): Pass the command to
10952 is_complete_command.
10953 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10954
b8b8b047
AC
109552002-02-23 Andrew Cagney <ac131313@redhat.com>
10956
10957 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10958 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10959 architecture defines.
10960 * s390-tdep.c (s390_gdbarch_init): Likewise.
10961
19d3fc80
RE
109622002-02-23 Richard Earnshaw <rearnsha@arm.com>
10963
10964 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10965 (arm_linux_push_arguments): Likewise.
10966 (arm_linux_init_abi): Register them. Also register linux-specific
10967 call_dummy_words.
10968 (find_minsym_and_objfile): Use strcmp, not STREQ.
10969 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10970 (arm_linux_call_dummy_words): Delete declaration.
10971 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10972 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10973 declarations.
10974 (LOWEST_PC): Delete.
10975
3ab13650
PS
109762002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10977
10978 * maint.c (print_section_info): Do not prepend `0x' to filepos
10979 output, it will be handled by local_hex_string_custom.
10980
19d3fc80 109812002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10982
10983 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10984 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10985 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10986
d85a5daf
JB
109872002-02-22 Jim Blandy <jimb@redhat.com>
10988
10989 Indicate that the bcache functions don't change the strings
10990 they're passed.
10991 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10992 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10993
eeb25b8a
PM
109942002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10995
10996 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10997
6badb179
CF
109982002-02-21 Christopher Faylor <cgf@redhat.com>
10999
11000 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11001 find the complete path to a loaded DLL.
11002
e8717518
FF
110032002-02-21 Fred Fish <fnf@redhat.com>
11004
11005 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11006 that marks the end of the range of a function, enter a line number
11007 entry that has a line number of zero and a PC offset that matches
11008 the end of the function. This starts a range of PC's for which no
11009 line number information is known.
11010 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11011 PC's for which no line number info is found (line number is zero)
11012 then we didn't find any valid line information.
11013 * symtab.h: Document use of zero line number entry.
11014
9abe5450
EZ
110152002-02-21 Elena Zannoni <ezannoni@redhat.com>
11016
11017 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11018 (have_ptrace_getvrregs): Define for run time checks.
11019 (gdb_vrregset_t): New type for Altivec register handling.
11020 (fetch_register, store_register): Fetch/store altivec register
11021 when needed.
11022 (fetch_altivec_register, store_altivec_register): New functions.
11023 (supply_vrregset, fill_vrregset): New functions.
11024 (fetch_altivec_registers, store_altivec_registers): New functions.
11025 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11026 registers as well.
11027
aaa38bb5
AJ
110282002-02-21 Jiri Smid <smid@suse.cz>
11029
11030 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11031
b34db576
RE
110322002-02-21 Richard Earnshaw <rearnsha@arm.com>
11033
11034 * Makefile.in (armnbsd-nat.o): Update dependencies.
11035 * armnbsd-nat.c (supply_gregset): New function. Common code to
11036 supply the integer register set.
11037 (supply_fparegset): New function. Similar for FPA registers.
11038 (fetch_regs, fetch_fp_regs): Use them.
11039 (fetch_core_registers): Likewise.
11040 (fetch_elfcore_registers): New function.
11041 (arm_netbsd_elfcore_fns): New core-file type specification.
11042 (_initialize_arm_netbsd_nat): Register it.
11043
3e56fc4b
RE
110442002-02-21 Richard Earnshaw <rearnsha@arm.com>
11045
11046 * armnbsd-nat.c: Include gdbcore.h.
11047 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11048 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11049 'void' to declaration, to shut up ARI.
11050 (fetch_core_registers): Make static. Rewrite using supply_register.
11051 (arm_netbsd_core_fns): New core-file type specification.
11052 (_initialize_arm_netbsd_nat): New function.
11053
097f6b0b
CF
110542002-02-21 Christopher Faylor <cgf@redhat.com>
11055
11056 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11057 value.
11058
c914e0cc
CF
110592002-02-20 Christopher Faylor <cgf@redhat.com>
11060
11061 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11062 fails.
11063
385fa495
DJ
110642002-02-20 Daniel Jacobowitz <drow@mvista.com>
11065
11066 * jv-exp.y (parse_number): Change type of implicit longs
11067 to builtin_type_uint64.
11068
e5f1222d
DJ
110692002-02-20 Daniel Jacobowitz <drow@mvista.com>
11070
11071 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11072 to be an integer instead of a `union wait'.
11073
75c9abc6
DJ
110742002-02-20 Daniel Jacobowitz <drow@mvista.com>
11075
11076 * mips-linux-nat.c: Call the operating system GNU/Linux.
11077 * mips-linux-tdep.c: Likewise.
11078 * mips-tdep.c: Likewise.
11079
551792a5
DJ
110802002-02-20 Daniel Jacobowitz <drow@mvista.com>
11081
11082 Fix PR gdb/265.
11083 * jv-exp.y (parse_number): Handle 64-bit integers.
11084
ee6e2b82
DJ
110852002-02-20 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11088 AC_STDC_HEADERS to AC_HEADER_STDC.
11089 * gdbserver/configure: Regenerated.
11090
a48442a0
RE
110912002-02-20 Richard Earnshaw <rearnsha@arm.com>
11092
11093 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11094 is defined.
11095 * sparc-tdep.c (get_longjmp_target): Likewise.
11096
fe419ffc
RE
110972002-02-20 Richard Earnshaw <rearnsha@arm.com>
11098
11099 * News: Add news about ARM and Multi-arch. Mention the new target
11100 arm*-*-netbsd*.
11101
5832ed7e
JB
111022002-02-19 Jim Blandy <jimb@redhat.com>
11103
11104 * stabsread.c (error_type_complaint): Improve error message.
11105
84563040
DJ
111062002-02-19 Daniel Jacobowitz <drow@mvista.com>
11107
11108 * gdbserver/README: Update documentation.
11109 * gdbserver/configure.in: Update configury to match documentation.
11110 * gdbserver/Makefile.in: Likewise.
11111 * gdbserver/configure: Regenerated.
11112 * gdbserver/aclocal.m4: New file, generated by aclocal.
11113 * gdbserver/config.in: New file, generated by autoheader.
11114
375fd65b
RE
111152002-02-19 Richard Earnshaw <rearnsha@arm.com>
11116
11117 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11118 armnbsd-nat.c.
11119
08216dd7
RE
111202002-02-19 Richard Earnshaw <rearnsha@arm.com>
11121
11122 * arm-tdep.h (enum arm_float_model): New enum.
11123 (struct gdbarch_tdep): Add fp_model.
11124 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11125 up floating-point conversions until we know the floating-point model
11126 in use by the inferior. Don't complain about being unable to
11127 determine the ABI of the inferior when we don't have one.
11128 (arm_extract_return_value): Support different floating-point models.
11129 (arm_store_return_value): Likewise.
aaa38bb5 11130 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11131 ARM_FLOAT_SOFT.
11132 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11133
65d6d66a
PS
111342002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11135
11136 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11137 of ``current_gdbarch''.
11138
47221191
RE
111392002-02-19 Richard Earnshaw <rearnsha@arm.com>
11140
11141 * armnbsd-nat.c : ANSIfy all function declarations.
11142 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11143 (fetch_inferior_registers): Re-implement in terms of above.
11144 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11145 (store_inferior_registers): Re-implement in terms of above.
11146
fdf39c9a
RE
111472002-02-19 Richard Earnshaw <rearnsha@arm.com>
11148
aaa38bb5 11149 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11150 kernel.
11151 * arm-linux-tdep.c: Likewise.
11152 * config/arm/tm-linux.h: Likewise.
11153
93247f88
RE
111542002-02-19 Richard Earnshaw <rearnsha@arm.com>
11155
11156 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11157 * config/arm/nbsd.mt (TM_FILE): Delete.
11158 * config/arm/tm-nbsd.h: Delete.
11159
d7b486e7
RE
111602002-02-19 Richard Earnshaw <rearnsha@arm.com>
11161
11162 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11163 Initialize CALL_DUMMY_LENGTH.
11164
41d39a95
RE
111652002-02-19 Richard Earnshaw <rearnsha@arm.com>
11166
11167 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11168 function.
11169 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11170 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11171 defines one thing and that is incorrect for this port.
11172 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11173
e1195560
PM
111742002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11175
11176 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11177
c1748f97
PM
111782002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11179
11180 * win32-nat.c (display_selector): New function. Displays information
11181 about the information returned by GetThreadSelectorEntry API function.
11182 (display_selectors): New function. Displays the infomation of
11183 the selector given as argument, or of CS, DS ans FS selectors
11184 if no argument is given.
11185 ( _initialize_inftarg): Add "w32" as info prefix command.
11186 Add "info w32 selector" as command calling display_selectors.
11187
e41e6bbf
PM
111882002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11189
11190 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11191 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11192 if not defined.
11193
0d3a9f48
RE
111942002-02-18 Richard Earnshaw <rearnsha@arm.com>
11195
11196 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11197
3fb4b924
RE
111982002-02-18 Richard Earnshaw <rearnsha@arm.com>
11199
11200 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11201 (arm_fix_call_dummy): Call it.
11202 (arm_call_dummy_breakpoint_offset): Delete.
11203 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11204 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11205
7f55af32
AC
112062002-02-18 Andrew Cagney <ac131313@redhat.com>
11207
11208 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11209 Default to func_frame_chain_valid.
11210 * gdbarch.h, gdbarch.c: Re-generate.
11211 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11212
05f13b9c
EZ
112132002-02-18 Elena Zannoni <ezannoni@redhat.com>
11214
11215 * ppc-linux-nat.c: Update copyright.
11216 (fetch_register, store_register): Add tid parameter, don't compute
11217 tid here.
11218 (fetch_ppc_registers, store_ppc_registers): Add tid
11219 parameter. Pass it along to callees.
11220 (fetch_inferior_registers, store_inferior_registers): Compute tid
11221 here, and pass it to calleed functions.
11222 (fill_gregset, supply_fpregset): Clean up formatting.
11223
d7afb4c9
RE
112242002-02-18 Richard Earnshaw <rearnsha@arm.com>
11225
11226 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11227 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11228
9df628e0
RE
112292002-02-18 Richard Earnshaw <rearnsha@arm.com>
11230
11231 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11232 * gdbarch.c gdbarch.h: Regenerate.
11233 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11234 function.
11235 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11236 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11237 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11238
11239 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11240 * arm-tdep.c (arm_get_longjmp_target): New function.
11241 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11242 this to a positive value register arm_get_longjmp_target as the
11243 longjmp handler.
11244 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11245 (arm_linux_init_abi): Set up longjmp description in tdep.
11246 * armnbsd-nat.c (get_longjmp_target): Delete.
11247 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11248 description in tdep.
11249 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11250 (get_longjmp_target): Delete declaration.
11251 (GET_LONGJMP_TARGET): Delete.
11252 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11253 (GET_LONGJMP_TARGET): Delete.
11254
57bc8964
KB
112552002-02-17 Kevin Buettner <kevinb@redhat.com>
11256
11257 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11258 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11259 of ``current_gdbarch''.
11260
83d31a92
TT
112612002-02-17 Tom Tromey <tromey@redhat.com>
11262
11263 * cli/cli-cmds.c (compare_strings): New function.
11264 (complete_command): Only print each unique item once.
11265 * completer.h (complete_line): Declare.
11266 * completer.c (complete_line): New function.
11267 (line_completion_function): Use it.
11268
17ef5d92
AC
112692002-02-16 Andrew Cagney <ac131313@redhat.com>
11270
11271 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11272 * gdbarch.h, gdbarch.c: Re-generate.
11273
491b8946
DJ
112742002-02-16 Daniel Jacobowitz <drow@mvista.com>
11275
11276 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11277
112782002-02-16 Daniel Jacobowitz <drow@mvista.com>
11279
11280 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11281 * valops.c (value_arg_coerce): Don't take the address of a reference
11282 to convert an argument to a reference.
11283
dfe7f3ac
CF
112842002-02-15 Christopher Faylor <cgf@redhat.com>
11285
11286 * win32-nat.c (get_image_name): New function.
11287 (handle_load_dll): Use get_image_name function.
11288 (get_child_debug_event): Avoid registering debug events until possibly
11289 execed process is started.
11290 (child_create_inferior): Allow invocation via shell so that command
11291 line redirection, etc. works ok.
11292 (_initialize_inftarg): Add new command: "set shell" to control whether
11293 a shell is used to start a process.
11294
1d33e73a
DJ
112952002-02-15 Daniel Jacobowitz <drow@mvista.com>
11296
11297 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11298 instead of find_register_by_number.
11299 (cannot_store_register): Likewise.
11300
48cd0caa
PM
113012002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11302
aaa38bb5 11303 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11304 fprintf_unfiltered (gdb_stderr, ...).
11305
8656e7d8
DJ
113062002-02-15 Daniel Jacobowitz <drow@mvista.com>
11307
11308 * gdbserver/gdbserver.1: Document --attach.
11309
66e810cd
RE
113102002-02-15 Richard Earnshaw <rearnsha@arm.com>
11311
11312 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11313 descriptions.
11314 * arm-tdep.c (arm_default_arm_le_breakpoint)
11315 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11316 (arm_default_thumb_be_breakpoint): New. Initialize them from
11317 traditional breakpoint defines.
11318 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11319 (arm_gdbarch_init): Initialize new breakpoint variables.
11320 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11321 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11322 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11323 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11324 code out to ...
11325 (arm_netbsd_init_abi_common): ... here; new function.
11326 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11327 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11328 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11329 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11330
97e03143
RE
113312002-02-15 Richard Earnshaw <rearnsha@arm.com>
11332
11333 * arm-tdep.h (enum arm_abi): New enum.
11334 (struct gdbarch_tdep): New structure.
11335 (LOWEST_PC): Provide a default.
11336 (arm_gdbarch_register_os_abi): Declare new function.
11337 * arm-tdep.c (arm_abi_names): New array.
11338 (process_note_abi_tag_sections): New function.
11339 (get_elfosabi): New function.
11340 (arm_gdbarch_register_os_abi): New function.
11341 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11342 support for that ABI has been built in, then call the appropriate
11343 configuration routine. Use gdbarch_num_regs() to get the number
11344 of registers.
11345 (arm_dump_tdep): New function.
11346 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11347 place-holder functions.
11348 (_initialize_arm_tdep): Register them.
11349 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11350
11351 * armnbsd-tdep.c: New file.
11352 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11353 * config/arm/nbsd.mt (TDEPFILES): Add it.
11354 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11355
11356 * armnbsd-nat.c: Include regcache.h.
11357 * Makefile.in (armnbsd-nat.o): Update dependency list.
11358
11359 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11360
ad68be46
DJ
113612002-02-14 Daniel Jacobowitz <drow@mvista.com>
11362
11363 * gdbserver/Makefile.in: Fix typos in target rules.
11364
003d6d1d
DJ
113652002-02-14 Daniel Jacobowitz <drow@mvista.com>
11366
aaa38bb5 11367 Fix part of PR gdb/267.
003d6d1d
DJ
11368 * linespec.c (find_methods): Handle constructors specially for now.
11369
6b230f1b
CV
113702002-02-14 Corinna Vinschen <vinschen@redhat.com>
11371
11372 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11373 handling.
11374 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11375 standard_coerce_float_to_double().
11376
1ea98d12
CF
113772002-02-14 Christopher Faylor <cgf@redhat.com>
11378
11379 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11380 GDBINIT_FILENAME.
11381
dd47e6fd
EZ
113822002-02-14 Elena Zannoni <ezannoni@redhat.com>
11383
11384 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11385 find_variant_by_name, because it confuses the multiarch
11386 framework. Return NULL if there isn't an architecture with the
11387 user supplied name, instead of forcing a different one without
11388 recording the change with the multiarch machinery.
11389 (find_variant_by_name): Delete.
11390
d7e39b9e
PS
113912002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11392
11393 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11394 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11395
76e42a4f
MH
113962002-02-13 Martin M. Hunt <hunt@redhat.com>
11397
aaa38bb5 11398 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11399 print_frame_info_listing_hook, set current_source_symtab.
11400
0a30fbc4
DJ
114012002-02-14 Daniel Jacobowitz <drow@mvista.com>
11402
11403 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11404 and remove unused $(INCLUDE_DIR).
11405 Add regcache.c to OBS.
11406 Add generated register protocol files to clean target.
11407 Update dependencies for new objects, obsolete old target code.
11408
11409 * gdbserver/linux-low.c: Remove all platform-specific code to
11410 new files. Remove various dead code. Update to use regcache
11411 functionality.
11412 * gdbserver/remote-utils.c (fromhex): Add return statement
11413 to quiet warning.
11414 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11415 constant.
11416 (input_interrupt): Add integer parameter to match prototype
11417 of a signal handler.
11418 (outreg): Use register_data ().
11419 (prepare_resume_reply): Use gdbserver_expedite_regs.
11420 * gdbserver/server.c (main): Dynamically allocate own_buf because
11421 PBUFSIZ is no longer constant. Use registers_to_string () and
11422 registers_from_string ().
11423 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11424 for error (), fatal (), and warning (). Update definition of
11425 PBUFSIZ to use regcache functionality. Add include guard.
11426 * gdbserver/utils.c (fatal): Add missing ``const''.
11427 (warning): New function.
11428
11429 * regformats/regdat.sh: Include "regcache.h" in generated files.
11430 Provide init_registers () function.
11431 * regformats/regdef.h: Add prototype for set_register_cache ().
11432 Add include guard.
11433
11434 * gdbserver/linux-arm-low.c: New file.
11435 * gdbserver/linux-i386-low.c: New file.
11436 * gdbserver/linux-ia64-low.c: New file.
11437 * gdbserver/linux-m68k-low.c: New file.
11438 * gdbserver/linux-mips-low.c: New file.
11439 * gdbserver/linux-ppc-low.c: New file.
11440 * gdbserver/linux-sh-low.c: New file.
11441
11442 * gdbserver/regcache.c: New file.
11443 * gdbserver/regcache.h: New file.
11444
11445 * gdbserver/low-linux.c: Removed obsolete file.
11446
4cc841d0
DJ
114472002-02-14 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11450 * config/i386/linux.mt: Likewise.
11451 * config/ia64/linux.mt: Likewise.
11452 * config/m68k/linux.mh: Likewise.
11453 * config/powerpc/linux.mh: Likewise.
11454 * config/mips/linux.mt: Likewise.
11455
11456 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11457
11458 * config/i386/i386lynx.mh: Mark gdbserver variables
11459 as (currently) obsolete for this target.
11460 * config/i386/nbsd.mt: Likewise.
11461 * config/i386/nbsdelf.mt: Likewise.
11462 * config/m32r/m32r.mt: Likewise.
11463 * config/m68k/m68klynx.mh: Likewise.
11464 * config/m68k/nbsd.mt: Likewise.
11465 * config/m68k/sun3os4.mh: Likewise.
11466 * config/mips/vr5000.mt: Likewise.
11467 * config/ns32k/nbsd.mt: Likewise.
11468 * config/pa/hppabsd.mh: Likewise.
11469 * config/pa/hppaosf.mh: Likewise.
11470 * config/powerpc/nbsd.mt: Likewise.
11471 * config/rs6000/rs6000lynx.mh: Likewise.
11472 * config/s390/s390.mt: Likewise.
11473 * config/s390/s390x.mt: Likewise.
11474 * config/sparc/sparclynx.mh: Likewise.
11475 * config/sparc/sun4os4.mh: Likewise.
11476 * config/i386/x86-64linux.mt: Likewise.
11477 * config/sparc/linux.mh: Likewise.
11478
a85f51e7
DJ
114792002-02-14 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * configure.tgt: Configure gdbserver only for known working
11482 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11483 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11484 SUBDIRS if it is configured. Update comment for ${nativefile}.
11485 * configure: Regenerated.
11486
65554fef
MS
114872002-02-13 Michael Snyder <msnyder@redhat.com>
11488
670a52db
MS
11489 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11490
6dbdc4a3
MS
11491 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11492 (default_gcore_mach): Just return 0, work around a problem in bfd.
11493 (default_gcore_target): OK to return NULL if exec_bfd is null.
11494 (make_mem_sec): Use a cast, avoid a warning.
11495
11496 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11497 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11498 sizeof (host pointer) != sizeof (target pointer)).
11499 (procfs_make_note_section): Avoid overflow in psargs string.
11500
aaa38bb5 11501 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11502 implementation return an error.
11503
115042002-02-13 Rodney Brown <rbrown64@csc.com.au>
11505
11506 * procfs.c (procfs_make_note_section): Provide a default definition
11507 (for alpha-dec-osf4.0f). Fix typos.
11508
1e4d76e7
EZ
115092002-02-13 Elena Zannoni <ezannoni@redhat.com>
11510
11511 * linux-proc.c: Add include of regcache.h.
11512 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11513
b6d1a1d5
AC
115142002-02-13 Andrew Cagney <ac131313@redhat.com>
11515
11516 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11517 * memattr.c (create_mem_region): Disallow useless empty region.
11518 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11519 non-overlapping.
b6d1a1d5 11520
6c6ea35e
MC
115212002-02-13 Michael Chastain <mec@shout.net>
11522
11523 * defs.h: Kill CONST_PTR.
11524 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11525 * c-lang.c (c_builtin_types): Likewise.
11526 * ch-lang.c (ch_builtin_types): Likewise.
11527 * f-lang.c (f_builtin_types): Likewise.
11528 * language.c (unknown_builtin_types): Likewise.
11529 * m2-lang.c (m2_builtin_types): Likewise.
11530 * p-lang.c (pascal_builtin_types): Likewise.
11531 * scm-lang.c (c_builtin_types): Likewise.
11532
3e0b0f48
KS
115332002-02-13 Keith Seitz <keiths@redhat.com>
11534
11535 * arm-tdep.h (arm_get_next_pc): Add declaration.
11536
67255d04
RE
115372002-02-13 Richard Earnshaw <rearnsha@arm.com>
11538
11539 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11540 with other related struct-returning functions.
11541 (arm_extract_struct_value_address): New function.
11542 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11543 initialize float_format, double_format and long_double_format as
11544 appropriate to the endianness of the target.
11545 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11546 (arm_use_struct_convention): Delete declaration.
11547 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11548
079777f6
KS
115492002-02-13 Keith Seitz <keiths@redhat.com>
11550
11551 * defs.h (core_addr_to_string_nz): New function.
11552
34588f23
MK
115532002-02-13 Mark Kettenis <kettenis@gnu.org>
11554
11555 Apply missing bits of 2002-01-15 patch.
11556 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11557 (fill_fpregset): Use i387_fill_fsave.
11558
49b563f9
KS
115592002-02-12 Keith Seitz <keiths@redhat.com>
11560
49b563f9
KS
11561 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11562 (core_addr_to_string_nz): New function.
11563
aeb98c60
RE
115642002-02-11 Richard Earnshaw <rearnsha@arm.com>
11565
11566 * arm-linux-nat.c: Really include arm-tdep.h.
11567 * config/arm/tm-linux.h (struct type, struct value): Declare.
11568
65554fef
MS
115692002-02-11 Michael Snyder <msnyder@redhat.com>
11570
11571 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11572 (gcore section): Ifdef for Solaris and Unixware only.
11573 (procfs_do_thread_registers): Unixware needs one lwpstatus
11574 per thread (not one prstatus or pstatus).
11575 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11576 not over all gdb threads. For unixware, call elfcore_write_pstatus
11577 once before iterating over threads.
11578
34e8f22d
RE
115792002-02-11 Richard Earnshaw <rearnsha@arm.com>
11580
11581 * arm-tdep.h: New file.
11582 * arm-tdep.c: Include arm-tdep.h.
11583 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11584 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11585 (arm_print_float_info, arm_register_type, convert_to_extended)
11586 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11587 (arm_extract_return_value, arm_register_name): Make static.
11588 (arm_software_single_step): Similarly. Fix types in declaration.
11589 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11590 (arm_store_return_value, arm_store_struct_return): New functions.
11591 (arm_gdbarch_init): Register the above functions. Also register
11592 call_dummy_start_offset, sizeof_call_dummy_words,
11593 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11594 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11595 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11596 prologue_cache.saved_regs here, rather than ...
11597 (_initialize_arm_tdep): ... here.
11598 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11599 declarations.
11600 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11601 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11602 (arm_print_float_info, arm_register_type, convert_to_extended)
11603 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11604 (arm_extract_return_value, arm_register_name): Delete declarations.
11605 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11606 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11607 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11608 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11609 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11610 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11611 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11612 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11613 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11614 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11615 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11616 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11617 interface.
11618 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11619 * remote-rdi.c remote-rdp.c: Likewise.
11620 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11621 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11622 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11623 definition.
11624
11625 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11626 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11627 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11628 from non-ARM_ prefixed definitions.
11629 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11630 all uses of above.
11631 * remote-rdi.c remote-rdp.c: Likewise.
11632 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11633
148754e5
RE
116342002-02-11 Richard Earnshaw <rearnsha@arm.com>
11635
11636 * arm-tdep.c (arm_frameless_function_invocation)
11637 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11638 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11639 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11640 (arm_pop_frame, arm_get_next_pc): Make static.
11641 (arm_gdbarch_init): Register above in gdbarch structure.
11642 (arm_read_fp): Renamed from arm_target_read_fp.
11643 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11644 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11645 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11646 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11647 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11648 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11649 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11650 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11651 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11652 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11653 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11654
434d2d4f
DJ
116552002-02-10 Daniel Jacobowitz <drow@mvista.com>
11656
11657 * symtab.c (compare_search_syms): New function.
11658 (sort_search_symbols): New function.
11659 (search_symbols): Sort symbols after searching rather than
11660 before.
11661
55241689
AC
116622002-02-10 Andrew Cagney <ac131313@redhat.com>
11663
11664 * NEWS: Linux -> GNU/Linux.
11665
028c194b
AC
116662002-02-10 Andrew Cagney <ac131313@redhat.com>
11667
11668 * gdbarch.sh: For for level one methods, disallow a definition
11669 when partially multi-arched. Add comments explaining rationale.
11670 * gdbarch.h: Re-generate.
11671
6acf50cd
AC
116722002-02-10 Andrew Cagney <ac131313@redhat.com>
11673
11674 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11675 multi-arch partial.
aaa38bb5 11676
50248794
AC
116772002-02-10 Andrew Cagney <ac131313@redhat.com>
11678
11679 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11680 field. Use diff -u.
11681 * gdbarch.c: Re-generate.
11682
c30e0066
AC
116832002-02-10 Andrew Cagney <ac131313@redhat.com>
11684
9b56c5f3 11685 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11686 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11687 partial.
11688
6e6d6484
AC
116892002-02-10 Andrew Cagney <ac131313@redhat.com>
11690
11691 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11692 multi-arch partial.
11693 (PUSH_ARGUMENTS): Switch to using predefault.
11694 * gdbarch.c: Regenerate.
11695
c203844d
AC
116962002-02-10 Andrew Cagney <ac131313@redhat.com>
11697
11698 * valops.c (PUSH_ARGUMENTS): Delete definition.
11699 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11700 partial. Default to default_push_arguments.
11701 * gdbarch.h, gdbarch.c: Regenerate.
11702
b5a2688f
AC
117032002-02-09 Andrew Cagney <ac131313@redhat.com>
11704
11705 * defs.h (throw_exception): Rename return_to_top_level. Update
11706 comments.
11707 * utils.c (error_stream, internal_verror, quit): Ditto.
11708 * top.c (throw_exception, catcher): Ditto.
11709 * sparclet-rom.c (sparclet_load): Ditto.
11710 * remote.c (interrupt_query, minitelnet): Ditto.
11711 * remote-sds.c (interrupt_query): Ditto.
11712 * remote-mips.c (mips_error, mips_kill): Ditto.
11713 * ocd.c (interrupt_query): Ditto.
11714 * monitor.c (monitor_interrupt_query): Ditto.
11715 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11716 * target.h: Update comment.
aaa38bb5 11717
b5a2688f 11718 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11719
2fa5c1e0
AC
117202002-02-09 Andrew Cagney <ac131313@redhat.com>
11721
11722 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11723 default_double_format.
11724 * gdbarch.h, gdbarch.c: Re-generate.
11725 * findvar.c (floatformat_unknown): Delete variable definition.
11726 * doublest.h (floatformat_unknown): Delete variable declaration.
11727
da966255
JB
117282002-02-09 Jim Blandy <jimb@redhat.com>
11729
11730 * stabsread.c (read_type): Add code to parse Sun's syntax for
11731 prototyped function types.
11732
123a4891
AC
117332002-02-09 Andrew Cagney <ac131313@redhat.com>
11734
11735 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11736 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11737
fb39c8f3
PS
117382002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11739
11740 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11741 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11742 now _initialize_xcoffsolib gets called again and overrides the
11743 commands from solib.c in a native configuration.
11744
0b87a11d
MK
117452002-02-09 Mark Kettenis <kettenis@gnu.org>
11746
11747 * doublest.c (store_typed_floating): Don't try to return a value.
11748 Fixes PR gdb/290.
11749
bdc2fc72
JB
117502002-02-08 Jim Blandy <jimb@redhat.com>
11751
11752 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11753 is prototyped and has no arguments, print its argument list as
11754 `(void)'.
11755
da69bbcf
CD
117562002-02-08 Chris Demetriou <cgd@broadcom.com>
11757
11758 * MAINTAINERS (write-after-approval): Add myself.
11759 (paper-trail): I've escaped!
aaa38bb5 11760
b69571f5
CF
117612002-02-08 Christopher Faylor <cgf@redhat.com>
11762
11763 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11764 changes.
11765 (_initialize_check_for_gdb_ini): Ditto.
11766
f6871398
MH
117672002-02-08 Martin M. Hunt <hunt@redhat.com>
11768
11769 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11770 xaprintf -> xasprintf.
11771
4e52d31c
PM
117722002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11773
11774 * win32-nat.c: Remove use of printf and sprintf functions.
11775
39bbf761
RE
117762002-02-08 Richard Earnshaw <rearnsha@arm.com>
11777
11778 * arm-tdep.c (arm_frame_chain_valid): Make static.
11779 (arm_push_arguments): Likewise.
11780 (arm_gdbarch_init): New function.
11781 (_initialize_arm_tdep): Call it.
11782 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11783 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11784 (FRAME_CHAIN_VALID): Delete.
11785 (arm_frame_chain_valid): Delete declaration.
11786 (PUSH_ARGUMENTS): Delete.
11787 (arm_push_arguments): Delete declaration.
11788 (CALL_DUMMY_P): Delete.
11789
9c9532c9
CV
117902002-02-08 Andrew Cagney <ac131313@redhat.com>
11791 Corinna Vinschen <vinschen@redhat.com>
11792
11793 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11794 on builtin float types.
11795
4e8f7a8b
DJ
117962002-02-08 Daniel Jacobowitz <drow@mvista.com>
11797
11798 * utils.c: Include <curses.h> before "bfd.h".
11799 * tui/tui-hooks.c: Likewise.
11800 * tui/tui.c: Likewise.
11801 * tui/tuiCommand.c: Likewise.
11802 * tui/tuiData.c: Likewise.
11803 * tui/tuiDataWin.c: Likewise.
11804 * tui/tuiDisassem.c: Likewise.
11805 * tui/tuiGeneralWin.c: Likewise.
11806 * tui/tuiIO.c: Likewise.
11807 * tui/tuiLayout.c: Likewise.
11808 * tui/tuiRegs.c: Likewise.
11809 * tui/tuiSource.c: Likewise.
11810 * tui/tuiSourceWin.c: Likewise.
11811 * tui/tuiStack.c: Likewise.
11812 * tui/tuiWin.c: Likewise.
11813
cd4bffcf
EZ
118142002-02-07 Elena Zannoni <ezannoni@redhat.com>
11815
11816 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11817 to include space for pseudoregs as well. Update loops accordingly.
11818 (sh_fp_frame_init_saved_regs): Ditto.
11819 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11820
26806ce2
AC
118212002-02-07 Andrew Cagney <ac131313@redhat.com>
11822
11823 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11824 Add Richard Earnshaw to Arm maintainers.
11825
97fdab62
AC
118262002-02-07 Andrew Cagney <ac131313@redhat.com>
11827
a6b98203
AC
11828 * defs.h (warning_begin): Delete declaration.
11829
97fdab62
AC
11830 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11831 Delete macro.
11832
78b29b40
MS
118332002-02-07 Michael Snyder <msnyder@redhat.com>
11834
aaa38bb5 11835 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11836 Logic bug, remove misplaced else.
11837
d8849953
KD
118382002-02-07 Klee Dienes <klee@apple.com>
11839
11840 * fork-inferior.c (fork_inferior): Add '!' to the list of
11841 characters that need to be quoted when building a string for the
11842 shell. Quote '!' specifically with a backslash, since CSH chokes
11843 when trying to evaluate "str!str".
aaa38bb5 11844
095778a0
NC
118452002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11846
11847 * rdi-share/host.h: Only provide a typedef for bool if it is not
11848 defined.
11849
1900040c
MS
118502002-02-04 Michael Snyder <msnyder@redhat.com>
11851
11852 * breakpoint.h (enum bptype): Add new overlay event bp type.
11853 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11854
1900040c
MS
11855 * breakpoint.c (create_internal_breakpoint): New function.
11856 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11857 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11858 (create_thread_event_breakpoint): Ditto.
11859 (create_solib_event_breakpoint): Ditto.
11860 (create_overlay_event_breakpoint): New function.
11861 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11862 (update_breakpoints_after_exec): Delete and re-initialize
11863 overlay event breakpoints after an exec. Add FIXME comment
11864 about longjmp breakpoint.
11865 (print_it_typical): Ignore overlay event breakpoints.
11866 (print_one_breakpoint): Ditto.
11867 (mention): Ditto.
11868 (bpstat_what): Do not stop for overlay event breakpoints.
11869 (delete_breakpoint): Don't delete overlay event breakpoints.
11870 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11871 (breakpoint_re_set): Re-create overlay event breakpoint.
11872
11873 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11874 (overlay_manual_command): Disable overlay breakpoints.
11875 (overlay_off_command): Disable overlay breakpoints.
11876
082fc60d
RE
118772002-02-06 Richard Earnshaw <rearnsha@arm.com>
11878
11879 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11880 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11881 to here from config/tm-arm.h.
11882 (coff_sym_is_thumb): Make static.
11883 (arm_elf_make_msymbol_special): New function.
11884 (arm_coff_make_msymbol_special): New function.
11885 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11886 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11887 (coff_sym_is_thumb): Delete declaration.
11888 (arm_elf_make_msymbol_special): Declare.
11889 (arm_coff_make_msymbol_special): Declare.
11890 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11891 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11892
039c5766
RE
118932002-02-06 Richard Earnshaw <rearnsha@arm.com>
11894
11895 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11896
118972002-02-06 Richard Earnshaw <rearnsha@arm.com>
11898
11899 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11900 * gdbarch.c gdbarch.h: Regenerate.
11901 * arch-utils.c (default_print_float_info): New function.
11902 * arch-utils.h (default_print_float_info): Prototype it.
11903 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11904 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11905 (PRINT_FLOAT_INFO): Document it.
11906
11907 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11908 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11909 (PRINT_FLOAT_INFO): Define.
11910
58fa08f0
PM
119112002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11912
aaa38bb5 11913 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11914 Add typecast to sprintf argument to suppress a warning.
11915
7393af7c
PM
119162002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11917
58fa08f0 11918 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11919 to allow easier handling of pass state.
11920 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11921 that gives exception name and address.
11922 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11923 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11924 exceptions added.
aaa38bb5
AJ
11925 (child_continue): Correctly report continue_status.
11926 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11927 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11928 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11929 the exception should be passed to debuggee or not.
11930
6af4589c
MS
119312002-02-05 Michael Snyder <msnyder@redhat.com>
11932
11933 * regcache.c (fetch_register): Call target_fetch_register
11934 only if we don't call FETCH_PSEUDO_REGISTER.
11935 (store_register): Call target_store_register only if we
11936 don't call STORE_PSEUDO_REGISTER.
11937
a2cf933a
EZ
119382002-02-05 Elena Zannoni <ezannoni@redhat.com>
11939
11940 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11941 ELF_MAKE_MSYMBOL_SPECIAL.
11942 * gdbarch.c, gdbarch.h: Regenerate.
11943 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11944 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11945 * elfread.c (elf_symtab_read): Compile use of
11946 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11947 multiarched.
11948 * coffread.c (coff_symtab_read): Ditto, for
11949 COFF_MAKE_MSYMBOL_SPECIAL.
11950
6bb7be43
JB
119512002-02-05 Jim Blandy <jimb@redhat.com>
11952
11953 * solib-svr4.c (svr4_truncate_ptr): New function.
11954 (svr4_relocate_section_addresses): Do the address arithmetic with
11955 the appropriate truncation for target addresses, even when
11956 CORE_ADDR is larger than a target address.
11957
e18651ec
DJ
119582002-02-05 Daniel Jacobowitz <drow@mvista.com>
11959
11960 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11961 to (int *).
11962
6b2725be
DJ
119632002-02-05 Daniel Jacobowitz <drow@mvista.com>
11964
11965 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11966 code.
11967
fca9e603
DJ
119682002-02-05 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11971
6c537a52
DJ
119722002-02-05 Daniel Jacobowitz <drow@mvista.com>
11973
11974 * gdbserver/linux-low.c: Remove unused include files.
11975
d844cde6
DJ
119762002-02-05 Daniel Jacobowitz <drow@mvista.com>
11977
11978 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11979 (read_inferior_memory): Use it.
11980 (write_inferior_memory): Likewise.
11981
d07c63e7
DJ
119822002-02-05 Daniel Jacobowitz <drow@mvista.com>
11983
11984 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11985 grubbing through sys_errlist.
11986
da6d8c04
DJ
119872002-02-05 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11990
5b421780
PM
119912002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11992 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11993
9f60d481
AC
119942002-02-04 Andrew Cagney <ac131313@redhat.com>
11995
11996 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11997 (do_sfunc, set_cmd_sfunc): New functions.
11998
11999 * command.h (struct cmd_list_element): Add field func.
12000 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12001 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12002 * cli/cli-decode.h: Ditto.
12003
12004 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12005 (help_all, help_cmd_list): Ditto.
12006 (find_cmd, complete_on_cmdlist): Ditto.
12007 * top.c (execute_command): Ditto.
12008
12009 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12010 function.sfunc.
12011
12012 * infcmd.c (notice_args_read): Fix function signature.
12013
12014 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12015 * cli/cli-decode.c (add_set_cmd): Ditto.
12016 * utils.c (initialize_utils): Ditto.
12017 * maint.c (_initialize_maint_cmds): Ditto.
12018 * infrun.c (_initialize_infrun): Ditto.
12019 * demangle.c (_initialize_demangler): Ditto.
12020 * remote.c (add_packet_config_cmd): Ditto.
12021 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12022 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12023 * proc-api.c (_initialize_proc_api): Ditto.
12024 * kod.c (_initialize_kod): Ditto.
12025 * valprint.c (_initialize_valprint): Ditto.
12026 * top.c (init_main): Ditto.
12027 * infcmd.c (_initialize_infcmd): Ditto.
12028 * corefile.c (_initialize_core): Ditto.
12029 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12030 * arch-utils.c (initialize_current_architecture): Ditto.
12031 (_initialize_gdbarch_utils): Ditto.
12032 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12033
12034 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12035 * wince.c (_initialize_inftarg): Ditto.
12036 * symfile.c (_initialize_symfile): Ditto.
12037 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12038 * language.c (_initialize_language): Ditto.
12039 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12040
f9ba0717
MS
120412002-02-04 Michael Snyder <msnyder@redhat.com>
12042
12043 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12044
0c74b2a7
DJ
120452002-02-04 Daniel Jacobowitz <drow@mvista.com>
12046
12047 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12048 Add rules for building the register data files.
12049
c638789f
DJ
120502002-02-04 Daniel Jacobowitz <drow@mvista.com>
12051
12052 * regformats/regdat.sh: Add braces to the definition of
12053 expedite_regs_${arch}.
12054
db253027
DJ
120552002-02-04 Daniel Jacobowitz <drow@mvista.com>
12056
12057 * regformats/regdef.h (struct reg): Add comment describing the
12058 requirements for offset and size fields.
12059
206be19c
AS
120602002-02-04 Andreas Schwab <schwab@suse.de>
12061
12062 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12063 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12064
181c1381
RE
120652002-02-04 Richard Earnshaw <rearnsha@arm.com>
12066
12067 * gdbarch.sh (copyright): Update years in generated header.
12068 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12069 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12070 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12071 * dbxread.c: Likewise.
12072 * dwarfread.c: Likewise.
12073 * elfread.c: Likewise.
12074 * somread.c: Likewise.
12075
12076 * arm-tdep.c (arm_smash_text_address): New function.
12077 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12078
fa4ba8da
PM
120792002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12080
12081 Add support for hardware watchpoints on win32 native.
aaa38bb5 12082 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12083 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12084 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12085 of debug registers.
12086 (debug_registers_changed): New variable. Reflects when debug registers
12087 are changed and need to be written to inferior.
aaa38bb5 12088 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12089 was set, used when new threads are created.
12090 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12091 i386-nat code.
12092 (thread_rec): Set dr array if id is the thread of current_event .
12093 (child_continue, child_resume): Change the debug registers for all
12094 threads if debug_registers_changed.
12095 (child_add_thread): Change the debug registers if debug_registers_used.
12096 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12097 Link nm.h to new nm-cygwin.h file.
12098 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12099 of hardware registers.
12100
a73c86fb
AC
121012002-02-03 Andrew Cagney <ac131313@redhat.com>
12102
12103 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12104 Restore behavour broken by 2002-01-20 Andrew Cagney
12105 <ac131313@redhat.com> IEEE_FLOAT removal.
12106
acf5ed49
DJ
121072002-02-03 Daniel Jacobowitz <drow@mvista.com>
12108
12109 * c-valprint.c (c_val_print): Pass a proper valaddr to
12110 cp_print_class_method.
12111 * valops.c (search_struct_method): If there is only one method
12112 and args is NULL, return that method.
12113
493d28d5
DJ
121142002-02-03 Daniel Jacobowitz <drow@mvista.com>
12115
12116 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12117 accessing tag_name directly.
12118
7495dfdb
DJ
121192002-02-03 Daniel Jacobowitz <drow@mvista.com>
12120
12121 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12122 of accessing tag_name directly.
12123
dd6bda65
DJ
121242002-02-03 Daniel Jacobowitz <drow@mvista.com>
12125
12126 PR gdb/280
12127 * gdbtypes.c (replace_type): New function.
12128 * gdbtypes.h (replace_type): Add prototype.
12129 * stabsread.c (read_type): Use replace_type.
12130
88fe217c
RE
121312002-02-03 Richard Earnshaw <rearnsha@arm.com>
12132
12133 * Makefile.in (memattr.o): Add missing dependencies rule.
12134
e5d66720
PS
121352002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12136
12137 * breakpoint.c (break_at_finish_command): Really export.
12138 (break_at_finish_at_depth_command): Ditto.
12139 (tbreak_at_finish_command): Ditto.
12140 * hppa-tdep.c: Include completer.h.
12141 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12142 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12143
fffee0be
AC
121442002-02-01 Andrew Cagney <ac131313@redhat.com>
12145
12146 * utils.c (do_write): New function.
12147 (error_stream): Rewrite combining the code from error_begin and
12148 verror.
12149 (verror): Rewrite using error_stream.
12150 (error_begin): Delete function.
12151
255e7dbf
AC
121522002-02-01 Andrew Cagney <ac131313@redhat.com>
12153
12154 * utils.c (error_begin): Make static.
12155 * defs.h (error_begin): Delete declaration.
12156
12157 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12158 (decode_line_1): Use cplusplus_error instead of error_begin,
12159 cplusplus_hint and return_to_top_level.
12160 * coffread.c (coff_symfile_read): Use error instead of error_begin
12161 and return_to_top_level.
12162 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12163
ddfe3c15
AC
121642002-02-01 Andrew Cagney <ac131313@redhat.com>
12165
12166 * language.h (type_error, range_error): Make string parameter
12167 constant.
12168 * language.c (warning_pre_print): Delete extern declaration.
12169 * dwarfread.c (warning_pre_print): Ditto.
12170 * language.c (type_error, range_error): Rewrite to use verror and
12171 vwarning instead of warning_begin.
12172
03ac34d5
MS
121732002-02-01 Michael Snyder <msnyder@redhat.com>
12174
261c4ca2
MS
12175 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12176 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12177
e00d1dc8
AC
121782002-02-01 Andrew Cagney <ac131313@redhat.com>
12179
12180 * command.h (NO_FUNCTION): Delete macro.
12181 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12182 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12183 * tracepoint.c (_initialize_tracepoint): Ditto.
12184 * cli/cli-decode.c (add_set_cmd): Ditto.
12185 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12186
76b79d6e
DJ
121872002-02-01 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12190 Update ``this'' pointer when calling virtual functions.
12191
799f9e91
MS
121922002-02-01 Michael Snyder <msnyder@redhat.com>
12193
c7bd442c 12194 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12195 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12196
3cf384d4
DJ
121972002-02-01 Daniel Jacobowitz <drow@mvista.com>
12198
12199 * regformats/reg-arm.dat: New file.
12200 * regformats/reg-i386.dat: New file.
12201 * regformats/reg-ia64.dat: New file.
12202 * regformats/reg-m68k.dat: New file.
12203 * regformats/reg-mips.dat: New file.
12204 * regformats/reg-ppc.dat: New file.
12205 * regformats/reg-sh.dat: New file.
12206 * regformats/regdef.h: New file.
12207 * regformats/regdat.sh: New file.
12208
0defa245
RE
122092002-02-01 Richard Earnshaw <reanrsha@arm.com>
12210
12211 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12212 (arm_frame_args_address, arm_frame_locals_address): New functions.
12213 (arm_frame_num_args): New function.
12214 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12215 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12216 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12217
405f26e6
MS
122182002-01-31 Michael Snyder <msnyder@redhat.com>
12219
502fd408
MS
12220 * breakpoint.c (break_at_finish_command): Export.
12221 (break_at_finish_at_depth_command): Export.
12222 (tbreak_at_finish_command): Export.
d6020d45 12223 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12224 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12225 "txbreak" commands, which are HPPA specific.
502fd408 12226
7d35e135
MS
12227 * printcmd.c (disassemble_command): Remove an ancient
12228 artifact of an old merge.
12229
aaa38bb5 12230 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12231 Define enum constant values for overlay mode.
12232 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12233 (overlay_is_mapped, overlay_auto_command,
12234 overlay_manual_command): Ditto.
d874f1e2 12235
aaa38bb5
AJ
12236 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12237 breakpoint_here_p, breakpoint_inserted_here_p,
12238 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12239 describe_other_breakpoints, check_duplicates, clear_command):
12240 Coding standard fixes.
12241
8add0441 12242 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12243 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12244 code: check bfd SEC_READONLY flag for section.
12245
e351066e
AC
122462002-01-31 Andrew Cagney <ac131313@redhat.com>
12247
7d35e135 12248 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12249
8a48e967
DJ
122502002-01-30 Daniel Jacobowitz <drow@mvista.com>
12251
12252 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12253 data symbols, since we search based on textlow and texthigh.
12254 (find_pc_sect_symtab): Likewise.
12255
f5a96129
AC
122562002-01-30 Andrew Cagney <ac131313@redhat.com>
12257
12258 * defs.h (vwarning): Declare.
f5a96129
AC
12259 * utils.c (vwarning): New function.
12260 (warning): Call vwarning.
12261 (warning_begin): Delete function.
12262
12263 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12264 the warning message.
12265 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12266 warning_begin.
12267
cefd4ef5
MS
122682002-01-30 Michael Snyder <msnyder@redhat.com>
12269
1a703748
MS
12270 * NEWS: Mention "set trust-readonly-sections" command.
12271 Mention generate-core-file command.
cefd4ef5 12272
3a11626d
MS
122732002-01-15 Michael Snyder <msnyder@redhat.com>
12274
12275 * target.c: New command, "set trust-readonly-sections on".
12276 (do_xfer_memory): Honor the suggestion to trust readonly sections
12277 by reading them from the object file instead of from the target.
12278 (initialize_targets): Register command "set trust-readonly-sections".
12279
d1c7e53b
AC
122802002-01-29 Andrew Cagney <ac131313@redhat.com>
12281
12282 * parse.c (target_map_name_to_register): Simplify, search regs and
12283 pseudo-regs using a single loop.
12284
e2c9a72c
AC
122852002-01-30 Andrew Cagney <ac131313@redhat.com>
12286
12287 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12288
69824b4e
MK
122892002-01-15 Rodney Brown <rbrown64@csc.com.au>
12290
12291 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12292 * config/i386/i386v42mp.mh: Add i387-nat.o .
12293 * i386v4-nat.c: Include i387-nat.h.
12294 (supply_fpregset): Use i387_supply_fsave.
12295 (fill_fpregset): Use i387_fill_fsave.
12296
6eb69eab
RE
122972002-01-30 Richard Earnshaw <rearnsha@arm.com>
12298
12299 * arm-tdep.c (arm_call_dummy_words): Define.
12300 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12301 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12302 (CALL_DUMMY_WORDS): Define.
12303 (arm_call_dummy_words): Declare.
12304 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12305 (arm_linux_call_dummy_words): Declare.
12306
9852326a
AS
123072002-01-30 Andreas Schwab <schwab@suse.de>
12308
12309 * m68klinux-nat.c: Fix last change to use regcache_collect
12310 instead of referencing registers[] directly.
12311
977a3030
AC
123122002-01-29 Andrew Cagney <ac131313@redhat.com>
12313
12314 * parse.c (target_map_name_to_register): Delete code wrapped in
12315 #ifdef REGISTER_NAME_ALIAS_HOOK.
12316
2076c72b
MS
123172002-01-28 Michael Snyder <msnyder@redhat.com>
12318
12319 * regcache.c (legacy_read_register_gen): Need to be able to
12320 read pseudo-register as well as real register.
12321 (legacy_write_register_gen): Ditto.
12322
8fcc723b
AC
123232002-01-28 Andrew Cagney <ac131313@redhat.com>
12324
12325 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12326 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12327 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12328 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12329 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12330 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12331 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12332 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12333 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12334 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12335 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12336 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12337 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12338 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12339 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12340 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12341 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12342 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12343 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12344 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12345
afe64c1a
AC
123462002-01-28 Andrew Cagney <ac131313@redhat.com>
12347
12348 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12349 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12350 (initialize_current_architecture): Update target_byte_order using
12351 information from BFD.
aaa38bb5 12352 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12353 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12354
75bc7ddf
AC
123552002-01-28 Andrew Cagney <ac131313@redhat.com>
12356
12357 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12358 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12359
12360 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12361 #ifdef INVALID_FLOAT.
12362 * infcmd.c (do_registers_info): Ditto.
12363 * values.c (unpack_double): Ditto. Add comment.
12364
12365 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12366 already commented out.
12367
0280a90a
AS
123682002-01-26 Andreas Schwab <schwab@suse.de>
12369
12370 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12371 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12372 registers and add support for PTRACE_GETREGS.
12373
7072a954
AC
123742002-01-24 Andrew Cagney <ac131313@redhat.com>
12375
12376 GDB 5.1.1 released from 5.1 branch.
12377 * NEWS: Add 5.1.1 news.
12378 * README: Sync with 5.1 branch.
12379
86f902e0
FF
123802002-01-23 Fred Fish <fnf@redhat.com>
12381
12382 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12383 stabstring on initial malloc. Reallocing will copy it for us,
12384 if necessary.
12385
8af51c36
EZ
123862002-01-23 Elena Zannoni <ezannoni@redhat.com>
12387
aaa38bb5 12388 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12389 (HFILES_NO_SRCDIR): Remove hpread.h.
12390 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12391 (hpread.o): Update dependencies.
12392 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12393
12394 * hp-psymtab-read.c: Remove file.
12395 * hp-symtab-read.c: Remove file.
12396 * hpread.h: Remove file.
12397
12398 * hpread.c: Merge all contents of hp-psymtab-read.c,
12399 hp-symtab-read.c and hpread.h into this file, as it was prior to
12400 January 1999.
12401
12402 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12403 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12404 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12405 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12406
dc5cfeb6
EZ
124072002-01-23 Elena Zannoni <ezannoni@redhat.com>
12408
12409 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12410 fill_gregset): Call gdbarch_tdep() just once, assign result to
12411 variable and use that, instead of calling the function several
12412 times.
12413
ea87b71b
AO
124142002-01-24 Alexandre Oliva <aoliva@redhat.com>
12415
12416 * configure.host: Accept sparcv9 as alias for sparc64.
12417 * configure.tgt: Likewise.
12418
13fc0c2f
KB
124192002-01-22 Kevin Buettner <kevinb@redhat.com>
12420
12421 * solib-aix5.c (build_so_list_from_mapfile)
12422 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12423 arguments is not reversed.
12424 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12425 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12426
7bd872fe
EZ
124272002-01-22 Elena Zannoni <ezannoni@redhat.com>
12428
12429 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12430 modified version of obsolete sh_fetch_pseudo_register.
12431 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12432 (sh4_register_read): New function.
12433 (sh_pseudo_register_write): New function. Renamed and modified
12434 version of obsolete sh_store_pseudo_register.
12435 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12436 (sh4_register_write): New function.
12437 (sh_gdbarch_init): Remove setting of gdbarch function
12438 fetch_pseudo_register and store_pseudo_register. Remove setting of
12439 register_convert_to_raw, register_convert_to_virtual,
12440 register_convertible.
12441 (sh_sh4_register_convertible): Delete. No longer needed. All is
12442 taken care by architecture specific functions
12443 register_read/register_write.
12444 (sh_sh4_register_convert_to_virtual): Make static.
12445 (sh_sh4_register_convert_to_raw): Ditto.
12446
069e84fd
AC
124472002-01-22 Andrew Cagney <ac131313@redhat.com>
12448
12449 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12450 (floatformat_is_nan, floatformat_mantissa): Ditto.
12451
12452 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12453 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12454 builtin_type_ieee_double_little,
12455 builtin_type_ieee_double_littlebyte_bigword,
12456 builtin_type_m68881_ext, builtin_type_i960_ext,
12457 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12458 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12459 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12460 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12461
211a4f69
CV
124622002-01-22 Corinna Vinschen <vinschen@redhat.com>
12463
12464 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12465 parameter. Set frameless flag if it exists and depended of
12466 whether the scanned function is frameless or not.
12467 (xstormy16_skip_prologue): If function is frameless, return
12468 result of xstormy16_scan_prologue().
12469 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12470 call.
12471
f81353e4
EZ
124722002-01-21 Elena Zannoni <ezannoni@redhat.com>
12473
12474 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12475 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12476 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12477 sh_sh4_register_byte, sh_sh4_register_raw_size,
12478 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12479 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12480 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12481 sh_store_pseudo_register, sh_do_pseudo_register): Call
12482 gdbarch_tdep() just once, assign result to variable and use that,
12483 instead of calling the function several times.
12484
63c73a17
MK
124852002-01-20 Mark Kettenis <kettenis@gnu.org>
12486
12487 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12488 macros instead of LAST_FPU_CTRL_REGNUM.
12489 (store_register): Likewise.
12490
39ad761d
JB
124912002-01-21 Jim Blandy <jimb@redhat.com>
12492
12493 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12494 is up-to-date before running the program, not just when a program
12495 exits.
12496
3d74b771
FF
124972002-01-21 Fred Fish <fnf@redhat.com>
12498
12499 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12500 when we have found all instructions we are looking for.
12501
966fbf70
RE
125022002-01-21 Richard Earnshaw <rearnsha@arm.com>
12503
12504 * arm-tdep.c (arm_register_name): New function.
12505 (arm_registers_names): Make static.
12506 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12507 (arm_register_name): Declare.
12508 (REGISTER_NAME): Use it.
12509
c3b4394c
RE
125102002-01-21 Richard Earnshaw <rearnsha@arm.com>
12511 Kevin Buettner <kevinb@redhat.com>
12512
12513 Convert arm targets to new FRAME interface.
12514 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12515 (arm_frame_find_save_regs): Delete.
12516 (arm_frame_init_saved_regs): New.
12517 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12518 Allocate extra_info as required. Convert all uses of fsr.regs
12519 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12520 to use extra_info.
12521 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12522 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12523 (check_prologue_cache, save_prologue_cache): Likewise.
12524 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12525 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12526 (FRAME_FIND_SAVED_REGS): Delete.
12527 (arm_frame_find_saved_regs): Delete prototype.
12528 (arm_frame_init_saved_regs): New prototype.
12529 (FRAME_INIT_SAVED_REGS): Define.
12530
61d99182
AC
125312002-01-20 Andrew Cagney <ac131313@redhat.com>
12532
12533 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12534
6aaea291
AC
125352002-01-20 Andrew Cagney <ac131313@redhat.com>
12536
12537 From Jeff Law <law@redhat.com>:
12538 * infttrace.c: Include <sys/pstat.h>.
12539 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12540 exec file if the ttrace equivalent fails.
12541
15f698d2
AC
125422002-01-20 Andrew Cagney <ac131313@redhat.com>
12543
12544 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12545 (closeLogFile): Ditto.
12546
f86ddd7c
MC
125472002-01-20 Michael Chastain <mec@shout.net>
12548
12549 * top.c (print_gdb_version): Bump copyright year to 2002.
12550
904507ce
AC
125512002-01-20 Andrew Cagney <ac131313@redhat.com>
12552
12553 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12554 Zannoni and Eli Zaretskii.
12555
d7f0b9ce
DJ
125562002-01-20 Daniel Jacobowitz <drow@mvista.com>
12557
12558 * buildsym.c: Update copyright years.
12559 * c-typeprint.c: Likewise.
12560 * dwarf2read.c: Likewise.
12561 * f-typeprint.c: Likewise.
12562 * gdbtypes.c: Likewise.
12563 * gdbtypes.h: Likewise.
12564 * hp-symtab-read.c: Likewise.
12565 * hpread.c: Likewise.
12566 * mdebugread.c: Likewise.
12567 * p-typeprint.c: Likewise.
12568
3fd3d7d2
AC
125692002-01-20 Andrew Cagney <ac131313@redhat.com>
12570
12571 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12572 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12573 byte-order selectable.
12574 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12575 * arch-utils.c: Ditto.
12576 (set_endian): Ditto.
12577 (set_endian_from_file): Ditto.
12578 * gdbserver/low-sim.c (create_inferior): Ditto.
12579 * gdbarch.sh: Ditto.
12580 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12581 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12582 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12583 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12584 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12585 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12586 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12587 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12588 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12589 macro definition.
12590 * config/mips/tm-wince.h: Remove #undef of macro
12591 TARGET_BYTE_ORDER_SELECTABLE.
12592 * config/sh/tm-wince.h: Ditto.
12593
b02dede2
DJ
125942002-01-20 Daniel Jacobowitz <drow@mvista.com>
12595
12596 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12597 member function fields. Add accessor macro
12598 TYPE_FN_FIELD_ARTIFICIAL.
12599 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12600 * c-typeprint.c (c_type_print_base): Skip artificial member
12601 functions.
12602
c3643761
DJ
126032002-01-20 Daniel Jacobowitz <drow@mvista.com>
12604
12605 * f-typeprint.c: Delete unused function f_type_print_args.
12606 * p-typeprint.c: Delete unused function pascal_type_print_args.
12607
8176bb6d
DJ
126082002-01-20 Daniel Jacobowitz <drow@mvista.com>
12609
12610 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12611 comment. Add ``artificial'' to ``union field_location''.
12612
12613 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12614
12615 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12616 * mdebugread.c (parse_symbol): Likewise.
12617 * stabsread.c (define_symbol): Likewise.
12618 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12619 initializing TYPE_FIELD_BITPOS to n (obsolete).
12620 (hpread_doc_function_type): Likewise.
12621 * hpread.c (hpread_function_type): Likewise.
12622
7fd60527
AC
126232002-01-20 Andrew Cagney <ac131313@redhat.com>
12624
12625 * configure.in (host_makefile_frag): Only require a host makefile
12626 fragment when a native build.
12627 * configure: Re-generate.
12628
c2f05ac9
AC
126292002-01-20 Andrew Cagney <ac131313@redhat.com>
12630
12631 * doublest.h (floatformat_from_type): Declare.
12632 * doublest.c (floatformat_from_type): New function.
12633 (convert_typed_floating): Use.
12634
12635 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12636 call to function floatformat_from_type.
12637
12638 * gdbarch.sh (IEEE_FLOAT): Delete.
12639 * gdbarch.h, gdbarch.c: Re-generate.
12640 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12641 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12642 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12643 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12644 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12645 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12646 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12647 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12648 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12649 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12650 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12651 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12652
12653 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12654 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12655 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12656 * sh-tdep.c (sh_gdbarch_init): Ditto.
12657 * mips-tdep.c (mips_gdbarch_init): Ditto.
12658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12659 * cris-tdep.c (cris_gdbarch_init): Ditto.
12660
abf22e64
AJ
126612002-01-20 Jiri Smid <smid@suse.cz>
12662
12663 * configure.host, configure.tgt: Support x86-64.
12664 * NEWS: Note new target x86-64.
12665
b7c4cbf8
AJ
12666 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12667 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12668 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12669 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12670 x86-64-linux-nat.o): Fix dependencies.
12671
82600034
AC
126722002-01-19 Andrew Cagney <ac131313@redhat.com>
12673
12674 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12675 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12676 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12677 * config/sparc/xm-sun4os4.h: Delete file.
12678 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12679
bbe5c628
AC
126802002-01-19 Andrew Cagney <ac131313@redhat.com>
12681
12682 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12683 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12684 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12685 * config/i386/i386lynx.mh (XM_FILE): Delete.
12686 * config/rs6000/xm-rs6000ly.h: Delete file.
12687 * config/sparc/xm-sparclynx.h: Delete file.
12688 * config/m68k/xm-m68klynx.h: Delete file.
12689 * config/i386/xm-i386lynx.h: Delete file.
12690 * config/xm-lynx.h: Delete file.
12691 * config/djgpp/fnchange.lst: Update.
12692
f8453e34
JT
126932002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12694
12695 * alpha-tdep.c (alpha_register_byte): New function.
12696 (alpha_register_raw_size): Ditto.
12697 (alpha_register_virtual_size): Ditto.
12698 (alpha_skip_prologue_internal): Renamed from
12699 alpha_skip_prologue.
12700 (alpha_skip_prologue): New version that calls
12701 alpha_skip_prologue_internal.
12702 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12703 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12704 second argument from alpha_skip_prologue.
12705 (REGISTER_BYTE): Use alpha_register_byte.
12706 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12707 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12708 (FRAMELESS_FUNCTION_INVOCATION): Use
12709 generic_frameless_function_invocation_not.
12710 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12711 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12712
52d9e613
AC
127132002-01-19 Andrew Cagney <ac131313@redhat.com>
12714
12715 * config/mips/xm-news-mips.h: Delete file.
12716 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12717
12718 * config/m88k/xm-m88k.h: Delete file.
12719 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12720 * config/m88k/xm-delta88v4.h: Ditto.
12721 * config/m88k/xm-delta88.h: Ditto.
12722
12723 * config/alpha/xm-fbsd.h: Delete file.
12724 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12725
12726 * config/sparc/xm-sparc.h: Delete file.
12727 * Makefile.in (xm-sun4os4.h): Delete dependency.
12728 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12729 * config/sparc/xm-sun4os4.h: Ditto.
12730 * config/sparc/xm-linux.h: Ditto.
12731
12732 * config/i386/xm-windows.h: Delete file.
12733
2d1b2124
AC
127342002-01-19 Andrew Cagney <ac131313@redhat.com>
12735
12736 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12737 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12738
ee1f65f0
JT
127392002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12740
12741 * alpha-tdep.c (alpha_call_dummy_words): New.
12742 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12743 (CALL_DUMMY_P): Define.
12744 (CALL_DUMMY_WORDS): Define.
12745 (SIZEOF_CALL_DUMMY_WORDS): Define.
12746
98081e55
PB
127472002-01-19 Per Bothner <per@bothner.com>
12748
12749 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12750 isn't NULL, which can happen with some gcj-3.x-produced code.
12751
0d056799
JT
127522002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12753
12754 * alpha-tdep.c (alpha_register_virtual_type): New function.
12755 (alpha_init_frame_pc_first): Ditto.
12756 (alpha_fix_call_dummy): Ditto.
12757 (alpha_store_struct_return): Ditto.
12758 (alpha_extract_struct_value_address): Ditto.
12759 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12760 alpha_register_virtual_type.
12761 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12762 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12763 alpha_extract_struct_value_address.
12764 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12765 (INIT_FRAME_PC): Use init_frame_pc_noop.
12766 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12767
4604bcad
MK
127682002-01-19 Mark Kettenis <kettenis@gnu.org>
12769
12770 * i386gnu-nat.c: Include "i386-tdep.h".
12771 (fetch_fpregs): Simplify code dealing with uninitialized floating
12772 point states such that it doesn't require FP7_REGNUM.
12773
140f9984
JT
127742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12775
abf22e64
AJ
12776 * alpha-tdep.c (frame_extra_info): New.
12777 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12778 frame->extra_info.
12779 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12780 (alpha_frame_saved_pc): Use frame->extra_info.
12781 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12782 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12783 (init_extra_frame_info): Rename to...
12784 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12785 (alpha_print_extra_frame_info): New function.
140f9984
JT
12786 (alpha_frame_locals_address): Ditto.
12787 (alpha_frame_args_address): Ditto.
abf22e64 12788 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12789 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12790 alpha_frame_args_address.
abf22e64 12791 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12792 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12793 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12794 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12795 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12796 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12797
d734c450
JT
127982002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12799
12800 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12801 (alpha_cannot_fetch_register): Ditto.
12802 (alpha_cannot_store_register): Ditto.
12803 (alpha_register_convertible): Ditto.
12804 (alpha_use_struct_convention): Ditto.
12805 * config/alpha/tm-alpha.h: Update copyright years.
12806 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12807 (INNER_THAN): Use core_addr_lessthan.
12808 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12809 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12810 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12811 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12812 (FRAME_CHAIN): Remove unnecessary cast.
12813
b4ceaee6
AC
128142002-01-18 Andrew Cagney <ac131313@redhat.com>
12815
12816 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12817 obsolete.
12818
0a65a603
AC
128192002-01-18 Andrew Cagney <ac131313@redhat.com>
12820
12821 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12822 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12823 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12824 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12825 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12826 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12827 * x86-64-linux-nat.c: Ditto.
12828
636a6dfc
JT
128292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12830
abf22e64 12831 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12832 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12833 (REGISTER_NAME): Define.
12834
acceddb6
JT
128352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12836
12837 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12838
ec32e4be
JT
128392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12840
12841 * alpha-tdep.c: Update copyright years.
12842 (alpha_next_pc): New function.
12843 (alpha_software_single_step): Ditto.
12844 * config/alpha/tm-alpha.h: Add prototype for
12845 alpha_software_single_step.
12846
e771a871
JT
128472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12848
12849 * alphabsd-nat.c: Update copyright years.
12850 (fill_gregset): Use regcache_collect.
12851 (fill_fpregset): Likewise.
12852 (fetch_inferior_registers): Only fetch integer registers
12853 if requested to do so.
12854 (store_inferior_registers): Only store integer registers
12855 if requested to do so.
12856
7708fa01
AC
128572002-01-17 Andrew Cagney <ac131313@redhat.com>
12858
12859 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12860 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12861 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12862 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12863 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12864 * config/arm/linux.mh (XDEPFILES): Delete.
12865 * config/arm/nbsd.mh (XDEPFILES): Delete.
12866 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12867 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12868 * config/i386/i386m3.mh (XDEPFILES): Delete.
12869 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12870 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12871 * config/i386/fbsd.mh (XDEPFILES): Delete.
12872 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12873 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12874 * config/i386/i386v4.mh (XDEPFILES): Delete.
12875 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12876 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12877 * config/i386/i386aix.mh (XDEPFILES): Delete.
12878 * config/i386/go32.mh (XDEPFILES): Delete.
12879 * config/i386/cygwin.mh (XDEPFILES): Delete.
12880 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12881 * config/i386/i386mach.mh (XDEPFILES): Delete.
12882 * config/i386/i386v32.mh (XDEPFILES): Delete.
12883 * config/i386/linux.mh (XDEPFILES): Delete.
12884 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12885 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12886 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12887 * config/i386/i386sco.mh (XDEPFILES): Delete.
12888 * config/i386/i386v.mh (XDEPFILES): Delete.
12889 * config/i386/nbsd.mh (XDEPFILES): Delete.
12890 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12891 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12892 * config/i386/symmetry.mh (XDEPFILES): Delete.
12893 * config/i386/obsd.mh (XDEPFILES): Delete.
12894 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12895 * config/ia64/linux.mh (XDEPFILES): Delete.
12896 * config/ia64/aix.mh (XDEPFILES): Delete.
12897 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12898 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12899 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12900 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12901 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12902 * config/m68k/linux.mh (XDEPFILES): Delete.
12903 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12904 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12905 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12906 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12907 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12908 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12909 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12910 * config/m88k/delta88.mh (XDEPFILES): Delete.
12911 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12912 * config/m88k/m88k.mh (XDEPFILES): Delete.
12913 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12914 * config/mips/linux.mh (XDEPFILES): Delete.
12915 * config/mips/irix6.mh (XDEPFILES): Delete.
12916 * config/mips/irix5.mh (XDEPFILES): Delete.
12917 * config/mips/irix4.mh (XDEPFILES): Delete.
12918 * config/mips/irix3.mh (XDEPFILES): Delete.
12919 * config/mips/decstation.mh (XDEPFILES): Delete.
12920 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12921 (NATDEPFILES): Move core-aout.o to here.
12922 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12923 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12924 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12925 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12926 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12927 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12928 * config/pa/hpux11.mh (XDEPFILES): Delete.
12929 * config/powerpc/aix.mh (XDEPFILES): Delete.
12930 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12931 * config/powerpc/linux.mh (XDEPFILES): Delete.
12932 * config/romp/rtbsd.mh: Rename XDEPFILES.
12933 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12934 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12935 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12936 * config/s390/s390.mh (XDEPFILES): Delete.
12937 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12938 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12939 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12940 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12941 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12942 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12943 * config/sparc/linux.mh (XDEPFILES): Delete.
12944 * config/vax/vaxult.mh (XDEPFILES): Delete.
12945 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12946 * Makefile.in (DEPFILES): Remove XDEPFILES.
12947
375fc983
AC
129482002-01-17 Andrew Cagney <ac131313@redhat.com>
12949
12950 * utils.c (internal_verror): Fix comments, default is yes not no.
12951 Update queries to match. Default to quit and dump core.
12952
8926118c
AC
129532002-01-17 Andrew Cagney <ac131313@redhat.com>
12954
12955 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12956 copyright.
12957 * defs.h, event-top.c, gdbcmd.h: Ditto.
12958 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12959 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12960 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12961 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12962 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12963 * mi/mi-main.c:Ditto.
12964
12965 * stack.c, symfile.c: Update copyright.
12966
45b7b345
DJ
129672002-01-17 Daniel Jacobowitz <drow@mvista.com>
12968
db728ff7
DJ
12969 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12970 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12971 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12972 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12973
db728ff7
DJ
129742002-01-17 Daniel Jacobowitz <drow@mvista.com>
12975
12976 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12977 * gdbserver/low-lynx.c (myattach): Likewise.
12978 * gdbserver/low-nbsd.c (myattach): Likewise.
12979 * gdbserver/low-sim.c (myattach): Likewise.
12980 * gdbserver/low-sparc.c (myattach): Likewise.
12981 * gdbserver/low-sun3.c (myattach): Likewise.
12982
12983 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12984
db728ff7 12985 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12986 (main): Handle "--attach".
12987
8de3c354
AC
129882002-01-16 Andrew Cagney <ac131313@redhat.com>
12989
12990 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12991 maintainer.
12992
b0129042
DJ
129932002-01-15 Daniel Jacobowitz <drow@mvista.com>
12994
12995 * c-typeprint.c (is_type_conversion_operator): Add additional
12996 check for non-conversion operators.
12997
ba8679fb 129982002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12999
13000 * linux-proc.c: Add "info proc" command, a la procfs.c.
13001 (read_mapping): New function, abstract and re-use code.
13002 (linux_find_memory_regions): Use new func read_mapping.
13003 (linux_info_proc_cmd): New function, implement "info proc".
13004 (_initialize_linux_proc): Add new command "info proc".
13005
e4f9b4d5
MS
130062002-01-15 Michael Snyder <msnyder@redhat.com>
13007
13008 * symfile.c (generic_load): Use bfd_map_over_sections method
13009 instead of manipulating bfd structure members directly.
13010 (add_section_size_callback): New function, bfd sections callback
13011 used by generic_load.
13012 (load_sections_callback): New function, bfd sections callback
13013 used by generic_load.
13014
08cf96df
EZ
130152002-01-15 Elena Zannoni <ezannoni@redhat.com>
13016
abf22e64 13017 [Based on work by Jim Blandy]
08cf96df
EZ
13018 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13019 (builtin_type_vec128): Export.
13020 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13021 types.
13022 (builtin_type_vec128): New builtin type for 128 bit vector
13023 registers.
13024 (build_gdbtypes): Initialize builtin_type_v16qi and
13025 builtin_type_v8hi. Create the vec128 register builtin type
13026 structure.
13027 (build_builtin_type_vec128): New function.
abf22e64 13028 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13029 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13030 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13031 AltiVec register to new builtin type.
13032
d7242108
DJ
130332001-01-15 Daniel Jacobowitz <drow@mvista.com>
13034
13035 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13036 to make_cv_type.
13037
4ee3352d
AC
130382002-01-14 Andrew Cagney <ac131313@redhat.com>
13039
13040 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13041 CLEAN_UP_REGISTER_VALUE.
13042 * regcache.c (supply_register): Update only call.
13043
f015b2e7
AC
130442002-01-14 Andrew Cagney <ac131313@redhat.com>
13045
13046 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13047 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13048 a29k-*-vxworks* targets as obsolete.
13049
356ae49d
MS
130502002-01-14 Michael Snyder <msnyder@redhat.com>
13051
13052 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13053 until we can resolve portability issues.
13054 * gregset.h: Remove references to fpxregs.
13055 * gcore.c (gcore_command): Initialize note_sec to NULL.
13056
ade8f45e
AC
130572002-01-13 Andrew Cagney <ac131313@redhat.com>
13058
13059 * signals.c (target_signal_to_name): Rewrite. Only use
13060 signals[].name when in bounds and non-NULL.
abf22e64 13061
89c49e7a
AC
130622002-01-13 Andrew Cagney <ac131313@redhat.com>
13063
13064 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13065 * signals.c (target_signal_to_name): Verify that SIG is within the
13066 bounds of the signals array.
13067
4daa9f9f
AC
130682002-01-13 Andrew Cagney <ac131313@redhat.com>
13069
13070 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13071
ba4bbdcb
KS
130722002-01-13 Keith Seitz <keiths@redhat.com>
13073
13074 * stack.c (print_frame_info_base): Print the frame's pc
13075 only if when print_frame_info_listing_hook is not defined.
13076
575bbeb6
KS
130772002-01-13 Keith Seitz <keiths@redhat.com>
13078
13079 * varobj.c (varobj_set_value): Make sure that there were no
13080 errors evaluating the object before attempting to set its
13081 value.
13082 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13083 so this offset adjustment is no longer necessary.
13084 (create_child): Don't set the error flag if the child is
13085 a CPLUS_FAKE_CHILD.
13086 (value_of_child): If value_fetch_lazy fails, return NULL
13087 so that callers will be notified that an error occurred.
13088 (c_value_of_variable): Delay check of variable's validity
13089 until later. We actually want all structs and unions to have
13090 the value "{...}".
13091 Do not return "???" for variables which could not be evaluated.
13092 This error condition must be returned to the caller so that it
13093 can get the error condition from gdb.
13094 (cplus_name_of_child): Adjust index for vptr before figuring
13095 out the name of the child.
13096 (cplus_value_of_child): If a child's (real) parent is not valid,
13097 don't even bother trying to give a value for it. Just return
13098 an error. Change all instances in this function.
13099 (cplus_type_of_child): If our parent is one of the "fake"
13100 parents, we need to get at the type of the real parent, and
13101 derive the child's true type using this information.
13102
b76898ab
AC
131032002-01-13 Andrew Cagney <ac131313@redhat.com>
13104
13105 From 2002-01-09 John Marshall <johnm@falch.net>:
13106 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13107 sources.redhat.com, and tweak some related URLs which had
13108 suffered from linkrot.
13109
b6649e88
AC
131102002-01-13 Andrew Cagney <ac131313@redhat.com>
13111
13112 From Jeff law:
13113 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13114 structures passed in registers.
13115
82cc5033
EZ
131162002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13117
13118 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13119 white space which prevented compilation. Reported by DSK
13120 <dsk@student.unsw.edu.au>.
13121
ba5f2f8a
MS
131222002-01-11 Michael Snyder <msnyder@redhat.com>
13123
fbd35540
MS
13124 * symfile.c (build_section_addr_info_from_section_tab):
13125 Use bfd access method instead of manipulating bfd directly.
13126 (syms_from_objfile): Ditto.
13127 (simple_overlay_update_1): Ditto.
13128 (simple_overlay_update): Ditto.
13129 (generic_load): Ditto.
13130 (overlay_unmapped_address): FIXME comment, bfd access methods.
13131 (sections_overlap): FIXME comment, bfd access methods.
13132 (pc_in_mapped_range): FIXME comment, bfd access methods.
13133 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13134 (section_is_mapped): FIXME comment, bfd access methods.
13135 (section_is_overlay): FIXME comment, bfd access methods.
13136
ba5f2f8a
MS
13137 * symfile.c (generic_load): Whitespace and long line cleanups.
13138 Remove duplicate variable, change several local variables to
13139 more appropriate data types.
13140 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13141
17df2af6
AC
131422002-01-12 Andrew Cagney <ac131313@redhat.com>
13143
13144 From Peter Schauer:
13145 * language.c (longest_local_hex_string_custom): Use phex_nz to
13146 convert NUM to a hex string.
13147
ec920329
EZ
131482002-01-12 Elena Zannoni <ezannoni@redhat.com>
13149
13150 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13151 the function.
538a76d6 13152 Update Copyright year.
ec920329 13153
3abd2e01
AC
131542002-01-12 Andrew Cagney <ac131313@redhat.com>
13155
13156 * language.c (longest_raw_hex_string): Delete unused function.
13157
b21b22e0
PS
131582002-01-11 Petr Sorfa <petrs@caldera.com>
13159
13160 * MAINTAINERS (write-after-approval): Add myself.
13161 * dwarf2read.c (read_tag_string_type): Handling of
13162 DW_AT_byte_size.
13163 (read_tag_string_type): FORTRAN fix to prevent propagation of
13164 first string size.
13165 (set_cu_language): Handling of DW_LANG_Fortran95
13166
747fe712
RE
131672002-01-11 Richard Earnshaw <rearnsha@arm.com>
13168
13169 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13170 GETPID(inferior_ptid).
13171 (store_inferior_registers): Likewise.
13172
f1bea926
JM
131732002-01-10 Jason Merrill <jason@redhat.com>
13174
13175 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13176 Fix DW_OP_minus.
13177
ae940673
AC
131782002-01-10 Andrew Cagney <ac131313@redhat.com>
13179
13180 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13181 and bfd/elf32-sh-nbsd.c.
13182
00546b04
MS
131832002-01-10 Michael Snyder <msnyder@redhat.com>
13184
352ed7b4
MS
13185 * NEWS: Mention --pid and corefile/proc-id behavior change.
13186
c18be923
MS
13187 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13188 * gcore.c: Include cli/cli-decode.h instead of command.h.
13189
00546b04
MS
13190 * main.c (captured_main): Add new command line option "--pid".
13191 If the second command line argument (following the symbol-file)
13192 begins with a digit, try to attach to it before trying to open
13193 it as a corefile.
13194 (print_gdb_help): Document the "--pid" argument.
13195
db60ec62
EZ
131962002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13197
13198 * completer.c (command_completer): New function.
13199
13200 * completer.h <command_completer>: Add prototype.
13201
13202 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13203 completer for the "help" command.
13204
39c22d1a
JM
132052002-01-09 Jason Merrill <jason@redhat.com>
13206
13207 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13208
c564377f
MS
132092002-01-09 Michael Snyder <msnyder@redhat.com>
13210
975aec09
MS
13211 * i386-linux-nat.c (fill_fpxregset): Make global.
13212 (store_fpxregset): Ditto.
13213
db4a10fa
MS
13214 * gregset.h (gdb_fpxregset_t): Define.
13215 (supply_fpxregset): Prototype.
13216 (fill_fpxregset): Prototype.
13217
c564377f
MS
13218 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13219
c3d45d70
RE
132202002-01-09 Richard Earnshaw <rearnsha@arm.com>
13221
13222 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13223 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13224 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13225
fcc87af1
AC
132262002-01-09 Andrew Cagney <ac131313@redhat.com>
13227
13228 * MAINTAINERS: Update target maintainer rules so that any
13229 Maintainer can approve a tested patch for a maintenance-only
13230 target.
13231
dd96c05b
RE
132322002-01-09 Richard Earnshaw <rearnsha@arm.com>
13233
d4297db9 13234 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13235
d4297db9 13236 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13237 IN_SIGTRAMP.
13238
145fdc6e
MS
132392002-01-08 Michael Snyder <msnyder@redhat.com>
13240
13241 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13242 real name of the executable, rather than the /proc name.
13243
be4d1333
MS
132442002-01-03 Michael Snyder <msnyder@redhat.com>
13245
13246 Implement a "generate-core-file" command in gdb, save target state.
13247 * gcore.c: New file. Implement new command 'generate-core-file'.
13248 Save a corefile image of the current state of the inferior.
13249 * linux-proc.c: Add linux-specific code for saving corefiles.
13250 * target.h (struct target_ops): Add new target vectors for saving
13251 corefiles; to_find_memory_regions and to_make_corefile_notes.
13252 (target_find_memory_regions): New macro.
13253 (target_make_corefile_notes): New macro.
13254 * target.c (update_current_target): Inherit new target methods.
13255 (dummy_find_memory_regions): New place-holder method.
13256 (dummy_make_corefile_notes): New place-holder method.
13257 (init_dummy_target): Initialize new dummy target vectors.
13258 * exec.c (exec_set_find_memory_regions): New function.
13259 Allow the exec_ops vector for memory regions to be taken over.
13260 (exec_make_note_section): New function, target vector method.
13261 * defs.h (exec_set_find_memory_regions): Export prototype.
13262 * procfs.c (proc_find_memory_regions): New function, corefile method.
13263 (procfs_make_note_section): New function, corefile method.
13264 (init_procfs_ops): Set new target vector pointers.
13265 (find_memory_regions_callback): New function.
13266 (procfs_do_thread_registers): New function.
13267 (procfs_corefile_thread_callback): New function.
13268 * sol-thread.c (sol_find_memory_regions): New function.
13269 (sol_make_note_section): New function.
13270 (init_sol_thread_ops): Initialize new target vectors.
13271 * inftarg.c (inftarg_set_find_memory_regions): New function.
13272 Allow to_find_memory_regions vector to be taken over.
13273 (inftarg_set_make_corefile_notes): New function.
13274 Allow to_make_corefile_notes vector to be taken over.
13275 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13276 interface layer if not target_has_execution (may be a corefile).
13277 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13278 * config/sparc/sun4sol2.mh: Ditto.
13279 * config/alpha/alpha-linux.mh: Ditto.
13280 * config/arm/linux.mh: Ditto.
13281 * config/i386/x86-64linux.mh: Ditto.
13282 * config/ia64/linux.mh: Ditto.
13283 * config/m68k/linux.mh: Ditto.
13284 * config/mips/linux.mh: Ditto.
13285 * config/powerpc/linux.mh: Ditto.
13286 * config/sparc/linux.mh: Ditto.
13287
c6b92abd
MS
132882002-01-07 Michael Snyder <msnyder@redhat.com>
13289
13290 * arm-linux-nat.c: Remove references to regcache.c internal data
13291 (registers[] and register_valid[]).
13292
4b09dc8c
MS
132932002-01-07 Michael Snyder <msnyder@redhat.com>
13294
abf22e64
AJ
13295 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13296 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13297 symbol file and shlibs.
13298 * Makefile.in: Add rule for linux-proc.o.
13299 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13300 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13301 * config/arm/linux.mh: Ditto.
13302 * config/i386/linux.mh: Ditto.
13303 * config/i386/x86-64linux.mh: Ditto.
13304 * config/ia64/linux.mh: Ditto.
13305 * config/m68k/linux.mh: Ditto.
13306 * config/mips/linux.mh: Ditto.
13307 * config/powerpc/linux.mh: Ditto.
13308 * config/sparc/linux.mh: Ditto.
13309
c25b74ac
PM
133102002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13311
13312 * win32-nat.c: Add i386-tdep.h dependency.
13313
94cd915f
MS
133142002-01-07 Michael Snyder <msnyder@redhat.com>
13315
c7cccb76
MS
13316 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13317 instead of bfd_get_arch_size. Don't bail out just because
13318 there's no exec_bfd.
abf22e64 13319
34c0bd93
MS
13320 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13321 * p-valprint.c (pascal_object_print_value): Ditto.
13322 * somread.c (som_symtab_read): Ditto.
13323 * symfile.c (simple_free_overlay_region_table): Ditto.
13324 * valops.c (value_assign): Ditto.
13325
21c1c920
MS
13326 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13327 use tilde_expand and strerror for opening save-tracepoints file.
13328
5bbd998e
MS
13329 * thread-db.c (thread_db_new_objfile): Indendation fix.
13330
94cd915f
MS
13331 * infptrace.c (GDB_MAX_ALLOCA): New define.
13332 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13333 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13334 can be overridden with whatever value is appropriate to the host).
13335 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13336 alloca to allocate potentially large buffer.
13337 * rs6000-nat.c (child_xfer_memory): Ditto.
13338 * symm-nat.c (child_xfer_memory): Ditto.
13339 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13340
494e8a93
JSC
133412002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13342
13343 From Nick Clifton <nickc@redhat.com>
13344 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13345
d0e1d48e
MS
133462002-01-07 Michael Snyder <msnyder@redhat.com>
13347
abf22e64 13348 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13349 Don't use exec_bfd if it's NULL.
13350
290b2c7a
MK
133512002-01-06 Mark Kettenis <kettenis@gnu.org>
13352
abf22e64 13353 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13354
aef21287
AC
133552002-01-06 Andrew Cagney <ac131313@redhat.com>
13356
13357 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13358 * gnu-nat.c: Ditto.
13359
30efa627
AC
133602002-01-06 Andrew Cagney <ac131313@redhat.com>
13361
13362 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13363 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13364 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13365 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13366 z8k-coff have not been multi-arched. Update z8k-coff build
13367 status.
13368
9b4ff276
AC
133692002-01-06 Andrew Cagney <ac131313@redhat.com>
13370
13371 * MAINTAINERS: Mark a29k target as obsolete.
13372 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13373 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13374 comments.
13375 * NEWS: Note that a29k targets are obsolete.
13376 * a29k-tdep.c: Mark as obsolete.
13377 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13378 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13379 a29k-*-vxworks* targets as obsolete.
13380 * remote-adapt.c: Obsolete.
13381 * remote-eb.c: Obsolete.
13382 * remote-mm.c: Obsolete.
13383 * remote-udi.c: Obsolete.
13384 * config/a29k/a29k-udi.mt: Obsolete.
13385 * config/a29k/a29k.mt: Obsolete.
13386 * config/a29k/tm-a29k.h: Obsolete.
13387 * config/a29k/tm-vx29k.h: Obsolete.
13388 * config/a29k/vx29k.mt: Obsolete.
13389
a9011d31
AC
133902002-01-05 Andrew Cagney <ac131313@redhat.com>
13391
13392 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13393 with BFD_ENDIAN_BIG.
13394
9299404e
AC
133952002-01-05 Andrew Cagney <ac131313@redhat.com>
13396
13397 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13398 * configure, config.in: Re-generate.
13399 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13400 * defs.h: Do not include <endian.h>.
13401
7e89e357
JT
134022002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13403
13404 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13405 * config.in: Regenerate.
13406 * configure.in: Update copyright years.
13407 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13408 * configure: Regenerate.
13409 * i386bsd-nat.c: Update copyright years.
13410 (fill_gregset): Use regcache_collect.
13411 (fetch_inferior_registers): Only fetch integer registers
13412 if requested to do so. Add support for XMM registers
13413 using PT_GETXMMREGS.
13414 (store_inferior_registers): Only store integer registers
13415 if requested to do so. Add support for XMM registers
13416 using PT_SETXMMREGS.
13417 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13418 (store_inferior_registers): Remove.
13419 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13420 (fetch_elfcore_registers): New function.
13421 (i386nbsd_elfcore_fns): New.
13422 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13423 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13424 i386bsd-nat.o.
13425 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13426 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13427 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13428 * config/i386/tm-nbsd.h: Update copyright years.
13429 (HAVE_SSE_REGS): Define.
13430 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13431 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13432 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13433 (SIGCONTEXT_PC_OFFSET): Remove.
13434 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13435
a752853e
AC
134362002-01-05 Andrew Cagney <ac131313@redhat.com>
13437
13438 * configure.tgt: Remove powerpc-*-macos* target.
13439 * config/m68k/xm-mpw.h: Delete file.
13440 * config/xm-mpw.h: Delete file.
13441 * ser-mac.c: Delete file.
13442 * mpw-make.sed: Delete file.
13443 * mpw-config.in: Delete file.
13444 * mac-xdep.c: Delete file.
13445 * mac-gdb.r: Delete file.
13446 * mac-defs.h: Delete file.
13447 * mac-nat.c: Delete file.
13448 * config/powerpc/macos.mh: Delete file.
13449 * config/powerpc/macos.mt: Delete file.
13450 * config/powerpc/nm-macos.h: Delete file.
13451 * config/powerpc/tm-macos.h: Delete file.
13452 * source.c (openp, open_source_file): Remove obsolete code.
13453 * top.c (gdb_readline): Ditto.
13454 * utils.c (query): Ditto.
13455 * event-top.c (display_gdb_prompt): Ditto.
13456 * Makefile.in (ser-mac.o): Delete obsolete target.
13457 * NEWS: Update.
13458
d7449b42
AC
134592002-01-04 Andrew Cagney <ac131313@redhat.com>
13460
13461 * defs.h (BIG_ENDIAN): Delete macro definition.
13462 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13463 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13464 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13465 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13466 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13467 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13468 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13469 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13470 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13471 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13472 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13473 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13474 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13475 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13476 * gdbarch.c: Re-generate.
13477
356374e8
DJ
134782002-01-04 Daniel Jacobowitz <drow@mvista.com>
13479
13480 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13481 for core files.
13482
a2b8f8f8
JT
134832002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13484
13485 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13486
12466af9
AC
134872002-01-04 Andrew Cagney <ac131313@redhat.com>
13488
13489 * value.h (value_ptr): Delete typedef.
13490
3549ab40
JT
134912002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13492
13493 * i386nbsd-nat.c: Update copyright years.
13494 Include i386-tdep.h.
13495
fedbd091
EZ
134962002-01-04 Elena Zannoni <ezannoni@redhat.com>
13497
13498 * stabsread.c: Update copyright years.
13499
13500 From Debashis Mahata <debashis.mahata@wipro.com>:
13501 (read_struct_fields): Deal with Sun C compiler erroneous stab
13502 output for structs and unions.
fec8b34f 13503 Fix PR gdb/269.
fedbd091 13504
eb43544b
DJ
135052002-01-04 Daniel Jacobowitz <drow@mvista.com>
13506
13507 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13508 prototype.
13509
1514d34e
DJ
135102002-01-04 Daniel Jacobowitz <drow@mvista.com>
13511
13512 * cp-abi.c: Fix whitespace.
13513 (baseclass_offset): New wrapper function.
13514 * cp-abi.h (baseclass_offset): Add prototype.
13515 (struct cp_abi_ops): Add baseclass_offset pointer.
13516
13517 * valops.c (vb_match): Move to...
13518 * gnu-v2-abi.c (vb_match): here.
13519 * valops.c (baseclass_offset): Move to...
13520 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13521
13522 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13523
13524 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13525 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13526 * hpacc-abi.c (init_hpacc_ops): Likewise.
13527
7f8c9282
DJ
135282002-01-04 Daniel Jacobowitz <drow@mvista.com>
13529
13530 * valops.c (find_overload_match): Accept obj as a
13531 reference parameter. Update it before returning.
13532 * value.h (find_overload_match): Update prototype.
13533 * eval.c (evaluate_subexp_standard): Pass object to
13534 find_overload_match by reference.
13535
f23631e4
AC
135362002-01-03 Andrew Cagney <ac131313@redhat.com>
13537
13538 * valarith.c: Replace value_ptr with struct value pointer. Remove
13539 register attribute from value declarations.
13540 * valops.c: Ditto.
13541 * value.h: Ditto.
13542 * scm-lang.c (scm_lookup_name): Ditto.
13543
79e10fab 135442002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13545
79e10fab
AC
13546 Abstract the functionality of iterating over mapped memory
13547 regions into a general purpose iterator function.
abf22e64 13548 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13549 iterator for memory sections.
13550 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13551 (solib_mappings_callback): New function, callback for above.
13552 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13553 (info_mappings_callback): New function, callback for above.
13554
13555 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13556
c5ad026a
MK
135572002-01-01 Mark Kettenis <kettenis@gnu.org>
13558
d2a7c97a
MK
13559 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13560 * i386-tdep.c: Include "elf-bfd.h".
13561 (process_note_abi_tag_sections): New function.
13562 (i386_gdbarch_init): Add code to recognize various OS/ABI
13563 combinations.
13564
c5ad026a
MK
13565 * maint.c (_initialize_maint_cmds): Add missing \ in
13566 string-literal.
13567
a1a5b71e 13568For older changes see ChangeLog-2001
c906108c
SS
13569\f
13570Local Variables:
13571mode: change-log
13572left-margin: 8
13573fill-column: 74
13574version-control: never
13575End:
This page took 0.929676 seconds and 4 git commands to generate.