2002-11-27 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b99fa2d2
AC
12002-11-27 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
4 (USE_GENERIC_DUMMY_FRAMES): Default to true.
5 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
6 * gdbarch.c, gdbarch.h: Re-generate.
7 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
8 (CALL_DUMMY_LOCATION): Delete macro definition.
9 (PC_IN_CALL_DUMMY): Delete macro definitions.
10
11 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
12 default is already generic_pc_in_call_dummy.
13 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
14 * v850-tdep.c (v850_gdbarch_init): Ditto.
15 * sh-tdep.c (sh_gdbarch_init): Ditto.
16 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
17 * mips-tdep.c (mips_gdbarch_init): Ditto.
18 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
19 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
20 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
21 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
22 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
23 * avr-tdep.c (avr_gdbarch_init): Ditto.
24
25 * arm-tdep.c (arm_gdbarch_init): Do not set
26 use_generic_dummy_frames, default is already 1.
27 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
28 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
29 * v850-tdep.c (v850_gdbarch_init): Ditto.
30 * sh-tdep.c (sh_gdbarch_init): Ditto.
31 * s390-tdep.c (s390_gdbarch_init): Ditto.
32 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
33 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
34 * mips-tdep.c (mips_gdbarch_init): Ditto.
35 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
36 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
37 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
38 * i386-tdep.c (i386_gdbarch_init): Ditto.
39 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
40 * frv-tdep.c (frv_gdbarch_init): Ditto.
41 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
42 * cris-tdep.c (cris_gdbarch_init): Ditto.
43 * avr-tdep.c (avr_gdbarch_init): Ditto.
44
45 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
46 call_dummy_location, default is already AT_ENTRY_POINT.
47 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
48 * v850-tdep.c (v850_gdbarch_init): Ditto.
49 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
50 * sh-tdep.c (sh_gdbarch_init): Ditto.
51 * s390-tdep.c (s390_gdbarch_init): Ditto.
52 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
53 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
54 * mips-tdep.c (mips_gdbarch_init): Ditto.
55 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
56 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
57 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
58 * i386-tdep.c (i386_gdbarch_init): Ditto.
59 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
60 * frv-tdep.c (frv_gdbarch_init): Ditto.
61 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
62 * cris-tdep.c (cris_gdbarch_init): Ditto.
63 * avr-tdep.c (avr_gdbarch_init): Ditto.
64 * arm-tdep.c (arm_gdbarch_init): Ditto.
65 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
66
abc0af47
AC
672002-11-28 Andrew Cagney <cagney@redhat.com>
68
69 * frame.h: Update comments on set_current_frame, create_new_frame,
70 flush_cached_frames, reinit_frame_cache, select_frame and
71 selected_frame.
72
ed5cedc5
AC
732002-11-27 Andrew Cagney <cagney@redhat.com>
74
75 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
76 deprecated pc_in_call_dummy function.
77 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
78 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
79 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
80 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
81 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
82
b2a1bd4f
MH
832002-11-26 Martin M. Hunt <hunt@redhat.com>
84
85 * Makefile.in: Remove Tix dependencies.
86 * acinclude.m4: Ditto.
87 * aclocal.m4: Ditto.
88 * configure.in: Ditto.
89 * configure: Regenerated.
90
f09cffaa
AC
912002-11-26 Andrew Cagney <ac131313@redhat.com>
92
93 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
94 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
95 * gdbarch.c: Re-generate.
96
e92b0cc9
AC
972002-11-26 Andrew Cagney <ac131313@redhat.com>
98
99 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
100 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
101 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
102 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
103 pc_in_call_dummy_at_entry_point.
104 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
105 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
106 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
107 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
108 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
109 pc_in_call_dummy_on_stack.
110 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
111 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
112 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
113 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
114 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
115
b4b88177
AC
1162002-11-26 Andrew Cagney <ac131313@redhat.com>
117
118 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
119 pc_in_call_dummy_before_text_end
120 (deprecated_pc_in_call_dummy_after_text_end): Rename
121 pc_in_call_dummy_after_text_end.
122 (deprecated_pc_in_call_dummy_on_stack): Rename
123 pc_in_call_dummy_on_stack.
124 (deprecated_pc_in_call_dummy_at_entry_point): Rename
125 pc_in_call_dummy_at_entry_point.
126 * m68k-tdep.c (m68k_gdbarch_init): Update.
127 * s390-tdep.c (s390_gdbarch_init): Update.
128 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
129 * vax-tdep.c (vax_gdbarch_init): Update.
130 * sparc-tdep.c (sparc_gdbarch_init): Update.
131 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
132 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
133 * i386-tdep.c (i386_gdbarch_init): Update.
134 * frv-tdep.c (frv_gdbarch_init): Update.
135 * cris-tdep.c (cris_gdbarch_init): Update.
136 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
137 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
138 (deprecated_pc_in_call_dummy_after_text_end)
139 (deprecated_pc_in_call_dummy_on_stack)
140 (deprecated_pc_in_call_dummy_at_entry_point): Update.
141 * alpha-tdep.c (alpha_gdbarch_init): Update.
142
eb784848
DJ
1432002-11-25 Daniel Jacobowitz <drow@mvista.com>
144
145 * acconfig.h (HAVE_PREAD64): Add.
146 * configure.in: Check for pread64.
147 * config.in: Regenerated.
148 * configure: Regenerated.
149 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
150 * linux-proc.c (linux_proc_xfer_memory): New function.
151 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
152
933c6fe4
DC
1532002-11-25 David Carlton <carlton@math.stanford.edu>
154
155 * dwarf2read.c (scan_partial_symbols): Descend into namespace
156 pdi's with no name.
157
158a8022
AC
1582002-11-25 Andrew Cagney <ac131313@redhat.com>
159
160 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
161 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
162
481d0f41
JB
1632002-11-25 Jim Blandy <jimb@redhat.com>
164
e8289572
JB
165 * symfile.c (init_objfile_sect_indices): New function.
166 (default_symfile_offsets): Move the section-index-initializing
167 stuff into init_objfile_sect_indices, and call that.
168
b29c9944
JB
169 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
170 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
171
13de58df
JB
172 * symfile.c (syms_from_objfile): Adjust indentation.
173
481d0f41
JB
174 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
175 || info_verbose isn't true.
176
7d6a26a7
AC
1772002-11-24 Andrew Cagney <ac131313@redhat.com>
178
179 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
180 default to get_frame_base.
181 * gdbarch.h, gdbarch.c: Regenerate.
182 * arch-utils.c (default_frame_address): Delete function.
183 * arch-utils.h (default_frame_address): Delete declaration
184
6abe1021
PM
1852002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
186
187 * varobj.c (find_frame_addr_in_frame_chain):
188 Use get_frame_base instead of FRAME_FP,
189 obvious fix.
190
c193f6ac
AC
1912002-11-19 Andrew Cagney <ac131313@redhat.com>
192
193 * frame.h (FRAME_FP): Delete macro.
194 (get_frame_base): New function declaration.
195 * frame.c (get_frame_base): New function.
196 (get_frame_id): Use ->frame.
197 (frame_find_by_id): Rewrite to use get_frame_id.
198 * blockframe.c: Use get_frame_base instead of FRAME_FP.
199 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
200 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
201 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
202 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
203 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
204 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
205
e5d2af14
AC
2062002-11-24 Andrew Cagney <ac131313@redhat.com>
207
208 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
209
931d12c6
AC
2102002-11-24 Andrew Cagney <ac131313@redhat.com>
211
212 * frame.c (set_unwind_by_pc): Revert change below, use
213 PC_IN_CALL_DUMMY.
214 (get_prev_frame): Ditto.
215
5e0f933e
AC
2162002-11-24 Andrew Cagney <ac131313@redhat.com>
217
218 * dummy-frame.c (pc_in_dummy_frame): New function.
219 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
220 (find_dummy_frame): Update comment.
221 (generic_pop_current_frame): Use get_frame_type.
222 * dummy-frame.h (pc_in_dummy_frame): Declare.
223 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
224 (create_new_frame): Use pc_in_dummy_frame.
225 (get_prev_frame): Use pc_in_dummy_frame.
226 (frame_saved_regs_register_unwind): Use get_prev_frame.
227 (deprecated_generic_get_saved_register): Use get_prev_frame.
228
7d8547c9
AC
2292002-11-23 Andrew Cagney <ac131313@redhat.com>
230
231 * blockframe.c (find_frame_addr_in_frame_chain): Move function
232 from here ...
233 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
234 (varobj_create): Note that frame ID should be used.
235 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
236
0225421b
AC
2372002-11-23 Andrew Cagney <ac131313@redhat.com>
238
239 * breakpoint.c: Include "gdb_assert.h".
240 (deprecated_frame_in_dummy): Assert that generic dummy frames are
241 not being used.
242 * Makefile.in (breakpoint.o): Update dependencies.
243 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
244 deprecated_frame_in_dummy.
245 * stack.c (print_frame_info_base): Ditto.
246 (frame_info): Ditto.
247 (print_frame_info_base): Ditto. Delete dead code.
248
32eeb91a
AS
2492002-11-23 Andreas Schwab <schwab@suse.de>
250
251 * Makefile.in (m68k_tdep_h): Define.
252 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
253 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
254 * m68k-tdep.c: Move register number enum ...
255 * m68k-tdep.h: ... to this new file and rename the constants from
256 E_* to M68K_*. All uses changed.
257 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
258 * abug-rom.c: Include "m68k-tdep.h". Use
259 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
260 * cpu32bug-rom.c: Likewise.
261 * dbug-rom.c: Likewise.
262 * m68k-tdep.c: Likewise.
263 * m68klinux-nat.c: Likewise.
264 * remote-est.c: Likewise.
265 * rom68k-rom.c: Likewise.
266 * config/m68k/tm-linux.h: Likewise.
267
9648bac8
AC
2682002-11-23 Andrew Cagney <ac131313@redhat.com>
269
270 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
271 dummy frame initialization code.
272 * mips-tdep.c (mips_gdbarch_init): Ditto.
273
91a175b3
CF
2742002-11-22 Christopher Faylor <cgf@redhat.com>
275
276 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
277 attach will hang.
278
f4ded5b1
AC
2792002-11-22 Andrew Cagney <ac131313@redhat.com>
280
281 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
282 to default_frame_address.
283 * gdbarch.h, gdbarch.c: Re-generate.
284
285 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
286 or frame_locals_address to default_frame_address.
287 * m68k-tdep.c (m68k_gdbarch_init): Update.
288 * i386-tdep.c (i386_gdbarch_init): Update.
289 * frv-tdep.c (frv_gdbarch_init): Update.
290 * sh-tdep.c (sh_gdbarch_init): Update.
291 * v850-tdep.c (v850_gdbarch_init): Update.
292 * sparc-tdep.c (sparc_gdbarch_init): Update.
293 * mips-tdep.c (mips_gdbarch_init): Update.
294 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
295 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
296 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
297
298 * cris-tdep.c (cris_frame_args_address): Delete function.
299 (cris_frame_locals_address): Delete function.
300 (cris_gdbarch_init): Do not set frame_args_address or
301 frame_locals_address.
302
f7c1e0f3
MS
3032002-11-22 Michael Snyder <msnyder@redhat.com>
304
305 * thread-db.c (thread_db_load): Tell the user what's going on
306 if dlopen fails on libthread_db.
307
03dac896
AS
3082002-11-23 Andreas Schwab <schwab@suse.de>
309
310 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
311 invariant return values.
312
7a67d0fe
AS
3132002-11-22 Andreas Schwab <schwab@suse.de>
314
315 * valops.c (value_slice): Move declaration of `offset' to avoid
316 warning.
317
5633f842
CF
3182002-11-22 Christopher Faylor <cgf@redhat.com>
319
320 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
321 (struct so_stuff): Add end_addr field.
322 (register_loaded_dll): Calculate and store end address of loaded dll.
323 (solib_address): New function.
324 (child_solib_loaded_library_pathname): Pass carefully constructed
325 section info to safe_symbol_file_add rather than ignoring it.
326 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
327 DLL is loaded.
328 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
329 (child_create_inferior): Fix a compiler warning.
330 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
331 (solib_address): Declare new function.
332
d85fe7f7
AS
3332002-11-22 Andreas Schwab <schwab@suse.de>
334
335 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
336 and FPS registers.
337
8308e54c
DJ
3382002-11-21 Daniel Jacobowitz <drow@mvista.com>
339
340 * maint.c (_initialize_maint_cmds): Fix typo. From
341 Francesco Potorti` <pot@gnu.org>.
342
8997bd5e
AC
3432002-11-21 Andrew Cagney <cagney@redhat.com>
344
345 * mips-tdep.c (mips_dump_tdep): Delete references to
346 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
347 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
348 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
349 * printcmd.c (build_address_symbolic): Delete calls to
350 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
351 (address_info): Ditto.
352 Fix PR gdb/773.
353
4e87b832
KD
3542002-11-19 Klee Dienes <kdienes@apple.com>
355 Adam Fedor <fedor@gnu.org>
356
357 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
358 the ability to explicitly specify the quote characters and word
359 break characters; if NULL is specified for either, use the old
360 behavior of using the characters used by the completer.
361 (skip_chars): New function. Convenience wrapper around
362 skip_quoted_chars to provide the original skip_chars behavior.
363 * completer.h (skip_quoted_chars): Add prototype.
364
9ba8d803
AC
3652002-11-19 Andrew Cagney <ac131313@redhat.com>
366
367 Problems reported by Paul Eggert.
368 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
369
0a595803
AS
3702002-11-19 Andreas Schwab <schwab@suse.de>
371
372 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
373 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
374 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
375 (m68k_linux_frame_saved_pc): Move to ...
376 * m68klinux-tdep.c: ... here. New file.
377 * Makefile.in (m68klinux-tdep.o): Add dependencies.
378 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
379
e8afa4d7
AF
3802002-11-19 Adam Fedor <fedor@gnu.org>
381
382 * objc-exp.y: Revert to old skip_quoted usage.
383
a76c9d72
AF
3842002-11-19 Adam Fedor <fedor@gnu.org>
385
386 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
387 (objc_lang_h): Define.
388 (YYFILES): Add objc-exp.tab.c.
389 (local-maintainer-clean): Remove objc-exp.tab.c.
390 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
391
fd0e9d45
PM
3922002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
393
394 * p-exp.y (typecast rule): Add automatic dereference of
395 pascal classes if needed.
396 (THIS): Set current_type.
397 Automatically dereference pascal classes.
398 (typebase rule): Add ^typebase recognition.
399
82eeeb94
AF
4002002-11-18 Adam Fedor <fedor@gnu.org>
401
402 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
403 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
404 (op_name): Handle OP_OBJC_SELF.
405 * Makefile.in (expprint.o): Add additional depends.
406
646df18d
AF
4072002-11-18 Adam Fedor <fedor@gnu.org>
408
409 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
410 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
411 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
412 * objc-exp.y: Likewise.
413
379b85df
AF
4142002-11-18 Adam Fedor <fedor@gnu.org>
415
416 * gdb/parser-defs.h: (struct objc_class_str): New structure
417 for parsing ObjC classes.
418
85cf597a
AC
4192002-11-18 Andrew Cagney <ac131313@redhat.com>
420
421 * stack.c (frame_relative_level): Copy function from here ...
422 * frame.c (frame_relative_level): ...to here.
423
5a203e44
AC
4242002-11-18 Andrew Cagney <ac131313@redhat.com>
425
426 * frame.h (enum frame_type): Define.
427 (get_frame_type): Declare.
428 (struct frame_info): Add field `type'. Delete field
429 signal_handler_caller.
430 (deprecated_set_frame_signal_handler_caller): Declare.
431 * frame.c (get_frame_type): New function.
432 (deprecated_set_frame_type): New function.
433 (create_new_frame): Set the frame's type.
434 (get_prev_frame): Similar.
435 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
436 * s390-tdep.c: Ditto.
437 * m68klinux-nat.c: Ditto.
438 * ns32k-tdep.c: Ditto.
439 * x86-64-linux-tdep.c: Ditto.
440 * vax-tdep.c: Ditto.
441 * rs6000-tdep.c: Ditto.
442 * ppc-linux-tdep.c: Ditto.
443 * i386-interix-tdep.c: Ditto.
444 * mips-tdep.c: Ditto.
445 * m68k-tdep.c: Ditto.
446 * hppa-tdep.c: Ditto.
447 * ia64-tdep.c: Ditto.
448 * cris-tdep.c: Ditto.
449 * arm-tdep.c: Ditto.
450 * alpha-tdep.c: Ditto.
451 * i386-tdep.c: Ditto.
452 * stack.c: Ditto.
453 * ada-lang.c: Ditto.
454 * blockframe.c: Update.
455 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
456 deprecated_set_frame_type instead of signal_handler_caller.
457 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
458 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
459 * breakpoint.h: Delete FIXME suggesting get_frame_type.
460
bf4ae8b2
KD
4612002-11-18 Klee Dienes <kdienes@apple.com>
462
463 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
464
a672ef13
KD
4652002-11-18 Klee Dienes <kdienes@apple.com>
466
467 * buildsym.c (pop_context): Add comment.
468
0c5e171a
KD
4692002-11-18 Klee Dienes <kdienes@apple.com>
470
471 * buildsym.h (pop_context): Convert to function, defined in
472 buildsym.c.
473 * buildsym.c: Include gdb_assert.h.
474 (pop_context): Implement as C function. Add check for stack
475 underflow.
476 * dbxread.c (process_one_symbol): Complain and stop processing
477 that symbol if we are already at the top of the context stack for
478 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
479 when processing N_RBRAC.
480
8a1f4c4c
DJ
4812002-11-16 Daniel Jacobowitz <drow@mvista.com>
482
483 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
484 define.
485 (struct target_waitstatus): Add opaque definition.
486 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
487 * exec.c (init_exec_ops): Likewise.
488 * fork-child.c (clone_and_follow_inferior): Remove.
489 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
490 * inferior.h (clone_and_follow_inferior): Remove prototype.
491 * infrun.c (follow_fork_mode_both): Remove.
492 (follow_fork_mode_kind_names): Remove commented out "both".
493 (follow_inferior_fork): Remove follow_fork_mode_both support.
494 * inftarg.c (child_clone_and_follow_inferior): Remove.
495 (child_post_follow_inferior_by_clone): Remove.
496 (init_child_ops): Don't set to_clone_and_follow_inferior
497 or to_post_follow_inferior_by_clone.
498 * target.c (default_clone_and_follow_inferior): Remove.
499 (cleanup_target): Don't set to_clone_and_follow_inferior
500 or to_post_follow_inferior_by_clone.
501 (find_default_clone_and_follow_inferior): Remove.
502 (init_dummy_target): Don't set to_clone_and_follow_inferior.
503 (debug_to_clone_and_follow_inferior): Remove.
504 (debug_to_post_follow_inferior_by_clone): Remove.
505 (setup_target_debug): Don't set to_clone_and_follow_inferior
506 or to_post_follow_inferior_by_clone.
507 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
508 and to_post_follow_inferior_by_clone.
509 (child_clone_and_follow_inferior): Remove prototype.
510 (child_post_follow_inferior_by_clone): Remove prototype.
511 (target_clone_and_follow_inferior): Remove macro.
512 (target_post_follow_inferior_by_clone): Remove macro.
513 (find_default_clone_and_follow_inferior): Remove prototype.
514
47932f85
DJ
5152002-11-16 Daniel Jacobowitz <drow@mvista.com>
516
517 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
518 inferior_has_vforked, and inferior_has_execd instead of
519 target_has_forked, target_has_vforked, and target_has_execd.
520 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
521 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
522 (CHILD_WAIT): Define.
523 (child_wait): Add prototype.
524 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
525 Add prototype.
526 (hpux_has_vforked): Likewise, from child_has_vforked.
527 (hpux_has_execd): Likewise, from child_has_execd.
528 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
529 (not_same_real_pid, child_wait): New, copied from inftarg.c.
530 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
531 and hpux_has_syscall_event instead of the target hooks.
532 * infrun.c (inferior_has_forked, inferior_has_vforked)
533 (inferior_has_execd): New functions.
534 * inftarg.c (not_same_real_pid): Remove.
535 (child_wait): Remove references to not_same_real_pid,
536 target_has_forked, target_has_vforked, target_has_execd,
537 and target_has_syscall_event.
538 (child_has_forked, child_has_vforked, child_has_execd)
539 (child_has_syscall_event): Remove.
540 (init_child_ops): Remove references to child_has_forked,
541 child_has_vforked, child_has_execd, and child_has_syscall_event.
542 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
543 (hpux_has_vforked): Likewise, from child_has_vforked.
544 (hpux_has_execd): Likewise, from child_has_execd.
545 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
546 * target.c (cleanup_target): Remove references to
547 to_has_forked, to_has_vforked, to_has_execd, and
548 to_has_syscall_event.
549 (update_current_target): Likewise.
550 (setup_target_debug): Likewise.
551 (debug_to_has_forked): Remove.
552 (debug_to_has_vforked): Remove.
553 (debug_to_has_execd): Remove.
554 (debug_to_has_syscall_event): Remove.
555 * target.h (struct target_ops): Remove to_has_forked.
556 to_has_vforked, to_has_execd, and to_has_syscall_event.
557 (child_has_forked, child_has_vforked, child_has_execd)
558 (child_has_syscall_event): Remove prototypes.
559 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
560 prototypes.
561 (target_has_forked, target_has_vforked, target_has_execd)
562 (target_has_syscall_event): Remove macros.
563
4088142a
DJ
5642002-11-16 Daniel Jacobowitz <drow@mvista.com>
565
566 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
567 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
568 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
569 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
570 * target.c (cleanup_target): Remove reference to
571 to_can_follow_vfork_prior_to_exec.
572 (update_current_target): Likewise.
573 (debug_to_can_follow_vfork_prior_to_exec): Remove.
574 (setup_target_debug): Remove reference to
575 to_can_follow_vfork_prior_to_exec.
576 * target.h (struct target_ops): Remove
577 to_can_follow_vfork_prior_to_exec.
578 (child_can_follow_vfork_prior_to_exec): Remove prototype.
579 (target_can_follow_vfork_prior_to_exec): Remove definition.
580 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
581 define.
582 * infrun.c (follow_vfork_when_exec): Remove.
583 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
584 (follow_exec): Likewise.
585 (handle_inferior_event): Likewise.
586 (keep_going): Likewise.
587
18cde8d5
AC
5882002-11-15 Andrew Cagney <cagney@redhat.com>
589
590 * frame.c (generic_unwind_get_saved_register): Make static.
591 * frame.h (generic_unwind_get_saved_register): Delete declaration.
592 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
593 defaults to generic_unwind_get_saved_register.
594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
595 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
596 * frv-tdep.c (frv_gdbarch_init): Ditto.
597 * i386-tdep.c (i386_gdbarch_init): Ditto.
598 * s390-tdep.c (s390_gdbarch_init): Ditto.
599 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
600 * v850-tdep.c (v850_gdbarch_init): Ditto.
601 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
602 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
603 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
604
a6b063af
AC
6052002-11-15 Andrew Cagney <cagney@redhat.com>
606
607 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
608 i386-tdep.c.
609
f407986f
AC
6102002-11-15 Andrew Cagney <cagney@redhat.com>
611
612 * frame.h (sigtramp_saved_pc): Delete declaration.
613 * blockframe.c (sigtramp_saved_pc): Delete function.
614 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
615 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
616 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
617 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
618
f18c5a73
AC
6192002-11-15 Andrew Cagney <ac131313@redhat.com>
620
621 * frame.c (frame_pc_unwind): New function.
622 (frame_saved_regs_pc_unwind): New function.
623 (frame_register_unwind): Pass unwind_cache instead of
624 register_unwind_cache.
625 (set_unwind_by_pc): Add unwind_pc parameter, set.
626 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
627 (get_prev_frame): Ditto.
628 * frame.h (frame_pc_unwind_ftype): Declare.
629 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
630 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
631 (frame_pc_unwind): Declare.
632 * dummy-frame.c (dummy_frame_pc_unwind): New function.
633 (struct dummy_frame): Add comment mentioning that values are for
634 previous frame.
635 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
636 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
637 (generic_file_frame_chain_valid): Ditto.
638 * stack.c (frame_info): Ditto.
639
d9285969 6402002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
641
642 * linespec.c (locate_first_half): New function.
643 (decode_line_1): Move code into locate_first_half.
644
d741b867
AC
6452002-11-15 Andrew Cagney <ac131313@redhat.com>
646
647 * complaints.h: Add comment explaining how to eliminate a
648 deprecated_complain call.
24382c5c 649 * complaints.h: Fix spelling errors.
d741b867 650
82d03c99
DC
6512002-11-15 David Carlton <carlton@math.stanford.edu>
652
653 * printcmd.c: Remove #include "disasm.h".
654
c97eb5d9
AC
6552002-11-14 Andrew Cagney <ac131313@redhat.com>
656
657 * frame.h: Move the most relevant interface functions to the start
658 of the file.
659
524d7c18
AC
6602002-11-14 Andrew Cagney <ac131313@redhat.com>
661
662 * regcache.h (deprecated_registers): Rename registers.
663 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
664 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
665 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
666 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
667 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
668 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
669 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
670 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
671 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
672 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
673 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
674 * v850ice.c: Update.
675
6411e720
AC
676Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
677
678 * utils.c (gdb_realpath): Add comment mentioning realpath with a
679 NULL buffer.
680
73937e03
AC
6812002-11-13 Andrew Cagney <cagney@redhat.com>
682
683 * regcache.h (deprecated_read_register_bytes): Rename
684 read_register_bytes.
685 (deprecated_write_register_bytes): Rename write_register_bytes.
686 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
687 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
688 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
689 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
690 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
691 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
692 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
693 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
694 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
695 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
696 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
697 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
698 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
699 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
700
fb0cd46e
JB
7012002-11-13 Jim Blandy <jimb@redhat.com>
702
703 * findvar.c (read_var_value): Doc fix.
704
2d28509a
AC
7052002-11-13 Andrew Cagney <cagney@redhat.com>
706
707 * regcache.c (struct regcache): Replace passthough_p with
708 readonly_p.
709 (regcache_xmalloc): Initialize readonly_p.
710 (build_regcache): Initialize readonly_p.
711 (regcache_save): New function.
712 (regcache_restore): New function.
713 (regcache_cpy): Re-implement using regcache_save and
714 regcache_restore.
715 (regcache_raw_read): Update.
716 (regcache_cooked_read): When a read-only cache, checked for cached
717 pseudo register values.
718 (regcache_raw_write): Assert that the cache is not read-only.
719 Remove code handling a non-passthrough cache.
720 * regcache.h (regcache_save): Declare.
721 (regcache_restore): Declare.
722
067df2e5
AC
7232002-11-13 Andrew Cagney <cagney@redhat.com>
724
725 * regcache.c (struct regcache_descr): Add fields
726 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
727 (init_legacy_regcache_descr): Compute the size of a cooked
728 register cache and then assign that to sizeof_raw_registers. Set
729 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
730 (init_legacy_regcache_descr): Ditto.
731
51b1fe4e
AC
7322002-11-13 Andrew Cagney <cagney@redhat.com>
733
734 * regcache.c (register_buffer): Move to near start of file, update
735 description.
736 (regcache_raw_read): Use.
737 (regcache_raw_write): Use.
738 (struct regcache): Rename raw_registers to registers and
739 raw_register_valid_p to register_valid_p.
740 (regcache_xmalloc): Update.
741 (regcache_xfree): Update.
742 (register_buffer): Update.
743 (regcache_cpy): Update.
744 (regcache_cpy_no_passthrough): Update.
745 (regcache_valid_p): Update.
746 (deprecated_grub_regcache_for_registers): Update.
747 (deprecated_grub_regcache_for_register_valid): Update.
748 (set_register_cached): Update.
749 (regcache_raw_write): Update.
750
80b4c677
PM
7512002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
752
753 * p-exp.y (name_not_typename): Use copy_name to
754 set current_type variable for fields of THIS.
755
0f3fafde
DJ
7562002-11-12 Daniel Jacobowitz <drow@mvista.com>
757
758 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
759 * monitor.c (init_base_monitor_ops): Likewise.
760 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
761 * remote-array.c (init_array_ops): Likewise.
762 * remote-e7000.c (init_e7000_ops): Likewise.
763 * remote-es.c (init_es1800_ops): Likewise.
764 (init_es1800_child_ops): Likewise.
765 * remote-rdp.c (init_remote_rdp_ops): Likewise.
766 * remote-sim.c (init_gdbsim_ops): Likewise.
767 * remote-st.c (init_st2000_ops): Likewise.
768 * sol-thread.c (init_sol_core_ops): Likewise.
769 (init_sol_thread_ops): Likewise.
770 * v850ice.c (init_850ice_ops): Likewise.
771 * win32-nat.c (init_child_ops): Likewise.
772 * wince.c (init_child_ops): Likewise.
773
82c0260e
AC
7742002-11-12 Andrew Cagney <ac131313@redhat.com>
775
776 * utils.c (gdb_realpath): Make rp a constant pointer.
777
70d35819
AC
7782002-11-12 Andrew Cagney <ac131313@redhat.com>
779
780 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
781 a constant buffer; cannonicalize_file_name(); realpath() with a
782 pathconf() defined buffer, xstrdup().
783
9835a8b0
AC
7842002-11-12 Andrew Cagney <ac131313@redhat.com>
785
786 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
787 to hang2.C; hang3.c to hang3.C.
788
3f47be5c
EZ
7892002-11-11 Elena Zannoni <ezannoni@redhat.com>
790
791 * findvar.c (read_var_value): Reenable TLS code.
792
7932002-11-11 Elena Zannoni <ezannoni@redhat.com>
794 Jim Blandy <jimb@redhat.com>
795
796 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
797 * target.c (update_current_target): Add
798 to_get_thread_local_address.
799 * target.h (to_get_thread_local_address): Export.
800 (target_get_thread_local_address): Define.
801 (target_get_thread_local_address_p): Define.
802 * thread-db.c: Include solib-svr4.h.
803 (td_thr_tls_get_addr_p): Define.
804 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
805 (thread_db_get_thread_local_address): New function.
806 (init_thread_db_ops): Initialize to_get_thread_local_address.
807 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
808 * configure: Regenerate.
809 * config.in: Regenerate.
810
636b1a6d
DC
8112002-11-11 David Carlton <carlton@math.stanford.edu>
812
813 * linespec.c (set_flags): New function.
814 (decode_line_1): Move code into set_flags.
815
44fe14ab
DC
8162002-11-11 David Carlton <carlton@math.stanford.edu>
817
818 * linespec.c (decode_line_1): Move chunks of code to separate
819 functions.
820 (initialize_defaults): New function.
821 (decode_indirect): New function.
822
e6f181f5
AC
8232002-11-11 Andrew Cagney <ac131313@redhat.com>
824
8971b011
AC
825 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
826 instead of void_code_ptr.
827 (sigtramp_saved_pc): Ditto.
828
e6f181f5
AC
829 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
830 i386_fp_regnum_p.
831
01ad7f36
DJ
8322002-11-10 Daniel Jacobowitz <drow@mvista.com>
833
834 * gdbtypes.h (struct main_type): Move artificial flag out of
835 loc. New member of ``struct field'' named static_kind. Reduce
836 overloaded meaning of bitsize.
837 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
838 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
839 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
840
841 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
842 new fields.
843 (template_to_fixed_record_type, template_to_static_fixed_type)
844 (to_record_with_fixed_variant_part): Likewise.
845 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
846 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
847 * dwarfread.c (struct_type, enum_type): Likewise.
848 * hpread.c (hpread_read_enum_type)
849 (hpread_read_function_type, hpread_read_doc_function_type)
850 (hpread_read_struct_type): Likewise.
851 * mdebugread.c (parse_symbol): Likewise.
852
bf1e52be
AC
8532002-11-10 Andrew Cagney <ac131313@redhat.com>
854
855 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
856 * stack.c (print_frame_info_base): Update.
857 (print_frame_info_base, frame_info): Update.
858 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
859 (sparc_frame_saved_pc): Update.
860 * ada-lang.c (find_printable_frame): Update.
861 * breakpoint.c (deprecated_frame_in_dummy): Update.
862
ce556f85
MK
8632002-11-09 Mark Kettenis <kettenis@gnu.org>
864
865 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
866 defined.
867 (regmap): Extend to cover all registers.
868 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
869 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
870 definitions.
871 (fetch_register, sore_register): Simplify.
872 (old_fetch_inferior_registers, old_store_inferior_registers):
873 Remove functions.
874 (cannot_fetch_register, cannot_store_register): Change
875 implementation to use regmap array to decide which registers
876 cannot be fetched/stored. This removes $orig_eax from the
877 registers that cannot be fetched/stored.
878 (fetch_inferior_registers): Call fetch_register directly instead
879 of calling old_fetch_inferior_registers.
880 (store_inferior_registers): Call store_register directly instead
881 of calling old_store_inferior_registers.
882 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
883 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
884 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
885
932bb524
KD
8862002-11-09 Klee Dienes <kdienes@apple.com>
887
888 * i387-tdep.c (i387_supply_register): When called with NULL as a
889 buffer, mark the register as not provided (to mirror the behavior
890 of supply_register).
891 (i387_supply_fxsave): Ditto.
892 (i387_supply_fsave): Ditto (inherits the behavior from
893 i387_supply_register).
894
ebe68b27
KD
8952002-11-09 Klee Dienes <kdienes@apple.com>
896
897 * blockframe.c (sigtramp_saved_pc): Use
898 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
899 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
900 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
901
15220c65
AC
9022002-11-09 Andrew Cagney <ac131313@redhat.com>
903
904 * frame.c (get_prev_frame): Test prev_p to identify a previously
905 unwound frame. Initialize prev_p.
906 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
907 comment.
908
95adb866
AC
9092002-11-09 Andrew Cagney <ac131313@redhat.com>
910
911 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
912 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
913 more comments. Zap dead code.
914
e71ecd70
MK
9152002-11-09 Mark Kettenis <kettenis@gnu.org>
916
917 * infcmd.c (print_vector_info, print_float_info): Move code that
918 checks whether the target has any registers and whether there is a
919 selected frame up, such that it is also used if a target provides
920 multi-arch definitions of these functions.
921
c525330d
AC
9222002-11-08 Andrew Cagney <ac131313@redhat.com>
923
72bdd927
AC
924 * Makefile.in (DESTDIR): Define.
925 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
926 prefix.
927
c525330d
AC
928 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
929 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
930
38c968cf
AC
9312002-11-08 Andrew Cagney <ac131313@redhat.com>
932
933 * i386-linux-tdep.c: Include "reggroups.h".
934 (i386_linux_register_reggroup_p): New function.
935 (i386_linux_init_abi): Set register_reggroup_p to
936 i386_linux_register_reggroup_p.
937 * i386-tdep.h (i386_register_reggroup_p): Declare.
938 * i386-tdep.c: Include "reggroups.h".
939 (i386_init_reggroups): New function.
940 (i386_add_reggroups): New function.
941 (i386_register_reggroup_p): New function.
942 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
943 (_initialize_i386_tdep): Call i386_init_reggroups.
944 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
945 specific reggroups.
946
19e33363
MK
9472002-11-09 Mark Kettenis <kettenis@gnu.org>
948
371a6e84
MK
949 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
950 request that's available in *BSD.
951
94ba925a
MK
952 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
953
19e33363
MK
954 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
955 FDOFF_REGNUM.
956
8779790c
AC
9572002-11-08 Andrew Cagney <ac131313@redhat.com>
958
959 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
960 * dummy-frame.c (find_dummy_frame): Rename
961 generic_find_dummy_frame, make static. Return the dummy frame
962 instead of the regcache.
963 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
964 (cached_find_dummy_frame): New function. Use find_dummy_frame.
965 (dummy_frame_register_unwind): Rename
966 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
967 * dummy-frame.h (dummy_frame_register_unwind): Rename
968 generic_call_dummy_register_unwind.
969
8674b74f
MK
9702002-11-08 Mark Kettenis <kettenis@gnu.org>
971
972 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
973 except the inclusion of "i386/tm-i386.h", to...
974 * config/i386/nm-i386v42mp.h: ...here.
975 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
976
4c1e7e9d
AC
9772002-11-08 Andrew Cagney <ac131313@redhat.com>
978
979 * Makefile.in (frame.o): Update dependencies.
980 * blockframe.c (current_frame, frame_obstack_alloc)
981 (frame_saved_regs_zalloc, get_current_frame)
982 (set_current_frame, create_new_frame)
983 (set_unwind_by_pc, get_next_frame)
984 (flush_cached_frames, reinit_frame_cache)
985 (frame_saved_regs_register_unwind)
986 (deprecated_generic_get_saved_register)
987 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
988 (_initialize_blockframe): Move frame code from here...
989 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
990 "annotate.h" and "dummy-frame.h".
991 (_initialize_frame): New function.
992
921e78cf
JB
9932002-11-08 Jim Blandy <jimb@redhat.com>
994
995 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
996 when we finish a function a context.
997 * buildsym.h (outermost_context_p): New macro.
998 (Bug analyzed by David Edelsohn.)
999
9c1412c1
AC
10002002-11-08 Andrew Cagney <ac131313@redhat.com>
1001
1002 * blockframe.c: Include "dummy-frame.h".
1003 (struct dummy_frame, dummy_frame_stack)
1004 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1005 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1006 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1007 (generic_save_call_dummy_addr, generic_pop_current_frame)
1008 (generic_pop_dummy_frame, generic_fix_call_dummy)
1009 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1010 dummy frame code from here...
1011 * dummy-frame.c: ...to here. New file.
1012 * dummy-frame.h: New file.
1013 (generic_call_dummy_register_unwind): Declare.
1014 (generic_find_dummy_frame): Declare.
1015 * Makefile.in (SFILES): Add dummy-frame.c.
1016 (dummy-frame.o): Specify dependencies.
1017 (dummy_frame_h): Define.
1018 (COMMON_OBS): Add dummy-frame.o.
1019 (blockframe.o): Update dependencies.
1020
208d8187
JB
10212002-11-08 Jim Blandy <jimb@redhat.com>
1022
1023 * dwarf2read.c (read_func_scope): Restore local_symbols and
1024 param_symbols after we finish the function context. (Based on a
1025 patch from David Edelsohn.)
1026
413dad4d
DC
10272002-11-08 David Carlton <carlton@math.stanford.edu>
1028
1029 * linespec.c (symbol_found): New function.
1030 (minsym_found): New function.
1031 (decode_line_1): Separate out some code into separate functions.
1032
5512c44a
JB
10332002-11-08 Joel Brobecker <brobecker@gnat.com>
1034
1035 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1036 the benefit of the interix target.
1037 * i386-tdep.h (i386_frameless_signal_p): Declare.
1038
1b33ef47
AC
10392002-11-08 Andrew Cagney <ac131313@redhat.com>
1040
1041 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1042 declaration that snuck in from change below.
1043
23a34459
AC
10442002-11-06 Andrew Cagney <cagney@redhat.com>
1045
1046 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1047 all callers.
1048 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1049 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1050 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1051 (i386_mxcsr_regnum_p): new function. Use instead of
1052 MXCSR_REGNUM_P.
1053 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1054 (i386_sse_regnum_p): Declare.
1055 (i386_mxcsr_regnum_p): Declare.
1056 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1057 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1058 (IS_FP_REGNUM): Update definition.
1059 (IS_FPU_CTRL_REGNUM): Update definition..
1060 (IS_SSE_REGNUM): Update definition..
1061 * i386v-nat.c (register_u_addr): Update.
1062 * go32-nat.c (fetch_register): Update.
1063 (store_register): Update.
1064
d709c020
JB
10652002-11-07 Joel Brobecker <brobecker@gnat.com>
1066
1067 Preparation work to convert the hppa targets to multiarch partial.
1068
1069 * hppa-tdep.c: Add new functions replacing macro bodies from
1070 config/pa/tm-hppa.h. These function will be used to initialize
1071 the gdbarch structure. Import some comments from tm-hppa.h,
1072 and place them where appropriate, to avoid loosing them when
1073 we cleanup this file.
1074 (hppa_reg_struct_has_addr): New function.
1075 (hppa_inner_than): New function.
1076 (hppa_stack_align): New function.
1077 (hppa_pc_requires_run_before_use): New function.
1078 (hppa_instruction_nullified): New function.
1079 (hppa_register_byte): New function.
1080 (hppa_register_virtual_type): New function.
1081 (hppa_store_struct_return): New function.
1082 (hppa_cannot_store_register): New function.
1083 (hppa_frame_args_address): New function.
1084 (hppa_frame_locals_address): New function.
1085 (hppa_smash_text_address): New function.
1086 (hppa_coerce_float_to_double): New function. Requires the inclusion
1087 of "language.h".
1088
1089 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1090
1091 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1092 gdbarch-eligible macro to a call to the new associated function
1093 created in hppa-tdep.c.
1094 (INNER_THAN): Likewise.
1095 (STACK_ALIGN): Likewise.
1096 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1097 (INSTRUCTION_NULLIFIED): Likewise.
1098 (REGISTER_BYTE): Likewise.
1099 (REGISTER_VIRTUAL_TYPE): Likewise.
1100 (STORE_STRUCT_RETURN): Likewise.
1101 (CANNOT_STORE_REGISTER): Likewise.
1102 (FRAME_ARGS_ADDRESS): Likewise.
1103 (FRAME_LOCALS_ADDRESS): Likewise.
1104 (SMASH_TEXT_ADDRESS): Likewise.
1105 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1106 (ABOUT_TO_RETURN): Delete, as no longer used.
1107
83c31e7d
FN
11082002-11-07 Fernando Nasser <fnasser@redhat.com>
1109
1110 * printcmd.c (disassemble_command): Remove obsolete function.
1111 (_initialize_printcmd): Do not create disassemble command here.
1112 * cli/cli-cmds.c (disassemble_command): New function. Implements
1113 disassemble command.
1114 (init_cli_cmds): Create disassemble command here instead.
1115
0ec30a36
AC
11162002-11-07 Andrew Cagney <ac131313@redhat.com>
1117
1118 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1119
e600bd34
AC
11202002-11-07 Andrew Cagney <ac131313@redhat.com>
1121
1122 * regcache.h (regcache_cooked_read_using_offset_hack)
1123 (regcache_cooked_write_using_offset_hack): Delete declarations.
1124 (register_changed): Delete declaration.
1125 * regcache.c (regcache_cooked_read_using_offset_hack)
1126 (regcache_cooked_write_using_offset_hack): Delete functions.
1127 (cooked_xfer_using_offset_hack): Delete function.
1128 (register_changed): Delete function.
1129
568f8739
JB
11302002-11-07 Jim Blandy <jimb@redhat.com>
1131
1132 * macroscope.c: #include "complaints.h".
1133 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1134 but not in the macro table.
1135 * Makefile.in (macroscope.o): Record dependency.
1136
b0718b7b
JB
11372002-11-07 Joel Brobecker <brobecker@gnat.com>
1138
1139 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1140
2b9e5f3f
AC
11412002-11-07 Andrew Cagney <ac131313@redhat.com>
1142
1143 * regcache.c (deprecated_registers_fetched): Update.
1144 * regcache.h (deprecated_registers_fetched): Rename
1145 registers_fetched.
1146 * remote-vxsparc.c (vx_read_register): Update.
1147 * remote-vxmips.c (vx_read_register): Update.
1148 * remote-vx68.c (vx_read_register): Update.
1149 * irix5-nat.c (fetch_core_registers): Update.
1150 * mipsm3-nat.c (fetch_inferior_registers): Update.
1151 * sun3-nat.c (fetch_inferior_registers): Update.
1152 * symm-nat.c (fetch_inferior_registers): Update.
1153 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1154 (fetch_core_registers): Update.
1155 (fetch_kcore_registers): Update.
1156 * mips-nat.c (fetch_inferior_registers): Update.
1157 * corelow.c (get_core_registers): Update.
1158 * a68v-nat.c (fetch_inferior_registers): Update.
1159
e6e68f1f
JB
11602002-11-06 Joel Brobecker <brobecker@gnat.com>
1161
1162 Put in place the framework necessary for multiarching the hppa targets.
1163 * hppa-tdep.c (hppa_gdbarch_init): New function.
1164 (hppa_dump_tdep): New function.
1165 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1166 tdep structure dumper.
1167 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1168 until the multi-arching conversion has partially been completed.
1169
492254e9
AC
11702002-11-06 Andrew Cagney <ac131313@redhat.com>
1171
1172 * valops.c (value_assign): Merge lval_register case into
1173 lval_reg_frame_relative. Use frame_register and
1174 regcache_cooked_write instead of get_saved_register and
1175 write_register_bytes. After flushing the register cache, try to
1176 re-select the selected frame.
1177
8262ee23
AC
11782002-11-06 Andrew Cagney <ac131313@redhat.com>
1179
1180 * regcache.h (deprecated_register_valid): Rename register_valid.
1181 * regcache.c: Update.
1182 * ia64-aix-nat.c: Update.
1183 * i386gnu-nat.c: Update.
1184 * alpha-nat.c: Update.
1185 * sparc-nat.c: Update.
1186 * lynx-nat.c: Update.
1187 * remote-mips.c: Update.
1188
4facf7e8
JB
11892002-11-06 Joel Brobecker <brobecker@gnat.com>
1190
1191 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1192 to end of file, to be more consistent with the pratice followed
1193 by other targets.
1194
f9418c0f
AC
11952002-11-06 Andrew Cagney <ac131313@redhat.com>
1196
1197 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1198 (print_float_info): Print registers in float_reggroup.
1199 (print_vector_info): Print registers in vector_reggroup.
1200 (default_print_registers_info): When all, print registers in
1201 all_reggroup. Otherwize, print registers in general_reggroup.
1202 (registers_info): Rewrite. Add support for register groups.
1203 Eliminate a goto.
1204
3fe235a7
EZ
12052002-11-06 Elena Zannoni <ezannoni@redhat.com>
1206
1207 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1208 ages.
1209 (symtab_symbol_info): Remove eons old ifdeffed out code.
1210 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1211 command.
1212
ef944135
TR
12132002-11-06 Theodore A. Roth <troth@openavr.org>
1214
1215 * c-exp.y: Add missing semi-colons.
1216 * f-exp.y: Add missing semi-colons.
1217 * m2-exp.y: Add missing semi-colons.
1218 * p-exp.y: Add missing semi-colons.
1219 Add empty action to start rule to avoid a type clash error when
1220 building with bison >= 1.50.
1221
f8302a57
JB
12222002-11-06 Jim Blandy <jimb@redhat.com>
1223
1224 * macrotab.h (struct macro_source_file): Doc fix.
1225
6e382aa3
JJ
12262002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1227
1228 * varobj.c (child_exists, cplus_number_of_children): Change
1229 STREQ macro references to strcmp.
1230 (cplus_name_of_child): Change code to handle the fact that
1231 fields are not necessarily contiguous with regards to their
1232 access control. This is a fix for PR gdb/792.
1233
a216a322
AC
12342002-11-05 Andrew Cagney <ac131313@redhat.com>
1235
1236 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1237 * gdbarch.h, gdbarch.c: Regnerate.
1238 * frame.h (frame_register): Declare.
1239 * frame.c (frame_register): New function.
1240 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1241 GET_SAVED_REGISTER, otherwize call
1242 generic_unwind_get_saved_register.
1243 (frame_register_read): Use frame_register instead of
1244 get_saved_register.
1245
7d5b6fdd
EZ
12462002-11-05 Elena Zannoni <ezannoni@redhat.com>
1247
1248 From Jim Ingham <jingham@apple.com>:
1249 * event-top.c (gdb_disable_readline): New function.
1250 (_initialize_event_loop): Move comment.
1251
b7c64260
EZ
12522002-11-05 Elena Zannoni <ezannoni@redhat.com>
1253
1254 * event-loop.c (start_event_loop): Add comment.
1255 Update copyright.
1256
c2e1b8f2
AC
12572002-11-05 Andrew Cagney <ac131313@redhat.com>
1258
1259 * infcmd.c (default_print_registers_info): Do not call
1260 PRINT_REGISTER_HOOK.
1261
87647bb0
AC
12622002-11-05 Andrew Cagney <ac131313@redhat.com>
1263
1264 * sparc-tdep.c (sparc_print_register_hook): Make static.
1265 (sparc_print_registers_info): New function.
1266 (sparc_do_registers_info): New function.
1267 (sparclet_print_registers_info): New function.
1268 (sparclet_do_registers_info): New function.
1269 (do_sparc_print_registers_info): New function.
1270 (sparc_print_registers): New static function, clone of infcmd.c's
1271 default_print_registers_info.
1272 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1273 (sparclet_do_registers_info): Declare.
1274 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1275 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1276 Re-define.
1277 (sparc_do_registers_info): Declare.
1278 (PRINT_REGISTER_HOOK): Delete macro.
1279 (sparc_print_register_hook): Delete declaration.
1280
8155455b
DC
12812002-11-05 David Carlton <carlton@math.stanford.edu>
1282
1283 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1284 functions.
1285 (lookup_symbol_aux_local): New function.
1286 (lookup_symbol_aux_symtabs): New function.
1287 (lookup_symbol_aux_psymtabs): New function.
1288
29924310
DC
12892002-11-05 David Carlton <carlton@math.stanford.edu>
1290
1291 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1292 previous values of 'objfile' and 'block'.
1293
cc303028
PM
12942002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1295
1296 * values.c (value_change_enclosing_type): Set
1297 enclosing_type field correctly also for the case where
1298 more memory needs to be allocated.
1299
1d70089a
MK
13002002-11-03 Mark Kettenis <kettenis@gnu.org>
1301
f16a25ae
MK
1302 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1303 of puts_filtered.
1304
1d70089a
MK
1305 * i387-tdep.c (i387_print_float_info): Replace calls to
1306 register_read and deprecated_read_register_gen with calls to
1307 frame_register_read, and make the necessary adjustments to the
1308 surrounding code.
1309
7e20f3fb
AC
13102002-11-02 Andrew Cagney <ac131313@redhat.com>
1311
1312 * gdbarch.sh (register_reggroup_p): Allow default value.
1313 * gdbarch.h, gdbarch.c: Regenerate.
1314
192dbe33
AC
13152002-11-02 Andrew Cagney <ac131313@redhat.com>
1316
1317 * regcache.h: Add coment indicating replacements for deprecated
1318 functions.
1319
b59ff9d5
AC
13202002-11-02 Andrew Cagney <cagney@redhat.com>
1321
1322 * reggroups.h, reggroups.c: New files.
1323 * regcache.c: Include "reggroups.h".
1324 (enum regcache_dump_what): Add `regcache_dump_groups'.
1325 (regcache_dump): Contract size of the "Type" column. When
1326 specified, dump the register's groups.
1327 (maintenance_print_register_groups): New function.
1328 (_initialize_regcache): Add command `maint print register-groups'.
1329 * Makefile.in (COMMON_OBS): Add reggroups.o
1330 (SFILES): Add reggroups.c.
1331 (reggroups_h): Define.
1332 (regcache.o, gdbarch.o): Update dependencies.
1333 (reggroups.o): Specify dependencies.
1334 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1335 Add opaque declaration for `struct reggroup' in generated .h file.
1336 Include "reggroups.h" in generated .c file.
1337 gdbarch.h, gdbarch.c: Re-generate.
1338
4caf0990
AC
13392002-11-02 Andrew Cagney <cagney@redhat.com>
1340
1341 * regcache.h (deprecated_read_register_gen): Rename
1342 read_register_gen.
1343 (deprecated_write_register_gen): Rename write_register_gen.
1344 * i387-tdep.c: Update.
1345 * x86-64-linux-nat.c: Update
1346 * wince.c: Update.
1347 * thread-db.c: Update.
1348 * win32-nat.c: Update.
1349 * mips-tdep.c: Update.
1350 * d10v-tdep.c: Update.
1351 * cris-tdep.c: Update.
1352 * remote-sim.c: Update.
1353 * remote-rdi.c: Update.
1354 * remote-rdp.c: Update.
1355 * frame.c: Update.
1356 * target.c: Update.
1357 * blockframe.c: Update.
1358 * x86-64-tdep.c: Update.
1359 * xstormy16-tdep.c: Update.
1360 * sh-tdep.c: Update.
1361 * s390-tdep.c: Update.
1362 * rs6000-tdep.c: Update.
1363 * sparc-tdep.c: Update.
1364 * i386-tdep.c: Update.
1365 * dwarf2cfi.c: Update.
1366 * regcache.c: Update.
1367
7a7adcdf
JB
13682002-11-01 Joel Brobecker <brobecker@gnat.com>
1369
1370 New interix-specific files:
1371 * config/i386/nm-interix.h: New file.
1372 * config/i386/interix.mh: New file.
1373 * config/i386/interix.mt: New file.
1374 * i386-interix-nat.c: New file.
1375 * i386-interix-tdep.c: New file.
1376
bdcdd535
AC
13772002-11-01 Andrew Cagney <cagney@redhat.com>
1378
1379 * frame.h (deprecated_generic_get_saved_register): Rename
1380 generic_get_saved_register.
1381 * blockframe.c (deprecated_generic_get_saved_register): Update.
1382 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1383 (xstormy16_frame_saved_register): Update.
1384 * sh-tdep.c (sh_gdbarch_init): Update.
1385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1386 * ia64-tdep.c (ia64_get_saved_register): Update.
1387 * cris-tdep.c (cris_gdbarch_init): Update.
1388 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1389 * arm-tdep.c (arm_gdbarch_init): Update.
1390
2a4b7c45
DJ
13912002-10-31 Daniel Jacobowitz <drow@mvista.com>
1392
1393 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1394
ef17e74b
DJ
13952002-10-31 Daniel Jacobowitz <drow@mvista.com>
1396
1397 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1398 trampolines in sigaction.
1399
4904ba5b
AC
14002002-10-31 Andrew Cagney <cagney@redhat.com>
1401
1402 * h8300-tdep.c: Include "gdb_assert.h".
1403 (h8300_print_register): Add gdbarch, file and frame parameters.
1404 Use frame_read_unsigned_register to read the register's value.
1405 Use fprintf_filtered to display output.
1406 (h8300_print_registers_info): Replace h8300_do_registers_info.
1407 (h8300_gdbarch_init): Set print_registers_info.
1408
f908a0eb
AC
14092002-10-31 Andrew Cagney <cagney@redhat.com>
1410
1411 * frame.c (frame_read_unsigned_register): New function.
1412 (frame_read_signed_register): New function.
1413 * frame.h (frame_read_unsigned_register): Declare.
1414 (frame_read_signed_register): Declare.
1415
c5646e11
AC
14162002-10-31 Andrew Cagney <cagney@redhat.com>
1417
1418 * h8500-tdep.c (h8500_print_registers_info): New static function,
1419 clone of infcmd.c's default_print_registers_info.
1420 (h8500_do_registers_info): New funtion.
1421 (h8500_print_register_hook): Rename print_register_hook, make
1422 static.
1423
1424 * config/h8500/tm-h8500.h: Update copyright.
1425 (DEPRECATED_DO_REGISTERS_INFO): Define.
1426 (h8500_do_registers_info: Declare.
1427 (PRINT_REGISTER_HOOK): Delete macro.
1428 (print_register_hook): Delete function.
1429
0bdd672b
AC
14302002-10-31 Andrew Cagney <cagney@redhat.com>
1431
1432 * z8k-tdep.c (z8k_print_register_hook): Make static.
1433 (z8k_print_registers_info): New static function, clone of
1434 infcmd.c's default_print_registers_info.
1435 (z8k_do_registers_info): New function. Wrap
1436 z8k_print_registers_info.
1437 * config/z8k/tm-z8k.h: Update copyright.
1438 (PRINT_REGISTER_HOOK): Delete macro.
1439 (z8k_print_register_hook): Delete declaration.
1440 (DEPRECATED_DO_REGISTERS_INFO): Define.
1441 (z8k_do_registers_info): Declare.
1442
bf9c25dc
JB
14432002-10-30 Joel Brobecker <brobecker@gnat.com>
1444
1445 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1446 as this is already provided by value.h, and was actually causing
1447 a compilation error because of a conflict in parameter type
1448 declaration due to a missing const keyword.
1449 (low_text_segment_addres): Fix a compilation warning.
1450
2c665b51
DJ
14512002-10-29 Daniel Jacobowitz <drow@mvista.com>
1452
1453 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1454 registers without a name.
1455 (mips_linux_cannot_store_register): Don't store registers without
1456 a name.
1457
e70ea697
DC
14582002-10-28 David Carlton <carlton@math.stanford.edu>
1459
1460 * symtab.c (find_addr_symbol): Delete. (It was already commented
1461 out.)
1462 * symtab.h: Delete prototype for find_addr_symbol.
1463
903ad3a6
AC
14642002-10-26 Andrew Cagney <cagney@redhat.com>
1465
1466 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1467 DO_REGISTERS_INFO.
1468 gdbarch.h, gdbarch.c: Re-generate.
1469 * infcmd.c (default_print_registers_info): Update reference.
1470 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1471 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1472 * sh-tdep.c (sh_gdbarch_init): Ditto.
1473 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1474 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1475
ab91194c
MK
14762002-10-26 Mark Kettenis <kettenis@gnu.org>
1477
e3033f15
MK
1478 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1479 cfi_init_extra_frame_info.
1480 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1481 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1482
b83b026c
MK
1483 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1484 target where necessary. Add more comments and remove the ones
1485 that don't provide any useful information.
1486
267bf4bb
MK
1487 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1488 deprecated_read_register_dummy with
1489 frame_unwind_unsigned_register.
1490
751f1375
MK
1491 * i386-tdep.c (i386_extract_struct_value_address): Use
1492 regcache_raw_read_unsigned instead of
1493 regcache_cooked_read_unsigned since we know that the register
1494 we're reading isn't a pseudo register. Rename variable 'val' into
1495 the more descriptive 'addr'.
1496
26abbdc4
MK
1497 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1498 (x86_64_push_return_address): Add comment.
1499 (x86_64_pop_frame): Make static.
1500 (examine_argument): Clarify comment.
1501 (x86_64_skip_prologue): Make prolog_expact variable static.
1502
9f1549cc
MK
1503 * dwarf2cfi.c: Fix some formatting problems.
1504 (context_cpy, read_encoded_pointer): Clarify comments.
1505
ab91194c
MK
1506 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1507 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1508 i386 target back into x86_64_gdbarch_init. Add some comments and
1509 remove meaningless ones.
1510
72367fb4
AC
15112002-10-25 Andrew Cagney <cagney@redhat.com>
1512
1513 * complaints.h (struct deprecated_complaint): Rename `struct
1514 complaint'.
1515 * complaints.c (complain): Update.
1516 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1517 incorrect comment indicating that "symfile.h" was being included
1518 for the `struct complaint' definition.
1519 * remote-vx.c: Update.
1520 * objc-lang.c: Update.
1521 * xcoffread.c: Update.
1522 * hpread.c: Update.
1523 * mdebugread.c: Update.
1524 * stabsread.c: Update.
1525 * dwarf2read.c: Update.
1526 * dwarfread.c: Update.
1527 * elfread.c: Update.
1528 * coffread.c: Update.
1529 * stabsread.h: Update.
1530 * dbxread.c: Update.
1531 * buildsym.c: Update.
1532 * gdbtypes.c: Update.
1533 * macrotab.c: Update.
1534
1f2baacc
MK
15352002-10-25 Mark Kettenis <kettenis@gnu.org>
1536
0c1a73d6
MK
1537 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1538 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1539 (x86_64_init_abi): ...new function.
1540
6aee4d54 1541 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1542 * i386v-nat.c: Include "i386-tdep.h".
1543
8f9cbe01
AC
15442002-10-25 Andrew Cagney <cagney@redhat.com>
1545
5f11f355
AC
1546 * gdbtypes.c (address_space_name_to_int): Update.
1547 (address_space_int_to_name): Update.
1548 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1549 multi-arch predicate.
1550 (address_class_name_to_type_flags): Ditto.
1551 * gdbarch.h, gdbarch.c: Re-generate.
1552
8f9cbe01
AC
1553 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1554
e8d96a5d
MH
15552002-10-24 Martin M. Hunt <hunt@redhat.com>
1556
1557 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1558
fe39c653
EZ
15592002-10-24 Elena Zannoni <ezannoni@redhat.com>
1560
1561 * symtab.h (INIT_SAL): Delete macro.
1562 (init_sal): Export.
1563 * symtab.c (init_sal): New function.
1564
1565 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1566 to init_sal function call.
1567 (find_sal_from_funcs_and_line): Ditto.
1568 (all_sals_for_line): Ditto.
1569 * breakpoint.c (create_internal_breakpoint): Ditto.
1570 (create_fork_vfork_event_catchpoint): Ditto.
1571 (create_exec_event_catchpoint): Ditto.
1572 (parse_breakpoint_sals): Ditto.
1573 (watch_command_1): Ditto.
1574 (handle_gnu_4_16_catch_command): Ditto.
1575 (clear_command): Ditto.
1576 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1577 * infcmd.c (run_stack_dummy): Ditto.
1578 * infrun.c (process_event_stop_test): Ditto.
1579 (check_sigtramp2): Ditto.
1580 (step_over_function): Ditto.
1581 * linespec.c (decode_line_2): Ditto.
1582 (decode_line_1): Ditto.
1583 * source.c (line_info): Ditto.
1584 * symtab.c (find_pc_sect_line): Ditto.
1585
baed091b
ML
15862002-10-24 Michal Ludvig <mludvig@suse.cz>
1587
1588 * dwarf2cfi.c (struct context)
1589 (struct context_reg): Moved to dwarf2cfi.h
1590 (context_alloc, frame_state_alloc, context_cpy):
1591 Made extern instead of static, removed prototypes.
1592 * dwarf2cfi.h (struct context)
1593 (struct context_reg): New, moved from dwarf2cfi.c
1594 (context_alloc, frame_state_alloc, context_cpy):
1595 New prototypes.
1596 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1597 Changed from static to extern.
1598 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1599 (LINUX_SIGCONTEXT_FP_OFFSET)
1600 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1601 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1602 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1603 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1604 set_gdbarch_*() calls now use x86-64 specific functions
1605 instead of DWARF2 CFI ones.
1606 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1607 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1608 (x86_64_init_extra_frame_info): New prototypes.
1609
c38da1af
DC
16102002-10-23 David Carlton <carlton@math.stanford.edu>
1611
1612 * linespec.c: #include "parser-defs.h".
1613 Delete prototype for find_template_name_end.
1614 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1615
fb9b6b35
JJ
16162002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1617
1618 * NEWS: add recent mi fixes.
1619 * varobj.c (struct varobj): Add new "updated" flag.
1620 (new_variable): Default "updated" flag to 0.
1621 (varobj_set_value): Set "updated" flag to 1 if value
1622 changes.
1623 (varobj_update): Check varobj "updated" flag before
1624 comparing old and refreshed values. Fix for
1625 PR gdb/702.
1626
8da065d5
DC
16272002-10-23 David Carlton <carlton@math.stanford.edu>
1628
1629 * parse.c (parse_exp_1): Use BLOCK_START.
1630 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1631 SYMBOL_BLOCK_VALUE.
1632 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1633
87f2f08c
DC
16342002-10-23 David Carlton <carlton@math.stanford.edu>
1635
1636 * symtab.c: Delete cplusplus_hint.
1637 Delete prototype for find_template_name_end.
1638
88cda038
EZ
16392002-10-23 Elena Zannoni <ezannoni@redhat.com>
1640
1641 * symtab.h: Update comment.
1642
2625d86c
MS
16432002-10-23 Michael Snyder <msnyder@redhat.com>
1644
1645 * printcmd.c (address_info): Restore quotes in output.
1646 * valops.c (value_of_local): Restore quotes in error message.
1647
9cc0d196
EZ
16482002-10-23 Elena Zannoni <ezannoni@redhat.com>
1649
1650 * symtab.c (symbol_demangled_name): New function.
1651 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1652 turning most of it into a function.
1653 (symbol_demangled_name): Export.
1654
19de93d0
MS
16552002-10-23 Michael Snyder <msnyder@redhat.com>
1656
1657 * valops.c (value_of_local): Restore quotes in error message.
1658
89aad1f9
EZ
16592002-10-23 Elena Zannoni <ezannoni@redhat.com>
1660
1661 * symtab.c (symbol_init_language_specific): New function.
1662 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1663 turning most of it into a function.
1664 (symbol_init_language_specific): Export.
1665
d9fa45fe
DC
16662002-10-23 David Carlton <carlton@math.stanford.edu>
1667
1668 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1669 (dwarf_attr_name): Ditto.
1670 (dwarf_type_encoding_name): Ditto.
1671 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1672 (process_die): Handle DW_TAG_namespace,
1673 DW_TAG_imported_declaration, DW_TAG_imported_module.
1674 (read_namespace): New function.
1675
1045b512
JB
16762002-10-22 Joel Brobecker <brobecker@gnat.com>
1677
1678 * configure.in: Define NEW_PROC_API on Interix too.
1679 * configure: Regenerate.
1680
16812002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1682
1683 * configure: Regenerate using the proper version of autoconf.
1684
3987b9d4
EZ
16852002-10-21 Elena Zannoni <ezannoni@redhat.com>
1686
1687 * findvar.c (read_var_value): Temporarily disable TLS code, until
1688 complete TLS support is added.
1689
9d774e44
EZ
16902002-10-21 Jim Blandy <jimb@redhat.com>
1691 Elena Zannoni <ezannoni@redhat.com>
1692
1693 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1694 for thread local storage locations.
1695 (struct symbol): Add objfile field.
1696 (SYMBOL_OBJFILE): Define.
1697 * dwarf2read.c (is_thread_local): New static variable.
1698 (new_symbol): If variable is in thread local fill in address class
1699 and objfile appropriately.
1700 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1701 stack operation.
1702 * printcmd.c (address_info): Print the information for thread
1703 local storage variable.
1704 * findvar.c (read_var_value): In case of thread local variable,
1705 defer to the target vector code to compute address.
1706
bc4a16ae
EZ
17072002-10-21 Elena Zannoni <ezannoni@redhat.com>
1708
1709 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1710 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1711
407caf07
EZ
17122002-10-21 Elena Zannoni <ezannoni@redhat.com>
1713
1714 * symtab.h (address_class): Rename
1715 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1716 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1717 * printcmd.c (address_info): Ditto.
1718 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1719
005328e3
MK
17202002-10-20 Mark Kettenis <kettenis@gnu.org>
1721
afdb036a
MK
1722 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1723 DBREG_DRX macro to acces debug registers.
1724
ca02e098
MK
1725 * Makefile.in (i386obsd-tdep.o): New target.
1726
03cc47f7
MK
1727 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1728 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1729
005328e3
MK
1730 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1731 * config/i386/obsd.mt: New file.
1732 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1733 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1734 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1735 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1736 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1737 * i386obsd-tdep.c: New file.
1738
9c96f9f2
AF
17392002-10-19 Adam Fedor <fedor@gnu.org>
1740
1741 * objc-exp.y (name_not_typename): Fix invalid comment.
1742
ce1ed485
MK
17432002-10-20 Mark Kettenis <kettenis@gnu.org>
1744
1745 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1746 to allocate partial syms and macro byte caches.
1747
1efc7aaa
DC
17482002-10-18 David Carlton <carlton@math.stanford.edu>
1749
1750 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1751
7e1d63ec
AF
17522002-10-18 Adam Fedor <fedor@gnu.org>
1753
1754 * stabsread.c (find_name_end): New function.
1755 (define_symbol): Use it.
1756
6e8d29a9
DJ
17572002-10-18 Daniel Jacobowitz <drow@mvista.com>
1758
1759 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1760 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1761 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1762 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1763
1efc7aaa 17642002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1765
1766 * symfile.h: Add opaque declaration for struct obstack.
1767 Declare obsavestring to take a const char *.
1768 * symfile.c (obsavestring): Make first argument a const char *.
1769
1aeae86e
AF
17702002-10-16 Adam Fedor <fedor@gnu.org>
1771
1772 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1773 names when matching breakpoints in current file.
1774
8b2dbe47
KB
17752002-10-16 Kevin Buettner <kevinb@redhat.com>
1776
1777 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1778 (read_tag_pointer_type): Add address class support.
1779 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1780 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1781 New methods.
1782 * gdbarch.h, gdbarch.c: Regenerate.
1783 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1784 (make_type_with_address_space, recursive_type_dump): Add address
1785 class support.
1786 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1787 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1788 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1789
74451869
KD
17902002-10-16 Klee Dienes <kdienes@apple.com>
1791
1792 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1793 to get the last character of a char[] buffer, not
1794 name[sizeof(vptr_name)-1].
1795
ff4cb3e8
AF
17962002-10-14 Adam Fedor <fedor@gnu.org>
1797
1798 * symtab.h: New objc_specific struct.
1799 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1800 (SYMBOL_DEMANGLED_NAME): Likewise.
1801
da2cf7e0
AF
18022002-10-14 Adam Fedor <fedor@gnu.org>
1803
1804 * symfile.c (init_filename_language_table): Add ObjC file extension.
1805
4a351cef
AF
18062002-10-14 Adam Fedor <fedor@gnu.org>
1807
1808 * utils.c (puts_filtered_tabular): New function.
1809 (fprintf_symbol_filtered): Get ObjC demangled name.
1810 * defs.h (puts_filtered_tabular): Declared.
1811
9750e763
KB
18122002-10-14 Kevin Buettner <kevinb@redhat.com>
1813
1814 * c-lang.h (c_type_print_varspec_prefix): Delete.
1815 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1816 ``need_post_space'' parameter. Adjust all callers.
1817
eee771c1
DJ
18182002-10-14 Daniel Jacobowitz <drow@mvista.com>
1819
1820 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1821 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1822 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1823 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1824
46c82446
AF
18252002-10-13 Adam Fedor <fedor@gnu.org>
1826
1827 * source.c (print_source_lines): Update comments.
1828
d069f99d
AF
18292002-10-13 Adam Fedor <fedor@gnu.org>
1830
1831 * valops.c (value_of_local): New function.
1832 (value_of_this): Use it.
1833 * value.h (value_of_local): Declared.
1834
53c551b7
AF
18352002-10-13 Adam Fedor <fedor@gnu.org>
1836
1837 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1838 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1839
eb392fbf
AF
18402002-10-12 Adam Fedor <fedor@gnu.org>
1841
1842 * language.c (binop_result_type): Add language_objc to case.
1843 (integral_type): Likewise.
1844 (character_type): Likewise.
1845 (string_type): Likewise.
1846 (boolean_type): Likewise.
1847 (structured_type): Likewise.
1848 (binop_type_check): Likewise.
1849
e2b23ee9
AF
18502002-10-11 Adam Fedor <fedor@gnu.org>
1851
1852 * printcmd.c (address_info): Print 'self' for ObjC.
1853
b01ab485
AF
18542002-10-11 Adam Fedor <fedor@gnu.org>
1855
1856 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1857 OP_SELF.
1858
806e6073
AF
18592002-10-11 Adam Fedor <fedor@gnu.org>
1860
1861 * language.h (CAST_IS_CONVERSION): Add language_objc.
1862
50f85cdf
AF
18632002-10-11 Adam Fedor <fedor@gnu.org>
1864
1865 * defs.h (enum language): Add language_objc.
1866
0d540cdf
KD
18672002-10-11 Klee Dienes <kdienes@apple.com>
1868
69266111 1869 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1870 * gdbcore.h (read_memory_typed_address): Add prototype.
1871 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1872 to read a value destined for a CORE_ADDR, not read_memory_integer.
1873 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1874 (f77_get_dynamic_lowerbound): Ditto.
1875
d5dc7960
MH
18762002-10-11 Martin M. Hunt <hunt@redhat.com>
1877
1878 * utils.c (string_to_core_addr): After turning string into
1879 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1880 which will do necessary sign-extension, etc.
1881
8343f86c
DJ
18822002-10-11 Daniel Jacobowitz <drow@mvista.com>
1883
1884 * c-exp.y (THIS): Delete token and grammar rule.
1885 (yylex): Don't return THIS.
1886 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1887 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1888 * demangle.c (cplus_markers): Update comment. Put '$'
1889 first. Remove CPLUS_MARKER.
1890 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1891 * jv-exp.y (THIS): Delete token and grammar rule.
1892 (yylex): Don't return THIS.
1893 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1894 * objc-exp.y (THIS): Delete token and grammar rule.
1895 (yylex): Don't return THIS.
1896 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1897 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1898 (read_member_functions): Likewise for opname.
1899 (read_tilde_fields): Use is_cplus_marker.
1900
1901 * defs.h (CPLUS_MARKER): Don't define.
1902 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1903 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1904 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1905 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1906 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1907
1908 * config/i386/tm-i386v4.h: Delete file.
1909 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1910 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1911 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1912 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1913 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1914 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1915 * config/i386/i386v4.mt (TM_FILE): Likewise.
1916 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1917
967c0d83
MM
19182002-10-10 Marko Mlinar <markom@opencores.org>
1919
1920 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1921 accidentially not commited 2002-10-09
1922 * gdbarch.h, gdbarch.c: Re-generate.
1923
f74fa174
MM
19242002-10-09 Marko Mlinar <markom@opencores.org>
1925
1926 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1927 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1928 * gdbarch.h, gdbarch.c: Re-generate.
1929
57349743
JB
19302002-10-08 Petr Sorfa <petrs@caldera.com>
1931
1932 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1933
1934 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1935 so we can work on more than one compilation unit at a time. This
1936 helps prepare GDB to handle inter-CU die references.
1937 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1938 the code to be defined before struct comp_unit_head.
1939 (comp_unit_head): Added new members - offset, cu_head,
1940 begin_die, next and dwarf2_abbrevs.
1941 (dwarf2_abbrevs): Removed single static var; now member of
1942 struct comp_unit_head.
1943 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1944 members.
1945 (psymtab_to_symtab_1): Changed to work with the new
1946 struct comp_unit_head.
1947 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1948 constructs the dwarf2_abbrevs[] inside the cu_header.
1949 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1950 dwarf2_abbrev table to clean up.
1951 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1952 handling of dwarf2_abbrevs inside the cu_header.
1953 (read_partial_die): Now supports the call to the new
1954 dwarf2_lookup_abbrev.
1955 (read_full_die): Now supports the call to the new
1956 dwarf2_lookup_abbrev.
1957
4092aadb
CF
19582002-10-06 Christopher Faylor <cgf@redhat.com>
1959
1960 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1961 insure that shell variables, such as "transformed_name" are propagated
1962 to later shell statements in rule.
1963
af0b2512
MK
19642002-10-06 Mark Kettenis <kettenis@gnu.org>
1965
1966 * config/i386/nm-i386sco.h: Add protection against
1967 multiple-inclusion. Include "i386/nm-i386v.h".
1968 (REGISTER_U_ADDR): Remove define.
1969 (i386_register_u_addr): Remove prototype.
1970
d6020d45
MS
19712002-10-04 Michael Snyder <msnyder@redhat.com>
1972
1973 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1974 before treating it as a single-step event.
1975
7248f48e
AF
19762002-10-03 Adam Fedor <fedor@gnu.org>
1977
1978 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1979 (objc_demangle): Remove assignment in if statements, Replace
1980 free with xfree.
1981 (add_msglist): Likewise.
1982 (end_msglist): Likewise.
1983 (complare_selectors): Likewise.
1984 (selectors_info): Likewise.
1985 (compare_classes): Likewise.
1986 (classes_info): Likewise.
1987 (print_object_command): Likewise.
1988 (find_objc_msgcall_submethod): Replace PTR with void *.
1989 * objc-lang.h: Remove check for __STDC__.
1990
52c6a6ac
JJ
19912002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1992
1993 * ui-out.h (ui_out_field_fmt_int): New prototype.
1994 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1995 of field width and alignment.
1996 * stack.c (print_frame_info_base): When printing frame level, use
1997 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1998 PR gdb/192
1999
7e3cec17
JJ
20002002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2001
2002 * MAINTAINERS: Add self to Write After Approval list.
2003
a58dd373
EZ
20042002-10-02 Elena Zannoni <ezannoni@redhat.com>
2005
2006 * infcmd.c (interrupt_target_command_wrapper): Delete.
2007 (interrupt_target_command): Make non static.
2008 (nofp_registers_info): Make static.
2009 * stack.c (return_command_wrapper): Delete.
2010 (return_command): Make non static.
2011
cee6ddeb
EZ
20122002-10-02 Elena Zannoni <ezannoni@redhat.com>
2013
2014 * event-top.c (gdb_setup_readline): New function. Code moved from
2015 _initialize_event_loop().
2016 (_initialize_event_loop): Call gdb_setup_readline().
2017
c4ed33b9
AC
20182002-10-02 Andrew Cagney <ac131313@redhat.com>
2019
2020 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2021 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2022 * gdbarch.h, gdbarch.c: Re-generate.
2023
cef4f5dd
DJ
20242002-10-02 Daniel Jacobowitz <drow@mvista.com>
2025
2026 Fix PR gdb/778
2027 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2028 before recursing.
2029 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2030 of fill_in_vptr_fieldno.
2031
36dc181b 20322002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2033
36dc181b
EZ
2034 * inferior.h (registers_info, stepi_command, nexti_command,
2035 continue_command, interrupt_target_command): Export from infcmd.c.
2036 * frame.h (args_info, selected_frame_level_changed_hook,
2037 return_command): Export from stack.c.
2038 * v850ice.c (stepi_command, nexti_command, continue_command): use
2039 prototypes from inferior.h.
2040 * tracepoint.c (registers_info, args_info, locals_info): Use
2041 prototypes from frame.h and inferior.h.
2042 * Makefile.in (mi-main.o): Add dependency on frame.h.
2043
6f99cb26
AC
20442002-10-02 Andrew Cagney <ac131313@redhat.com>
2045
da3eff49
AC
2046 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2047 value in register 3 adjusted by ppc_gp0_regnum.
2048
6f99cb26
AC
2049 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2050
da615bee
MM
20512002-10-02 Marko Mlinar <markom@opencores.org>
2052
2053 * MAINTAINERS: Add myself to the Write After Approval list.
2054
d154bee2
AO
20552002-10-01 Alexandre Oliva <aoliva@redhat.com>
2056
62a49b2c
AO
2057 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2058 of the section for the N64 ABI, fixed.
2059
d154bee2
AO
2060 * config/mips/tm-irix6.h: Include solib.h.
2061
ed348acc
EZ
20622002-10-01 Elena Zannoni <ezannoni@redhat.com>
2063
2064 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2065 GNU operators.
2066
da0f9dcd
AC
20672002-10-01 Andrew Cagney <ac131313@redhat.com>
2068
2069 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2070 and that "mi0" syntax has been removed.
2071
bdf64bac
DC
20722002-09-30 David Carlton <carlton@math.stanford.edu>
2073
2074 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2075 * ppc-sysv-tdep.c: #include "gdb_string.h".
2076 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2077 pacify GCC.
2078
54c2a1e6
AC
20792002-10-01 Andrew Cagney <ac131313@redhat.com>
2080
2081 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2082 "vrsave"'s register number.
2083
cedea778
AC
20842002-09-30 Andrew Cagney <ac131313@redhat.com>
2085
2086 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2087 use frame_unwind_signed_register to obtain the PC.
2088 (mips_frame_chain): Handle a generic dummy frame.
2089 (mips_init_extra_frame_info): When a generic dummy frame, don't
2090 re-compute the frame base.
2091 (mips_pop_frame): Handle generic dummy frames.
2092 (mips_gdbarch_init): When generic dummy frames, set
2093 use_generic_dummy_frames, push_dummy_frame to
2094 generic_push_dummy_frame, pc_in_call_dummy to
2095 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2096 generic_save_dummy_frame_tos.
2097
68315eb8
AC
20982002-09-30 Andrew Cagney <ac131313@redhat.com>
2099
2100 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2101 against TOP when TOP was explictly set.
2102 (generic_push_dummy_frame): Set TOP to zero.
2103
3b8630c3
EZ
21042002-09-30 Elena Zannoni <ezannoni@redhat.com>
2105
2106 * event-loop.c (start_event_loop): Rename variable 'result' to
2107 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2108
28ee05e9
KS
21092002-09-30 Keith Seitz <keiths@redhat.com>
2110
2111 * gdb-events.sh (selected_thread_changed): New event.
2112 * gdb-events.c: Regenerated.
2113 * gdb-events.h: Regenerated.
2114
6eecb1c8
HPN
21152002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2116
2117 * MAINTAINERS: Add self to Write After Approval list.
2118
92df71f0
FN
21192002-09-30 Fernando Nasser <fnasser@redhat.com>
2120
3b8630c3
EZ
2121 * disasm.c: New file.
2122 * disasm.h: New file.
92df71f0
FN
2123 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2124 (compare_lines): Ditto.
2125 (dump_insns): Ditto.
3b8630c3
EZ
2126 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2127 argument.
92df71f0 2128 (do_assembly_only): Ditto.
3b8630c3
EZ
2129 (do_disassembly): Renamed to gdb_disassembly and moved to
2130 disasm.c. Sdded uiout argument.
2131 * Makefile.in: Add new files. Reorder SFILES list. Update
2132 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2133
0c22854d
AC
21342002-09-29 Andrew Cagney <ac131313@redhat.com>
2135
2136 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2137 bfd/elf64-alpha-fbsd.c.
2138
e67f2023
AC
21392002-09-29 Andrew Cagney <ac131313@redhat.com>
2140
2141 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2142 i386gnu-tdep.c.
2143
89396210
AC
21442002-09-29 Andrew Cagney <ac131313@redhat.com>
2145
2146 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2147 __FUNCTION__.
2148 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2149 function name.
2150 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2151 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2152 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2153 (S_msg_sig_post_reply): Ditto.
2154
7079c36c
CV
21552002-09-28 Corinna Vinschen <vinschen@redhat.com>
2156
89396210
AC
2157 * sh-tdep.c (sh_use_struct_convention): Use definition according
2158 to ABI.
7079c36c
CV
2159 (sh_push_arguments): Store in register with correct endianess.
2160 (sh_default_store_return_value): Ditto.
2161 (sh_gdbarch_init): Set sizeof long double to 8.
2162
975ac915
MK
21632002-09-27 Mark Kettenis <kettenis@gnu.org>
2164
2165 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2166 Fix some whitespace problems.
2167
9bbe19fb
DC
21682002-09-27 David Carlton <carlton@math.stanford.edu>
2169
2170 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2171 (mcore-tdep.o): Ditto.
2172 (ns32k-tdep.o): Ditto.
2173 (ns32knbsd-tdep.o): Ditto.
2174 (sh3-rom.o): Ditto.
2175 (vax-tdep.o): Ditto.
2176 * cris-tdep.c: #include "gdb_string.h"
2177 * mcore-tdep.c: Ditto.
2178 * ns32k-tdep.c: Ditto.
2179 * ns32knbsd-tdep.c: Ditto.
2180 * sh3-rom.c: Ditto.
2181 * vax-tdep.c: Ditto.
2182
43b2fdc7
DC
21832002-09-27 David Carlton <carlton@math.stanford.edu>
2184
2185 * config/djgpp/fnchange.lst: Add entries for
2186 gdb/testsuite/gdb.c++/m-static files.
2187
e8cfbbd9
JW
21882002-09-27 Jim Wilson <wilson@redhat.com>
2189
2190 * MAINTAINERS: Add myself to the Write After Approval list.
2191
43b2fdc7 21922002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2193
2194 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2195
2196
9f3b7f07
AC
21972002-09-26 Andrew Cagney <ac131313@redhat.com>
2198
2199 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2200 frame.
2201
11269d7e
AC
22022002-09-26 Andrew Cagney <ac131313@redhat.com>
2203
2204 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2205 (rs6000_struct_return_address): Delete variable.
2206 (rs6000_store_struct_return): Update.
2207 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2208 deprecated_extract_struct_value_address.
2209 (rs6000_frame_align): New function.
2210 (rs6000_gdbarch_init): Set frame_align.
2211
f15ab4a7
AC
22122002-09-26 Andrew Cagney <ac131313@redhat.com>
2213
2214 From Grace Sainsbury <graces@redhat.com>:
2215 * Makefile.in (gdbtk-main.o): New target.
2216 (gdb.o): New target.
2217 (main_h): Define.
2218 (main.o): Update dependencies.
2219 (gdb$(EXEEXT)): Add gdb.o.
2220 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2221 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2222 (SUBDIR_GDBTK_CLEAN): Set.
2223 (install-gdbtk): Install the insight binary.
2224 (uninstall-gdbtk): New target.
2225 (all-gdbtk, clean-gdbtk): New rule.
2226 * top.c (use_windows): Default to zero.
2227 * main.c: Include "main.h".
2228 (main): Delete.
2229 (struct captured_main_args): Delete.
2230 (gdb_main): New function.
2231 * main.h: New file.
2232 * gdb.c: New File.
2233
e36180d7
AC
22342002-09-25 Andrew Cagney <cagney@redhat.com>
2235
2236 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2237 (frame_map_regnum_to_name): New function.
2238 (frame_map_name_to_regnum): New function.
2239 * frame.h (frame_map_name_to_regnum): Declare.
2240 (frame_map_regnum_to_name): Declare.
2241 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2242 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2243 * parse.c: Do not include "builtin-regs.h".
2244 (target_map_name_to_register): Delete function.
2245 (write_dollar_variable): Use frame_map_name_to_regnum.
2246 * parser-defs.h (target_map_name_to_register): Delete declaration.
2247 * expprint.c: Include "frame.h".
2248 (print_subexp): Use frame_map_regnum_to_name.
2249 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2250 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2251
8b69000d
AC
22522002-09-25 Andrew Cagney <ac131313@redhat.com>
2253
2254 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2255 wasn't saved, and the next innermost frame is a dummy, return the
2256 dummy frame's link register.
2257
046ca86a
JB
22582002-09-24 Jim Blandy <jimb@redhat.com>
2259
2260 Fix from Paul Breed:
2261 * main.c (captured_main): Add a `break' after the case for 'b'.
2262
94b66fa7
KS
22632002-09-24 Keith Seitz <keiths@redhat.com>
2264
2265 * varobj.c (c_type_of_child): Use get_target_type instead
2266 of TYPE_TARGET_TYPE.
2267
c214a6fd
FN
22682002-09-22 Fernando Nasser <fnasser@redhat.com>
2269
53cb0458
FN
2270 * source.c (get_current_or_default_source_symtab_and_line): Remove
2271 function.
2272 (set_default_source_symtab_and_line): New function. Attempts to
2273 determine a source file to list lines from if one is not currently
2274 defined.
2275 (get_current_source_symtab_and_line): Initialize sal.pc and
2276 sal.end fields.
2277 (set_current_source_symtab_and_line): Mark argument as const.
2278 * source.h: Update declarations and comments.
2279 * linespec.c (decode_line_1): Replace call to removed routine above.
2280 * stack.c (print_frame_info_base): Ditto.
2281 * cli/cli-cmds.c (edit_command): Ditto.
2282 (list_command): Ditto.
2283
22842002-09-22 Fernando Nasser <fnasser@redhat.com>
2285
d6020d45 2286 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2287 sal.pc and sal.end fields.
c214a6fd
FN
2288 (get_current_or_default_source_symtab_and_line): Ditto.
2289 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2290 so we do not cause a new source symtab to be searched for (reverting an
2291 unintentional change from the 2002-09-20 patch).
2292 * scm-lang.c (scm_unpac): Ditto.
2293
cc3b68a5
AC
22942002-09-21 Andrew Cagney <cagney@redhat.com>
2295
2296 * complaints.c (symfile_explanations): Remove new-line from
2297 ``isolated_message''.
2298 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2299 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2300
5835abe7
NC
23012002-09-20 Nick Clifton <nickc@redhat.com>
2302
2303 * NEWS: Announce that V850EA ISA is no longer supported.
2304 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2305
a15ef5f5
DC
23062002-09-20 David Carlton <carlton@math.stanford.edu>
2307
06ba1b39
DC
2308 * Makefile.in (c-lang.o): Correct dependencies.
2309 (utils.o): Gather dependencies.
2310 (charset.o): Move.
a15ef5f5
DC
2311 * c-lang.c: #include "gdb_string.h"
2312
87885426
FN
23132002-09-20 Fernando Nasser <fnasser@redhat.com>
2314
2315 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2316 * cli/cli-cmds.c (list_command): New function. Implements the new
2317 cli edit command.
2318 (_init_cli_cmds): Add new command definition.
2319 * gdb.1: Document edit command.
2320 * doc/gdb.texinfo: Document edit command.
2321
23222002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2323
2324 * source.c: Make global variables current_source_symtab and
2325 current_source_line static.
2326 (list_command): Moved to cli/cli-cmds.c.
2327 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2328 (get_first_line_listed): New accessor function.
2329 (get_lines_to_list): New accessor function.
2330 (get_current_source_symtab_and_line): New function. Retrieves the
2331 position in the source code that we consider current.
2332 (get_current_or_default_source_symtab_and_line): New function.
2333 Like the above but attempts to determine a default position if one
2334 is not currently defined.
2335 (set_current_source_symtab_and_line): New function. Sets the source
2336 code position considered current and returns the previously set one.
2337 (clear_current_source_symtab_and_line): Reset stored information about
2338 a current source line.
2339 (_initialize_source): Remove registration for the "list" command and
2340 its alias.
2341 * source.h: Add declarations for the new functions above.
2342 * symtab.h: Remove declarations for the global variables mentioned
2343 above.
2344 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2345 obtain current source line.
2346 * linespec.c (decode_line_1): Ditto.
2347 * macroscope.c (default_macro_scope): Ditto.
2348 * scm-lang.c (scm_unpac): Ditto.
2349 * stack.c (print_frame_info_base): Ditto.
2350 * symfile.c (clear_symtab_users): Ditto.
2351 * symtab.c (decode_line_spec): Ditto.
2352 * cli/cli-cmds.c (list_command): Moved here from source.c.
2353 (ambiguous_line_spec): Moved here from source.c.
2354 (_init_cli_cmds): Add definition for "list" and its alias.
2355 * Makefile.in: Update dependencies.
2356
ddd216ea
CV
23572002-09-20 Corinna Vinschen <vinschen@redhat.com>
2358
2359 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2360 with what gcc thinks is correct.
2361
6d305052
CV
23622002-09-20 Corinna Vinschen <vinschen@redhat.com>
2363
2364 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2365 multiple register push instruction.
2366
234b45d4
KB
23672002-09-19 Jim Blandy <jimb@redhat.com>
2368
2369 Add support for distinct host and target character sets.
2370 * charset.c, charset.h: New files.
2371 * c-exp.y: #include "charset.h".
2372 (yylex): Convert character and string literals to the target
2373 character set, before returning them as the semantic value of the
2374 token.
2375 * c-lang.c: #include "charset.h".
2376 (c_emit_char): Use charset-specific methods to recognize
2377 characters with backslash escape forms, to decide which characters
2378 to print literally and which to print using numeric escape
2379 sequences, and to convert target characters to host characters
2380 before printing.
2381 * utils.c: #include "charset.h".
2382 (no_control_char_error): New function.
2383 (parse_escape): Use charset-specific methods to recognize
2384 backslash escapes, parse `control character' notation, and convert
2385 characters from the host character set to the target character set.
2386 * configure.in: Set the default host character set.
2387 Check where to find iconv, and what its argument types might be.
2388 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2389 * Makefile.in (SFILES): List charset.c.
2390 (COMMON_OBS): List charset.o.
2391 (charset.o): New rule.
2392 (charset_h): New header dependency variable.
2393 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2394 (LIBICONV): New variable, set by configure.
2395 (CLIBS): Include $(LIBICONV) here.
2396 * aclocal.m4, config.in, configure: Regenerated.
2397
525d6a61
JB
23982002-09-19 Joel Brobecker <brobecker@gnat.com>
2399
2400 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2401 bison 1.35 warning.
2402
3ed93867
RE
24032002-09-19 Richard Earnshaw <rearnsha@arm.com>
2404
2405 * gdb_mbuild.sh: New file.
2406
437666f8
AC
24072002-09-19 Andrew Cagney <ac131313@redhat.com>
2408
2409 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2410
389e51db
AC
24112002-09-18 Andrew Cagney <ac131313@redhat.com>
2412
2413 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2414 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2415 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2416 valops.c, value.h: Revert previous change.
2417
3b4efeaa
MS
24182002-09-18 Michael Snyder <msnyder@redhat.com>
2419
2420 Preliminary support for Objective-C:
2421 * defs.h (language_objc): New enum value.
2422 (puts_filtered_tabular): Declaration only, exported from utils.c.
2423 (skip_quoted): Delete, declared in completer.h.
2424 * c-exp.y: Include completer.h.
2425 * p-exp.y: Ditto.
2426 * jv-exp.y: Ditto.
2427 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2428 New operator enum values.
2429 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2430 * language.c (binop_result_type): Handle language_objc case.
2431 (integral_type, character_type, string_type, boolean_type,
2432 structured_type, binop_type_check): Ditto.
2433 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2434 (struct objc_specific): Add to general_symbol_info.
2435 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2436 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2437 * parser-defs.h (struct objc_class_str): New struct type.
2438 (start_msglist, end_msglist, add_msglist): Declaration only,
2439 exported from objc-lang.c.
2440 * value.h (value_of_local, value_nsstring,
2441 call_function_by_hand_expecting_type): Exported from valops.c.
2442 * valops.c (find_function_addr): Export.
2443 (call_function_by_hand_expecting_type): New function.
2444 (value_of_local): New function.
2445 * symfile.c (init_filename_language_table): Add ".m" extension
2446 for Objective-C.
2447 * utils.c (puts_filtered_tabular): New function.
2448 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2449 (set/show demangle): Extend help-string to refer to ObjC.
2450 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2451 * stabsread.c (symbol_reference_defined): Objective-C symbols
2452 may contain colons: make allowances when scanning stabs strings
2453 for colons.
2454 (objc_find_colon): New function.
2455 * printcmd.c (address_info): If language == objc then print
2456 "self" instead of "this".
2457 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2458 OP_NSSTRING, and OP_SELF.
2459 (prefixify_subexp): Ditto.
2460 * source.c (print_source_lines): Mention objc in comment.
2461 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2462 method names.
2463
b9caf505
AC
24642002-09-18 Andrew Cagney <ac131313@redhat.com>
2465
2466 * complaints.h: Update copyright.
2467 (struct complaints): Declare.
2468 (struct complaint): Make `message' constant.
2469 (internal_complaint): Declare.
2470 (complaint): Declare.
2471 (complaint_root): Delete declaration.
2472 (symfile_complaints): Delete declaration.
2473 (struct complaints): Add opaque declaration.
2474 (clear_complaints): Add a complaints parameter.
2475 * complaints.c: Update copyright.
2476 (enum complaint_series): Define.
2477 (complaint_root): Delete.
2478 (struct complaints): Define.
2479 (complaint_sentinel, symfile_complaint_book): New variables.
2480 (symfile_explanations, symfile_complaints): New variables.
2481 New variables.
2482 (get_complaints): New function.
2483 (vcomplaint): New function.
2484 (complaint): New function.
2485 (internal_complaint): New function.
2486 (complain): Call vcomplain with symfile_complaint.
2487 (clear_complaints): Rewrite.
2488 (_initialize_complaints): Use add_setshow_command.
2489 * Makefile.in (complaints.o): Update dependencies.
2490 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2491 to call to clear_complaints.
2492 (new_symfile_objfile, reread_symbols): Ditto.
2493 (oldsyms_complaint): Delete.
2494 (empty_symtab_complaint, unknown_option_complaint): Delete.
2495 (free_named_symtabs): Use complaint instead of complain.
2496
d2e6263c
MS
24972002-09-18 Michael Snyder <msnyder@redhat.com>
2498
5fb2031a
AC
2499 Contributed by Apple Computer, Inc. Merged with current sources
2500 by Adam Fedor <fedor@doc.com> [cagney].
2501
d2e6263c
MS
2502 * objc-lang.c: First clean-up round: comments, indentation.
2503 * objc-lang.h: Ditto.
2504 * objc-lang.y: Ditto.
2505
dec43320
AC
25062002-09-18 Andrew Cagney <ac131313@redhat.com>
2507
2508 * maint.c (maintenance_internal_error): Print the parameter as the
2509 error message.
2510 (maintenance_internal_warning): New function.
2511 (_initialize_maint_cmds): Add command `maint internal-warning'.
2512
2513 * defs.h (internal_warning, internal_vwarning): Declare.
2514 * utils.c (struct internal_problem): Define.
2515 (internal_vproblem): New function.
2516 (internal_warning): New function.
2517 (internal_vwarning): New function.
2518 (internal_warning_problem, internal_error_problem): New variables.
2519 (internal_verror): Just call internal_vproblem.
2520
b81654f1
MS
25212002-09-18 Michael Snyder <msnyder@redhat.com>
2522
2523 * objc-lang.c: New file, support for Objective-C.
2524 Preliminary check-in, not yet integrated into gdb.
2525 * objc-lang.h: New file.
2526 * objc-exp.y: New file.
2527
0542c381
AC
25282002-09-18 Andrew Cagney <ac131313@redhat.com>
2529
7bda5e4a
AC
2530 * infrun.c (signal_stop_update): Convert definition to ISO C.
2531 (signal_print_update): Ditto.
2532 (signal_pass_update): Ditto.
2533 * inflow.c (terminal_save_ours): Ditto.
2534
5247b418
AC
2535 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2536 comments.
2537
fc60962c
AC
2538 * config/djgpp/fnchange.lst: Handle name clashes between
2539 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2540 bfd/coff-tic80.c.
2541
0542c381
AC
2542 * i386-linux-tdep.h: Fix tipo.
2543
5b924b9b
AF
25442002-09-18 Adam Fedor <fedor@gnu.org>
2545
2546 * MAINTAINERS: Add myself to the Write After Approval list.
2547
5afc051b
JB
25482002-09-18 Jim Blandy <jimb@redhat.com>
2549
2550 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2551 texthigh and textlow to reader-specific structs caused
2552 objfile_relocate to miss them. This is fixable, but the work that
2553 the change was supposed to prepare GDB for never got done anyway.
2554
eb944380
DC
25552002-09-18 David Carlton <carlton@math.stanford.edu>
2556
2557 * MAINTAINERS: Alphabetize Write After Approval list.
2558
948e66d9
DJ
25592002-09-18 Daniel Jacobowitz <drow@mvista.com>
2560
2561 Fix PR gdb/709
2562 * values.c (value_static_field): Call read_var_value.
2563
dc604539
AC
25642002-09-18 Andrew Cagney <ac131313@redhat.com>
2565
2566 * valops.c (hand_function_call): Align the initial stack pointer
2567 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2568 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2569 return value.
2570 * mips-tdep.c (mips_frame_align): New function.
2571 (mips_gdbarch_init): Set frame_align.
2572 * gdbarch.sh (FRAME_ALIGN): New method.
2573 * gdbarch.h, gdbarch.c: Re-generate.
2574
cb7e422f
ML
25752002-09-18 Michal Ludvig <mludvig@suse.cz>
2576
2577 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2578 registers.
2579
a094c6fb
AC
25802002-09-17 Andrew Cagney <ac131313@redhat.com>
2581
2582 * NEWS: Mention that MIPS $fp behavior changed.
2583 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2584 reference to FP_REGNUM.
2585 (mipsnbsd_cannot_store_register): Ditto.
2586 * mips-linux-nat.c: Update copyright.
2587 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2588 (mips_linux_cannot_store_register): Ditto.
2589 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2590 * config/mips/tm-mips.h: Update copyright.
2591 (FP_REGNUM): Delete macro.
2592 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2593 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2594 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2595 (mips_r3041_reg_names, mips_r3051_reg_names)
2596 (mips_r3081_reg_names): Replace "fp" with "".
2597 Fix PR gdb/480.
2598
45cf40d1
TR
25992002-09-17 Theodore A. Roth <troth@verinet.com>
2600
2601 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2602 generic_read_register_dummy() (PR gdb/703).
2603 (avr_push_return_address): #if 0 out unused vars.
2604 (avr_gdbarch_init): Enable use of avr_push_return_address().
2605
c7e701b5
MS
26062002-09-17 Michael Snyder <msnyder@redhat.com>
2607
d76ba2a5 2608 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2609 RTE will take care of it.
2610
20bcf01c
AC
26112002-09-17 Andrew Cagney <ac131313@redhat.com>
2612
2613 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2614 invalid, return SP_REGNUM.
2615
009a9971 26162002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2617
2618 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2619 point registers without sign extension.
2620
135c175f
AC
26212002-09-17 Andrew Cagney <cagney@redhat.com>
2622
2623 * blockframe.c (deprecated_read_register_dummy): Rename
2624 generic_read_register_dummy.
2625 * frame.c (frame_unwind_signed_register): New function.
2626 (frame_unwind_unsigned_register): New function.
2627 * frame.h (frame_unwind_signed_register): Declare.
2628 (frame_unwind_unsigned_register): Declare.
2629 (deprecated_read_register_dummy): Rename
2630 generic_read_register_dummy.
2631
2632 * h8300-tdep.c (h8300_frame_chain): Update.
2633 (h8300_frame_saved_pc): Update.
2634 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2635 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2636 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2637 (s390_frame_chain): Update.
2638 * v850-tdep.c (v850_find_callers_reg): Update.
2639 (v850_frame_saved_pc): Update.
2640 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2641 (m32r_find_callers_reg): Update.
2642 (m32r_frame_saved_pc): Update.
2643 * sh-tdep.c (sh_find_callers_reg): Update.
2644 (sh64_get_saved_pr): Update.
2645 (sh_init_extra_frame_info): Update.
2646 (sh_init_extra_frame_info): Update.
2647 (sh64_init_extra_frame_info): Update.
2648 (sh64_init_extra_frame_info): Update.
2649 * mcore-tdep.c (mcore_find_callers_reg): Update.
2650 (mcore_frame_saved_pc): Update.
2651 (mcore_init_extra_frame_info): Update.
2652 * i386-tdep.c (i386_frame_saved_pc): Update.
2653 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2654 (ia64_init_extra_frame_info): Update.
2655 (ia64_init_extra_frame_info): Update.
2656 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2657 * cris-tdep.c (cris_init_extra_frame_info): Update.
2658 * avr-tdep.c (avr_frame_chain): Update.
2659 (avr_init_extra_frame_info): Update.
2660 (avr_frame_saved_pc): Update.
2661 * arm-tdep.c (arm_find_callers_reg): Update.
2662 (arm_init_extra_frame_info): Update.
2663 (arm_frame_saved_pc): Update.
2664
a741e514
TT
26652002-09-17 Tom Tromey <tromey@redhat.com>
2666
2667 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2668 is "'".
2669
d1a8e808
CV
26702002-09-17 Corinna Vinschen <vinschen@redhat.com>
2671
2672 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2673 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2674 NEXT_PROLOGUE_INSN.
2675 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2676 NEXT_PROLOGUE_INSN.
2677
d9025a18
JB
26782002-09-16 Joel Brobecker <brobecker@gnat.com>
2679
2680 * osfsolib.c: Remove file, replaced by solib-osf.c.
2681 * Makefile.in: Remove compilation rules for osfsolib.c.
2682
1b2ef1b6
DC
26832002-09-16 David Carlton <carlton@math.stanford.edu>
2684
2685 * cp-valprint.c (cp_print_class_method): Correct args to
2686 check_stub_method_group.
2687
928e48af
CV
26882002-09-16 Corinna Vinschen <vinschen@redhat.com>
2689
2690 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2691 `set architecture'. Unify naming convention of functions.
2692 (h8300_skip_prologue): Improve prologue analysis.
2693 (h8300_push_arguments): Rewritten to more closely match GCC's
2694 bizarre argument-passing behavior, along with the comment describing
2695 said behavior.
2696 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2697 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2698 sim, remote-e7000.c, remote-hms.c and remote.c
2699
5e3397bb
MK
27002002-09-15 Mark Kettenis <kettenis@gnu.org>
2701
2702 * i386-tdep.c (gdb_print_insn_i386): Removed.
2703 (i386_print_insn): New function.
2704 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2705 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2706 tm_print_insn_info.
2707
f710f4fc
MK
27082002-09-14 Mark Kettenis <kettenis@gnu.org>
2709
2710 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2711 zero.
2712
db54fef4
CV
27132002-09-14 Corinna Vinschen <vinschen@redhat.com>
2714
2715 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2716 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2717 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2718
2becadee
CF
27192002-09-13 Christopher Faylor <cgf@redhat.com>
2720
2721 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2722
de17c821
DJ
27232002-09-13 Daniel Jacobowitz <drow@mvista.com>
2724
2725 * gdbtypes.c (check_stub_method): Make static.
2726 (check_stub_method_group): New function.
2727 * gdbtypes.h: Update prototypes.
2728 * cp-support.c: New file.
2729 * cp-support.h: New file.
2730
2731 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2732 (update_method_name_from_physname): New function.
2733 (read_member_functions): Correct method names for operators
2734 and v3 constructors/destructors. Separate v2 constructors and
2735 destructors.
2736 * Makefile.in (stabsread.o): Update dependencies.
2737 (SFILES): Add cp-support.c.
2738 (COMMON_OBS): Add cp-support.o.
2739 (cp_support_h, cp-support.o): Add.
2740
2741 * cp-valprint.c (cp_print_class_method): Call
2742 check_stub_method_group instead of check_stub_method. Remove
2743 extraneous QUITs.
2744 * p-valprint.c (pascal_object_print_class_method): Likewise.
2745 * valops.c (search_struct_method): Likewise.
2746 (find_method_list, value_struct_elt_for_reference): Likewise.
2747
e76cff22
AC
27482002-09-13 Andrew Cagney <cagney@redhat.com>
2749
2750 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2751 * gdbarch.h, gdbarch.c: Regenerate.
2752
905abb3f
AC
27532002-09-13 Andrew Cagney <ac131313@redhat.com>
2754
2755 * frame.c (find_saved_register): Delete function.
2756 * frame.h (find_saved_register): Delete declaration.
2757 Fix PR gdb/631.
2758
64159455
AC
2759Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2760
2761 * mips-tdep.c (read_next_frame_reg): Re-hack using
2762 frame_register_unwind.
2763
795e1e11
AC
2764Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2765
2766 * mips-tdep.c (mips_get_saved_register): Re-hack using
2767 frame_register_unwind.
2768
5720643c
JB
27692002-09-12 Joel Brobecker <brobecker@gnat.com>
2770
2771 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2772 vector. Will be useful for Interix.
2773 * gdbarch.h, gdbarch.c: Regenerate.
2774
2775 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2776 name of the malloc function by NAME_OF_MALLOC.
2777
3bada2a2
JB
27782002-09-12 Joel Brobecker <brobecker@gnat.com>
2779
2780 * value.h (find_function_in_inferior): Add const keyword to
2781 one of the parameters. Allows us to invoke this function with
2782 a const char *.
2783 * valops.c (find_function_in_inferior): Likewise.
2784
3db26b01
JB
27852002-09-12 Joel Brobecker <brobecker@gnat.com>
2786
2787 * exec.c (xfer_memory): Fix compilation warning with old versions
2788 of GCC.
2789 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2790
17c5ed2c
DC
27912002-09-12 David Carlton <carlton@math.stanford.edu>
2792
2793 * symtab.h: Run through gdb_indent.h.
2794 Add 2002 to Copyright year list.
2795
ecd1107e
AM
27962002-09-12 Alan Modra <amodra@bigpond.net.au>
2797
2798 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2799 mach constants.
2800 * MAINTAINERS: Add myself to write after approval list.
2801
e64f66d1
JB
28022002-09-11 J. Brobecker <brobecker@gnat.com>
2803
2804 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2805
f9395794
JB
28062002-09-11 J. Brobecker <brobecker@gnat.com>
2807
2808 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2809 Interix.
2810
1a303dec
MS
28112002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2812
2813 * procfs.c (do_detach): Clear current signal, not just fault.
2814 Corrects problem with breakpoint trap signal leaking to detached
2815 process on Tru64.
2816
c0219d42
MS
28172002-09-10 Michael Snyder <msnyder@redhat.com>
2818
2819 * buildsym.c (finish_block): Protect against null pointer.
2820
9d84ac84
AC
28212002-09-10 Andrew Cagney <cagney@redhat.com>
2822
2823 * infcmd.c (default_print_registers_info): Send all output to
2824 ``file'' instead of ``gdb_stdout''.
2825
77d8f2b4
MS
28262002-09-10 Michael Snyder <msnyder@redhat.com>
2827
2828 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2829 LONGEST, and use signed register read (addresses are sign-
2830 extended for mips).
2831
99656a61
SC
28322002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2833
2834 * event-loop.c (gdb_do_one_event): Make public.
2835 * event-loop.h (gdb_do_one_event): Declare.
2836
da12f4d8
JL
28372002-09-10 Jeff Law <law@redhat.com>
2838
2839 * infttrace.c (child_resume): Simplify and rework to avoid
2840 TT_PROC_CONTINUE.
2841
d0aee0c4
FF
28422002-09-09 Fred Fish <fnf@intrinsity.com>
2843
2844 * printcmd.c (print_scalar_formatted): "len" is the number of
2845 target bytes, NOT the number of target bits.
2846
7cb3ec5e
EZ
28472002-09-09 Elena Zannoni <ezannoni@redhat.com>
2848
2849 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2850 * top.c (init_main): Set rl_terminal_name.
2851
4dc81987
AS
28522002-09-08 Aidan Skinner <aidan@velvet.net>
2853
2854 * ada-lang.c (ada_array_bound, ada_type_match,
2855 _initialize_ada_language): Fix K&R definitions.
2856 * ada-tasks.c (get_current_task): Fix K&R definitions.
2857 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2858
842330b4
CF
28592002-09-07 Christopher Faylor <cgf@redhat.com>
2860
2861 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2862 Add XP.
2863
43156d82
MK
28642002-09-06 Mark Kettenis <kettenis@gnu.org>
2865
66da5fd8
MK
2866 * i386-tdep.c (i386_register_virtual_type,
2867 i386_register_convertible, i386_register_convert_to_virtual,
2868 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2869 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2870 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2871 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2872 Don't set push_arguments twice.
2873
4b218c18
MK
2874 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2875 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2876 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2877 sigtramp_end to NULL.
2878 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2879 defines.
2880 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2881
4cc314d5
MK
2882 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2883 whitespace.
2884
43156d82
MK
2885 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2886 * gdbarch.h, gdbarch.c: Re-generate.
2887 * blockframe.c (find_pc_sect_partial_function): Convert to use
2888 SIGTRAMP_START_P predicate.
2889
6672060b
MS
28902002-09-05 Michael Snyder <msnyder@redhat.com>
2891
a90c3637
MS
2892 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2893 generic_dummy_frame method and old method. Also distinguish
2894 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2895 (arm_extract_return_value): Use new regcache method.
a90c3637 2896
6672060b
MS
2897 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2898 adjustment that doesn't conform to the ABI.
2899 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2900 saved regcache, not from current regcache.
2901
299ffc64
AC
29022002-09-05 Andrew Cagney <ac131313@redhat.com>
2903
2904 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2905 * README: Update.
2906
a3a2ee65
JT
29072002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2908
2909 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2910 if arm_apcs_32 is false.
2911
2bc7eea9
AC
29122002-09-04 Andrew Cagney <ac131313@redhat.com>
2913
2914 GDB 5.3 branch created.
2915
8a55a7c5
TR
29162002-09-03 Theodore A. Roth <troth@verinet.com>
2917
2918 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2919 generic_unwind_get_saved_register.
2920
e26fb1d7
DC
29212002-09-03 David Carlton <carlton@math.stanford.edu>
2922
2923 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2924 argument (PR gdb/653). Update call to smash_to_method_type.
2925 (read_structure_scope): Update call to dwarf2_add_member_fn.
2926
30d52491
ML
29272002-09-03 Michal Ludvig <mludvig@suse.cz>
2928
2929 * x86-64-linux-tdep.c: Include gdb_string.h
2930 * x86-64-linux-nat.c: Ditto.
2931
06891d83
JT
29322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2933
2934 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2935 when YYDEBUG is set to 1.
2936 * c-exp.y: Likewise.
2937 * f-exp.y: Likewise.
2938 * jv-exp.y: Likewise.
2939 * m2-exp.y: Likewise.
2940 * p-exp.y: Likewise.
2941
7d400e77
JT
29422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2943
2944 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2945 dependency list.
2946 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2947 solib_svr4_fetch_link_map_offsets to
2948 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2949 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2950 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2951 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2952 solib-svr4.o, and solib-legacy.o.
2953 * config/i386/tm-nbsd.h: Include solib.h.
2954
704a27c4
JT
29552002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2956
2957 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2958 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2959 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2960 comment noting that this needs its own target configuration.
2961 * config/i386/nbsd.mt: New file.
2962 * config/i386/nbsdaout.mt: Remove.
2963 * config/i386/nbsdelf.mt: Ditto.
2964 * config/i386/tm-nbsdaout.h: Ditto.
2965
d66198e1
JT
29662002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2967
2968 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2969 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2970 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2971 tdep->sigtramp_end.
2972 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2973 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2974 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2975
3cac699e
JT
29762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2977
2978 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2979 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2980 * i386-tdep.h (i386bsd_init_abi): New prototype.
2981 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2982 function declaration.
2983 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2984 for NetBSD-a.out or NetBSD-ELF.
2985 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2986 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2987 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2988 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2989 and nbsd-tdep.h.
2990 (i386nbsd_pc_in_sigtramp): New function.
2991 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2992 i386nbsd_pc_in_sigtramp.
2993 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2994 and i386nbsdelf_init_abi OS ABI handlers.
2995 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2996 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2997
7010ca0a
MK
29982002-09-02 Mark Kettenis <kettenis@gnu.org>
2999
3000 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3001 registers if the target really has them.
3002
6dd93b72
JT
30032002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3004
3005 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3006 than nbsd-tdep.h.
3007
2ca8ae21
JT
30082002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3009
3010 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3011 list.
3012 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3013 (alphanbsd_skip_sigtramp_frame): New functions.
3014 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3015 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3016 to alphanbsd_sigcontext_addr.
3017
3d9b49b0
JT
30182002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3019
3020 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3021 list.
3022 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3023 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3024 nbsd_pc_in_sigtramp.
3025 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3026 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3027 * nbsd-tdep.c: Include gdb_string.h.
3028 (nbsd_pc_in_sigtramp): New function.
3029 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3030 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3031 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3032 ppcnbsd_pc_in_sigtramp.
3033 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3034 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3035 shnbsd_pc_in_sigtramp.
3036 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3037 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3038 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3039
c860120c
PM
30402002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3041
3042 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3043 watchpoints to NULL.
3044 (insert_breakpoints): set val field of watchpoints if NULL.
3045
3046
c7612d53
JB
30472002-08-29 Jim Blandy <jimb@redhat.com>
3048
3049 * symtab.c (lookup_symbol_aux): In the cases where we find a
3050 minimal symbol of an appropriate name and use its address to
3051 select a symtab to read and search, use `name' (as passed to us)
3052 as the demangled name when searching the symtab's global and
3053 static blocks, not the minsym's name.
3054
66609862
KS
30552002-08-29 Keith Seitz <keiths@redhat.com>
3056
3057 * stack.c (print_frame_info_base): Always set current_source_symtab
3058 and current_source_line.
3059
151fefe2
JB
30602002-08-29 Donn Terry <donnte@microsoft.com>
3061
3062 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3063
bfb3754e
KS
30642002-08-28 Keith Seitz <keiths@redhat.com>
3065
3066 * stack.c (select_frame): Add FIXME concerning selected-frame
3067 events.
3068 (select_frame_command): Send selected-frame-level-changed
3069 event notification, but only if the level actually changed.
3070 (up_silently_base): Add selected-frame-level-changed event
3071 notification.
3072 (down_silently_base): Likewise.
3073
e822a2a0
AC
30742002-08-28 Andrew Cagney <ac131313@redhat.com>
3075
3076 * Makefile.in: Update dependencies for all gdb/*.c files.
3077
309367d4
TT
30782002-08-27 Tom Tromey <tromey@redhat.com>
3079
3080 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3081 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3082 Update dependencies.
3083 * i387-tdep.c: Include gdb_string.h.
3084 * osabi.c: Likewise.
3085 * i386-linux-nat.c: Likewise.
3086 * lin-lwp.c: Likewise.
3087 * ax-gdb.c: Likewise.
3088 * signals/signals.c: Likewise.
3089 * jv-valprint.c: Likewise.
3090 * p-lang.c: Likewise.
3091 * c-valprint.c: Likewise.
3092 * cp-abi.c: Likewise.
3093
e1507482
EZ
30942002-08-27 Elena Zannoni <ezannoni@redhat.com>
3095
3096 * cli/cli-script.h (copy_command_lines): Export.
3097 * breakpoint.c: Include cli/cli-script.h.
3098 * Makefile.in (breakpoint.o): Update dependencies.
3099
c6510018
MS
31002002-08-26 Michael Snyder <msnyder@redhat.com>
3101
3102 * breakpoint.c (insert_breakpoints): Protect all references
3103 to 'process_warning'. Shorten long lines.
3104
c2b8ed2c
MS
31052002-08-26 Joel Brobecker <brobecker@gnat.com>
3106
3107 * cli/cli-script.c (copy_command_lines): New function.
3108 * defs.h (copy_command_lines): Export.
3109 * testsuite/gdb.base/commands.exp: New tests for commands
3110 attached to a temporary breakpoint, and for commands that
3111 delete the breakpoint they are attached to.
3112
31132002-08-26 Michael Snyder <msnyder@redhat.com>
3114
3115 * breakpoint.c (bpstat_stop_status): Instead of copying the
3116 pointer to the breakpoint commands struct, make a new copy
3117 of the struct and point to that.
3118 (bpstat_clear): Free the commands struct.
3119 (bpstat_clear_actions): Free the commands struct.
3120 (bpstat_do_actions): Free the command actions. Also execute
3121 the local cleanups, instead of deleting them.
3122 (delete_breakpoint): Leave the commands field of the bpstat
3123 chain alone -- it will be freed later.
3124
64b84175
KB
31252002-08-26 Kevin Buettner <kevinb@redhat.com>
3126
3127 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3128 deleted in 2002-08-20 commit. This function is still used by
3129 ppc-linux-nat.c.
3130
55970da6
KS
31312002-08-26 Keith Seitz <keiths@redhat.com>
3132
3133 * gdb-events.sh: Add selected-frame-level-changed event.
3134 * gdb-events.c: Regenerated.
3135 * gdb-events.h: Regenerated.
3136
a790ad35
SC
31372002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3138
3139 Fix PR gdb/393:
3140 * inflow.c (terminal_save_ours): New function to save terminal
3141 settings.
3142 * inferior.h (terminal_save_ours): Declare.
3143 * target.c (debug_to_terminal_save_ours): New function.
3144 (cleanup_target): Defaults to_terminal_save_ours.
3145 (update_current_target): Inherit to_terminal_save_ours.
3146 (setup_target_debug): Set to_terminal_save_ours.
3147 * target.h (target_terminal_save_ours): New to save terminal settings.
3148 (target_ops): New member to_terminal_save_ours.
3149 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3150 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3151 * inftarg.c (init_child_ops): Likewise.
3152 * m3-nat.c (init_m3_ops): Likewise.
3153 * procfs.c (init_procfs_ops): Likewise.
3154 * wince.c (init_child_ops): Likewise.
3155 * win32-nat.c (init_child_ops): Likewise.
3156 * sol-thread.c (init_sol_thread_ops): Likewise.
3157
c00dcbe9
MK
31582002-08-26 Mark Kettenis <kettenis@gnu.org>
3159
3d7f4f49
MK
3160 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3161 use regcache_* functions.
3162 (i386_gdbarch_init): Set store_return_value instead of
3163 deprecated_store_return_value.
3164
c00dcbe9
MK
3165 * regcache.c (regcache_raw_write_signed,
3166 regcache_raw_write_unsigned): New functions.
3167 * regcache.h (regcache_raw_write_signed,
3168 regcache_raw_write_unsigned): New prototypes.
3169
0e0d15ca
AC
31702002-08-25 Andrew Cagney <ac131313@redhat.com>
3171
3172 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3173 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3174 source file dependencies. Cleanup corresponding generator rules.
3175
d3b22ed5
AC
31762002-08-25 Andrew Cagney <ac131313@redhat.com>
3177
3178 * regcache.h (register_offset_hack): Declare.
3179 (regcache_cooked_read_using_offset_hack): Declare.
3180 (regcache_cooked_write_using_offset_hack): Declare.
3181
3182 * regcache.c (register_offset_hack): New function.
3183 (regcache_cooked_read_using_offset_hack): New function.
3184 (regcache_cooked_write_using_offset_hack): New function.
3185 (regcache_dump): Check that the registers, according to their
3186 offset, are packed hard against each other.
3187 (cooked_xfer_using_offset_hack): New function.
3188
bb425013
AC
31892002-08-25 Andrew Cagney <ac131313@redhat.com>
3190
3191 * regcache.c (struct regcache_descr): Add field register_type.
3192 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3193 in as a parameter
3194 (init_regcache_descr): Initialize register_type. Pass the descr
3195 to init_legacy_regcache_descr. Use register_type instead of
3196 REGISTER_VIRTUAL_TYPE.
3197 (register_type): New function.
3198 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3199 * regcache.h (register_type): Declare.
3200
d0403e00
AC
32012002-08-25 Andrew Cagney <ac131313@redhat.com>
3202
3203 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3204 instead of deprecated_store_return_value. Fix fallout from
3205 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3206
0ed04cce
AC
32072002-08-25 Andrew Cagney <ac131313@redhat.com>
3208
3209 * regcache.c (max_register_size): New function.
3210 (init_legacy_regcache_descr): Ensure that max_register_size is
3211 large enough for REGISTER_VIRTUAL_SIZE.
3212 * regcache.h (max_register_size): Declare.
3213
46d79c04
AC
32142002-08-24 Andrew Cagney <ac131313@redhat.com>
3215
3216 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3217 store_return_value.
3218 (e500_extract_return_value): Change type of valbuf pointer to
3219 void.
3220
853c7bd0
MK
32212002-08-24 Mark Kettenis <kettenis@gnu.org>
3222
cd87e769
MK
3223 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3224 workaround.
3225
853c7bd0
MK
3226 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3227 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3228 long long) to prevent compiler warning on 64-bit systems.
3229
ebba8386
AC
32302002-08-23 Andrew Cagney <cagney@redhat.com>
3231
3232 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3233 (DEPRECATED_STORE_RETURN_VALUE): New method.
3234 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3235 * gdbarch.h, gdbarch.c: Re-generate.
3236
3237 * values.c (set_return_value): Pass current_regcache to
3238 STORE_RETURN_VALUE.
3239 * arch-utils.h (legacy_store_return_value): Declare.
3240 * arch-utils.c (legacy_store_return_value): New function.
3241 (legacy_extract_return_value): Update parameters.
3242
3243 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3244 STORE_RETURN_VALUE.
3245 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3246 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3247 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3248 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3249 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3250 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3251 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3252 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3253 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3254 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3255
3256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3257 * i386-tdep.c (i386_extract_return_value): Update.
3258 * arch-utils.c (legacy_extract_return_value): Update.
3259 * frv-tdep.c (frv_gdbarch_init): Update.
3260 * cris-tdep.c (cris_gdbarch_init): Update.
3261 * d10v-tdep.c (d10v_gdbarch_init): Update.
3262 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3263 * m68k-tdep.c (m68k_gdbarch_init): Update.
3264 * mcore-tdep.c (mcore_gdbarch_init): Update.
3265 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3266 * s390-tdep.c (s390_gdbarch_init): Update.
3267 * sparc-tdep.c (sparc_gdbarch_init): Update.
3268 * sh-tdep.c (sh_gdbarch_init): Update.
3269 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3270 * v850-tdep.c (v850_gdbarch_init): Update.
3271 * avr-tdep.c (avr_gdbarch_init): Update.
3272 * ia64-tdep.c (ia64_gdbarch_init): Update.
3273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3274 * vax-tdep.c (vax_gdbarch_init): Update.
3275 * alpha-tdep.c (alpha_gdbarch_init): Update.
3276 * arm-tdep.c (arm_gdbarch_init): Update.
3277 * mips-tdep.c (mips_gdbarch_init): Update.
3278 * i386-tdep.c (i386_gdbarch_init): Update.
3279
5bd8c6d0
AC
32802002-08-23 Andrew Cagney <ac131313@redhat.com>
3281
3282 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3283 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3284
e73e1724
MK
32852002-08-24 Mark Kettenis <kettenis@gnu.org>
3286
3287 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3288 problems.
3289
3e6564e1
JB
32902002-08-23 Joel Brobecker <brobecker@gnat.com>
3291
3292 * infrun.c (handle_inferior_event): Move a comment outside of a
3293 function call, in order to avoid indent reformatting this part
3294 of the code in an unreadable way.
3295
81d0cc19
GS
32962002-08-23 Grace Sainsbury <graces@redhat.com>
3297
3298 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3299 when breakpoints fail. Move general breakpoint error messages to
3300 insert_breakpoints.
3301 * breakpoint.c (insert_breakpoints): Change warnings when
3302 breakpoints are nto inserted to specify the type. Remove call to
3303 memory_error when hardware breakpoints can't be inserted. Remove
3304 multiple calls to warning so all messages are sent to the user at
3305 once.
3306 (delete_breakpoints): Make insert error messsages more explicit.
3307
17574093
DJ
33082002-08-23 Daniel Jacobowitz <drow@mvista.com>
3309
3310 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3311 gdbserver/ChangeLog.
3312
8acc2935
MK
33132002-08-23 Mark Kettenis <kettenis@gnu.org>
3314
dfe01d39
MK
3315 * i386-tdep.c: Include "objfiles.h".
3316 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3317 skip_trampoline_code.
3318 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3319 (CPLUS_MARKER): Define to '.'.
3320
8acc2935
MK
3321 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3322 member.
3323 (linux_corefile_thread_callback): Increase args->num_notes.
3324 (linux_make_note_section): Initialize thread_args.num_notes, and
3325 use it to determine whether notes for any threads were created.
3326
151fefe2 33272002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3328
3329 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3330 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3331 and PCUNKILL.
3332 (write_with_trace): Conditionalize out the switch branch handling
3333 PCSHOLD if the corresponding macro is not defined. Likewise for
3334 PRSABORT and PRSTOP.
3335 This change will be needed by the Interix port.
3336
e1507482
EZ
33372002-08-22 Elena Zannoni <ezannoni@redhat.com>
3338
3339 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3340 write_register wherever possible instead of manipulating the
3341 register bytes directly.
3342 Assign VALUE_CONTENTS to a variable and use that.
3343 The GPR numbers are now dependent on the architecture.
3344
96ff0de4
EZ
33452002-08-22 Elena Zannoni <ezannoni@redhat.com>
3346
3347 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3348 ev_offset fields.
3349 (skip_prologue): Add support for BookE/e500 instructions.
3350 (e500_extract_return_value): New function.
3351 (frame_get_saved_regs): Add support for saving ev registers and
3352 pseudo gpr's.
3353 (e500_store_return_value): New function.
3354 (rs6000_gdbarch_init): Move up default intializations of
3355 deprecated_extract_return_value and store_return_value. Overwrite
3356 init of store_return_value with e500 specific version.
3357 Set extract_return_value for e500.
3358
fbefca5b
EZ
33592002-08-22 Elena Zannoni <ezannoni@redhat.com>
3360
3361 * blockframe.c (generic_call_dummy_register_unwind): Use
3362 regcache_cooked_read to catch cases in which the variable is
3363 stored in a pseudo register.
3364
4d210288
AC
33652002-08-22 Andrew Cagney <cagney@redhat.com>
3366
3367 * NEWS: Mention that the i960 has been made obsolete.
3368 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3369 i960-tdep.c
3370 (remote-nrom.o): Obsolete target.
3371 (remote-nindy.o, i960-tdep.o): Ditto.
3372 * remote-nrom.c: Make file obsolete.
3373 * remote-nindy.c, remote-vx960.c: Ditto.
3374 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3375 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3376 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3377 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3378 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3379 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3380 i960-*-vxworks* obsolete.
3381 * MAINTAINERS: Note that the i960 is obsolete.
3382
6c0c456d
CV
33832002-08-21 Corinna Vinschen <vinschen@redhat.com
3384
3385 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3386 detach to allow reinitialization.
3387
9f9d12b3
AC
33882002-08-22 Andrew Cagney <ac131313@redhat.com>
3389
3390 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3391 attempt).
3392
ebeb39fe
JB
33932002-08-22 Jim Blandy <jimb@redhat.com>
3394
3395 * coffread.c (coff_symfile_read): Don't try to read the line
3396 number table from disk if the image file doesn't have a symbol
3397 table; we'll never actually look at the info anyway, and Windows
3398 ships DLL's with bogus file offsets for the line number data.
3399
5bf1c677
EZ
34002002-08-21 Elena Zannoni <ezannoni@redhat.com>
3401
3402 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3403 an e500 executable.
3404
71b8ef93
MS
34052002-08-21 Michael Snyder <msnyder@redhat.com>
3406
3407 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3408 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3409 (DEFAULT_MIPS_TYPE): Delete unused macro.
3410 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3411 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3412
d174216d
JB
34132002-08-21 Jim Blandy <jimb@redhat.com>
3414
3415 * valops.c (value_cast): Simplify and correct logic for doing a
3416 static cast from a pointer to a base class to a pointer to a
3417 derived class.
3418
0ab7a791
AC
34192002-08-21 Andrew Cagney <ac131313@redhat.com>
3420
3421 * infcmd.c (default_print_registers_info): Replace
3422 do_registers_info.
3423 (registers_info): Use gdbarch_print_registers_info instead of
3424 DO_REGISTERS_INFO.
3425 * inferior.h (default_print_registers_info): Replace
3426 do_registers_info.
3427 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3428 (DO_REGISTERS_INFO): Change to a predicate function.
3429 * gdbarch.h, gdbarch.c: Regenerate.
3430
e23792cc
KS
34312002-08-21 Keith Seitz <keiths@redhat.com>
3432
3433 * gdb-events.sh: Add target-changed event.
3434 * gdb-events.c: Regenerated.
3435 * gdb-events.c: Regenerated.
3436 * valops.c (value_assign): Add target-changed event notification
3437 to inlval_register, lval_memory, and lval_reg_frame_relative.
3438
9fb14e79
JB
34392002-08-21 Joel Brobecker <brobecker@gnat.com>
3440
3441 * NEWS: Add an entry regarding the improvement of the next/step
3442 operation on Alpha Tru64 multi-processor machines.
3443
6d39a69f
AC
34442002-08-21 Andrew Cagney <ac131313@redhat.com>
3445
72acd513
AC
3446 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3447 directores.
342af04b 3448 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3449 * Makefile.in (install-gdbtk): Move to install section.
3450 (rdi-share/libangsd.a): Move to end of file.
3451
fa5f27c7
AC
34522002-08-19 Andrew Cagney <ac131313@redhat.com>
3453
3454 * frame.c (frame_register_unwind): When a register, set addrp to
3455 the register's byte.
3456
5a89d8aa
MS
34572002-08-20 Michael Snyder <msnyder@redhat.com>
3458
3459 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3460 used locally, so move them from the target machine header to here.
3461 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3462 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3463 Make static.
3464 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3465
822e978b
AC
34662002-08-20 Andrew Cagney <cagney@redhat.com>
3467
3468 * NEWS: Mention that the Apollo line was made obsolete.
3469 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3470 m68*-hp-hpux* obsolete.
3471 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3472 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3473 * buildsym.c (make_blockvector): Make static.
3474 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3475 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3476 (ALLDEPFILES): Remove dstread.c.
3477 (dstread.o): Obsolete make rule.
3478 * dstread.c: Makefile obsolete.
3479 * dst.h: Ditto.
3480 * config/m68k/hp300hpux.mt: Ditto.
3481 * config/m68k/hp300hpux.mh: Ditto.
3482 * config/m68k/hp300bsd.mt: Ditto.
3483 * config/m68k/hp300bsd.mh: Ditto.
3484 * config/m68k/apollo68b.mt: Ditto.
3485 * config/m68k/apollo68v.mh: Ditto.
3486 * config/m68k/apollo68b.mh: Ditto.
3487
e41b17f0
MS
34882002-08-20 Michael Snyder <msnyder@redhat.com>
3489
3490 * mips-tdep.c (mips_in_return_stub): Make static.
3491 (mips_gdbarch_init): Set in_solib_return_trampoline.
3492 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3493
d50355b6
MS
34942002-08-20 Michael Snyder <msnyder@redhat.com>
3495
3496 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3497 * gdbarch.c, gdbarch.h: Regenerate.
3498 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3499 Add.
3500 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3501
757a7cc6
MS
35022002-08-20 Michael Snyder <msnyder@redhat.com>
3503
3504 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3505 (mips_gdbarch_init): Set skip_trampoline_code,
3506 in_solib_call_trampoline.
3507 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3508 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3509
c8001721
EZ
35102002-08-20 Elena Zannoni <ezannoni@redhat.com>
3511
3512 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3513
3514 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3515 vector type for ev registers.
3516 (e500_pseudo_register_read): New function.
3517 (e500_pseudo_register_write): New function.
3518 (e500_dwarf2_reg_to_regnum): New function.
3519 (PPC_UISA_NOFP_SPRS): New macro.
3520 (PPC_EV_REGS): New macro.
3521 (PPC_GPRS_PSEUDO_REGS): New macro.
3522 (registers_e500): New register set for e500.
3523 (variants): Add e500 variant.
3524 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3525 before setting architectural dependent variations. Initialize ev
3526 registers numbers. Add case for e500 architecture. Set the
3527 number of pseudo registers.
3528
64366f1c
EZ
35292002-08-20 Elena Zannoni <ezannoni@redhat.com>
3530
3531 * rs6000-tdep.c: Clean up comments.
3532
7e78f0ca
AC
35332002-08-20 Andrew Cagney <cagney@redhat.com>
3534
3535 * h8300-tdep.c: Re-indent file.
3536
697f7479
JB
35372002-08-20 Jim Blandy <jimb@redhat.com>
3538
3539 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3540 default for this.
697f7479 3541
e86ae29f
KS
35422002-08-20 Keith Seitz <keiths@redhat.com>
3543
3544 * breakpoints.c (watch_command_1): Use internal breakpoint
3545 when setting a watchpoint_scope breakpoint.
3546
216b504f
EZ
35472002-08-20 Elena Zannoni <ezannoni@redhat.com>
3548
3549 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3550 (build_builtin_type_vec64i): Ditto.
3551 (build_builtin_type_vec128): Ditto.
3552 (build_builtin_type_vec128i): Ditto.
3553
f7ab6ec6
MS
35542002-08-19 Michael Snyder <msnyder@redhat.com>
3555
3556 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3557 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3558 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3559 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3560 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3561 CALL_DUMMY_ADDRESS): Delete.
3562 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3563 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3564 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3565 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3566 push_return_address.
3567 (mips_register_raw_size, mips_eabi_use_struct_convention,
3568 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3569 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3570 mips_init_extra_frame_info, mips_eabi_push_arguments,
3571 mips_n32n64_push_arguments, mips_push_return_address,
3572 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3573 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3574
b5d1566e
MS
35752002-08-19 Michael Snyder <msnyder@redhat.com>
3576
3577 * mips-tdep.c (mips_frame_num_args): New function.
3578 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3579 frame_saved_pc, frame_args_address, frame_locals_address,
3580 frame_num_args, and frame_args_skip.
3581 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3582 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3583 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3584 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3585
2f1488ce
MS
35862002-08-20 Michael Snyder <msnyder@redhat.com>
3587
3588 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3589 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3590 * mips-tdep.c (mips_store_struct_return): New function.
3591 (mips_extract_struct_value_address): New function.
3592 (mips_gdbarch_init): Set store_struct_return and
3593 extract_struct_value_address.
3594
41ff2da1
DC
35952002-08-20 David Carlton <carlton@math.stanford.edu>
3596
3597 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3598 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3599 (read_file_scope): Check that line_header is nonzero before
3600 decoding macro information.
3601
e5451d58
MK
36022002-08-20 Mark Kettenis <kettenis@gnu.org>
3603
3604 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3605 flag the general-purpose registers as floating-point on targets
3606 that don't support the floating-point registers.
3607
4a6daafa
EZ
36082002-08-20 Elena Zannoni <ezannoni@redhat.com>
3609
3610 * rs6000-tdep.c (altivec_register_p): Delete.
3611 (rs6000_do_altivec_registers): Delete.
3612 (rs6000_altivec_registers_info): Delete.
3613 (rs6000_do_registers_info): Delete.
3614 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3615 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3616
ab4327e0
EZ
36172002-08-20 Elena Zannoni <ezannoni@redhat.com>
3618
3619 * infcmd.c (do_registers_info): Print vector registers in hex
3620 format only.
3621 (print_vector_info): Check that printing registers
3622 makes sense.
3623 (print_float_info): Ditto.
3624
cb1d2653
AC
36252002-08-20 Andrew Cagney <ac131313@redhat.com>
3626
3627 * mips-tdep.c (mips_gdbarch_init): Update.
3628 (mips_o32_extract_return_value): Rewrite.
3629 (mips_o32_store_return_value): Rewrite.
3630 (mips_o32_xfer_return_value): New function.
3631 (mips_xfer_register): Tweak debug print message. Allow for
3632 buf_offset when dumping the value transfered.
3633
dfc3d9b2
AC
36342002-08-20 Andrew Cagney <ac131313@redhat.com>
3635
3636 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3637 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3638 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3639 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3640 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3641
7807aa61
MS
36422002-08-14 Michael Snyder <msnyder@redhat.com>
3643
3644 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3645
489461e2
EZ
36462002-08-19 Elena Zannoni <ezannoni@redhat.com>
3647
3648 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3649 register.
3650 (P): New macro to define a register as a pseudo register.
3651 (R, R4, R8, R16, FR32, R64, R0): Updated.
3652 (struct variant): Add new fields for number of pseudo registers
3653 and number of total registers.
3654 (tot_num_registers): New macro replacing....
3655 (num_registers): ...deleted macro.
3656 (num_registers): New function.
3657 (num_pseudo_registers): New function.
3658 (variants): Update all variants to intialize new fields correctly.
3659 Postpone initialization of number of pseudo regs and real regs.
3660 (init_variants): New function.
3661 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3662 registers offsets.
3663
fcaffe4c
DC
36642002-08-19 David Carlton <carlton@math.stanford.edu>
3665
2c2738a0
DC
3666 * valops.c (search_struct_field): Change error message to treat
3667 return value of 0 from value_static_field as meaning that field is
3668 optimized out.
3669 (value_struct_elt_for_reference): Ditto.
3670 * values.c (value_static_field): Treat an unresolved location the
3671 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3672 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3673 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3674 * MAINTAINERS: Add self to Write After Approval list.
3675
88658117
AC
36762002-08-19 Andrew Cagney <ac131313@redhat.com>
3677
3678 * mips-tdep.c (mips_xfer_register): New function.
3679 (mips_n32n64_extract_return_value): Rewrite.
3680 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3681 instead of deprecated_extract_return_value.
3682
21283beb
EZ
36832002-08-19 Elena Zannoni <ezannoni@redhat.com>
3684
3685 * rs6000-tdep.c (TDEP): Delete macro.
3686 (branch_dest): Replace use of TDEP macro with its body.
3687 (rs6000_pop_frame): Ditto.
3688 (rs6000_push_arguments): Ditto.
3689 (rs6000_skip_trampoline_code): Ditto.
3690 (rs6000_frame_saved_pc): Ditto.
3691 (rs6000_frame_chain): Ditto.
3692 (rs6000_register_name): Ditto.
3693 (rs6000_register_byte): Ditto.
3694 (rs6000_register_raw_size): Ditto.
3695 (rs6000_register_virtual_type): Ditto.
3696 (rs6000_register_convertible): Ditto.
3697 (rs6000_convert_from_func_ptr_addr): Ditto.
3698
bf072999
DJ
36992002-08-19 Daniel Jacobowitz <drow@mvista.com>
3700
3701 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3702 conditionally.
3703 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3704 MIPS_LINUX_JB_ELEMENT_SIZE.
3705 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3706 for MAX_REGISTER_RAW_SIZE arrays.
3707 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3708 MIPS_LINUX_JB_ELEMENT_SIZE.
3709
9b949a49
PM
37102002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3711
3712 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3713
6d3e79c6
AS
37142002-08-19 Aidan Skinner <aidan@velvet.net>
3715
3716 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3717 ada-valprint.c ada-tasks.c.
3718 (YYFILES): Add ada-exp.y.
3719 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3720 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3721 (ada-exp.tab.o): New target.
3722
06c0b04e
AC
37232002-08-18 Andrew Cagney <ac131313@redhat.com>
3724
3725 * regcache.c (regcache_xfer_part): New function.
3726 (regcache_raw_read_part): New function.
3727 (regcache_raw_write_part): New function.
3728 (regcache_cooked_read_part): New function.
3729 (regcache_cooked_write_part): New function.
3730 * regcache.h (regcache_raw_read_part): Declare.
3731 (regcache_raw_write_part): Declare.
3732 (regcache_cooked_read_part): Declare.
3733 (regcache_cooked_write_part): Declare.
3734
92d1e331
DJ
37352002-08-18 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * remote.c (remote_open_1): Add async_p.
3738 (remote_async_open_1): Delete.
3739 (open_remote_target): Delete.
3740 (remote_open, extended_remote_open): Update calls to remote_open_1.
3741 (remote_async_open, extended_remote_async_open): Call
3742 remote_open_1 instead of remote_async_open_1.
3743
247055de
MK
37442002-08-19 Mark Kettenis <kettenis@gnu.org>
3745
3746 * blockframe.c: Fix a few coding standard violations.
3747
641eda39
MK
37482002-08-19 Mark Kettenis <kettenis@gnu.org>
3749
0b717710
MK
3750 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3751 here from ...
3752 * config/i386/tm-i386sco5.h: ... here. File removed.
3753 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3754
26d28e12 3755 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3756 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3757 (TM_FILE): Set to tm-i386.h.
3758 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3759 * config/i386/tm-i386v.h: Remove file.
3760 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3761 instead of "i386/tm-i386v.h".
3762 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3763 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3764 "i386/tm-i386v.h".
3765 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3766 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3767 "i386/tm-i386.h".
3768
d4e0bab4
MK
37692002-08-18 Mark Kettenis <kettenis@gnu.org>
3770
3771 * config/i386/nm-i386v.h: Add protection against
3772 multiple-inclusion.
3773 (i386_register_u_addr): Remove prototype.
3774 (register_u_addr): New prototype.
3775 (REGISTER_U_ADDR): Redefine accordingly.
3776 * i386v-nat.c: Improve several comments.
3777 (i386_register_u_addr): Change signature and rename to
3778 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3779 ubase variable.
3780
46cac009
AC
37812002-08-18 Andrew Cagney <ac131313@redhat.com>
3782
3783 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3784 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3785 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3786 deprecated_extract_return_value.
3787 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3788 rename mips_o32o64_push_arguments.
3789 (mips_gdbarch_init): Update.
3790 (mips_extract_return_value): Delete.
3791 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3792 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3793 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3794 (mips_n32n64_extract_return_value): Clone
3795 mips_extract_return_value.
3796 (mips_store_return_value): Delete.
3797 (mips_o32_store_return_value): Clone mips_store_return_value.
3798 (mips_o64_store_return_value): Clone mips_store_return_value.
3799 (mips_eabi_store_return_value): Clone mips_store_return_value.
3800 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3801
d2e4a39e
AS
38022002-08-18 Aidan Skinner <aidan@velvet.net>
3803
0c30c098
AS
3804 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3805 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3806
38072002-08-18 Aidan Skinner <aidan@velvet.net>
3808
3809 * ada-lang.c: Run through gdb_indent.sh.
3810 * ada-lang.h: Run through gdb_indent.sh.
3811 * ada-tasks.c: Run through gdb_indent.sh.
3812 * ada-typeprint.c: Run through gdb_indent.sh.
3813 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3814
01fc4e33
AC
38152002-08-18 Andrew Cagney <ac131313@redhat.com>
3816
3817 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3818 ABI.
3819
d8ee244c
MK
38202002-08-18 Mark Kettenis <kettenis@gnu.org>
3821
c38d8261
MK
3822 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3823
222db64c
MK
3824 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3825 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3826
c2848c82
MK
3827 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3828 write_register_gen instead of write_register_bytes.
3829
d8ee244c
MK
3830 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3831 i[3456]-*-osf1mk* configurations have been made obsolete.
3832 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3833 i[3456]86-*-osf1mk* hosts obsolete.
3834 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3835 targets obsolete.
3836 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3837 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3838 config/i386/i386m3.mt, config/i386/nm-m3.h,
3839 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3840 config/i386/i386mk.mh, config/i386/i386mk.mt,
3841 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3842 obsolete.
3843 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3844 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3845 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3846
61d8d407
AC
38472002-08-18 Andrew Cagney <ac131313@redhat.com>
3848
3849 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3850 (hppa_value_returned_from_stack): Declare.
3851 (hppa_extract_return_value): Declare.
3852 * config/pa/hppa.mt: New file.
3853 * configure.tgt: Recognize hppa*-*-*.
3854 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3855
0c52bd59
MK
38562002-08-18 Mark Kettenis <kettenis@gnu.org>
3857
3858 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3859 comment.
3860
b5686e99
MK
38612002-08-17 Mark Kettenis <kettenis@gnu.org>
3862
3863 * top.c (gdb_rl_operate_and_get_next): Make sure
3864 operate-and-get-next functions correctly even when the history
3865 list is completely filled.
3866
c1bab85b
AC
38672002-08-18 Andrew Cagney <ac131313@redhat.com>
3868
3869 * MAINTAINERS (Target Instruction Set Architectures): Rename
3870 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3871 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3872 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3873 already listed under Host/Native.
3874
3875 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3876 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3877 mips*-*-*.
3878
32089c7c
AC
38792002-08-17 Andrew Cagney <ac131313@redhat.com>
3880
3881 * config/ia64/ia64.mt: New file.
3882 * config/alpha/alpha.mt: New file.
3883 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3884 ia64-linux-gnu. Mention that ia64-elf is broken.
3885 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3886
b4671f85
MK
38872002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3888
3889 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3890 generic_func_frame_valid instead of func_frame_valid.
3891
c8edd8b4
JB
38922002-08-16 Joel Brobecker <brobecker@gnat.com>
3893
3894 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3895 procfs appears to be broken when debugging on multi-processor
3896 machines. So enable software single stepping in order to avoid
3897 using the procfs interface to do next/step operations, using
3898 internal breakpoints instead.
3899
3900 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3901 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3902 make this pc address equal to the value it would have if the
3903 system stepping capability was used. Also set a new flag used
3904 to ensure that we don't readjust the PC one more time later.
3905
3906 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3907 address by DECR_PC_AFTER_BREAK when software single step is
3908 in use for this architecture, as this has already been taken
3909 care of in handle_inferior_event().
3910
238617f6
JB
39112002-08-16 Joel Brobecker <brobecker@gnat.com>
3912
3913 * infrun.c (handle_inferior_event): Minor reformatting, to make
3914 a rather long condition expression easier to read.
3915
541a7aac
AC
39162002-08-16 Andrew Cagney <ac131313@redhat.com>
3917
3918 * Makefile.in (gdbtk.o): Move to end of file.
3919 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3920 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3921 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3922 (gdbtk-wrapper.o, gdbres.o): Ditto.
3923
f92d4a7b
AC
39242002-08-16 Andrew Cagney <ac131313@redhat.com>
3925
3926 * Makefile.in (copying.o): Separate out compile rule.
3927 (hpux-thread.o, procfs.o, signals.o): Ditto.
3928 (v850ice.o, z8k-tdep.o): Ditto.
3929 (tui-file.o): Move to TUI section.
3930 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3931 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3932
1cce71eb
JB
39332002-08-16 Joel Brobecker <brobecker@gnat.com>
3934
3935 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3936 skip_trampoline_code, for better namespace-proofing.
3937
3938 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3939
0851f23d
JB
39402002-08-16 Joel Brobecker <brobecker@gnat.com>
3941
3942 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3943
f8d40ec8
JB
39442002-08-16 Joel Brobecker <brobecker@gnat.com>
3945
3946 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3947 signal, check whether we hit a breakpoint before checking for a
3948 single step breakpoint. Otherwise, GDB fails to notice that a
3949 breakpoint has been hit when stepping onto a breakpoint.
3950
63d022e0
KS
39512002-08-16 Keith Seitz <keiths@redhat.com>
3952
3953 * gdb-events.sh (clear_gdb_event_hooks): New function.
3954 * gdb-events.c: Regenerate.
3955 * gdb-events.h: Regenerate.
3956
6e31adb3
AC
39572002-08-16 Andrew Cagney <ac131313@redhat.com>
3958
3959 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3960 not_a_sw_breakpoint.
3961 * breakpoint.h (bpstat_stop_status): Add parameter names.
3962
c8189ed1
GS
39632002-08-16 Grace Sainsbury <graces@redhat.com>
3964
3965 * remote.c (remote_insert_hw_breakpoint)
3966 (remote_remove_hw_breakpoint): Fix calculation of length field
3967 for Z-packet.
3968
d05285fa
MS
39692002-08-15 Michael Snyder <msnyder@redhat.com>
3970
466d7106
MS
3971 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3972 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3973 (supply_fpregset): Ditto.
3974
d05285fa
MS
3975 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3976 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3977 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3978 (TARGET_READ_SP): Delete.
bf1f5b4c 3979 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3980 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3981 Delete.
3982 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3983 from macros to functions.
bf1f5b4c 3984
d05285fa
MS
3985 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3986 (mips_register_convertible, mips_register_convert_to_virtual,
3987 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3988 (mips_read_sp): New function.
3989 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3990 (mips_do_registers_info): Make static.
3991 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3992 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3993 (mips_register_convert_from_type, mips_register_convert_to_type):
3994 New functions.
3995 (mips_gdbarch_init): Set up function_start_offset,
3996 register_virtual_size, pc_in_sigtramp.
d05285fa 3997
e76f1f2e
AC
39982002-08-15 Andrew Cagney <ac131313@redhat.com>
3999
4000 * infcmd.c (vector_info): New function.
4001 (_initialize_infcmd): Add command "info vector".
4002 (print_vector_info): New function.
4003
4004 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4005 * gdbarch.h, gdbarch.c: Regenerate.
4006
4782dc19
AC
40072002-08-15 Andrew Cagney <ac131313@redhat.com>
4008
4009 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4010 ``print_all''. Only print vector registers when ``print_all''.
4011
23e3a7ac
AC
40122002-08-15 Andrew Cagney <ac131313@redhat.com>
4013
8e186fd6
AC
4014 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4015 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4016
23e3a7ac
AC
4017 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4018 Add `args' parameter.
4019 * gdbarch.h, gdbarch.c: Regenerate.
4020
4021 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4022
4023 * infcmd.c (float_info): Call print_float_info.
4024 (print_float_info): New function. By default, print the
4025 floating-point registers.
4026
4027 * arch-utils.h (default_print_float_info): Delete declaration.
4028 * arch-utils.c (default_print_float_info): Delete function.
4029
e0ca2bb9
MK
40302002-08-16 Mark Kettenis <kettenis@gnu.org>
4031
3f733acc
MK
4032 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4033 out define.
4034
7d8d2918
MK
4035 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4036 FRAME.
4037
1c7cc583
MK
4038 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4039 * configure.host: Make i[3456]86-*-aix host obsolete.
4040 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4041 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4042 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4043 config/i386/xm-i386aix.h: Make files obsolete.
4044 * i386aix-nat.c: Make file obsolete.
4045 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4046 (i386aix-nat.o): Make target obsolete.
4047
e0ca2bb9
MK
4048 * config/i386/nm-gnu.h: Removed.
4049 * config/i386/nm-i386gnu.h: New file.
4050 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4051 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4052 Moved here from ...
4053 * config/i386/tm-i386gnu.h: ... here. Removed.
4054 * config/i386/xm-i386gnu.h: Removed.
4055 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4056 (NAT_FILE): Set to nm-i386gnu.h.
4057 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4058 * i386-tdep.c: New file.
4059 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4060 (i386gnu-tdep.o): Specify dependencies.
4061
16057ec7 40622002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4063
6b99ee2e
MK
4064 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4065 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4066 Adjust a few comments to reflect reality a bit closer.
4067 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4068 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4069 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4070 target_insert_watchpoint, target_remove_watchpoint):
4071 Move defines to ...
4072 * config/i386/nm-i386sco5.h: ... here.
4073 (kernel_u_size): Add prototype. Improve a few comments and add
4074 protection against multiple inclusion.
4075
d9a6f65c
MK
4076 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4077 out define.
4078
047eff6a
MK
4079 * uw-thread.c (SP_ARG0): Define if not already defined.
4080 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4081
dcdb1290
MK
4082 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4083
5d2d0b2a
MK
4084 * config/i386/tm-i386.h: Don't include "regcache.h".
4085
61113f8b
MK
4086 * i387-tdep.h (i387_print_float_info): New prototype.
4087 * i387-tdep.c (print_i387_value, print_i387_ext,
4088 print_i387_status_word, print_i387_control_word): Add `struct
4089 ui_file *' argument and use it for output.
4090 (i387_print_float_info): Renamed from i387_float_info. Add
4091 `struct gdbarch *' and `struct ui_file *' arguments and use the
4092 latter for output.
4093 * i386-tdep.c: Include "i387-tdep.h".
4094 (i386_gdbarch_init): Set print_float_info.
4095 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4096 (FLOAT_INFO): Remove define.
4097
46e0f506
MS
40982002-08-13 Michael Snyder <msnyder@redhat.com>
4099
4100 * mips-tdep.c (mips_push_arguments): Rename to
4101 mips_eabi_push_arguments, and tune for EABI.
4102 (MIPS_REGS_HAVE_HOME_P): Delete.
4103 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4104 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4105 Delete references to mips_regs_have_home_p.
4106
409268de
KS
41072002-08-14 Keith Seitz <keiths@redhat.com>
4108
4109 * Makefile.in (install-gdbtk): Create insight plugin directory.
4110 Install plugins.tcl file.
4111
ffc6a242
KS
41122002-08-14 Keith Seitz <keiths@redhat.com>
4113
4114 * configure.in: Move SUBDIRS to near top of the file so that
4115 --enable options may add things to it.
4116 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4117 * configure: Regenerate.
4118
ebafbe83
MS
41192002-08-13 Michael Snyder <msnyder@redhat.com>
4120
4121 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4122 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4123 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4124
32f6f25d
AC
41252002-08-13 Andrew Cagney <ac131313@redhat.com>
4126
4127 * vax-tdep.c (vax_get_saved_register): Delete function.
4128 (vax_gdbarch_init): Update.
4129 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4130 (ns32k_gdbarch_init): Update.
4131 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4132 (alpha_gdbarch_init): Update.
4133
53826de9
AC
41342002-08-13 Andrew Cagney <cagney@redhat.com>
4135
4136 * regcache.c (init_regcache_descr): Overallocate the
4137 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4138 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4139 nr_raw_registers.
4140 (set_register_cached): Add range checking assertions. Use
4141 current_regcache.
4142
16057ec7 41432002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4144
4145 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4146 numbers for MMX registers.
4147
7b4c2dce
AC
41482002-08-13 Andrew Cagney <cagney@redhat.com>
4149
4150 * i386-tdep.c (i386_gdbarch_init): Use
4151 generic_unwind_get_saved_register.
4152
1e03ad20
KB
41532002-08-13 Kevin Buettner <kevinb@redhat.com>
4154
4155 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4156 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4157 target vector.
4158 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4159 Delete. Add comment regarding this now-deleted target method.
4160
548bcbec
SC
41612002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4162
4163 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4164 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4165 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4166 real PC and the page number (if it's within the memory bank window).
4167 (m68hc11_pseudo_register_write): Likewise when saving.
4168 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4169 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4170 (m68hc11_register_raw_size): And use 32-bit for it.
4171 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4172 16K memory bank is used by the prog; also use the virtual pc.
4173
7df11f59
SC
41742002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4175
4176 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4177 (m68hc11_gdbarch_init): Install it in gdbarch.
4178 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4179 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4180 (MSYMBOL_SIZE): New for documentation.
4181 (insn_return_kind): Enum to specify how a function returns.
4182 (frame_extra_info): Cleanup and record the return mode.
4183 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4184 register in address computation.
4185 (m68hc11_get_return_insn): New to obtain the return instruction used
4186 by the function.
4187 (m68hc11_frame_init_saved_regs): Take into account the return
4188 instruction used by the function for far and interrupt functions.
4189 (m68hc11_init_extra_frame_info): Take into account page register.
4190 (m68hc11_frame_args_address): Adjust according to the return mode.
4191 (show_regs): Print page register only when it's used.
4192
5706502a
SC
41932002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4194
4195 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4196 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4197 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4198 registers.
4199 (m68hc11_register_raw_size): Likewise.
4200
28fc6740
AC
42012002-08-13 Andrew Cagney <cagney@redhat.com>
4202
4203 * i386-tdep.c (i386_register_name): Handle mmx registers.
4204 (mmx_regnum_p): New function.
4205 (i386_mmx_names): New array.
4206 (mmx_num_regs): New variable.
4207 (i386_pseudo_register_read): New function.
4208 (i386_pseudo_register_write): New function.
4209 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4210
4211 * regcache.c (regcache_raw_read_unsigned): New function.
4212 (regcache_raw_read_signed): New function.
4213 * regcache.h (regcache_raw_read_unsigned): Declare.
4214 (regcache_raw_read_signed): Declare.
4215
a378f419
AC
42162002-08-13 Andrew Cagney <cagney@redhat.com>
4217
4218 * regcache.c (regcache_raw_read_as_address): Delete function.
4219 (regcache_cooked_read_signed): New function.
4220 (regcache_cooked_read_unsigned): New function.
4221 * regcache.h (regcache_cooked_read_signed): Declare.
4222 (regcache_cooked_read_unsigned): Declare.
4223 (regcache_raw_read_as_address): Delete declaration.
4224
4225 * blockframe.c (generic_read_register_dummy): Use
4226 regcache_cooked_read_unsigned.
4227 * i386-tdep.c (i386_extract_struct_value_address): Use
4228 regcache_cooked_read_unsigned.
4229
81967506
SC
42302002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4231
4232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4233 double sizes according to ELF ABI flags.
4234 (gdbarch_tdep): Record elf_flags.
4235
ffe1f3ee
SC
42362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4237
4238 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4239 (m6812_prolog): They can appear in 68HC12 function prologue.
4240 (m68hc11_frame_chain): Cleanup.
4241
98216c5d
AC
42422002-08-12 Andrew Cagney <cagney@redhat.com>
4243
4244 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4245 declarations.
4246 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4247 (i386_linux_register_raw_size): Delete function.
4248 (i386_linux_init_abi): Update.
4249 * i386-tdep.c (i386_register_raw_size): Delete function.
4250 (i386_register_byte): Delete function.
4251 (i386_gdbarch_init): Update.
4252 (i386_register_size): Delete array.
4253 (i386_register_offset): Delete array.
4254
4255 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4256 (REGISTER_RAW_SIZE): Delete macro.
4257 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4258 (REGISTER_BYTE): Delete macro.
4259
3b19021e
AS
42602002-08-11 Aidan Skinner <aidan@velvet.net>
4261
4262 * ada-lang.c (ada_lookup_partial_symbol)
4263 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4264 prototype names so that grep ^func works properly.
4265
4266 * ada-lang.c (ada_array_element_type)
4267 (ada_lookup_partial_symbol): Fix typos in parameter list.
4268
4269 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4270 Fix prototype names so that grep ^func works properly.
4271
b063e7a2
AC
42722002-08-10 Andrew Cagney <cagney@redhat.com>
4273 Elena Zannoni <ezannoni@redhat.com>
4274 Martin M. Hunt <hunt@redhat.com>
4275
4276 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4277 (build_builtin_type_vec128i): Set the vector bit.
4278 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4279 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4280 (build_builtin_type_vec64): New function.
4281 (build_builtin_type_vec64i): New function.
4282 (build_gdbtypes): Initialize builtin_type_vec64 and
4283 builtin_type_vec64i.
4284
a7e3c2ad
AC
42852002-08-09 Andrew Cagney <cagney@redhat.com>
4286
4287 * regcache.c (regcache_dump): Compare the register offset
4288 with REGISTER_BYTE.
4289 * arch-utils.c (generic_register_byte): New function.
4290 * arch-utils.h (generic_register_byte): Declare.
4291 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4292 * gdbarch.h, gdbarch.c: Regenerate.
4293
af030b9a
AC
42942002-08-09 Andrew Cagney <cagney@redhat.com>
4295
4296 * regcache.c: Include "gdbcmd.h"
4297 (_initialize_regcache): Add commands "maintenance print
4298 registers", "maintenance print raw-registers" and "maintenance
4299 print cooked-registers".
4300 (enum regcache_dump_what): Define.
4301 (dump_endian_bytes): New function.
4302 (regcache_dump): New function.
4303 (regcache_print): New function.
4304 (maintenance_print_registers): New function.
4305 (maintenance_print_raw_registers): New function.
4306 (maintenance_print_cooked_registers): New function.
4307 * Makefile.in (regcache.o): Update dependencies.
4308
cb3d25d1
MS
43092002-08-09 Michael Snyder <msnyder@redhat.com>
4310
4311 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4312 (mips_push_arguments): Correct some comments. Use paddr_nz
4313 for printing addresses in debug output. Replace static
4314 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4315 (mips_n32n64_push_arguments): New function, cloned from
4316 mips_push_arguments and tuned for the n32/n64 ABI.
4317 (mips_push_register): Buffer needs dynamic allocation.
4318 (mips_print_register): Ditto.
4319 (do_gp_register_row): Ditto.
4320 (mips_store_return_value): Ditto.
4321 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4322
2163ab9d
DH
43232002-08-09 Don Howard <dhoward@redhat.com>
4324
4325 * memattr.c (mem_info_command): Print special case of upper bound
4326 as max CORE_ADDR + 1.
4327
b78bcb18
MS
43282002-08-08 Michael Snyder <msnyder@redhat.com>
4329
4330 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4331 returns structs by ref if they're too big to fit in two registers.
4332
ffabd70d
KB
43332002-08-09 Kevin Buettner <kevinb@redhat.com>
4334
4335 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4336 saved regs value.
4337 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4338 mips_find_saved_regs().
4339 (mips_pop_frame): Likewise.
4340
fbcdb4a3
KB
43412002-08-09 Kevin Buettner <kevinb@redhat.com>
4342
4343 * blockframe.c (frame_saved_regs_register_unwind): Revise
4344 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4345 frames are in use.
4346
3c3bea1c
GS
43472002-08-09 Grace Sainsbury <graces@redhat.com>
4348
4349 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4350 T-packets; the 'a' is not taken as a register number.
4351 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4352 (remote_stopped_data_address): New functions; add to target
4353 vector.
4354 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4355 prototypes to match other implementations of this
4356 function. replace integer argument with pointer -- the length
4357 field in the Z-packet is the length of what is pointed to or 1 if
4358 pointer is null. Add to target vector.
4359 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4360 target vector.
4361
4362 From Mark Salter:
4363 * remote.c (remote_wait): Add support to extract optional
4364 watchpoint information from T-packet. Ignore unrecognized
4365 optional info in T-packet.
4366 (remote_async_wait): Ditto.
4367
5d1d95de
CV
43682002-08-09 Corinna Vinschen <vinschen@redhat.com>
4369
4370 * cli/cli-dump.c: Change fopen modes to use binary open modes
4371 as defined in include/fopen-bin.h throughout.
4372
c86b5b38
MS
43732002-08-08 Michael Snyder <msnyder@redhat.com>
4374
4375 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4376
b30590dc
KB
43772002-08-08 Kevin Buettner <kevinb@redhat.com>
4378
4379 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4380 assertion failure by returning early after a warning.
4381
498868ed
KB
43822002-08-08 Kevin Buettner <kevinb@redhat.com>
4383
4384 * mips-tdep.c (mips_find_saved_regs): Make static.
4385 (mips_frame_init_saved_regs): New function.
4386 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4387 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4388 (mips_find_saved_regs): Delete declaration.
4389
b2dd6311
GS
43902002-08-08 Grace Sainsbury <graces@redhat.com>
4391
3c3bea1c
GS
4392 * remote.c (remote_wait, remote_async_wait): Change
4393 thread_num from int to ULONGEST.
4394 (unpack_varlen_hex): Change result parameter from
4395 int * to ULONGEST *.
b2dd6311 4396
ea47855f
AC
43972002-08-08 Andrew Cagney <ac131313@redhat.com>
4398
4399 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4400 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4401 powerpc*-*-*.
4402 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4403
69db8bae
AC
44042002-08-08 Andrew Cagney <cagney@redhat.com>
4405
4406 * gcore.c (override_derive_stack_segment): Delete variable.
4407 (preempt_derive_stack_segment): Delete function.
4408 (derive_stack_segment): Delete function.
4409 (default_derive_stack_segment): Renamed to derive_stack_segment.
4410 (override_derive_heap_segment): Delete variable.
4411 (preempt_derive_heap_segment): Delete function.
4412 (derive_heap_segment): Delete function.
4413 (default_derive_heap_segment): Rename to derive_heap_segment.
4414
cb811fe7
MS
44152002-08-06 Michael Snyder <msnyder@redhat.com>
4416
4417 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4418 * mips-tdep.c (mips_EABI_use_struct_convention,
4419 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4420 New functions. (mips_use_struct_convention): Delete.
4421 (mips_gdbarch_init): set use_gdbarch_convention.
4422
8b389c40
MS
44232002-08-06 Michael Snyder <msnyder@redhat.com>
4424
4425 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4426 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4427 mips_o32_reg_struct_has_addr): New functions.
4428 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4429
5c27f28a
AC
44302002-08-07 Andrew Cagney <ac131313@redhat.com>
4431
4432 * regcache.c (pseudo_register): Delete function.
4433 (fetch_register): Delete function.
4434 (store_register): Delete function.
4435 (regcache_raw_read, legacy_read_register_gen): Use
4436 target_fetch_registers instead of fetch_register.
4437 (legacy_write_register_gen, regcache_raw_write): Use
4438 target_store_register instead of store_register.
4439 (write_register_bytes): Ditto.
4440
4441 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4442 (STORE_PSEUDO_REGISTER): Delete.
4443 * gdbarch.h, gdbarch.c: Regenerate.
4444
5b331675
CV
44452002-08-06 Corinna Vinschen <vinschen@redhat.com>
4446
4447 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4448 write dump file binary.
4449
6acdf5c7
MS
44502002-08-05 Michael Snyder <msnyder@redhat.com>
4451
4452 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4453 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4454 (mips_gdbarch_init): Set N32 target to be mips64.
4455
b2f01c35
KB
44562002-08-06 Kevin Buettner <kevinb@redhat.com>
4457
4458 * frame.c (find_saved_register): Break out of loop once saved
4459 register address is found. Don't mention sparc in loop comment
4460 anymore.
4461
63db5580
KB
44622002-08-06 Kevin Buettner <kevinb@redhat.com>
4463
4464 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4465 mips_default_saved_regsize to 8.
4466
5e34e75e
AC
44672002-08-06 Andrew Cagney <ac131313@redhat.com>
4468
4469 * gcore.c: Do not include <sys/procfs.h>.
4470 * Makefile.in (gcore.o): Update dependencies.
4471
eb4c54a2
AC
44722002-08-06 Andrew Cagney <cagney@redhat.com>
4473
4474 * configure.tgt: Make arc-*-* obsolete.
4475 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4476 * MAINTAINERS: Make arc-elf obsolete.
4477 * arc-tdep.c: Make file obsolete.
4478 * config/arc/arc.mt: Ditto.
4479 * config/arc/tm-arc.h: Ditto.
4480
ced15480
TR
44812002-08-05 Theodore A. Roth <troth@verinet.com>
4482
c1bab85b 4483 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4484
b4743822
AC
44852002-08-05 Andrew Cagney <ac131313@redhat.com>
4486
4487 * mcore-tdep.c (mcore_gdbarch_init): Use
4488 generic_unwind_get_saved_register instead of
4489 generic_get_saved_register.
4490 * v850-tdep.c (v850_gdbarch_init): Ditto.
4491 * frv-tdep.c (frv_gdbarch_init): Ditto.
4492 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4493 * s390-tdep.c (s390_gdbarch_init): Ditto.
4494 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4495 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4496 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4497
3956d554
JB
44982002-08-05 Joel Brobecker <brobecker@gnat.com>
4499
4500 * objfiles.h: Add missing #include "symfile.h"
4501
4502 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4503
8249c0d6
AC
45042002-08-04 Andrew Cagney <ac131313@redhat.com>
4505
4506 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4507 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4508 of FIELD_BITSIZE.
4509
b9d14705
DJ
45102002-08-04 Daniel Jacobowitz <drow@mvista.com>
4511
4512 * NEWS: Cleanup and nitpick.
4513
dd73b9bb
AC
45142002-08-03 Andrew Cagney <ac131313@redhat.com>
4515
4516 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4517
043a27f8
AC
45182002-08-03 Andrew Cagney <ac131313@redhat.com>
4519
4520 * Makefile.in (gdbtk-bp.o): Update dependencies.
4521 (gdbtk-register.o): Ditto.
4522 (gdbtk-varobj.o): Ditto.
4523
46ce284d
AC
45242002-08-03 Andrew Cagney <cagney@redhat.com>
4525
4526 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4527 m68hc11_fetch_pseudo_register.
4528 (m68hc11_pseudo_register_write): Replace
4529 m68hc11_store_pseudo_register.
4530 (m68hc11_gdbarch_init): Update.
4531
b66d6d2e
AC
4532Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4533
4534 * gdbarch.sh: Include "gdb_string.h".
4535 * gdbarch.c: Regenerate.
4536
4537 * regcache.c: Include "gdb_string.h".
4538 * ax-general.c: Ditto.
4539 * varobj.c: Ditto.
4540 * std-regs.c: Ditto.
4541 * fbsd-proc.c: Ditto.
4542 * thread.c: Ditto.
4543
4544 * Makefile.in (regcache.o): Update dependencies.
4545 (thread.o, gdbarch.o): Ditto.
4546 (ax-general.o, gdbarch.o): Ditto.
4547 (varobj.o, std-regs.o): Ditto.
4548 (fbsd-proc.o): Specify dependencies.
4549
29e1842b
AC
45502002-08-02 Andrew Cagney <cagney@redhat.com>
4551
4552 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4553 regnum.
4554 (regcache_cooked_write): Ditto.
4555
68365089
AC
45562002-08-02 Andrew Cagney <ac131313@redhat.com>
4557
4558 * regcache.c (regcache_cooked_read): New function.
4559 (regcache_cooked_write): New function.
4560 (read_register_gen): Rewrite using regcache_cooked_read.
4561 (write_register_gen): Rewrite using regcache_cooked_write.
4562
4563 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4564 Declare.
4565
d8124050
AC
45662002-08-02 Andrew Cagney <cagney@redhat.com>
4567
4568 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4569 Replace the architecture methods register_read and register_write.
4570 * gdbarch.h, gdbarch.c: Regenerate.
4571 * regcache.c (init_regcache_descr): Update.
4572 (read_register_gen): Update.
4573 (write_register_gen): Update.
4574 (supply_register): Update comment.
4575
4576 * sh-tdep.c (sh_gdbarch_init): Update.
4577 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4578 `regcache' and `gdbarch' parameters. Make `buffer' a void
4579 pointer. Update code.
4580 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4581 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4582 void pointer. Update code.
4583 (sh64_register_write): Delete.
4584 (sh4_register_read): Delete.
4585 (sh64_register_read): Delete.
4586 (sh4_register_write): Delete.
4587 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4588 void pointer, `to' parameter a void pointer.
4589 (sh_sh64_register_convert_to_raw): Ditto.
4590
a6425924
KB
45912002-08-01 Kevin Buettner <kevinb@redhat.com>
4592
4593 * mips-tdep.c (mips_register_virtual_type): Use architecture
4594 invariant return values.
4595
ff5922b5
AC
45962002-08-01 Andrew Cagney <cagney@redhat.com>
4597
4598 * linux-proc.c: Include "gdb_string.h".
4599 * Makefile.in (linux-proc.o): Update dependency list.
4600
32a6503c
KB
46012002-08-01 Kevin Buettner <kevinb@redhat.com>
4602
4603 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4604 comment.
4605
ccaa32c7
GS
46062002-08-01 Grace Sainsbury <graces@redhat.com>
4607
4608 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4609 to_insert_watchpoint, to_remove_watchpoint,
4610 to_stopped_by_watchpoint, to_stopped_data_address,
4611 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4612 target vecctor. Define their corresponding macros so they call
4613 them.
4614
4615 * target.c: Add default and debug versions of for
4616 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4617 to_insert_watchpoint, to_remove_watchpoint,
4618 to_stopped_by_watchpoint, to_stopped_data_address,
4619 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4620
78fde5f8
KB
46212002-08-01 Kevin Buettner <kevinb@redhat.com>
4622
4623 * mips-tdep.c (mips_register_virtual_type): New function.
4624 (mips_gdbarch_init): Register mips_register_virtual_type()
4625 with gdbarch machinery.
4626 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4627 this file instead of tm-bigmips.h.
4628 (MIPS_REGSIZE): Delete this macro.
4629 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4630 multiarch version in mips-tdep.c will be found.
4631
db034ac5
AC
46322002-08-01 Andrew Cagney <cagney@redhat.com>
4633
4634 * NEWS: Menion that CHILL has been made obsolete.
4635
4636 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4637 * stabsread.c (read_range_type): Ditto.
4638 * gdbtypes.h: Ditto.
4639 * language.c (binop_type_check): Ditto.
4640 (binop_result_type): Ditto.
4641 (integral_type): Ditto.
4642 (character_type): Ditto.
4643 (string_type): Ditto.
4644 (boolean_type): Ditto.
4645 (structured_type): Ditto.
4646 (lang_bool_type): Ditto.
4647 (binop_type_check): Ditto.
4648 * language.h (_LANG_chill): Ditto.
4649 * dwarfread.c (set_cu_language): Ditto.
4650 * dwarfread.c (CHILL_PRODUCER): Ditto.
4651 * dwarfread.c (handle_producer): Ditto.
4652 * expression.h (enum exp_opcode): Ditto.
4653 * eval.c: Ditto for comments.
4654 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4655 * expprint.c (print_subexp): Ditto.
4656 (print_subexp): Ditto.
4657 * valops.c (value_cast): Ditto.
4658 (search_struct_field): Ditto.
4659 * value.h (COERCE_VARYING_ARRAY): Ditto.
4660 * symfile.c (init_filename_language_table): Ditto.
4661 (add_psymbol_with_dem_name_to_list): Ditto.
4662 * valarith.c (value_binop): Ditto.
4663 (value_neg): Ditto.
4664 * valops.c (value_slice): Ditto.
4665 * symtab.h (union language_specific): Ditto.
4666 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4667 (SYMBOL_DEMANGLED_NAME): Ditto.
4668 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4669 * defs.h (enum language): Ditto.
4670 * symtab.c (got_symtab): Ditto.
4671 * utils.c (fprintf_symbol_filtered): Ditto.
4672
4673 * ch-typeprint.c: Make file obsolete.
4674 * ch-valprint.c: Make file obsolete.
4675 * ch-lang.h: Make file obsolete.
4676 * ch-exp.c: Make file obsolete.
4677 * ch-lang.c: Make file obsolete.
4678
4679 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4680 CHILL_LIB.
4681 (TARGET_FLAGS_TO_PASS): Ditto.
4682 (CHILLFLAGS): Obsolete.
4683 (CHILL): Obsolete.
4684 (CHILL_FOR_TARGET): Obsolete.
4685 (CHILL_LIB): Obsolete.
4686 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4687 ch-valprint.c.
4688 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4689 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4690 ch-lang.o.
4691 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4692 targets.
4693
8aaf0b47
JB
46942002-07-31 Joel Brobecker <brobecker@gnat.com>
4695
4696 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4697 This does not change anything at the moment, but will be helpful
4698 later when full Ada support is integrated.
4699
f3a7b3a5
KB
47002002-07-31 Kevin Buettner <kevinb@redhat.com>
4701
4702 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4703 help message.
4704
fb850278
KB
47052002-07-31 Kevin Buettner <kevinb@redhat.com>
4706
4707 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4708 and save it in a local variable. Use variable in later test.
4709
e3bddbfa
KB
47102002-07-31 Kevin Buettner <kevinb@redhat.com>
4711
4712 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4713 test. (Thanks to Daniel Jacobowitz.)
4714
28d169de
KB
47152002-07-31 Kevin Buettner <kevinb@redhat.com>
4716
4717 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4718 (mips_abi_strings): Add "n64".
4719 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4720
7fe7e44e
KB
47212002-07-31 Kevin Buettner <kevinb@redhat.com>
4722
4723 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4724 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4725
c6caf090
KB
47262002-07-31 Kevin Buettner <kevinb@redhat.com>
4727
4728 * utils.c (host_pointer_to_address, address_to_host_pointer):
4729 Use gdb_assert() instead of explicit call to internal_error().
4730
c41669e0
KB
47312002-07-30 Kevin Buettner <kevinb@redhat.com>
4732
4733 * Makefile.in (rs6000-nat.o): Update dependencies.
4734
4735 From Nicholas Duffek:
4736 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4737 (aix-thread.o): New rule.
4738 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4739 * config/powerpc/aix432.mh: New file.
4740
2fda4977
DJ
47412002-07-30 Daniel Jacobowitz <drow@mvista.com>
4742
4743 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4744 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4745 (fetch_core_registers, ppc_linux_supply_gregset)
4746 (ppc_linux_supply_fpregset): New functions.
4747 (ppc_linux_regset_core_fns): New.
4748 (_initialize_ppc_linux_tdep): Call add_core_fns.
4749 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4750 and ppc_linux_supply_gregset.
4751 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4752 (supply_fpregset): Call ppc_linux_supply_fpregset.
4753 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4754 corelow.o.
4755 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4756
729051e6
DJ
47572002-07-30 Daniel Jacobowitz <drow@mvista.com>
4758
4759 * symtab.c (lookup_symbol): Demangle before lowercasing.
4760
5f8a3188
AC
47612002-07-30 Andrew Cagney <ac131313@redhat.com>
4762
4763 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4764 declaration.
4765 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4766 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4767 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4768 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4769 "gdb_string.h".
4770 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4771 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4772 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4773 (avr-tdep.o, mon960-rom.o): Ditto.
4774 (aout_stabs_gnu_h): Define.
4775 (symtab_h): Remove $(gdb_obstack_h).
4776
67f07146
JB
47772002-07-30 Jim Blandy <jimb@redhat.com>
4778
4779 Patch from David Carlton <carlton@math.stanford.edu>:
4780 * gdbinit.in: Move the `dir' commands that add GDB's own source
4781 directory to the search path to the end, so that the `gdb' source
4782 directory will be searched first.
4783
04ea0df1
AC
47842002-07-29 Andrew Cagney <ac131313@redhat.com>
4785
4786 * gdb_obstack.h: New file.
4787 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4788 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4789 * objfiles.h: Include "gdb_obstack.h".
4790 * Makefile.in (gdb_obstack_h): Define.
4791 (symtab_h): Add $(gdb_obstack_h).
4792 (objfiles_h): Add $(gdb_obstack_h).
4793
4794 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4795 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4796 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4797 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4798 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4799 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4800 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4801 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4802
4803 * Makefile.in (bcache.o): Update dependencies.
4804 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4805 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4806 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4807 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4808 (stabsread.o, symfile.o, symmisc.o): Ditto.
4809 (symtab.o, typeprint.o, macroexp.o): Ditto.
4810 (macrotab.o, mdebugread.o): Ditto.
4811 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4812 (coff_ecoff_h, aout_aout64_h): Define.
4813 (aout_stabs_gnu_h, libaout_h): Define.
4814
d138e37a
AC
48152002-07-29 Andrew Cagney <cagney@redhat.com>
4816
4817 * regcache.c (struct regcache_descr): Rename nr_registers to
4818 nr_cooked_registers. Revise comments describing the structure
4819 member fields.
4820 (init_regcache_descr): Update.
4821 (init_legacy_regcache_descr): Update.
4822 (read_register_gen, write_register_gen): When a cooked register in
4823 the raw register range, directly access the value from the raw
4824 register cache.
4825
460e6ec3
AC
48262002-07-29 Andrew Cagney <ac131313@redhat.com>
4827
4828 * z8k-tdep.c: Do not include "obstack.h".
4829 * h8300-tdep.c, h8500-tdep.c: Ditto.
4830 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4831 * valprint.c, v850-tdep.c: Ditto.
4832 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4833 * mn10200-tdep.c: Ditto.
4834
4835 * Makefile.in (z8k-tdep.o): Update dependencies.
4836 (m68hc11-tdep.o, valprint.o): Ditto.
4837 (v850-tdep.o, d10v-tdep.o): Ditto.
4838 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4839 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4840 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4841 (sh_opc_h, gdb_sim_sh_h): Define.
4842 (elf_sh_h, elf_bfd_h): Define.
4843 (opcode_m68hc11_h): Define.
4844 (OPCODES_SRC, OPCODES_DIR): define.
4845 (OPCODES): Use $(OPCODES_DIR).
4846 (gdb_sim_d10v_h): Rename sim_d10v_h.
4847 (gdb_sim_arm_h): Rename sim_arm_h.
4848
790c9cf0
KB
48492002-07-26 Kevin Buettner <kevinb@redhat.com>
4850
4851 * utils.c (host_pointer_to_address, address_to_host_pointer):
4852 Change internal_error() message to indicate function responsible
4853 for the error.
4854
9647fa49
KB
48552002-07-26 Kevin Buettner <kevinb@redhat.com>
4856
4857 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4858 calls to local_hex_string_custom().
4859
dabbe2c0
KB
48602002-07-26 Kevin Buettner <kevinb@redhat.com>
4861
4862 * irix5-nat.c: Move IRIX shared library support from here...
4863 * solib-irix.c: ...to here. Revised substantially to work with
4864 generic solib framework.
4865
b96d0a4e
KB
4866 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4867 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4868 * mips-irix-tdep.c: New file.
4869
313fb2f6
KB
4870 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4871 (mips-irix-tdep.o, solib-irix.o): New rules.
4872 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4873 solib-irix.o.
4874 * config/mips/irix6.mt (TDEPFILES): Likewise.
4875 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4876
ab2eaf26
KB
48772002-07-26 Kevin Buettner <kevinb@redhat.com>
4878
177e4768 4879 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4880 disabled (via ``#if 0'') includes.
4881
7244546a
KB
48822002-07-26 Kevin Buettner <kevinb@redhat.com>
4883
4884 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4885 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4886 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4887 Add support for the fpscr register.
4888 * rs6000-nat.c (regmap, fetch_inferior_registers)
4889 (store_inferior_registers, fetch_core_registers): Likewise.
4890
dd7be90a
KB
48912002-07-26 Kevin Buettner <kevinb@redhat.com>
4892
4893 * rs6000-nat.c (language.h): Include.
4894 (special_regs): Delete this array.
4895 (regmap): New function.
4896 (fetch_register, store_register): Use regmap() to map gdb
4897 register numbers to ptrace register numbers. Also, use
4898 outputs from regmap() to make decisions regarding type of
4899 ptrace() call to make. In particular, don't compare against
4900 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4901 (fetch_inferior_registers, store_inferior_registers): Where
4902 possible, obtain register numbers from tdep struct. Don't
4903 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4904 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4905 (LAST_UISA_SP_REGNUM): Delete.
4906
11bf77db
KB
49072002-07-25 Kevin Buettner <kevinb@redhat.com>
4908
4909 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4910 (fetch_registers, store_register, fetch_core_registers): Don't
4911 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4912 regcache_collect() as appropriate.
4913 (find_toc_address): Format hex address with local_hex_string().
4914
06afebeb
AC
49152002-07-25 Andrew Cagney <ac131313@redhat.com>
4916
4917 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4918 bfd/elf32-frv.c.
4919
8c554d79
TT
49202002-07-24 Tom Tromey <tromey@redhat.com>
4921
4922 * jv-exp.y: Marked all strings with _().
4923 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4924 internal_error.
4925 (MethodInvocation, CastExpression, parse_number, yyerror,
4926 java_type_from_name, push_expression_name, yylex): Typo fixes.
4927
e4c242d9
DJ
49282002-07-24 Daniel Jacobowitz <drow@mvista.com>
4929
4930 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4931 (tee_file_flush, tee_file_write, tee_file_fputs)
4932 (tee_file_isatty): New.
4933 * ui-file.h (tee_file_new): Add prototype.
4934
ebf56fd3
AS
49352002-07-24 Aidan Skinner <aidan@velvet.net>
4936
4937 * ada-lang.c: Change k&r style function definitions to prototyped
4938 form.
4939 * ada-typeprint.c: Change k&r style function definitions to prototyped
4940 form.
4941 * ada-valprint.c: Change k&r style function definitions to prototyped
4942 form.
4943
7fb623f7
AC
49442002-07-24 Andrew Cagney <cagney@redhat.com>
4945
4946 * README: Remove reference to remote-bug.
4947 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4948 remote-bug.c.
4949 (m88k-nat.o): Delete rule.
4950 (m88k-tdep.o): Delete rule.
4951 (remote-bug.o): Delete rule.
4952 * MAINTAINERS: Mark as obsolete.
4953 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4954 * m88k-tdep.c: Make file obsolete.
4955 * config/m88k/m88k.mh: Ditto.
4956 * config/m88k/delta88v4.mh: Ditto.
4957 * config/m88k/delta88v4.mt: Ditto.
4958 * config/m88k/delta88.mt: Ditto.
4959 * config/m88k/delta88.mh: Ditto.
4960 * remote-bug.c: Ditto.
4961 * config/m88k/tm-delta88.h: Ditto.
4962 * config/m88k/nm-delta88v4.h: Ditto.
4963 * config/m88k/xm-delta88.h: Ditto.
4964 * config/m88k/xm-dgux.h: Ditto.
4965 * config/m88k/tm-m88k.h: Ditto.
4966 * config/m88k/nm-m88k.h: Ditto.
4967 * config/m88k/tm-delta88v4.h: Ditto.
4968 * m88k-nat.c: Ditto.
4969 * cxux-nat.c: Ditto.
4970 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4971 and m88*-*-* obsolete.
4972 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4973 m88*-*-* obsolete.
4974
37611a2b
AC
49752002-07-24 Andrew Cagney <cagney@redhat.com>
4976
4977 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4978 constant. Same for local pointer variables.
4979 (extract_signed_integer): Ditto.
4980 * defs.h (extract_unsigned_integer): Update.
4981 (extract_signed_integer): Update.
4982
1aaa5f99
AC
49832002-07-24 Andrew Cagney <cagney@redhat.com>
4984
4985 * regcache.c (regcache_raw_write): Change buf parameter to a
4986 constant void pointer.
4987 (regcache_raw_read): Change buf parameter to a void pointer.
4988 (legacy_write_register_gen): Change myaddr parameter a constant
4989 void pointer.
4990 (supply_register): Change val parameter to a const void pointer.
4991 * regcache.h (regcache_raw_write): Update declaration.
4992 (regcache_raw_read): Update declaration.
4993 (supply_register): Update declaration.
4994
b4f5539f
TT
49952002-07-24 Tom Tromey <tromey@redhat.com>
4996
4997 * defs.h (gdb_readline_wrapper): Declare.
4998 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4999 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5000 * top.c (gdb_readline_wrapper): New function.
5001 (command_line_input): Use it.
5002
0818c12a
AC
50032002-07-24 Andrew Cagney <cagney@redhat.com>
5004
5005 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5006 regcache_read and regcache_write.
5007 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5008 * regcache.c: Update.
5009 * sh-tdep.c (sh64_push_arguments): Update comment.
5010 (sh_pseudo_register_read): Update.
5011 (sh_pseudo_register_write): Update.
5012 (sh4_register_read): Update.
5013 (sh4_register_write): Update.
5014 (sh64_pseudo_register_read): Update.
5015 (sh64_pseudo_register_write): Update.
5016 (sh64_register_read): Update.
5017 (sh64_register_write): Update.
5018 * i386-tdep.c (i386_extract_return_value): Update.
5019 (i386_extract_struct_value_address): Update.
5020 (i386_extract_return_value): Update.
5021 * blockframe.c (generic_read_register_dummy): Update.
5022 (generic_call_dummy_register_unwind): Update
5023 * infrun.c (write_inferior_status_register): Update.
5024
f7321c06
JB
50252002-07-23 Jim Blandy <jimb@redhat.com>
5026
5027 * parser-defs.h (expression_context_pc): Make this extern.
5028 (Thanks to Michael Snyder.)
5029
2037aebb
AC
50302002-07-23 Andrew Cagney <ac131313@redhat.com>
5031
5032 GDB 5.2.1 released from 5.2 branch.
5033 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5034 * README: Update to mention 5.2.1.
5035
66504d44
MS
50362002-07-23 Mark Salter <msalter@redhat.com>
5037
5038 * remote.c (remote_read_bytes): Fix check for error.
5039
27bae383
KB
50402002-07-22 Kevin Buettner <kevinb@redhat.com>
5041
5042 * aix-thread.c (language.h): Include.
5043 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5044 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5045 Print newlines at end of debug messages.
5046 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5047 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5048
50492002-07-22 Kevin Buettner <kevinb@redhat.com>
5050
5051 * aix-thread.c (ppc-tdep.h): Include.
5052 (special_register_p): New function.
5053 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5054 (store_regs_user_thread): Use register number information from
5055 gdbarch_tdep struct instead of hardcoded offsets relative to
5056 FIRST_UISA_SP_REGNUM.
5057 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5058 special_register_p() instead of using FPLAST_REGNUM and
5059 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5060 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5061 will be MQ's register number.
5062
50632002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5064
5065 * aix-thread.c (ops): Rename to aix_thread_ops.
5066 (base_ops): Rename to base_target.
5067 (ops_attach): Rename to aix_thread_attach.
5068 (ops_detach): Rename to aix_thread_detach.
5069 (ops_resume): Rename to aix_thread_detach.
5070 (ops_wait): Rename to aix_thread_wait.
5071 (ops_kill): Rename to aix_thread_kill.
5072 (init_ops): Rename to init_aix_thread_ops.
5073 (ops_fetch_register): Rename to aix_thread_fetch_register.
5074 (ops_store_register): Rename to aix_thread_store_register.
5075 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5076 (ops_thread_alive): Rename to aix_thread_thread_alive.
5077 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5078 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5079 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5080 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5081 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5082 (store_regs_lib): Rename to store_regs_user_thread.
5083 (store_regs_kern): Rename to store_regs_kernel_thread.
5084
27bae383 50852002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5086
5087 * aix-thread.c (ops_prepare_to_store): Eliminate.
5088 (init_ops): Don't initialize ops.prepare_to_store.
5089 (store_regs_kern): Pre-fetch register buffers from child,
5090 because some registers may not be in the cache. Copy
5091 regs from register cache only if they are cached.
5092 (store_regs_lib): Copy regs from register cache only
5093 if they are cached.
5094 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5095 fill_gprs64): Ditto.
5096
61c5da0b
KB
50972002-07-22 Kevin Buettner <kevinb@redhat.com>
5098
5099 * aix-thread.c (gdb_assert.h): Include.
5100 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5101 register sizes (from register cache) match size of buffer holding
5102 register data.
5103 (fill_sprs32): Change parameter types to match those in the ptrace()
5104 buffer.
5105 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5106 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5107
51082002-07-22 Michael Snyder <msnyder@redhat.com>
5109
5110 * aix-thread.c (supply_sprs64): Cosmetic change.
5111 (supply_sprs32): Cosmetic change.
5112 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5113 (fill_sprs64): Use regcache_collect instead of read_register.
5114 (store_regs_lib): Use regcache_collect instead of
5115 read_register. Use fill_sprs32 instead of fill_sprs64,
5116 if debugging a 32-bit architecture.
5117 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5118 out of the register cache, instead of passing a pointer into
5119 the register cache directly to ptrace. Use regcache_collect
5120 insteaad of read_register.
5121 (ops_prepare_to_store): Use target_read_registers instead
5122 of read_register_bytes.
5123
36479eb1
AS
51242002-07-20 Aidan Skinner <aidan@velvet.net>
5125
5126 * MAINTAINERS: Add self under write after approval.
5127
80ae6ee2
AS
51282002-07-20 Aidan Skinner <aidan@velvet.net>
5129
5130 * ada-tasks.c: Change k&r style function definitions to prototyped
5131 form.
5132
8a8ab2b9
AC
51332002-07-19 Andrew Cagney <ac131313@redhat.com>
5134
5135 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5136 * x86-64-tdep.c: Include "objfiles.h".
5137 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5138 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5139
fb16b900
ML
51402002-07-17 Michal Ludvig <michal@suse.cz>
5141
5142 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5143 (update_context): Initialise cfa variable.
5144
0fe7bf7b
MS
51452002-07-17 Michael Snyder <msnyder@redhat.com>
5146
5147 * aix-thread.c: Shorten some long lines.
5148 Bring comments into line with code spec.
5149
488f131b
JB
51502002-07-18 Joel Brobecker <brobecker@gnat.com>
5151
5152 * infrun.c: Re-indent using gdb_indent.sh.
5153
46c415d2
JB
51542002-07-18 Joel Brobecker <brobecker@gnat.com>
5155
5156 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5157 Leave the indentation temporarily untouched, to minimize the diffs.
5158
cdecafbe
EZ
51592002-07-18 Elena Zannoni <ezannoni@redhat.com>
5160
5161 * stabsread.c: Make os9k sections of the code obsolete,
5162 for real this time.
5163 * stabsread.h: Make os9k sections of the code obsolete.
5164
7b6aa020
ML
51652002-07-18 Michal Ludvig <mludvig@suse.cz>
5166
09ec9b38
ML
5167 * linux-low.c (regsets_store_inferior_registers): Add free()
5168 at the end of a loop to prevent memory leak.
5169 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5170 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5171 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5172 line a comment.
4894ac5d 5173 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5174
233282cd
JB
51752002-07-17 Jim Blandy <jimb@redhat.com>
5176
5177 * macrocmd.c (info_macro_command): Remove newline from error
5178 message.
5179
7b6aa020 51802002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5181
5182 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5183 (sh_gdbarch_init): Use it for sh-dsp.
5184
f7ef9339
KB
51852002-07-16 Kevin Buettner <kevinb@redhat.com>
5186
5187 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5188 64-bit DWARF2 format.
5189
8dd72958
JB
51902002-07-16 Joel Brobecker <brobecker@gnat.com>
5191
5192 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5193 <sys/proc.h> when not available.
5194
a99a9e1b
AC
51952002-07-16 Andrew Cagney <ac131313@redhat.com>
5196
5197 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5198 * stabsread.c: Make os9k sections of the code obsolete.
5199 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5200 * config/i386/i386os9k.mt: Make file obsolete.
5201 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5202 (COMMON_OBS): Remove os9kread.o
5203 (SFILES): Remove os9kread.c.
5204 (os9kread.o, remote-os9k.o): Make target obsolete.
5205 * remote-os9k.c: Make file obsolete.
5206 * os9kread.c: Make file obsolete.
5207 * Makefile.in
5208
7a3085c1
AC
52092002-07-16 Andrew Cagney <ac131313@redhat.com>
5210
5211 * NEWS: Mention that the FR30 has been made obsolete.
5212 * fr30-tdep.c: Make file obsolete.
5213 * config/fr30/tm-fr30.h: Ditto.
5214 * config/fr30/fr30.mt: Ditto.
5215 * configure.tgt: Make fr30-*-elf obsolete.
5216 * MAINTAINERS: Make fr30-elf obsolete.
5217
28a93f5a
PM
52182002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5219
5220 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5221 found is not inside a section.
5222
be006b8b
KB
52232002-07-15 Kevin Buettner <kevinb@redhat.com>
5224
5225 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5226 strerror().
5227 (pdc_realloc): Use xrealloc() instead of realloc().
5228
14fa3751
KB
52292002-07-15 Kevin Buettner <kevinb@redhat.com>
5230
5231 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5232 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5233 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5234 macros.
5235
42cc437f
KB
52362002-07-15 Kevin Buettner <kevinb@redhat.com>
5237
5238 * aix-thread.c (ptrace_check): Eliminate goto.
5239 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5240 problem.
5241
8e2c28d4
KB
52422002-07-15 Kevin Buettner <kevinb@redhat.com>
5243
5244 * aix-thread.c (gdbcmd.h): Include.
5245 (DEBUG, DBG, DBG2, dbg): Eliminate.
5246 (debug_aix_thread): New static global.
5247 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5248 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5249 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5250 invocations to DBG and DBG2 macros to test against
5251 ``debug_aix_thread'' and call fprintf_unfiltered().
5252 (_initialize_aix_thread): Add new command "set debug aix-thread".
5253
30413464
AC
52542002-07-15 Andrew Cagney <ac131313@redhat.com>
5255
5256 From Gerhard Tonn <TON@de.ibm.com>:
5257 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5258 instead of supply_register.
5259
7c43edc1
AC
52602002-07-15 Andrew Cagney <ac131313@redhat.com>
5261
5262 * dwarf2cfi.c: Include "gdb_assert.h".
5263 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5264 non-NULL.
5265 (update_context): Do not use __func__. Add missing ``break''.
5266 (update_context): Do not use __func__.
5267
9364a0ef
EZ
52682002-07-15 Elena Zannoni <ezannoni@redhat.com>
5269
5270 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5271 and its setting. Set gdbarch instruction printing functions
5272 directly. For non-rs6000 case use new function
5273 gdb_print_insn_powerpc.
5274 (gdb_print_insn_powerpc): New function.
5275
3fbeef0b
AC
52762002-07-13 Andrew Cagney <ac131313@redhat.com>
5277
92eb23c5 5278 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5279 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5280 * configure.tgt: Mark d30v-*-* as obsolete.
5281 * d30v-tdep.c: Mark file as obsolete.
5282 * config/d30v/d30v.mt: Ditto.
5283 * config/d30v/tm-d30v.h: Ditto.
5284
aacb1f0a
AS
52852002-07-13 Aidan Skinner <aidan@velvet.net>
5286
5287 * ada-tasks.c (add_task_entry): replace calls to
5288 malloc() with xmalloc
5289 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5290
5291 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5292 ada_finish_decode_line_1, all_sals_for_line
5293 ada_breakpoint_rewrite): replace calls to free() with xfree()
5294
c11d79f2
KB
52952002-07-12 Kevin Buettner <kevinb@redhat.com>
5296
5297 From Nicholas Duffek (with minor changes by Martin Hunt,
5298 Louis Hamilton, and Kevin Buettner):
5299 * aix-thread.c: New file.
5300
8e19ed76
PS
53012002-07-12 Petr Sorfa <petrs@caldera.com>
5302
5303 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5304 complaint for invalid attribute class or form.
5305 (read_func_scope): DW_AT_frame_base
5306 better handling of DW_AT_block*.
5307 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5308 better handling of DW_AT_block*.
5309 (read_common_block): DW_AT_location
5310 better handling of DW_AT_block*.
5311 (read_partial_die): DW_AT_location better handling
5312 of DW_AT_block*.
5313 (new_symbol): DW_AT_external better handling of
5314 DW_AT_block*. Proper initialization of variable
5315 "addr".
5316 (attr_form_is_block): New function that returns true
5317 if the attribute's form is of DW_FORM_block*.
5318
295401f7
DJ
53192002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5320
5321 * valops.c (find_method_list): Remove comment about
5322 removed STATIC_MEMFUNCP argument.
5323 (value_find_oload_method_list): Likewise.
5324
e42dc924
KB
53252002-07-12 Kevin Buettner <kevinb@redhat.com>
5326
5327 From Nicholas Duffek:
5328 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5329 target_new_objfile_hook.
5330
6904b546
KB
53312002-07-12 Kevin Buettner <kevinb@redhat.com>
5332
5333 From Nicholas Duffek:
5334 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5335 csect.
5336
53fe9346
AC
53372002-07-12 Andrew Cagney <cagney@redhat.com>
5338
5339 * MAINTAINERS: Mention --enable-sim-build-warnings.
5340 (m68hc11-elf): Disable sim build warnings.
5341 (m32r-elf): Mark as broken obsolete candidate.
5342 (x86_64-linux-gnu): Mark as buildable with -Werror.
5343 (arm-elf): Change -w to ``,'' which enables warnings but not
5344 -Werror.
5345
af5f3db6
AC
53462002-07-12 Andrew Cagney <ac131313@redhat.com>
5347
5348 * bcache.h: Update copyright.
5349 (struct bstring, struct bcache): Move definition to "bcache.c".
5350 Replaced by opaque declaration.
5351 (bcache_xfree): Replace free_bcache.
5352 (bcache_xmalloc, bcache_memory_used): Declare.
5353
5354 * bcache.c: Update copyright.
5355 (struct bstring, struct bcache): Moved to here from "bcache.h".
5356 Update comments.
5357 (bcache_xmalloc, bcache_memory_used): New functions.
5358 (bcache_xfree): Replace function free_bcache.
5359
5360 * Makefile.in (objfiles.o): Add $(bcache_h).
5361 (objfiles_h): Remove $(bcache_h).
5362 (symfile.o): Add $(bcache_h).
5363
5364 * symmisc.c: Update copyright.
5365 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5366 (print_objfile_statistics): Use bcache_memory_used.
5367
5368 * symfile.c: Include "bcache.h".
5369 (reread_symbols): Use bcache_xfree.
5370 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5371 (add_psymbol_to_list): Pass psymbol_cache by value.
5372 (add_psymbol_with_dem_name_to_list): Ditto.
5373
5374 * objfiles.h: Update copyright.
5375 (struct bcache): Declare opaque. Do not include "bcache.h".
5376 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5377 bcache'' pointers.
5378 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5379
5380 * objfiles.c: Include "bcache.h". Update copyright.
5381 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5382 macro_cache.
5383 (free_objfile): Use bcache_xfree.
5384
444199e7
GS
53852002-07-11 Grace Sainsbury <graces@redhat.com>
5386
5387 * monitor.c (monitor_fetch_register): Make name a constant.
5388 (monitor_store_register): Same.
5389
261397f8
DJ
53902002-07-11 Daniel Jacobowitz <drow@mvista.com>
5391
5392 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5393 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5394 (finish_block) For non-function blocks, hash the symbol table. For
5395 function blocks, mark the symbol table as unhashed.
5396 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5397 (msymbol_hash_iw): Likewise.
5398 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5399 value.
5400 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5401 (lookup_minimal_symbol): Likewise for both.
5402 * symtab.h (struct block): Add `hashtable' flag. Comment the
5403 hashtable.
5404 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5405 (ALL_BLOCK_SYMBOLS): Update.
5406 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5407 (struct symbol): Add `hash_next' pointer.
5408 * symtab.c (lookup_block_symbol): Search using the hash table when
5409 possible.
5410 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5411 (search_symbols, find_addr_symbol): Likewise.
5412
5413 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5414 (read_dst_symtab): Likewise.
5415 * jv-lang.c (get_java_class_symtab): Likewise.
5416 * mdebugread.c: Include "gdb_assert.h".
5417 (shrink_block): Assert that the block being modified is not hashed.
5418 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5419 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5420 symbols.
5421 (dump_symtab): Recognize hashed blocks.
5422 * printcmd.c (print_frame_args): Assert that function blocks do not
5423 have hashed symbol tables.
5424 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5425 (fill_in_ada_prototype, debug_print_block): Likewise.
5426 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5427
6f0eaa01
CV
54282002-07-11 Corinna Vinschen <vinschen@redhat.com>
5429
5430 * stack.c (print_frame): Use result of frame_address_in_block()
5431 instead of fi->pc when evaluating symbols.
5432 (backtrace_command_1): Ditto.
5433
a208b0cb
AC
54342002-07-11 Andrew Cagney <cagney@redhat.com>
5435
5436 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5437 Make static.
5438
5439 * arm-tdep.c (arm_register_name): Make return type constant.
5440
a6b6b089
AC
54412002-07-10 Andrew Cagney <ac131313@redhat.com>
5442
5ae5f592
AC
5443 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5444 prototype.
5445 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5446 * s390-tdep.c (s390_fp_regnum): Ditto.
5447 (s390_read_fp): Ditto.
5448 (s390_pop_frame): Ditto.
5449 (_initialize_s390_tdep): Ditto.
5450 * remote.c (get_remote_state): Ditto.
5451 * procfs.c (mappingflags): Ditto.
5452 * memattr.c (_initialize_mem): Ditto.
5453 * mcore-tdep.c (mcore_pop_frame): Ditto.
5454 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5455 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5456 * language.c (set_case_str): Ditto.
5457 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5458 * frv-tdep.c (new_variant): Ditto.
5459 (frv_stopped_data_address): Ditto.
5460 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5461 (context_alloc): Ditto.
5462 (frame_state_alloc): Ditto.
5463 (unwind_tmp_obstack_init): Ditto.
5464 (unwind_tmp_obstack_free): Ditto.
5465 (cfi_read_fp): Ditto.
5466 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5467 (cris_pop_frame): Ditto.
5468 * c-lang.c (scanning_macro_expansion): Ditto.
5469 (finished_macro_expansion): Ditto.
5470 (c_preprocess_and_parse): Ditto.
5471 * gdbarch.sh: Ditto.
5472 * gdbarch.h, gdbarch.c: Regenerate.
5473 * config/mn10200/tm-mn10200.h: Adjust indentation.
5474 * target.c: Adjust indentation.
5475 * symtab.h: Adjust indentation.
5476 * stabsread.h: Adjust indentation.
5477 * remote-es.c: Adjust indentation.
5478 * os9kread.c: Adjust indentation.
5479
54802002-07-10 Andrew Cagney <ac131313@redhat.com>
5481
a6b6b089
AC
5482 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5483 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5484
a1789893
GS
54852002-07-10 Grace Sainsbury <graces@redhat.com>
5486
5487 * NEWS: Mention m68k, mcore multi-arching.
5488 * MAINTAINERS: Change status of m68k, mcore to reflect
5489 multi-arching.
5490
02f0d45d
DJ
54912002-07-10 Daniel Jacobowitz <drow@mvista.com>
5492
5493 * valops.c (find_overload_match): Free oload_syms.
5494
f15f768e
JB
54952002-07-09 Joel Brobecker <brobecker@gnat.com>
5496
5497 Define HAVE_SYS_PROC_H if sys/proc.h exists
5498 * configure.in: Add check for sys/proc.h
5499 * config.in: Regenerate.
5500 * configure: Regenerate.
5501
902a7139
GS
55022002-07-09 Grace Sainsbury <graces@redhat.com>
5503
5504 * config/m68k/tm-m68k.h: Remove macros wrapped in
5505 #if !GDB_MULTI_ARCH.
5506
a534e424
AC
55072002-07-08 Andrew Cagney <ac131313@redhat.com>
5508
5509 * config.in, configure: Regenerate.
5510
9b94f7bf
MK
55112002-07-08 Mark Kettenis <kettenis@gnu.org>
5512
5513 * dwarf2cfi.c: Include "gcore.h".
5514 (execute_stack_op): Fix implementation of the
5515 DW_OP_deref and DW_OP_deref_size operators by letting do their
5516 lookup in the target.
5517
1d34db41
MK
55182002-07-07 Mark Kettenis <kettenis@gnu.org>
5519
5520 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5521 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5522 tdep->sc_sp_offset.
5523
79d5b63a
DJ
55242002-07-05 Daniel Jacobowitz <drow@mvista.com>
5525
5526 Fix PR gdb/595, gdb/602
5527 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5528 Don't call value_cast, just read the vtable pointer; update comments
5529 to match.
5530
3bb912e8
GS
55312002-07-05 Grace Sainsbury <graces@redhat.com>
5532
5533 * config/mcore/tm-mcore.h: Remove file.
5534 * config/mcore/mcore.mt: Remove definition of TM_FILE
5535 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5536
ca39387d
MK
55372002-07-05 Mark Kettenis <kettenis@gnu.org>
5538
5539 * i386bsd-tdep.c: Include "gdb_string.h".
5540
efdc1108
GS
55412002-07-04 Grace Sainsbury <graces@redhat.com>
5542
5543 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5544 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5545 mcore-tdep.
5546 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5547 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5548 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5549 (RETVAL_REGNUM): Move macros from tm-mcore.h
5550 (mcore_reg_struct_has_addr): New function.
5551 (mcore_gdbarch_init): Added initializations for the macros removed
5552 from tm-mcore.h.
5553
bb21884d
MK
55542002-07-04 Mark Kettenis <kettenis@gnu.org>
5555
5556 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5557 traditonal string branding within the ELF header.
5558
228c6d41
DJ
55592002-07-04 Daniel Jacobowitz <drow@mvista.com>
5560
5561 * symtab.c (remove_params): New function.
5562 (make_symbol_overload_list): Use it instead of cplus_demangle.
5563 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5564
2404952e
MK
55652002-07-04 Mark Kettenis <kettenis@gnu.org>
5566
e5e4acad
MK
5567 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5568
baadce09
MK
5569 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5570 New variables.
5571 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5572 and tdep->sigtramp_end.
5573 * i386obsd-nat.c: New file.
5574 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5575
2404952e
MK
5576 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5577 Don't call get_current_frame().
5578
9b4f1ba7
PM
55792002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5580
5581 * i386-nat.c (child_post_startup_inferior): New function
5582 calling i386_cleanup_dregs if
5583 I386_USE_GENERIC_WATCHPOINTS is defined.
5584 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5585 conditional to acknowledge that i386-nat.c has its
5586 own child_post_startup_inferior function.
5587
c0d1d883
MK
55882002-07-04 Mark Kettenis <kettenis@gnu.org>
5589
00f8375e
MK
5590 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5591 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5592 instead of MAX_REGISTER_RAW_SIZE.
5593 (i386_extract_return_value, i386_extract_struct_value_address):
5594 Convert to use regcache.
5595 (i386_gdbarch_init): Set max_register_raw_size and
5596 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5597 Set extract_return_value and extract_struct_value_address instead
5598 of their deprecated variants.
5599
c0d1d883
MK
5600 Convert i386 target to generic dummy frames.
5601 * i386-tdep.c: Include "symfile.h".
5602 (i386_frameless_signal_p): Consider a function to be frameless if
5603 the pc points at the first instruction of the function.
5604 (i386_frame_chain): Handle (generic) call dummies.
5605 (i386_frame_saved_pc): Likewise.
5606 (i386_frame_init_saved_regs): Remove code dealing with call
5607 dummies on the stack.
5608 (i386_push_dummy_frame): Removed.
5609 (i386_call_dummy_words): Removed.
5610 (i386_fix_call_dummy): Removed.
5611 (i386_push_return_address): New function.
5612 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5613 parameter, and don't call get_current_frame.
5614 (i386_pop_frame): New function.
5615 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5616 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5617 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5618 call_dummy_length to 0, set call_dummy_words to NULL, set
5619 sizeof_call_dummy_words to 0, set fix_call_dummy to
5620 generic_fix_call_dummy, set pc_in_call_dummy to
5621 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5622 generic_push_dummy_frame, set push_return_address to
5623 i386_push_return_address and set frame_chain_valid to
5624 generic_file_frame_chain_valid.
5625
049ee0e4
AC
56262002-07-03 Andrew Cagney <ac131313@redhat.com>
5627
5628 * gdbarch.sh (struct regcache): Add opaque declaration.
5629 (EXTRACT_RETURN_VALUE): New architecture method.
5630 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5631 * gdbarch.h, gdbarch.c: Regenerate.
5632 * arch-utils.c (legacy_extract_return_value): New function.
5633 * arch-utils.h (legacy_extract_return_value): Declare.
5634 * values.c (value_being_returned): Re-enable code handling
5635 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5636 deprecated_grub_regcache_for_registers call to block handling
5637 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5638 (EXTRACT_RETURN_VALUE): Do not define.
5639
4e0d9804
GS
56402002-07-03 Grace Sainsbury <graces@redhat.com>
5641
5642 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5643 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5644 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5645 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5646 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5647 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5648 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5649 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5650 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5651 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5652 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5653 argument so the function fits the prototype in the architecture
5654 vector.
5655 (mcore_pop_frame): Remove argument so the function fits the
5656 prototype. Use get_current_frame instead of the argument.
5657 (mcore_push_arguments): Change type of struct_return so the
5658 function can be used in the architecture vector.
5659 (mcore_store_struct_return): Add.
5660 (mcore_frame_init_saved_regs): Add.
5661 (mcore_gdbarch_init): Add function calls to replace the macros
5662 removed from tm-mcore.h
5663
36160dc4
AC
56642002-07-03 Andrew Cagney <ac131313@redhat.com>
5665
5666 * infcmd.c (print_return_value): Remove compatibility code calling
5667 deprecated_grub_regcache_for_registers.
5668
5669 * values.c: Include "regcache.h".
5670 (value_being_returned): Update. Use
5671 deprecated_grub_regcache_for_registers to extract the register
5672 buffer address.
5673 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5674 ``struct regcache''.
5675 * Makefile.in (values.o): Add dependency on $(regcache_h).
5676
5677 * inferior.h (run_stack_dummy): Change type of second parameter to
5678 a ``struct regcache''.
5679 * valops.c (hand_function_call): Change type of retbuf to ``struct
5680 regcache''. Allocate using regcache_xmalloc, clean using
5681 make_cleanup_regcache_xfree.
5682 * infcmd.c (run_stack_dummy): Update. Use
5683 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5684
5685 * regcache.c (do_regcache_xfree): New function.
5686 (make_cleanup_regcache_xfree): New function.
5687 * regcache.h (make_cleanup_regcache_xfree): Declare.
5688
e64d9b3d
MH
56892002-07-03 Martin M. Hunt <hunt@redhat.com>
5690
4dd79c29
MH
5691 * event-top.c (command_line_handler): Don't read past
5692 beginning of buffer.
e64d9b3d 5693
4dd79c29
MH
56942002-07-03 Martin M. Hunt <hunt@redhat.com>
5695
e64d9b3d
MH
5696 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5697 struct frame_id.
5698 (varobj_create): Store frame_id for root.
5699 (varobj_gen_name): Use xasprintf.
5700 (varobj_update): Save and restore frame using get_frame_id() and
5701 frame_find_by_id().
5702 (create_child): Use xasprintf.
5703 (new_root_variable): Initialize frame_id.
5704 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5705 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5706 to prevent memory leak.
5707
26e6c56a
AC
57082002-07-03 Andrew Cagney <ac131313@redhat.com>
5709
5710 * valops.c (hand_function_call): Move declaration of retbuf to
5711 start of function, allocate using malloc, add a cleanup but before
5712 the inf_status cleanup, cleanup the buffer. Rename local variable
5713 old_chain to inf_status_cleanup.
5714
f436dd25
MH
57152002-07-03 Martin M. Hunt <hunt@redhat.com>
5716
5717 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5718
5719 * cli/cli-decode.c (cmd_func_p): New function.
5720 (cmd_func): New function.
5721
5722 * command.h: Add cmd_func() and cmd_func_p().
5723
4cfe2084
GS
57242002-07-03 Grace Sainsbury <graces@redhat.com>
5725
5726 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5727 (REGISTER_SIZE): Remove.
5728 (MAX_REGISTER_RAW_SIZE): Remove.
5729 (REGISTER_VIRTUAL_TYPE): Remove.
5730 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5731 (REGISTER_NAME): Remove.
5732 (USE_GENERIC_DUMMY_FRAMES): Remove.
5733 (CALL_DUMMY): Remove.
5734 (CALL_DUMMY_START_OFFSET): Remove.
5735 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5736 (CALL_DUMMY_LOCATION): Remove.
5737 (FIX_CALL_DUMMY): Remove.
5738 (CALL_DUMMY_ADDRESS): Remove.
5739 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5740 (SAVE_DUMMY_FRAME_TOS): Remove.
5741 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5742 (mcore_register_virtual_type): New function.
5743 (mcore_register_byte): New function.
5744 (mcore_register_size): New function.
5745 (mcore_register_name): New function.
5746 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5747 macros removed from tm-mcore.h.
5748 (mcore_dump_tdep): Add.
5749 (_initialize_mcore_tdep): Add gdbarch_register call.
5750
4fd667e9
MK
57512002-07-03 Mark Kettenis <kettenis@gnu.org>
5752
5753 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5754 frameless_look_for_prologue, such that we actually call this
5755 function.
5756
42f99ac2
JB
57572002-07-02 Joel Brobecker <brobecker@gnat.com>
5758
5759 * frame.h (frame_address_in_block): New function.
5760
5761 * blockframe.c (frame_address_in_block): New function extracted
5762 from get_frame_block().
5763 (get_frame_block): Use frame_address_in_block().
5764 (block_innermost_frame): Use frame_address_in_block() to match
5765 the frame pc address against the block boundaries rather than
5766 the frame pc directly. This prevents a failure when a frame pc
5767 is actually a return-address pointing immediately after the end
5768 of the given block.
5769
103a1597 57702002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5771
5772 * MAINTAINERS: Add self under write after approval.
5773
57742002-07-02 Grace Sainsbury <graces@redhat.com>
5775
103a1597
GS
5776 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5777 used in architecture vector. The default is
5778 m68k_local_breakpoint_from_pc.
5779 (m68k_local_breakpoint_from_pc): Add.
5780 (enum): Add register numbers from tm-m68k.h.
5781 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5782 vector.
5783 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5784 GDB_MULTI_ARCH_PARTIAL.
5785 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5786 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5787 m68k-tdep.c.
5788 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5789 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5790 to enum in m68k-tdep.c
5791
7a5a0534
JB
57922002-07-02 Joel Brobecker <brobecker@gnat.com>
5793
5794 * solib-osf.c (open_map): Compute the list of shared libraries
5795 loaded by the inferior, rather than the list of libraries loaded
5796 by GDB itself. Otherwise, GDB ends up reading the symbols from
5797 the wrong shared libraries...
5798
6f558d74
MK
57992002-07-02 Mark Kettenis <kettenis@gnu.org>
5800
b7d15bf7
MK
5801 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5802 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5803 macros.
5804 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5805 Remove functions.
5806 (FRAMELESS_SIGNAL): Remove function.
5807 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5808 i386_linux_saved_pc_after_call): Removed.
5809 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5810 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5811 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5812
6bff26de
MK
5813 * i386-tdep.c (i386_frameless_signal_p): New function.
5814 (i386_frame_chain): Deal with frameless signals.
5815 (i386_sigtramp_saved_sp): New function.
5816 (i386_frame_saved_pc): Deal with frameless signals.
5817 (i386_saved_pc_after_call): Make sure the correct value is
5818 returned just after entry into a sigtramp.
5819 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5820 i386fbsd4_sc_sp_offset): New variables.
5821 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5822 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5823 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5824 similiar to what we already did for sc_pc_offset.
5825 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5826 tdep->sc_sp_offset.
5827
6f558d74
MK
5828 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5829
145564b7
ML
58302002-07-02 Michal Ludvig <mludvig@suse.cz>
5831
5832 * config/i386/tm-x86-64linux.h: New.
5833 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5834 definitions.
5835 * config/i386/nm-x86-64.h: Rename to ...
5836 * config/i386/nm-x86-64linux.h: ... this one.
5837 * config/i386/x86-64linux.mh: Reflect the above change.
5838
3a1e71e3
MK
58392002-07-01 Mark Kettenis <kettenis@gnu.org>
5840
21d0e8a4
MK
5841 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5842 with sigcontext_addr. Add sc_sp_offset.
5843 (i386bsd_sigtramp_saved_pc): Remove prototype.
5844 (i386bsd_sicontext_addr): Add prototype.
5845 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5846 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5847 (i386_svr4_sigtramp_saved_pc): Removed.
5848 (i386_svr4_sigcontext_addr): New function.
5849 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5850 Initialize tdep->sigcontext_addr instead. Initialize
5851 tdep->sc_pc_offset and tdep->sc_sp_offset.
5852 (i386_gdbarch_init): Likewise.
5853 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5854 any more.
5855 (i386bsd_sigtramp_saved_pc): Remove function.
5856 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5857 Initialize tdep->sigcontext_addr instead. Initialize
5858 tdep->sc_pc_offset.
5859 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5860 of tdep->sigtramp_saved_pc.
5861 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5862 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5863 instead.
5864
3a1e71e3
MK
5865 * i386-tdep.c (i386_frameless_function_invocation,
5866 i386_frame_num_args, i386_frame_init_saved_regs,
5867 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5868 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5869 i386_extract_return_value, i386_store_return_value,
5870 i386_extract_struct_value_address, i386_register_virtual_type,
5871 i386_register_convertible, i386_register_convert_to_virtual,
5872 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5873 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5874 static.
5875
52e9098c
MK
58762002-07-01 Mark Kettenis <kettenis@gnu.org>
5877
77b13a25
MK
5878 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5879
52e9098c
MK
5880 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5881 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5882 this macro. Include "value.h".
5883
1b372fff
AS
58842002-06-30 Aidan Skinner <aidan@velvet.net>
5885
5886 * ada-exp.tab.c: remove as it's a generated file
5887 * ada-lex.c: remove as it's a generated file
5888
9c5045b5
MK
58892002-06-30 Mark Kettenis <kettenis@gnu.org>
5890
4a93c5bb
MK
5891 * config/i386/tm-i386.h (struct frame_info, struct
5892 frame_saved_regs, struct value, struct type): Remove forward
5893 declarations.
5894
322d4fe0
MK
5895 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5896 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5897 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5898 (FILL_FPXREGSET): Define.
5899
fdd8263d
MK
5900 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5901
482e577b
MK
5902 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5903 i[3456]86-*-netbsd* case.
5904 * config/i386/tm-obsd.h: Removed.
5905 * config/i386/obsd.mt: Removed.
5906 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5907 core-aout.o.
5908 (MH_CFLAGS): Add -DYYDEBUG=0.
5909
6916549a
MK
5910 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5911 i386nbsd_sc_pc_offset on OpenBSD too.
5912
9c5045b5
MK
5913 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5914 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5915 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5916 define.
5917 * i386bsd-tdep.c: Include "arch-utils.h".
5918 (i386bsd_aout_in_solib_call_trampoline): New function.
5919 (i386bsd_init_abi): Set in_solib_call_trampoline to
5920 i386bsd_aout_in_solib_call_trampoline.
5921 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5922 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5923
aa84d1bb
AC
59242002-06-28 Andrew Cagney <ac131313@redhat.com>
5925
5926 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5927 (struct obstack, struct bcache): Add opaque declarations.
5928 * Makefile.in (macrotab_h): Update
5929
b4d83933
AC
59302002-06-28 Andrew Cagney <ac131313@redhat.com>
5931
5932 * blockframe.c (generic_find_dummy_frame): Change return type to
5933 ``struct regcache''.
5934 (struct dummy_frame): Replace field ``registers'' with regcache, a
5935 struct regcache object.
5936 (generic_find_dummy_frame): Update.
5937 (generic_push_dummy_frame): Update. Use regcache_xfree,
5938 regcache_xmalloc and regcache_cpy.
5939 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5940 regcache_xfree.
5941 (deprecated_generic_find_dummy_frame): Update.
5942 (generic_read_register_dummy): Update. Use
5943 regcache_read_as_address.
5944 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5945 (generic_get_saved_register): Update. Use regcache_read.
5946
08c0b5bc
AC
59472002-06-28 Andrew Cagney <ac131313@redhat.com>
5948
5949 * Makefile.in (objfiles_h): Add $(bcache_h).
5950 * objfiles.h: Include "bcache.h".
5951
5952 * Makefile.in (symtab_h): Remove $(bcache_h).
5953 * symtab.h: Do not include "bcache.h".
5954
1f89801a
AC
59552002-06-28 Andrew Cagney <ac131313@redhat.com>
5956
5957 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5958 generic_func_frame_chain_valid.
5959
b9644b58
DB
59602002-06-28 David O'Brien <obrien@FreeBSD.org>
5961
5962 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5963 * config/i386/tm-fbsd.h: Likewise.
5964
dd486634
AC
59652002-06-28 Andrew Cagney <ac131313@redhat.com>
5966
5967 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5968 generic_unwind_get_saved_register.
5969
0b434a00
AC
59702002-06-27 Andrew Cagney <ac131313@redhat.com>
5971
5972 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5973 * regcache.c (supply_register): Add missing argument to
5974 register_buffer call.
5975
f30e5a77
AC
59762002-06-27 Andrew Cagney <ac131313@redhat.com>
5977
5978 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5979 Solaris /bin/grep does not not like it. From Peter Schauer.
5980
9f064c95
TT
59812002-06-26 Tom Tromey <tromey@redhat.com>
5982
5983 * command.h (add_setshow_cmd): Declare.
5984 (add_setshow_cmd_full): Declare.
5985 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5986 returns void. Use add_setshow_cmd_full.
5987 (add_setshow_cmd_full): New function.
5988 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5989 (add_setshow_boolean_cmd): Likewise.
5990
099c7589
JT
59912002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5992
5993 * config/vax/tm-vax.h: Protect from multiple inclusion.
5994 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5995 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5996 * config/vax/tm-vaxbsd.h: ...here. New file.
5997 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5998
1d049c5e
JT
59992002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6000
6001 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6002 (BELIEVE_PCC_PROMOTION): Remove.
6003 (AP_REGNUM): Move to...
6004 * config/vax/nm-vax.h: ...here.
6005 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6006 (vax_breakpoint_from_pc): New function.
6007 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6008 and gdbarch_believe_pcc_promotion.
6009
4791e091
JT
60102002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6011
6012 * Makefile.in (vax_tdep_h): Define.
6013 (vax-tdep.o): Use $(vax_tdep_h).
6014 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6015 (vax_dump_tdep): New function.
6016 (_initialize_vax_tdep): Register vax_dump_tdep.
6017 * vax-tdep.h: Include osabi.h.
6018 (struct gdbarch_tdep): New.
6019
da130f98
AC
60202002-06-26 Andrew Cagney <cagney@redhat.com>
6021
6022 * frame.h (deprecated_generic_find_dummy_frame): Rename
6023 generic_find_dummy_frame.
6024 * blockframe.c (generic_find_dummy_frame): Make static.
6025 (deprecated_generic_find_dummy_frame): New function.
6026 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6027 generic_find_dummy_frame with deprecated_find_dummy_frame.
6028 (sh64_nofp_frame_init_saved_regs): Ditto.
6029 (sh_fp_frame_init_saved_regs): Ditto.
6030 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6031 (s390_frame_chain): Ditto.
6032 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6033
6300c360
GS
60342002-06-26 Grace Sainsbury <graces@redhat.com>
6035
6036 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6037 gdbarch vector are at the top.
6038 (NUM_REGS): Remove.
6039 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6040 (FRAME_ARGS_ADDRESS): Remove.
6041 (FRAME_LOCALS_ADDRESS): Remove.
6042 (FRAME_NUM_ARGS): Remove.
6043 (FRAME_ARGS_SKIP): Remove.
6044 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6045 (m68k_gdbarch_init): Add gdbarch initializations for macros
6046 undefined in tm-m68k.h
6047
1c617db8
GS
60482002-06-26 Grace Sainsbury <graces@redhat.com>
6049
6050 * monitor.h: Add the function regname to monitor_ops
6051 structure. This way NUM_REGS does not have to be a constant.
6052 * monitor.c (monitor_fetch_register): Added support for regname
6053 function. The function is called if the array regnames is NULL.
6054 (monitor_store_register): Same.
da130f98
AC
6055 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6056 regnames array.
1c617db8
GS
6057 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6058 cpu32bug_cmds.regname to point to new function.
6059 * abug-rom.c (abug_regname): Same as above.
6060 (init_abug_cmds): Same.
6061 * dbug-rom.c (dbug_regname): Same as above.
6062 (init_dbug_cmds): Same.
6063 * remote-est.c (est_regname): Same.
6064 (init_est_cmds): Same.
6065 * rom68k-rom.c (rom68k_regname): Same.
6066 (init_rom68k_cmds): Same.
6067
ea9365bb
TT
60682002-06-25 Tom Tromey <tromey@redhat.com>
6069
6070 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6071
72cec141
AC
60722002-06-25 Andrew Cagney <cagney@redhat.com>
6073
6074 * infrun.c (stop_registers): Change variable's type to ``struct
6075 regcache'''.
6076 (xmalloc_inferior_status): Delete function.
6077 (free_inferior_status): Delete function.
6078 (normal_stop): Use regcache_cpy.
6079 (struct inferior_status): Change type of fields ``stop_registers''
6080 and ``registers'' to ``struct regcache''.
6081 (write_inferior_status_register): Use regcache_write.
6082 (save_inferior_status): Instead of calling
6083 xmalloc_inferior_status, allocate the inf_status buffer directly.
6084 Use regcache_dup_no_passthrough and regcache_dup to save the
6085 buffers.
6086 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6087 Replace the stop_registers regcache instead of overriding it. Use
6088 regcache_xfree. Instead of calling free_inferior_status, xfree
6089 the buffer directly.
6090 (discard_inferior_status): Use regcache_xfree. Instead of calling
6091 free_inferior_status, xfree the buffer directly.
6092 (build_infrun): Use regcache_xmalloc.
6093 (_initialize_infrun): Delete redundant call to build_infrun.
6094
6095 * Makefile.in (infcmd.o): Add $(regcache_h).
6096
6097 * infcmd.c: Include "regcache.h".
6098 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6099 obtain the address of `stop_registers' register buffer.
6100 (print_return_value): Ditto.
6101
6102 * inferior.h (struct regcache): Add opaque declaration.
6103 (stop_registers): Change variable's declared type to ``struct
6104 regcache''.
6105
defc6f8c
TT
61062002-06-24 Tom Tromey <tromey@redhat.com>
6107
c0e624e7
TT
6108 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6109 * target.c (initialize_targets): Fixed typo in
6110 trust-readonly-sections `show' documentation.
6111
defc6f8c
TT
6112 * main.c: Marked all strings with _().
6113
2b236d82
DH
61142002-06-24 Don Howard <dhoward@redhat.com>
6115
6116 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6117 that means max CORE_ADDR+1.
6118 (lookup_mem_region): Ditto.
6119 (mem_info_command): Ditto.
6120
942dc0e9
GS
61212002-06-24 Grace Sainsbury <graces@redhat.com>
6122
6123 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6124 (REGISTER_BYTES_OK): Remove.
6125 (REGISTER_BYTES): Remove.
6126 (STORE_STRUCT_RETURN): Remove.
6127 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6128 (STORE_RETURN_VALUE): Remove.
6129 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6130 (FRAME_CHAIN): Remove.
6131 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6132 (FRAME_SAVED_PC): Remove.
6133 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6134 (m68k_store_struct_return): Add.
6135 (m68k_deprecated_extract_return_value): Add.
6136 (m68k_deprecated_extract_struct_value_address): Add.
6137 (m68k_store_return_value): Add.
6138 (m68k_frame_chain): Add.
6139 (m68k_frameless_function_invocation): Add.
6140 (m68k_frame_saved_pc): Add.
6141 (m68k_gdbarch_init): added set_gdbarch calls for new
6142 functions and deleted macros.
6143
03c30d4d
TT
61442002-06-23 Tom Tromey <tromey@redhat.com>
6145
6146 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6147 (ALLDEPFILES): Likewise.
6148 (udiheaders): Removed.
6149 (udip2soc.o): Likewise.
6150 (udi2go32.o): Likewise.
6151 (udr.o): Likewise.
6152 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6153
37e71372
AC
61542002-06-22 Andrew Cagney <ac131313@redhat.com>
6155
06a6ac57
AC
6156 * infrun.c (_initialize_infrun): Delete unnecessary call to
6157 build_infrun.
6158
37e71372
AC
6159 * regcache.h: Update comments describing the regcache_cpy family
6160 of functions.
6161 (regcache_save, regcache_restore): Delete declaration.
6162 (regcache_save_no_passthrough): Delete declaration.
6163 (regcache_restore_no_passthrough): Delete declaration.
6164 * regcache.c (regcache_save): Delete function.
6165 (regcache_save_no_passthrough): Delete function.
6166 (regcache_restore): Delete function.
6167 (regcache_restore_no_passthrough): Delete function.
6168
78f6d055
AC
61692002-06-21 Andrew Cagney <ac131313@redhat.com>
6170
6171 * config/m68k/tm-m68k.h: Fix typo.
6172 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6173 (m68k_frame_init_saved_regs): Declare.
6174
78b119cb
JB
61752002-06-21 Jim Blandy <jimb@redhat.com>
6176
6177 Remove some vestiges of Harris 88k support.
6178 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6179 register numbering quirk.
6180 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6181 odd symbols occurring in Harris 88k ELF targets.
6182
0fbb3da7
TT
61832002-06-21 Tom Tromey <tromey@redhat.com>
6184
6185 * gdb_locale.h: New file.
6186 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6187 (defs_h): Added gdb_locale.h.
6188 * configure, config.in: Rebuilt.
6189 * configure.in (PACKAGE): Define.
6190 * defs.h: Include gdb_locale.h.
6191 * main.c (captured_main): Call setlocale, bindtextdomain,
6192 textdomain.
6193
456f8b9d
DB
61942002-06-21 Dave Brolley <brolley@redhat.com>
6195
6196 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6197 * config/frv/frv.mt: New file.
6198 * config/frv/tm-frv.h: New file.
6199 * configure.tgt: Support frv-*-*.
6200 * Makefile.in (frv-tdep.o): New target.
6201 * frv-tdep.c: New file.
6202 * NEWS: Mention frv.
6203
cdd463f9
DB
62042002-06-21 Dave Brolley <brolley@redhat.com>
6205
6206 * MAINTAINERS: Add self to "Write After Approval" list.
6207
5d3ed2e3
GS
62082002-06-21 Grace Sainsbury <graces@redhat.com>
6209
6210 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6211 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6212 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6213 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6214 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6215
6216 * m68k-tdep.c: Include arch-utils.h
6217 (m68k_register_raw_size): Add.
6218 (m68k_register_virtual_size): Add.
6219 (m68k_register_virtual_type): Add.
6220 (m68k_register_name): Add.
6221 (m68k_stack_align): Add.
6222 (m68k_register_byte): Add.
6223 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6224 tm-m68k.h.
6225
7f8e7424
GS
62262002-06-21 Grace Sainsbury <graces@redhat.com>
6227
a2c6a6d5 6228 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6229 m68k_find_saved_regs.
6230 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6231 references to it with frame->saved_regs.
7f8e7424
GS
6232 (m68k_gdbarch_init): Added function calls to initialize the
6233 gdbarch structure.
a2c6a6d5
GS
6234 (m68k_fix_call_dummy): Add.
6235 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6236 (CALL_DUMMY): Remove.
6237 (CALL_DUMMY_LENGTH): Remove.
6238 (CALL_DUMMY_START_OFFSET): Remove.
6239 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6240 (FIX_CALL_DUMMY): Remove.
6241 (PUSH_DUMMY_FRAME): Remove.
6242 (POP_FRAME): Remove.
7f8e7424 6243
f461f5cf
PM
62442002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6245
6246 * parse.c (parse_fprintf): New function used to avoid calls to
6247 fprintf in bison parser generated debug code.
6248 * parser-defs.h: Declaration of new parse_fprintf function.
6249 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6250 Set YYDEBUG to 1 by default.
6251 Set YYFPRINTF as parse_fprintf.
6252
7f0c12ed
ML
62532002-06-21 Michal Ludvig <mludvig@suse.cz>
6254
6255 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6256 encoding anymore.
6257 (pointer_encoding, enum ptr_encoding): New.
6258 (execute_cfa_program): Take care about pointer encoding.
6259 (dwarf2_build_frame_info): Only call parse_frame_info for
6260 .debug_frame and .eh_frame.
6261 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6262 fixed augmentation handling, added relative addressing,
6263 ignore duplicate FDEs. Added comments.
19d833a2 6264 * dwarf2cfi.c: Reindented.
7f0c12ed 6265
87c4a039
EZ
62662002-06-20 Elena Zannoni <ezannoni@redhat.com>
6267
6268 * event-top.c (command_handler): Don't use space_at_cmd_start
6269 unless there is sbrk() on the host. Assign time and space data
6270 to union fields of the appropriate length.
6271
1cf877ad
ML
62722002-06-20 Michal Ludvig <mludvig@suse.cz>
6273
6274 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6275 x86_64_register_name. Return type changed to 'const char *'.
6276 (x86_64_register_name2nr): Rename to x86_64_register_number.
6277 (x86_64_gdbarch_init): Update to reflect the change.
6278 * x86-64-tdep.h: Ditto.
6279 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6280 (supply_fpregset): Ditto.
6281
3fadccb3
AC
62822002-06-19 Andrew Cagney <cagney@redhat.com>
6283
6284 * regcache.h: Update copyright.
6285 (struct regcache, struct gdbarch): Add opaque declarations.
6286 (current_regcache): Declare global variable.
6287 (regcache_read, regcache_write): Add gdbarch parameter.
6288 (regcache_save, regcache_save_no_passthrough)
6289 (regcache_restore, regcache_restore_no_passthrough)
6290 (regcache_dup, regcache_dup_no_passthrough)
6291 (regcache_cpy, regcache_cpy_no_passthrough)
6292 (deprecated_grub_regcache_for_registers)
6293 (deprecated_grub_regcache_for_register_valid)
6294 (regcache_valid_p): Add function declarations.
6295
6296 * regcache.c: Update copyright.
6297 (regcache_descr_handle): New global variable.
6298 (struct regcache_descr): Define.
6299 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6300 (regcache_descr, xfree_regcache_descr): New functions.
6301 (struct regcache): Define.
6302 (regcache_xmalloc, regcache_xfree): New functions.
6303 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6304 (regcache_dup, regcache_dup_no_passthrough): New functions.
6305 (regcache_valid_p, regcache_read_as_address): New functions.
6306 (deprecated_grub_regcache_for_registers): New function.
6307 (deprecated_grub_regcache_for_register_valid): New function.
6308 (current_regcache): New global variable.
6309 (register_buffer): Add regcache parameter. Update calls.
6310 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6311 (read_register_gen, write_register_gen): Update register_buffer
6312 call. Test for legacy_p instead of gdbarch_register_read_p or
6313 gdbarch_register_write_p.
6314 (regcache_collect): Update register_buffer call.
6315 (build_regcache): Rewrite. Use deprecated grub functions.
6316 (regcache_save, regcache_save_no_passthrough): New functions.
6317 (regcache_restore, regcache_restore_no_passthrough): New
6318 functions.
6319 (_initialize_regcache): Create the regcache_data_handle. Swap
6320 current_regcache global variable.
6321
6322 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6323 parameter to regcache_read and regcache_write calls.
6324 (sh4_register_read): Ditto.
6325 (sh64_pseudo_register_read): Ditto.
6326 (sh64_register_read): Ditto.
6327 (sh_pseudo_register_write): Ditto.
6328 (sh4_register_write): Ditto.
6329 (sh64_pseudo_register_write): Ditto.
6330 (sh64_register_write): Ditto.
6331
6332 * defs.h (XCALLOC): Define.
6333
152d9db6
GS
63342002-06-19 Grace Sainsbury <graces@redhat.com>
6335
6336 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6337 * m68k-tdep.c (m68k_gdbarch_init): Added.
6338 (m68k_dump_tdep): Added.
6339
170911c7
DJ
63402002-06-19 Daniel Jacobowitz <drow@mvista.com>
6341
6342 * ada-lang.c (fill_in_ada_prototype): Update comment.
6343
2e4ebe70
DJ
63442002-06-19 Daniel Jacobowitz <drow@mvista.com>
6345
6346 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6347 MIPS_ABI_LAST.
6348 (mips_abi_string, mips_abi_strings): New.
6349 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6350 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6351 tdep->mips_abi_string. Honor mips_abi_string. Default to
6352 O32 if no ABI is found.
6353 (mips_dump_tdep): Use mips_abi_strings.
6354 (mips_abi_update): New function.
6355 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6356 ``set mips abi'' and ``show mips abi''. Check the size of
6357 mips_abi_strings.
6358
16775908
AC
63592002-06-19 Andrew Cagney <cagney@redhat.com>
6360
6361 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6362 constant.
6363
5051bfa4 63642002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6365
5051bfa4
JB
6366 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6367 current frame using only the first stack size adjustment. All
6368 subsequent size adjustments are not considered to be part of
6369 the "static" part of the current frame.
6370 Compute the address of the saved registers relative to the
6371 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6372 in use in this frame.
6373
56468235
DH
63742002-06-18 Don Howard <dhoward@redhat.com>
6375
6376 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6377 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6378 suggesting this solution.
6379
0b624158
AC
63802002-06-18 Andrew Cagney <ac131313@redhat.com>
6381
6382 * config/romp/xm-rtbsd.h: Delete file.
6383 * config/romp/rtbsd.mh: Delete file.
6384
221ea385
KS
63852002-06-18 Keith Seitz <keiths@redhat.com>
6386
6387 * breakpoint.c (condition_command): Post breakpoint_modify
6388 when a condition is added to an existing breakpoint.
6389 (commands_command): Likewise for commands.
6390 (set_ignore_count): Likewise for ignore counts.
6391 If no tty, do not simply return, still need to send event
6392 notification.
6393 (ignore_command): Only print a newline if the command came
6394 from a tty.
6395 Don't call breakpoints_changed, since this is now properly
6396 handled by set_ignore_count.
6397
5402eed1
AC
63982002-06-18 Andrew Cagney <cagney@redhat.com>
6399
6400 * MAINTAINERS: Note that cris-elf target can be compiled with
6401 -Werror.
6402 * cris-tdep.c (cris_register_name): Make return type constant.
6403 (cris_breakpoint_from_pc): Ditto.
6404
cc22880b
ML
64052002-06-18 Michal Ludvig <mludvig@suse.cz>
6406
6407 * frame.h (struct frame_info): Change type of context to
6408 'struct context'.
6409
fa88f677
AC
64102002-06-17 Andrew Cagney <cagney@redhat.com>
6411
6412 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6413 pointer.
6414 * gdbarch.h, gdbarch.c: Regenerate.
6415 * config/mips/tm-mips.h (mips_register_name): Update.
6416 * i386-tdep.h (i386_register_name): Update.
6417 * mips-tdep.c (mips_register_name): Update
6418 * alpha-tdep.c (alpha_register_name): Update.
6419 * arch-utils.c (legacy_register_name): Update.
6420 * arch-utils.h (legacy_register_name): Update.
6421 * avr-tdep.c (avr_register_name): Update.
6422 * ia64-tdep.c (ia64_register_name): Update.
6423 * i386-tdep.c (i386_register_name): Update.
6424 * sparc-tdep.c (sparc32_register_name): Update.
6425 (sparc64_register_name): Update.
6426 (sparclite_register_name): Update.
6427 (sparclet_register_name): Update.
6428 * sh-tdep.c (sh_generic_register_name): Update.
6429 (sh_sh_register_name): Update.
6430 (sh_sh3_register_name): Update.
6431 (sh_sh3e_register_name): Update.
6432 (sh_sh_dsp_register_name): Update.
6433 (sh_sh3_dsp_register_name): Update.
6434 (sh_sh4_register_name): Update.
6435 (sh_sh64_register_name): Update.
6436 * s390-tdep.c (s390_register_name): Update.
6437 * rs6000-tdep.c (rs6000_register_name): Update.
6438 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6439 (ns32k_register_name_32382): Update.
6440 * d10v-tdep.c (d10v_ts2_register_name): Update.
6441 (d10v_ts3_register_name): Update.
6442 * xstormy16-tdep.c (xstormy16_register_name): Update.
6443 * vax-tdep.c (vax_register_name): Update.
6444 * v850-tdep.c (v850_register_name): Update.
6445 * m68hc11-tdep.c (m68hc11_register_name): Update.
6446 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6447 (am33_register_name): Update.
6448
ea1e7ef6
GS
64492002-06-17 Grace Sainsbury <graces@redhat.com>
6450
6451 * m68k-tdep.c: Reindented.
6452
9b02dd1b
AC
64532002-06-17 Andrew Cagney <ac131313@redhat.com>
6454
6455 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6456 list of predefined types.
6457
8758dec1
MK
64582002-06-16 Mark Kettenis <kettenis@gnu.org>
6459
b6197528
MK
6460 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6461 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6462 REGISTER_CONVERT_TO_RAW): Remove defines.
6463 (i386_register_virtual_type, i386_register_convertible,
6464 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6465 Remove prototypes.
6466 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6467 macros mentioned above.
6468
82b47e62
MK
6469 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6470 (i386lynx_saved_pc_after_call): Remove prototype.
6471 * i386ly-tdep.c: Include "i386-tdep.h".
6472 (i386lynx_saved_pc_after_call): Make static. Use
6473 read_memory_nobpt instead of read_memory. Use
6474 read_memory_unsigned_integer instead of read_memory_integer.
6475 (i386lynx_init_abi): New function.
6476 (i386lynx_coff_osabi_sniffer): New function.
6477 (_initialize_i386bsd_tdep): New function.
6478
8758dec1
MK
6479 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6480 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6481 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6482 (i386_fix_call_dummy): Remove prototype.
6483 * i386-tdep.c (i386_call_dummy_words): New variable.
6484 (i386_gdbarch_init): Adjust for removal of the
6485 macros mentioned above.
6486
e9e68a56
AC
64872002-06-15 Andrew Cagney <ac131313@redhat.com>
6488
6489 * command.h (add_setshow_auto_boolean_cmd): Replace
6490 add_set_auto_boolean_cmd.
6491 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6492 add_set_auto_boolean_cmd.
6493 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6494 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6495 mask-address'' command.
6496 (show_mask_address): Add cmd parameter.
6497 * remote.c (add_packet_config_cmd): Update. Change type of
6498 set_func and show_func to cmd_sfunc_ftype.
6499 (_initialize_remote): Update `set remote Z-packet'
6500 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6501 (show_remote_protocol_e_packet_cmd): Ditto.
6502 (show_remote_protocol_E_packet_cmd): Ditto.
6503 (show_remote_protocol_P_packet_cmd): Ditto.
6504 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6505 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6506 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6507 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6508 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6509 (show_remote_protocol_Z_packet_cmd): Ditto.
6510 (show_remote_protocol_binary_download_cmd): Ditto.
6511 (show_remote_cmd): Pass NULL to all of above.
6512
fc08ec52
MK
65132002-06-15 Mark Kettenis <kettenis@gnu.org>
6514
6515 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6516 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6517 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6518 POP_FRAME): Remove defines.
6519 (i386_push_arguments, i386_store_struct_return,
6520 i386_extract_return_value, i386_store_return_value,
6521 i386_extract_struct_value_address, i386_push_dummy_frame,
6522 i386_pop_frame): Renove prototypes.
6523 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6524 macros mentioned above.
6525
e707bbc2
AC
65262002-06-15 Andrew Cagney <ac131313@redhat.com>
6527
6528 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6529 add_set_boolean_cmd.
6530 (add_setshow_cmd): New function.
6531 * command.h (add_setshow_boolean_cmd): Replace
6532 add_set_boolean_cmd.
6533 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6534 and ``set rdiromatzero''.
6535 * maint.c (_initialize_maint_cmds): Update commented out code.
6536 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6537 * target.c (initialize_targets): Update `set
6538 trust-readonly-sections'.
6539 * remote.c (_initialize_remote): Update `set remotebreak'.
6540
42fdc8df
MK
65412002-06-15 Mark Kettenis <kettenis@gnu.org>
6542
93924b6b
MK
6543 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6544 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6545 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6546 fit into multi-arch framework.
6547 (i386_breakpoint_from_pc): New function.
6548 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6549 above.
6550
42fdc8df
MK
6551 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6552 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6553 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6554 (i386_frameless_function_invocation, i386_frame_num_args,
6555 i386_frame_init_saved_regs): Remove prototypes.
6556 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6557 macros mentioned above.
6558
9773a94b
AC
65592002-06-15 Andrew Cagney <ac131313@redhat.com>
6560
6561 * cli/cli-decode.c (set_cmd_cfunc): Update.
6562 (set_cmd_sfunc): Update.
6563 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6564 (set_cmd_sfunc, set_cmd_cfunc): Update.
6565 * cli/cli-decode.h: Update.
6566
6e157172
MK
65672002-06-15 Mark Kettenis <kettenis@gnu.org>
6568
6569 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6570 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6571
7f19b9a2
AC
65722002-06-15 Andrew Cagney <ac131313@redhat.com>
6573
6574 * defs.h (auto_boolean): Declare enum.
6575 * command.h (cmd_auto_boolean): Delete enum.
6576 * mips-tdep.c (mask_address_var): Update.
6577 (mips_mask_address_p): Update.
6578 (show_mask_address): Update.
6579 * remote.c (struct packet_config): Update.
6580 (update_packet_config): Update.
6581 (show_packet_config_cmd): Update.
6582 (packet_ok): Update.
6583 (add_packet_config_cmd): Update.
6584 (_initialize_remote):
6585 * command.h: Update.
6586 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6587 (do_setshow_command): Update.
6588 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6589 * cli/cli-decode.h: Update.
6590
1cf88de5
MK
65912002-06-15 Mark Kettenis <kettenis@gnu.org>
6592
22ba8cf2
MK
6593 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6594 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6595 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6596 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6597 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6598 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6599
762c5349
MK
6600 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6601 list of DJGPP COFF targets.
6602
091198bb
MK
6603 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6604 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6605 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6606 (FP0_REGNUM): Remove define.
6607 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6608 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6609 (i386_register_virtual_size): Remove protoype.
6610 * i386-tdep.c (i386_register_virtual_size): Removed.
6611 (i386_extract_return_value, i386_store_return_value): Use
6612 FP0_REGNUM instead of NUM_FREGS to determine whether the
6613 floating-point registers are available.
6614 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6615 Adjust for removal of macros mentioned above.
6616
66172002-06-15 Mark Kettenis <kettenis@gnu.org>
6618
fcc9bf01
MK
6619 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6620 comments.
6621 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6622 Remove prototypes.
6623 (supply_gregset, fill_gregset): Remove use of register keyword and
6624 remove declaration for regmap. Use I386_NUM_GREGS instead of
6625 NUM_REGS and NUM_FREGS.
6626 (FPREGSET_FSAVE_OFFSET): Remove.
6627 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6628 NUM_FREGS to determine whether the floating-point registers are
6629 available.
6630
65e78234
MK
6631 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6632 gnu_store_registers): Replace usage of NUM_GREGS with
6633 I386_NUM_GREGS.
6634
98df6387
MK
6635 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6636 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6637 usage of NUM_GREGS with I386_NUM_GREGS.
6638
099a9414
MK
6639 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6640
57976e88
MK
6641 * i386bsd-nat.c: Include "i386-tdep.h".
6642 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6643 I386_NUM_GREGS.
6644
b335f4a6
MK
6645 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6646 and associated comment. They no longer make any sense, since we
6647 don't use this file anymore on Linux.
6648
1cf88de5
MK
6649 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6650 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6651 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6652 elements in these arrays.
6653 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6654 MAX_NUM_REGS.
6655
daa66587
MK
66562002-06-15 Mark Kettenis <kettenis@gnu.org>
6657
6658 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6659 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6660
26e9b323
AC
66612002-06-14 Andrew Cagney <cagney@redhat.com>
6662
6663 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6664 EXTRACT_RETURN_VALUE.
6665 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6666 EXTRACT_STRUCT_VALUE_ADDRESS.
6667 * gdbarch.h, gdbarch.c: Regenerate.
6668
6669 * values.c (value_being_returned): Handle
6670 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6671 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6672
6673 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6674 * arm-tdep.c (arm_gdbarch_init): Update.
6675 * avr-tdep.c (avr_gdbarch_init): Update.
6676 * cris-tdep.c (cris_gdbarch_init): Update.
6677 * d10v-tdep.c (d10v_gdbarch_init): Update.
6678 * ia64-tdep.c (ia64_gdbarch_init): Update.
6679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6681 * s390-tdep.c (s390_gdbarch_init): Update.
6682 * sh-tdep.c (sh_gdbarch_init): Update.
6683 * s390-tdep.c (s390_gdbarch_init): Update.
6684 * sparc-tdep.c (sparc_gdbarch_init): Update.
6685 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6686 * v850-tdep.c (v850_gdbarch_init): Update.
6687 * vax-tdep.c (vax_gdbarch_init): Update.
6688 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6689 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6690
6691 * config/arc/tm-arc.h: Update.
6692 * config/d30v/tm-d30v.h: Update.
6693 * config/fr30/tm-fr30.h: Update.
6694 * config/h8300/tm-h8300.h: Update.
6695 * config/h8500/tm-h8500.h: Update.
6696 * config/i386/tm-i386.h: Update.
6697 * config/i386/tm-ptx.h: Update.
6698 * config/i386/tm-symmetry.h: Update.
6699 * config/i960/tm-i960.h: Update.
6700 * config/m32r/tm-m32r.h: Update.
6701 * config/m68k/tm-delta68.h: Update.
6702 * config/m68k/tm-linux.h: Update.
6703 * config/m68k/tm-m68k.h: Update.
6704 * config/m88k/tm-m88k.h: Update.
6705 * config/mcore/tm-mcore.h: Update.
6706 * config/mips/tm-mips.h: Update.
6707 * config/mn10200/tm-mn10200.h: Update.
6708 * config/pa/tm-hppa.h: Update.
6709 * config/pa/tm-hppa64.h: Update.
6710 * config/sparc/tm-sp64.h: Update.
6711 * config/sparc/tm-sparc.h: Update.
6712 * config/sparc/tm-sparclet.h: Update.
6713 * config/z8k/tm-z8k.h: Update.
6714
5179e78f
AC
67152002-06-14 Andrew Cagney <cagney@redhat.com>
6716
6717 * Makefile.in (i386_linux_tdep_h): Define.
6718 (i386_tdep_h, i387_tdep_h): Define.
6719 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6720 $(i386_tdep_h) and $(i387_tdep_h).
6721 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6722
8201327c
MK
67232002-06-14 Mark Kettenis <kettenis@gnu.org>
6724
edf393ac
MK
6725 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6726 Already covered by the default.
6727
896fb97d
MK
6728 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6729 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6730 (i386_gdbarch_init): Initialize long_double_format and long_double
6731 bit.
6732
8201327c
MK
6733 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6734 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6735 Move these to ...
6736 * config/i386/i386sol2.mh: ... here.
6737 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6738 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6739 (SIGCONTEXT_PC_OFFSET): Remove define.
6740 (IN_SIGTRAMP): Remove define.
6741 * i386-sol2-tdep.c: New file.
6742
6743 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6744 * config/i386/tm-i386nw.h: Removed.
6745
6746 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6747 USE_STRUCT_CONVENTION): Remove defines.
6748 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6749 (get_longjmp_target): Remove prototype.
6750 (IN_SIGTRAMP): Remove define.
6751 (i386bsd_in_sigtramp): Remove prototype.
6752 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6753 function. Update comment accordingly
6754 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6755 (FRAME_SAVED_PC): Remove define.
6756 (i386bsd_frame_saved_pc): Remove prototype.
6757 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6758 GET_LONGJMP_TARGET): Remove defines.
6759 (get_longjmp_target): Remove prototype.
6760 (IN_SIGTRAMP): Remove define.
6761 (i386bsd_in_sigtramp): Remove prototype.
6762 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6763 function. Update comment accordingly
6764 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6765 (FRAME_SAVED_PC): Remove define.
6766 (i386bsd_frame_saved_pc): Remove prototype.
6767 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6768 Remove prototype.
6769 (USE_STRUCT_CONVENTION): Remove prototype.
6770 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6771 declaration.
6772 (_initialize_i386bsd_nat): Revise logic to determine some
6773 constants at compile time when compiling a native GDB. Warn if
6774 things don't match up with what we expect.
6775 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6776 Remove variables.
6777 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6778 to use date stored in `struct gdbarch_tdep'.
6779 (i386bsd_sigcontext_offset): Remove varaible.
6780 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6781 stored in `struct gdbarch_tdep'.
6782 (i386bsd_frame_saved_pc): Make static.
6783 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6784 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6785 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6786 i386fbsd4_sc_pc_offset): New variables.
6787 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6788 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6789 functions.
6790 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6791 functions.
6792 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6793 Modify the value of i386fbsd_sigtramp_start and
6794 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6795 i386fbsd_sigtramp_end.
6796 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6797 function.
6798
6799 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6800 define to i386-linux-tdep.h.
6801 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6802 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6803 defines.
6804 (i386_linux_register_name, i386_linux_register_byte,
6805 i386_linux_register_raw_size): Remove prototypes.
6806 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6807 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6808 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6809 TARGET_WRITE_PC): Remove defines.
6810 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6811 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6812 i386_linux_write_pc): Remove prototypes.
6813 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6814 (get_longjmp_target): Remove prototype.
6815 * i386-linux-tdep.h: New file.
6816 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6817 * i386-linux-tdep.c: Include "i386-tdep.h" and
6818 "i386-linux-tdep.h".
6819 (i386_linux_register_name, i386_linux_register_byte,
6820 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6821 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6822 Make static.
6823 (i386_linux_init_abi): New function.
6824 (_initialize_i386_linux_tdep): New function.
6825
6826 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6827 (i386_saved_pc_after_call): Remove prototype.
6828 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6829 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6830 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6831 (i386_register_name, i386_stab_reg_to_regnum,
6832 i386_dwarf_reg_to_regnum): Remove prototypes.
6833 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6834 SIZEOF_SSE_REGS): Remove defines.
6835 (REGISTER_BYTES): Remove define.
6836 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6837 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6838 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6839 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6840 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6841 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6842 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6843 (get_longjmp_target): Remove prototype.
6844 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6845 (sigtramp_saved_pc): Remove define.
6846 (i386v4_sigtramp_saved_pc): Remove prototype.
6847 * config/i386/tm-go32.h (FRAME_CHAIN,
6848 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6849 (i386go32_frame_saved_pc): Remove prototype.
6850 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6851 (get_longjmp_target): Remove prototype.
6852 * i386-tdep.h: Include "osabi.h".
6853 (enum i386_abi): Removed.
6854 (enum struct_return): New enum.
6855 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6856 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6857 sc_pc_offset members.
6858 (i386_gdbarch_register_os_abi): Remove prototype.
6859 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6860 I386_SSE_NUM_REGS): New defines.
6861 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6862 I386_SSE_SIZEOF_REGS): New defines.
6863 (i386_register_name, i386_register_byte, i386_register_raw_size):
6864 New prototypes.
6865 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6866 (i386bsd_sigtramp_saved_pc): New prototype.
6867 * i386-tdep.c: Don't include "elf-bfd.h".
6868 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6869 i386_frame_chain, i386_saved_pc_after_call): Make static.
6870 (i386_frame_saved_pc): Rewrite to call architecture dependent
6871 function to deal with signal handlers. Make static.
6872 (i386go32_frame_saved_pc): Removed.
6873 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6874 Removed.
6875 (i386_get_longjmp_target): New function.
6876 (default_struct_convention, pcc_struct_convention,
6877 reg_struct_convention, valid_conventions, struct_convention): New
6878 variables.
6879 (i386_use_struct_convention): New function.
6880 (i386v4_sigtramp_saved_pc): Renamed to
6881 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6882 (i386_pc_in_sigtramp): New function.
6883 (i386_abi_names): Removed.
6884 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6885 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6886 Removed.
6887 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6888 i386_gdbarch_register_os_abi): Removed.
6889 (struct i386_abi_handler): Removed.
6890 (i386_abi_handler_list): Removed.
6891 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6892 functions.
6893 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6894 i386_nw_init_abi): New functions.
6895 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6896 Use set_gdbarch_xxx() calls instead of relying on macros for a
6897 number of calls.
6898 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6899 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6900 Register the various architecture variants defined in this file.
6901
ad2f7632
DJ
69022002-06-14 Daniel Jacobowitz <drow@mvista.com>
6903
6904 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6905 (struct main_type): Remove arg_types member. Update comments for
6906 struct field.
6907 (TYPE_ARG_TYPES): Remove.
6908 (TYPE_FN_FIELD_ARGS): Update.
6909 (smash_to_method_type): Update prototype.
6910
6911 * c-typeprint.c (cp_type_print_method_args): Take method type
6912 instead of argument list. Use new argument layout. Simplify.
6913 (c_type_print_args): Use new argument layout. Simplify.
6914 (c_type_print_base): Update call to cp_type_print_method_args.
6915 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6916 argument; use die->type instead. Update call to
6917 smash_to_method_type.
6918 (read_structure_scope): Update call to dwarf2_add_member_fn.
6919 * gdbtypes.c (allocate_stub_method): Update comment.
6920 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6921 Use new argument layout.
6922 (check_stub_method): Use new argument layout. Don't count
6923 void as an argument.
6924 (print_arg_types): Update comments. Use new argument layout.
6925 (recursive_dump_type): Don't print arg_types member.
6926 * hpread.c (hpread_read_struct_type): Use new argument layout.
6927 (fixup_class_method_type): Likewise.
6928 (hpread_type_lookup): Likewise.
6929 * stabsread.c (read_type): Update calls to read_args and
6930 smash_to_method_type.
6931 (read_args): Use new argument layout. Simplify.
6932 * valops.c (typecmp): Use new argument layout. Update parameters
6933 and comments. Simplify.
6934 (hand_function_call): Use new argument layout.
6935 (search_struct_method): Update call to typecmp.
6936 (find_overload_match): Use new argument layout.
6937
6da02953
DJ
69382002-06-13 Daniel Jacobowitz <drow@mvista.com>
6939
6940 * NEWS: Mention multithreaded debug support for gdbserver.
6941
519b2366
DJ
69422002-06-13 Daniel Jacobowitz <drow@mvista.com>
6943
6944 * MAINTAINERS: Mention NEWS.
6945
6c0d6680
DJ
69462002-06-13 Daniel Jacobowitz <drow@mvista.com>
6947
6948 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6949 (struct mips_objfile_private, compare_pdr_entries): New.
6950 (non_heuristic_proc_desc): Read the ".pdr" section if it
6951 is present.
6952
6529d2dd
AC
69532002-06-12 Andrew Cagney <ac131313@redhat.com>
6954
6955 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6956 (arm_debug): New static variable.
6957 (_initialize_arm_tdep): Add ``set debug arm'' command.
6958
26216b98
AC
69592002-06-12 Andrew Cagney <ac131313@redhat.com>
6960
6961 * Makefile.in (sim_arm_h): Define.
6962 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6963 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6964 (arm_register_sim_regno): New function, map an internal REGNUM
6965 onto a simulator register number.
6966 (arm_gdbarch_init): Set register_sim_regno.
6967
814b3ba0
AH
69682002-06-09 Aldy Hernandez <aldyh@redhat.com>
6969
6970 * MAINTAINERS: Add self.
6971
475b0867
JB
69722002-06-11 Jim Blandy <jimb@redhat.com>
6973
919d772c
JB
6974 * source.c (source_info): Mention whether the symtab has
6975 information about preprocessor macros.
6976
475b0867
JB
6977 Call the command `info macro', not `show macro'.
6978 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6979 Fix error message.
6980 (_initialize_macrocmd): Register `info_macro_command' in
6981 `infolist', not `showlist'.
6982
9e364162
DJ
69832002-06-11 Daniel Jacobowitz <drow@mvista.com>
6984
6985 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6986 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6987 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6988 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6989 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6990 unconditionally.
6991 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6992 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6993 (_initialize_mips_tdep): Remove dead code.
6994 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6995 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6996 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6997 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6998 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6999 MIPS_LAST_FP_ARG_REGNUM): Remove.
7000
23aa4c72
ML
70012002-06-11 Michal Ludvig <mludvig@suse.cz>
7002
7003 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7004 (unwind_tmp_obstack_free, parse_frame_info)
7005 (update_context, cfi_read_fp, cfi_write_fp)
7006 (cfi_frame_chain, cfi_init_extra_frame_info)
7007 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7008 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7009
70eb15a4
CV
70102002-06-11 Corinna Vinschen <vinschen@redhat.com>
7011
7012 * v850-tdep.c (v850_type_is_scalar): New function.
7013 (v850_use_struct_convention): Match current gcc implementation
7014 as close as possible.
7015 (v850_push_arguments): Fix stack_offset handling. Don't write
7016 struct_addr into register. This is done by v850_store_struct_return.
7017 (v850_extract_return_value): Care for structs.
7018 (v850_store_return_value): Ditto.
7019 (v850_store_struct_return): Actually write address.
7020
482a4d06
ML
70212002-06-11 Michal Ludvig <mludvig@suse.cz>
7022
7023 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7024 without debug information too.
7025
d855c300
AC
70262002-06-10 Andrew Cagney <ac131313@redhat.com>
7027
7028 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7029 Make multi-arch pure.
7030 * gdbarch.h, gdbarch.c: Re-generate.
7031 * arm-tdep.c (arm_print_float_info): Update.
7032 * arch-utils.h (default_print_float_info): Update.
7033 * arch-utils.c (default_print_float_info): Update.
7034 * infcmd.c (float_info): Update call.
7035
dd12a101
AC
70362002-06-10 Andrew Cagney <ac131313@redhat.com>
7037
7038 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7039 the front of the initialize list.
7040
101dcfbe
AC
70412002-06-10 Andrew Cagney <ac131313@redhat.com>
7042
7043 * infrun.c (struct inferior_status): Replace fields
7044 selected_frame_address and selected_level with field
7045 selected_frame_id.
7046 (save_inferior_status): Update. Use get_frame_id.
7047 (struct restore_selected_frame_args): Delete.
7048 (restore_selected_frame): Update. Use frame_find_by_id.
7049 (restore_inferior_status): Update.
7050
7051 * breakpoint.h (struct breakpoint): Change type of
7052 watchpoint_frame to frame_id.
7053 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7054 call to get_current_frame.
7055 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7056 get_current_frame.
7057 (watchpoint_check): Use frame_find_by_id.
7058
7059 * frame.h (record_selected_frame): Delete declaration.
7060 * stack.c (record_selected_frame): Delete function.
7061
7062 * frame.h (struct frame_id): Define.
7063 (get_frame_id): Declare.
7064 (frame_find_by_id): Declare.
7065 * frame.c (frame_find_by_id): New function.
7066 (get_frame_id): New function.
7067
304270b6
AV
70682002-06-10 Andrey Volkov <avolkov@transas.com>
7069
7070 * ser-e7kpc.c: Fix duplicated define and call of
7071 _initialize_ser_e7000pc
7072
2f2cf184
DJ
70732002-06-09 Daniel Jacobowitz <drow@mvista.com>
7074
7075 * signals/signals.c (target_signal_from_host): Fix #ifdef
7076 SIGRTMIN case.
7077 (do_target_signal_to_host): Likewise.
7078
caaa3122
DJ
70792002-06-09 Daniel Jacobowitz <drow@mvista.com>
7080
7081 * mips-tdep.c (mips_find_abi_section): New function.
7082 (mips_gdbarch_init): Call it.
7083
6ac5df3a
MK
70842002-06-09 Mark Kettenis <kettenis@gnu.org>
7085
7086 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7087 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7088 after Andrew's 2002-06-08 gdbarch change.
7089
82ea117a
MK
70902002-06-09 Mark Kettenis <kettenis@gnu.org>
7091
7092 * i386-linux-nat.c (suppy_gregset): Don't supply
7093 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7094 register cache.
7095 (fill_gregset): Don't fetch it under the same circumstances.
7096
3c25f8c7
AC
70972002-06-09 Andrew Cagney <cagney@redhat.com>
7098
7099 * Makefile.in (callback_h): Define.
7100 (remote_sim_h): Update path to remote-sim.h.
7101 (remote-rdp.o): Add $(callback_h).
7102 (remote-sim.o): Use $(callback_h).
7103 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7104 * remote-rdp.c: Include "gdb/callback.h".
7105
1029b7fa
MK
71062002-06-09 Mark Kettenis <kettenis@gnu.org>
7107
7108 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7109 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7110
616675d3
AC
71112002-06-08 Andrew Cagney <ac131313@redhat.com>
7112
a3efda28
AC
7113 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7114 * rdi-share/serpardr.c: Ditto.
7115 * rdi-share/unixcomm.c: Ditto.
7116 * rdi-share/serdrv.c: Ditto.
7117 * rdi-share/hostchan.h: Ditto.
7118 * rdi-share/hostchan.c: Ditto.
7119 * rdi-share/host.h: Ditto.
7120 * rdi-share/devsw.c: Ditto.
7121
c5f10366
AC
7122 * objfiles.h: Change type of obj_private to void pointer.
7123 * pa64solib.c: Update copyright. Don't include "assert.h", use
7124 strcmp instead of STREQ, use LONGEST, do not use PTR
7125 * somsolib.c: Ditto.
7126
616675d3
AC
7127 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7128 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7129 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7130
e4b415d9
AC
71312002-06-08 Andrew Cagney <ac131313@redhat.com>
7132
7133 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7134 (default_get_saved_register): Delete function.
7135 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7136 generic_unwind_get_saved_register.
7137 * gdbarch.h, gdbarch.c: Re-generate.
7138
ca0d0b52
AC
71392002-06-08 Andrew Cagney <ac131313@redhat.com>
7140
7141 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7142 generic_func_frame_chain_valid.
7143 * gdbarch.h, gdbarch.c: Re-generate.
7144 * blockframe.c (generic_func_frame_chain_valid): Only check
7145 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7146 passing FP to PC_IN_CALL_DUMMY.
7147 Fix PR gdb/360.
7148
76860b5f
AC
71492002-06-08 Andrew Cagney <ac131313@redhat.com>
7150
7151 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7152 (register_gdbarch_data): Initialize init_p.
7153 (gdbarch_data): Initialize data pointer using the init function.
7154 (init_gdbarch_data): Delete function.
7155 (gdbarch_update_p): Update.
7156 (initialize_non_multiarch): Update.
7157 (struct gdbarch): Add field initialized_p.
7158 * gdbarch.h, gdbarch.c: Re-generate.
7159
8dda9770
ML
71602002-06-07 Michal Ludvig <mludvig@suse.cz>
7161
7162 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7163 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7164 better do the things actually here.
7165 * x86-64-tdep.c (x86_64_register_name2nr): New.
7166 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7167 (x86_64_gdbarch_init): Respect the above change.
7168 * x86-64-tdep.h (x86_64_register_name2nr)
7169 (x86_64_register_nr2name): Add prototypes.
7170 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7171
3d79a47c
MS
71722002-06-06 Michael Snyder <msnyder@redhat.com>
7173
7bd91a28
MS
7174 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7175 Delete extra braces and re-indent.
7176 (d10v_store_return_value): Char return values
3d79a47c
MS
7177 must be shifted over by one byte in R0.
7178 (d10v_extract_return_value): Delete extra braces, re-indent.
7179
095a4c96
EZ
71802002-06-06 Elena Zannoni <ezannoni@redhat.com>
7181
7182 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7183 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7184 (d10v_integer_to_address): Rewrite.
7185 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7186 the d10v specific functions which take care of converting to the
7187 correct space.
7188
e8a77ca4
EZ
71892002-06-06 Elena Zannoni <ezannoni@redhat.com>
7190
7191 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7192 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7193
4f2e4a4f
AC
71942002-06-02 Andrew Cagney <ac131313@redhat.com>
7195
7196 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7197 includes.
7198 * config/tm-linux.h: Ditto.
7199 * config/alpha/tm-alphalinux.h: Ditto.
7200 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7201 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7202 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7203 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7204 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7205 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7206 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7207 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7208 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7209 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7210 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7211 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7212 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7213 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7214 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7215 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7216 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7217 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7218 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7219 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7220 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7221 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7222 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7223 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7224 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7225 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7226 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7227 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7228 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7229 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7230 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7231 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7232 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7233 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7234 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7235 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7236 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7237
ae2ab2ce
AS
72382002-05-04 Aidan Skinner <aidan@velvet.net>
7239
7240 * ada-exp.tab.c: New file
7241 * ada-exp.y: New file
7242 * ada-lang.c: New file
7243 * ada-lang.h: New file
7244 * ada-lex.c: New file
7245 * ada-lex.l: New file
7246 * ada-tasks.c: New file
7247 * ada-typeprint.c: New file
7248 * ada-valprint.c: New file
7249
0ddd0135
JT
72502002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7253 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7254
750fbacc
JT
72552002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7256
7257 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7258 insetead of ppc-linux-tdep.o.
7259 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7260 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7261
df94e18a
AC
72622002-06-02 Andrew Cagney <ac131313@redhat.com>
7263
7264 2002-05-07 Christian Groessler <chris@groessler.org>
7265 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7266 bit register contents for little endian hosts.
7267
1a38ab75
AC
72682002-06-01 Andrew Cagney <ac131313@redhat.com>
7269
7270 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7271 any maintainer.
7272
8b1632ac
AC
72732002-06-01 Andrew Cagney <ac131313@redhat.com>
7274
7275 * gdbarch.h: Regenerate.
7276
627054c8
AC
72772002-06-01 Andrew Cagney <ac131313@redhat.com>
7278
7279 * MAINTAINERS: Add everyone to write-after-approval list.
7280
4f460812
AC
72812002-06-01 Andrew Cagney <ac131313@redhat.com>
7282
7283 * stack.c (frame_info): Use frame_register_unwind instead of
7284 saved_regs. Mention when the SP is on the stack or in a register.
7285
7286 * frame.h (frame_register_unwind_ftype): Define. Document.
7287 (struct frame_info): Add field register_unwind and
7288 register_unwind_cache.
7289 (frame_register_unwind): Declare.
7290 (generic_unwind_get_saved_register): Declare.
7291
7292 * frame.c (frame_register_unwind): New function.
7293 (generic_unwind_get_saved_register): New function.
7294
7295 * blockframe.c (generic_call_dummy_register_unwind): New function.
7296 (frame_saved_regs_register_unwind): New function.
7297 (set_unwind_by_pc): New function.
7298 (create_new_frame): New function.
7299 (get_prev_frame): New function.
7300
de888f76
AC
73012002-05-30 Andrew Cagney <ac131313@redhat.com>
7302
7303 * a29k-share/: Delete directory.
7304 * remote-vx29k.c: Delete file.
7305
2f2c3626
JT
73062002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7307
7308 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7309 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7310
9ce5c36a
JT
73112002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7312
7313 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7314 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7315 (sparc64nbsd-nat.o)
7316 (sparcnbsd-nat.o)
7317 (sparcnbsd-tdep.o): New dependency lists.
7318 * NEWS: Note new UltraSPARC NetBSD native configuration.
7319 * configure.host (sparc64-*-netbsd*): New host.
7320 * configure.tgt (sparc-*-netbsdelf*)
7321 (sparc-*-netbsd*): Set gdb_target to nbsd.
7322 (sparc64-*-netbsd*): New target.
7323 * sparc64nbsd-nat.c: New file.
7324 * sparcnbsd-nat.c: New file.
7325 * sparcnbsd-tdep.c: New file.
7326 * sparcnbsd-tdep.h: New file.
7327 * config/sparc/nbsd.mt: New file.
7328 * config/sparc/nbsd64.mh: New file.
7329 * config/sparc/nbsd64.mt: New file.
7330 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7331 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7332 (HOST_IPC): Remove.
7333 * config/sparc/nbsdaout.mt: Remove.
7334 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7335 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7336 (HOST_IPC): Remove.
7337 * config/sparc/nbsdelf.mt: Remove.
7338 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7339 sparc-nat.c compatiblity defines.
7340 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7341 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7342 * config/sparc/tm-nbsd64.h: New file.
7343 * config/sparc/tm-nbsdaout.h: Remove.
7344 * config/sparc/xm-nbsd.h: Remove.
7345
ef3cf062
JT
73462002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7347
7348 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7349 * sparc-tdep.c: Include osabi.h.
7350 (gdbarch_tdep): Add osabi member.
7351 (_initialize_sparc_tdep): Use gdbarch_register.
7352 (sparc_gdbarch_init): Use generic OS ABI framework.
7353 (sparc_dump_tdep): New function.
7354
ee8ff470
KB
73552002-05-30 Kevin Buettner <kevinb@redhat.com>
7356
7357 * corefile.c (do_captured_read_memory_integer): Return non-zero
7358 result.
7359 (safe_read_memory_integer): Copy result of memory read when
7360 status is non-zero. Also, add comments.
7361
7b112f9c
JT
73622002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7363
7364 * Makefile.in (ppc_tdep_h): Define.
7365 (ppc-linux-nat.o)
7366 (ppc-linux-tdep.o)
7367 (rs6000-tdep.o): Use $(ppc_tdep_h).
7368 (ppc-sysv-tdep.o)
7369 (ppcnbsd-nat.o)
7370 (ppcnbsd-tdep.o): New dependency lists.
7371 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7372 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7373 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7374 (ppc_sysv_abi_broken_use_struct_convention)
7375 (ppc_sysv_abi_use_struct_convention)
7376 (ppc_sysv_abi_push_arguments): Move to...
7377 * ppc-sysv-tdep.c: ...here.
7378 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7379 * rs6000-tdep.c (process_note_abi_tag_sections)
7380 (get_elfosabi): Remove.
7381 (rs6000_gdbarch_init): Use generic OS ABI framework.
7382 (rs6000_dump_tdep): New function.
7383 (_initialize_rs6000_tdep): Use gdbarch_register.
7384 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7385 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7386 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7387 of ppc-linux-tdep.o.
7388 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7389 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7390 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7391 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7392 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7393 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7394
480dd42a
JB
73952002-05-29 Jim Blandy <jimb@redhat.com>
7396
7397 * macroscope.c (default_macro_scope): Put `void' in empty argument
7398 list.
7399
4182591f
AC
74002002-05-29 Andrew Cagney <ac131313@redhat.com>
7401
7402 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7403 * arch-utils.c: Include "sim-regno.h".
7404 * gdbarch.sh: Don't include "sim-regno.h".
7405 * gdbarch.h, gdbarch.c: Regenerate.
7406 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7407 here.
7408 * arch-utils.h (legacy_register_sim_regno): To here.
7409 * remote-sim.c (legacy_register_sim_regno): Move function from
7410 here.
7411 * arch-utils.c (legacy_register_sim_regno): To here.
7412
8238d0bf
AC
74132002-05-28 Andrew Cagney <ac131313@redhat.com>
7414
7415 * sim-regno.h: New file.
7416 * Makefile.in (sim_regno_h): Define.
7417 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7418 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7419 (legacy_register_sim_regno): New function.
7420 (one2one_register_sim_regno): New function.
7421 (gdbsim_fetch_register): Rewrite.
7422 (gdbsim_store_register): Only store a register when
7423 REGISTER_SIM_REGNO is valid.
7424 * d10v-tdep.c: Include "sim-regno.h".
7425 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7426 (d10v_ts3_register_sim_regno): Ditto.
7427 * gdbarch.sh: Include "sim-regno.h".
7428 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7429 * gdbarch.h, gdbarch.c: Regenerate.
7430 * arch-utils.h (default_register_sim_regno): Delete declaration.
7431 * arch-utils.c (default_register_sim_regno): Delete function.
7432
485721b1
JT
74332002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7434
7435 * ppcnbsd-nat.c: Rewrite.
7436 * ppcnbsd-tdep.c: New file.
7437 * ppcnbsd-tdep.h: New file.
7438 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7439 solib.o, and solib-svr4.o.
7440 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7441 nbsd-tdep.o, and corelow.o.
7442
697f244d
AC
74432002-05-28 Andrew Cagney <ac131313@redhat.com>
7444
7445 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7446 `tr' and `sed'. Mention that `broken' targets are not expected to
7447 build.
7448
f08caad1 74492002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7450
7451 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7452 Let PC point right after the prologue before looking up symbols.
7453
3139facc
MH
74542002-05-27 Martin M. Hunt <hunt@redhat.com>
7455
7456 * i386-tdep.c (i386_register_virtual_type): Return
7457 builtin_type_vec128i for SSE registers.
7458
7459 * gdbtypes.h (builtin_type_vec128i): Declare.
7460
7461 * gdbtypes.c (build_builtin_type_vec128i): New function.
7462 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7463 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7464 (build_gdbtypes): Initialize new builtin vector types.
7465 (_initialize_gdbtypes): Register new vector types with gdbarch.
7466
6e3ba3b8
JT
74672002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7468
7469 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7470 since it has been multi-arch'd.
7471 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7472 Move Alpha and VAX multi-arch news entries to same section
7473 as other multi-arch news.
7474
93d5585d
JT
74752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7476
7477 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7478 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7479 static. Rename some register numbers to put them in ns32k-tdep
7480 private namespace.
7481 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7482 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7483 functions.
7484 (_initialize_ns32k_tdep): Use gdbarch_register.
7485 * ns32k-tdep.h: New file.
7486 * ns32knbsd-tdep.c: New file.
7487 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7488 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7489 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7490 REGISTER_BYTES, REGISTER_BYTE): Remove.
7491 * config/ns32k/tm-ns32k.h: New file.
7492 * config/ns32k/tm-umax.h: Remove.
7493
efb2c70e
JT
74942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7495
7496 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7497 ns32k_store_struct_return, ns32k_extract_return_value,
7498 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7499 functions.
7500 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7501 ns32k_saved_pc_after_call.
7502 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7503 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7504 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7505 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7506 ns32k_extract_struct_value_address.
7507
7bcc927b
JT
75082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7509
7510 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7511 ns32k_fix_call_dummy): New.
7512 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7513 ns32k_call_dummy_words.
7514 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7515 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7516 CALL_DUMMY_NARGS): Remove.
7517 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7518
78f9d765
JT
75192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7520
7521 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7522 ns32k_frame_saved_pc, ns32k_frame_args_address,
7523 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7524 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7525 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7526 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7527 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7528 (BREAKPOINT): Remove..
7529 (FRAME_CHAIN): Define as ns32k_frame_chain.
7530 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7531 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7532 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7533 (FRAME_FIND_SAVED_REGS): Remove.
7534 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7535 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7536 (POP_FRAME): Define as ns32k_pop_frame.
7537
f2c762e0
JT
75382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7539
7540 * ns32k-tdep.c (ns32k_register_byte_32082,
7541 ns32k_register_byte_32382, ns32k_register_raw_size,
7542 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7543 functions.
7544 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7545 ns32k_register_byte_32382.
7546 * config/ns32k/tm-umax.h: Update copyright years.
7547 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7548 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7549 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7550 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7551 (ns32k_get_enter_addr): Fix prototype.
7552
af137673
JT
75532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7554
7555 * ns32k-tdep.c: Update copyright years.
7556 (ns32k_register_name_32082): New function.
7557 (ns32k_register_name_32382): Ditto.
7558 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7559 (REGISTER_NAME): Define as ns32k_register_name_32382.
7560 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7561 (REGISTER_NAME): Define as ns32k_register_name_32082.
7562
a8bc7b56
JB
75632002-05-24 Jim Blandy <jimb@redhat.com>
7564
7565 * dwarf2read.c (free_line_header): Use xfree, not free.
7566
83a45910
JT
75672002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7568
7569 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7570 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7571
0db71247
AC
75722002-05-23 Andrew Cagney <ac131313@redhat.com>
7573
7574 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7575
b9e5e4dd
AC
75762002-05-23 Andrew Cagney <ac131313@redhat.com>
7577
7578 From Ross Alexander at NEC Europe:
7579 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7580
de530e84
MS
75812002-05-23 Michael Snyder <msnyder@redhat.com>
7582
7583 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7584 for input, rather than parse_and_eval_address.
7585
b91b96f4
AC
75862002-05-23 Andrew Cagney <ac131313@redhat.com>
7587
7588 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7589 * Makefile.in (sim_d10v_h): Update definition.
7590
8b279e7a
AC
75912002-05-24 Andrew Cagney <cagney@redhat.com>
7592
7593 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7594 change `2002-05-22 Michael Snyder' below.
7595 (d10v_push_arguments): Ditto.
7596 (d10v_extract_return_value): Ditto.
7597
0a3d0425
JB
75982002-05-23 Jim Blandy <jimb@redhat.com>
7599
7600 * macrotab.c (check_for_redefinition): Don't complain if the new
7601 definition is the same as the previous one. Take more arguments
7602 to allow the comparison.
7603 (macro_define_object, macro_define_function): Pass more arguments
7604 to check_for_redefinition.
7605
78eac43e
MS
76062002-05-22 Michael Snyder <msnyder@redhat.com>
7607
7608 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7609 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7610 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7611 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7612 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7613 Add a temp variable to save a call (and a memory read).
7614 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7615 if possible (so that PC_IN_CALL_DUMMY will work).
7616
9bc1edb8
CV
76172002-05-22 Corinna Vinschen <vinschen@redhat.com>
7618
7619 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7620
005ef3d2
ML
76212002-05-22 Michal Ludvig <mludvig@suse.cz>
7622
7623 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7624 fde->cie_ptr.
7625 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7626 (dwarf2_build_frame_info): Add offset to fde->initial_location
7627 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7628 (execute_stack_op): Change type of 'result' from ULONGEST to
7629 CORE_ADDR.
005ef3d2 7630
fcf4f891
JT
76312002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7632
7633 * config/alpha/tm-nbsd.h: Include solib.h.
7634
cfef91e4
JT
76352002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7638 assumptions about the host's byte order.
7639
9964235a
JT
76402002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7641
7642 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7643 to dependency list.
7644 * alphanbsd-tdep.c: Include solib-svr4.h.
7645 * shnbsd-tdep.c: Ditto.
7646
9eeef8ef
JT
76472002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7648
7649 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7650 nbsd-tdep.h to dependency list.
7651 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7652 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7653 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7654 nbsdaout.mh and nbsdelf.mh consistently.
7655 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7656 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7657 nbsdaout.mt and nbsdelf.mh consistently.
7658 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7659 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7660 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7661 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7662 a.out shared library stuff from here...
7663 * config/nm-nbsdaout.h: ...to here.
7664 * config/tm-nbsd.h: Remove.
7665 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7666 * config/arm/nbsd.mh: Remove.
7667 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7668 nbsd-tdep.o.
7669 * config/arm/nbsdaout.mh: New file.
7670 * config/arm/nbsdelf.mh: New file.
7671 * config/arm/nm-nbsdaout.h: New file.
7672 * config/i386/nbsd.mh: Remove.
7673 * config/i386/nbsd.mt: Remove.
7674 * config/i386/nbsdaout.mh: New file.
7675 * config/i386/nbsdaout.mt: New file.
7676 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7677 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7678 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7679 i386_register_u_addr): Remove.
7680 * config/i386/nm-nbsdaout.h: New file.
7681 * config/i386/nm-nbsdelf.h: Remove.
7682 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7683 (USE_STRUCT_CONVENTION): Remove.
7684 * config/i386/tm-nbsdaout.h: New file.
7685 * config/i386/tm-nbsdelf.h: Remove.
7686 * config/m68k/nbsd.mh: Remove.
7687 * config/m68k/nbsd.mt: Remove.
7688 * config/m68k/nbsdaout.mh: New file.
7689 * config/m68k/nbsdaout.mt: New file.
7690 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7691 * config/m68k/nm-nbsdaout.h: New file.
7692 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7693 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7694 * config/ns32k/nbsd.mh: Remove.
7695 * config/ns32k/nbsd.mt: Remove.
7696 * config/ns32k/nbsdaout.mh: New file.
7697 * config/ns32k/nbsdaout.mt: New file.
7698 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7699 * config/ns32k/nm-nbsdaout.h: New file.
7700 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7701 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7702 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7703 (SVR4_SHARED_LIBS): Remove.
7704 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7705 * config/sparc/nbsd.mh: Remove.
7706 * config/sparc/nbsd.mt: Remove.
7707 * config/sparc/nbsdaout.mh: New file.
7708 * config/sparc/nbsdaout.mt: New file.
7709 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7710 * config/sparc/nbsdelf.mt: New file.
7711 * config/sparc/nm-nbsdaout.h: New file.
7712 * config/sparc/nm-nbsdelf.h: Remove.
7713 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7714 * config/sparc/tm-nbsdaout.h: New file.
7715
257ce470
JT
77162002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7717
7718 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7719 mipsnbsd-tdep.c
7720 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7721
76a6d5fe
JT
77222002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7723
7724 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7725 shnbsd-nat.c.
7726 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7727
45888261
JT
77282002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7729
7730 * NEWS: Note new MIPS NetBSD native configuration.
7731 * configure.host (mips*-*-netbsd*): New host.
7732 * configure.tgt (mips*-*-netbsd*): New target.
7733 * mipsnbsd-nat.c: New file.
7734 * mipsnbsd-tdep.c: New file.
7735 * mipsnbsd-tdep.h: New file.
7736 * config/mips/nbsd.mh: New file.
7737 * config/mips/nbsd.mt: New file.
7738 * config/mips/nm-nbsd.h: New file.
7739 * config/mips/tm-nbsd.h: New file.
7740
70f80edf
JT
77412002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7742
7743 * Makefile.in (SFILES): Add osabi.c.
7744 (COMMON_OBS): Add osabi.o.
7745 (osabi.o): New dependency list.
7746 * osabi.c: New file.
7747 * osabi.h: New file.
7748 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7749
7750 * Makefile.in (alpha_tdep_h): Define and use instead of
7751 alpha-tdep.h.
7752 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7753 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7754 Remove.
7755 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7756 * alpha-tdep.h: Include osabi.h.
7757 (alpha_abi): Remove.
7758 (gdbarch_tdep): Use generic OS ABI framework.
7759 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7760 gdbarch_register_osabi.
7761 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7762 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7763 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7764
7765 * Makefile.in (sh_tdep_h): Add osabi.h.
7766 * sh-tdep.h (sh_osabi): Remove.
7767 (gdbarch_tdep): Use generic OS ABI framework.
7768 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7769 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7770 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7771 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7772
7773 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7774 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7775 gdbarch_register_osabi.
7776 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7777 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7778 (get_elfosabi): Rename to...
7779 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7780 ABI framework support routines.
7781 (arm_gdbarch_init): Use generic OS ABI framework.
7782 (arm_dump_tdep): Likewise.
7783 (_initialize_arm_tdep): Likewise.
7784 * arm-tdep.h: Include osabi.h.
7785 (arm_abi): Remove.
7786 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7787 osabi member.
7788 (arm_gdbarch_register_os_abi): Remove prototype.
7789 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7790 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7791
7792 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7793 * mips-tdep.c: Include osabi.h.
7794 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7795 OS ABI framework.
7796
d194345b
KH
77972002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7798
7799 * h8300-tdep.c: Fix formatting.
7800
70c6b0d1
EZ
78012002-05-20 Elena Zannoni <ezannoni@redhat.com>
7802
7803 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7804 printing vector registers.
7805
165b8e33
AC
78062002-05-19 Andrew Cagney <ac131313@redhat.com>
7807
7808 From Fernando Nasser:
7809 * remote.c (remote_async_open_1): Re-throw the exception when the
7810 connection fails.
7811 (remote_cisco_open): Ditto.
7812 (remote_open_1): Ditto.
7813
36918e70
AC
78142002-05-19 Andrew Cagney <ac131313@redhat.com>
7815
7816 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7817 (remote_start_remote): Add uiout parameter. Pass through to
7818 remote_start_remote_dummy.
7819 (remote_open_1): Use catch_exception instead of catch_errors.
7820 (remote_async_open_1): Ditto.
7821 (remote_cisco_open): Ditto.
7822
ae44c0c4
AC
78232002-05-19 Andrew Cagney <ac131313@redhat.com>
7824
7825 * remote.c (remote_start_remote): Replace PTR with void pointer.
7826 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7827 static.
7828
8efe637d
AC
78292002-05-18 Andrew Cagney <ac131313@redhat.com>
7830
7831 * gdb_indent.sh: Allow the script to be run in the sim directory.
7832
2f1b5984
MK
78332002-05-18 Mark Kettenis <kettenis@gnu.org>
7834
f0f625e2
MK
7835 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7836 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7837
2f1b5984
MK
7838 * corelow.c (core_open): Only call set_gdbarch_from_file if
7839 exec_bfd is NULL.
7840
fc974602
AV
78412002-05-17 Andrey Volkov <avolkov@transas.com>
7842
7843 * h8300-tdep.c: Add support of EXR register
7844 * config/h8300/tm-h8300.h: Ditto.
7845
906709f4
AV
78462002-05-17 Andrey Volkov <avolkov@transas.com>
7847
7848 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7849
6e591d68
AV
78502002-05-17 Andrey Volkov <avolkov@transas.com>
7851
7852 * h8300-tdep.c: Change literal regnums to REGNO.
7853
84f0252a
JB
78542002-05-17 Jim Blandy <jimb@redhat.com>
7855
e0e9281e
JB
7856 * NEWS: Note addition of macro support.
7857
84f0252a
JB
7858 Expand preprocessor macros in C expressions.
7859 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7860 (scan_macro_expansion, scanning_macro_expansion,
7861 finished_macro_expansion): New function declarations.
7862 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7863 variable declarations.
7864 * parser-defs.h (expression_context_pc): New declaration.
7865 * parse.c (expression_context_pc): New variable.
7866 (parse_exp_1): Set expression_context_pc, as well as
7867 expression_context_block.
7868 * c-exp.y (yylex): If we're not already reading the result of a
7869 macro expansion, try to macro-expand the next token. When we're
7870 done scanning a macro expansion, switch back to the mainline text.
7871 Commas and `if's in a macro's expansion don't terminate the input.
7872 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7873 (macro_original_text, macro_expanded_text,
7874 expression_macro_lookup_func, expression_macro_lookup_baton): New
7875 variables.
7876 (scan_macro_expansion, scanning_macro_expansion,
7877 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7878 c_preprocess_and_parse): New functions.
7879 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7880 c_preprocess_and_parse, instead of c_parse.
7881 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7882 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7883
1c509ca8
JR
7884Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7885
7886 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7887 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7888 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7889
2250ee0c
CV
78902002-05-17 Corinna Vinschen <vinschen@redhat.com>
7891
7892 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7893
ab3b8126
JT
78942002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7895
7896 * Makefile.in (sh_tdep_h): Define and use.
7897 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7898 register enum): Move to...
7899 * * sh-tdep.h: ...here.
7900 * sh-tdep.c: Include sh-tdep.h.
7901 * sh3-rom.c: Likewise.
7902 * shnbsd-tdep.c: Likewise.
7903
ed9d4749
MS
79042002-05-16 Michael Snyder <msnyder@redhat.com>
7905
7906 * arm-tdep.c: Spelling fix in comment.
7907
2e276125
JB
79082002-05-16 Jim Blandy <jimb@redhat.com>
7909
6821892e
JB
7910 Add commands for manually expanding macros and showing their
7911 definitions.
7912 * macrocmd.c, macroscope.c, macroscope.h: New files.
7913 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7914 (macroscope_h): New variable.
7915 (HFILES_NO_SRCDIR): Add macroscope.h.
7916 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7917 (macroscope.o, macrocmd.o): New rules.
7918
2e276125
JB
7919 Teach the Dwarf 2 reader to read macro information.
7920 * dwarf2read.c: #include "macrotab.h".
7921 (dwarf_macinfo_buffer): New variable.
7922 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7923 dwarf_macinfo_size.
7924 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7925 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7926 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7927 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7928 dwarf2_macro_spaces_in_definition): New complaints.
7929 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7930 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7931 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7932 the partial symbol table.
7933 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7934 from what's recorded in the partial symbol table.
7935 (read_file_scope): If the compilation unit has a
7936 `DW_AT_macro_info' attribute, read its macro information.
7937 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7938
2f53fe6c
DJ
79392002-05-16 Daniel Jacobowitz <drow@mvista.com>
7940
7941 Fix PR gdb/546
7942 * ser-tcp.c: Don't include <netinet/udp.h>.
7943
2be99286
SC
79442002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7945
7946 * MAINTAINERS: Update my email address.
7947
c9af212b 79482002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7949
7950 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7951 include file of the same name.
7952
bf5f1a52
CV
79532002-05-16 Corinna Vinschen <vinschen@redhat.com>
7954
7955 * configure.tgt: Mark v850 as multi-arched.
7956 * config/v850/tm-v850.h: Remove file.
7957 * config/v850/v850.mt: Eliminate TM_FILE.
7958
435e042a
CV
79592002-05-16 Corinna Vinschen <vinschen@redhat.com>
7960
7961 * v850-tdep.c: Full multi-arch.
7962 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7963 Define GDB_MULTI_ARCH to 2.
7964
9819c6c8
PM
79652002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7966
7967 * p-exp.y (current_type): New static variable.
7968 Carries the type of the expression at the position that is parsed.
7969 (push_current_type, pop_current_type): Two new functions. Used
7970 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7971 (search_field): New static variable. Set to one after parsing a point
7972 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7973 (FIELDNAME): New token. After a point only a token belonging to
7974 current_type type definition is allowed.
7975 (all over token rules): reset and change current_type according
7976 to rules.
7977 (exp '[' rule): insert implicit array index field if
7978 exp is a pascal string type.
7979
3a06899a
CV
79802002-05-16 Corinna Vinschen <vinschen@redhat.com>
7981
7982 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7983 frame info. Use frame_info's saved_regs instead of matching member
7984 in extra_frame_info throughout.
7985 (v850_frame_init_saved_regs): New function.
7986 (v850_init_extra_frame_info): Move most functionality into
7987 v850_frame_init_saved_regs().
7988 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7989 (v850_frame_find_saved_regs): Remove declaration.
7990 (FRAME_FIND_SAVED_REGS): Remove definition.
7991 (v850_frame_init_saved_regs): Add declaration.
7992 (FRAME_INIT_SAVED_REGS): Add definition.
7993
6ed14b0e
CV
79942002-05-16 Corinna Vinschen <vinschen@redhat.com>
7995
7996 * v850-tdep.c: Begin multi-arch'ing v850.
7997 (v850_target_architecture_hook): Remove function.
7998 (v850_gdbarch_init): New function. Add code previously in
7999 v850_target_architecture_hook().
8000 (_initialize_v850_tdep): Don't set target_architecture_hook.
8001 Call register_gdbarch_init() instead.
8002
42725910
DJ
80032002-05-16 Daniel Jacobowitz <drow@mvista.com>
8004
8005 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8006 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8007 (fixup_class_method_type): Likewise.
8008
99d9066e
JB
80092002-05-15 Jim Blandy <jimb@redhat.com>
8010
8011 Add macro structures to GDB's symbol tables. Nobody puts anything
8012 in them yet.
8013 * symtab.h (struct symtab): New member: `macro_table'.
8014 * buildsym.h (pending_macros): New global variable.
8015 * buildsym.c: #include "macrotab.h".
8016 (buildsym_init): Initialize `pending_macros'.
8017 (end_symtab): If we found macro information while reading a CU's
8018 debugging info, do build a symtab structure for it. Make the
8019 symtab point to the macro information, and clear the
8020 `pending_macros' pointer which held it while we were reading the
8021 debug info.
8022 (really_free_pendings): Free any pending macro table.
8023 * objfiles.h (struct objfile): New member: `macro_cache'.
8024 * objfiles.c (allocate_objfile): Set allocate and free functions
8025 for the macro cache's objstack.
8026 (free_objfile): Empty the macro cache's obstack.
8027 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8028 set new allocate and free functions for it.
8029 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8030 free functions for the macro cache's objstack. (Why is this
8031 function building its own objfile?)
8032 * symmisc.c (print_objfile_statistics): Print statistics on the
8033 macro bcache.
8034 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8035
c899585b
RE
80362002-05-15 Richard Earnshaw <rearnsha@arm.com>
8037
8038 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8039 (REGISTER_U_ADDR): Delete definition.
8040 (arm_register_u_addr): Delete declaration.
8041
a6cdd8c5
RE
80422002-05-15 Richard Earnshaw <rearnsha@arm.com>
8043
8044 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8045 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8046
c97dcfc7
AC
80472002-05-14 Andrew Cagney <ac131313@redhat.com>
8048
8049 * regcache.c (register_valid): Revise comments refering to "Not
8050 available" and "unavailable".
8051 * frame.c (frame_register_read): Ditto.
8052 * findvar.c (value_of_register): Ditto.
8053
93021b7d
AC
80542002-05-15 Andrew Cagney <cagney@redhat.com>
8055
8056 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8057 (remote-sim.o): Update dependencies.
8058 (d10v-tdep.o): Specify dependencies.
8059 (sim_d10v_h): Define.
8060
a86bc61c
JB
80612002-05-14 Jim Blandy <jimb@redhat.com>
8062
8063 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8064 * macrotab.c (macro_lookup_inclusion, find_definition,
8065 new_macro_table): Same.
8066
8067 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8068 not `! strcmp ()'. This is a dubious improvement.
8069 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8070
8071 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8072 although it's not necessary, to avoid a warning.
8073
2fdde8f8
DJ
80742002-05-14 Daniel Jacobowitz <drow@mvista.com>
8075
8076 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8077 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8078 TYPE_INSTANCE_FLAGS.
8079 (struct main_type): New.
8080 (struct type): Move most members to struct main_type. Change
8081 cv_type and as_type to new type_chain member. Add instance_flags.
8082 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8083 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8084 (finish_cv_type): Remove prototype.
8085 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8086 Set TYPE_CHAIN.
8087 (alloc_type_instance): New function.
8088 (smash_type): New function.
8089 (make_pointer_type, make_reference_type, make_function_type)
8090 (smash_to_member_type, smash_to_method_type): Call smash_type.
8091 (make_qualified_type): New function.
8092 (make_type_with_address_space): Call make_qualified_type.
8093 (make_cv_type): Likewise.
8094 (finish_cv_type): Remove unnecessary function.
8095 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8096 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8097 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8098 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8099 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8100 * hpread.c (hpread_read_struct_type): Likewise.
8101 * stabsread.c (read_struct_type): Likewise.
8102
843fedf4
EZ
81032002-05-14 Elena Zannoni <ezannoni@redhat.com>
8104
8105 * configure.tgt: Add a catch all sh* target, for cases like
8106 sh[2,3,4]-elf and sh-hms.
8107
05a6c72c
KS
81082002-05-14 Keith Seitz <keiths@redhat.com>
8109
8110 * event-loop.c (create_file_handler): Don't do anything but
8111 update data when we are given a fd which we are already
8112 monitoring.
8113
5d085aaf
ML
81142002-05-14 Michal Ludvig <mludvig@suse.cz>
8115
8116 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8117 (update_context): Use __func__ in warnings.
8118
9db8d71f
DJ
81192002-05-14 Daniel Jacobowitz <drow@mvista.com>
8120
8121 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8122 and tcp_close to net_open and net_close.
8123 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8124 using UDP if requested. Don't try to disable Nagle on UDP
8125 sockets.
8126 * remote.c (remote_serial_open): New function. Warn about UDP.
8127 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8128
5dbc6baa
EZ
81292002-05-13 Elena Zannoni <ezannoni@redhat.com>
8130
8131 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8132
cc3023f7
EZ
81332002-05-13 Elena Zannoni <ezannoni@redhat.com>
8134
8135 * configure.tgt: Remove sh-hms target.
8136 * MAINTAINERS: Don't list sh-hms as a separate target.
8137
ec2bcbe7
JB
81382002-05-13 Jim Blandy <jimb@redhat.com>
8139
8140 Add first preprocessor macro-expansion files.
8141 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8142 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8143 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8144 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8145 (COMMON_OBS): Add macrotab.o, macroexp.o.
8146 (macroexp.o, macrotab.o): New rules.
8147
6d531722
AC
81482002-05-13 Andrew Cagney <ac131313@redhat.com>
8149
8150 * config/m88k/tm-m88k.h: Update copyright.
8151 (m88k_target_write_pc): Declare
8152 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8153 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8154 (SHIFT_INST_REGS): Update definition.
8155 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8156 using old definition of TARGET_WRITE_PC.
8157 * regcache.c (generic_target_write_pc): Delete code handling
8158 NNPC_REGNUM.
8159 * gdbarch.sh (NNPC_REGNUM): Delete.
8160 * gdbarch.h, gdbarch.c: Regenerate.
8161
3e3f2739
RE
81622002-05-13 Richard Earnshaw <rearnsha@arm.com>
8163
8164 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8165 builtin reg number.
8166
0004e5a2
DJ
81672002-05-13 Daniel Jacobowitz <drow@mvista.com>
8168
8169 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8170 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8171 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8172 access macros.
8173 * c-typeprint.c (cp_type_print_method_args): Likewise.
8174 (c_type_print_args): Likewise.
8175 * d10v-tdep.c (d10v_push_arguments): Likewise.
8176 (d10v_extract_return_value): Likewise.
8177 * expprint.c (print_subexp): Likewise.
8178 * gdbtypes.c (lookup_primitive_typename): Likewise.
8179 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8180 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8181 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8182 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8183 (TYPE_VECTOR): Likewise.
8184 * hpread.c (hpread_read_struct_type)
8185 (fix_static_member_physnames, fixup_class_method_type)
8186 (hpread_type_lookup): Likewise.
8187 * mdebugread.c (parse_symbol, parse_type): Likewise.
8188 * p-lang.c (is_pascal_string_type): Likewise.
8189 * valops.c (hand_function_call): Likewise.
8190 * x86-64-tdep.c (classify_argument): Likewise.
8191
8192 * hpread.c (hpread_read_function_type)
8193 (hpread_read_doc_function_type): Call replace_type.
8194 * dstread.c (create_new_type): Delete.
8195 (decode_dst_structure, process_dst_function): Call alloc_type.
8196 Use type access macros.
8197
dff95cc7
MK
81982002-05-12 Mark Kettenis <kettenis@gnu.org>
8199
8200 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8201 the're not supported by the current architecture.
8202 (i387_fill_fxsave): Likewise.
8203
bbcd32ad
FF
82042002-05-12 Fred Fish <fnf@redhat.com>
8205
8206 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8207 sect_index_xxx members to index the first slot in section_offsets
8208 if all of the section_offsets are zero.
8209
89cf4787
MK
82102002-05-12 Mark Kettenis <kettenis@gnu.org>
8211
8212 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8213 checked in with last change.
8214
1f77ffc5
MK
82152002-05-12 Mark Kettenis <kettenis@gnu.org>
8216
8217 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8218 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8219 config.sub.
8220
89b8b4a9
DJ
82212002-05-12 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * Makefile.in: Update dependencies.
8224
14a5e767
AC
82252002-05-11 Andrew Cagney <ac131313@redhat.com>
8226
8227 * language.c (local_hex_string_custom): Simplify. Do not depend
8228 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8229
8230 * memattr.c (mem_info_command): Replace calls to
8231 longest_local_hex_string and longest_local_hex_string_custom.
8232 * buildsym.c (make_blockvector): Ditto.
8233 * solib.c (info_sharedlibrary_command): Ditto.
8234 * tracepoint.c (tracepoints_info): Ditto.
8235 * symtab.c (print_msymbol_info): Ditto.
8236
8237 * language.c (local_hex_string): Delete.
8238 (local_hex_string_custom): Delete.
8239 (longest_local_hex_string): Rename to local_hex_string.
8240 (longest_local_hex_string_custom): Rename to
8241 local_hex_string_custom.
8242 * language.h (local_hex_string): Change parameter type to LONGEST.
8243 (local_hex_string_custom): Ditto.
8244 (longest_local_hex_string): Delete declaration.
8245 (longest_local_hex_string_custom): Ditto.
8246
8247 * solib.c: Update copyright.
8248 * memattr.c: Update copyright.
8249
13d01224
AC
82502002-05-11 Andrew Cagney <ac131313@redhat.com>
8251
8252 * arch-utils.h (legacy_register_to_value): Declare.
8253 (legacy_value_to_register): Declare.
8254 (legacy_convert_register_p): Declare.
8255 * arch-utils.c (legacy_register_to_value): New function.
8256 (legacy_value_to_register): New function.
8257 (legacy_convert_register_p): New function.
8258
8259 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8260 (VALUE_TO_REGISTER): Define.
8261 (CONVERT_REGISTER_P): Define.
8262 * gdbarch.h, gdbarch.c: Regenerate.
8263
8264 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8265 VALUE_TO_REGISTER.
8266 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8267 CONVERT_REGISTER_P.
8268
4a1970e4
DJ
82692005-05-11 Daniel Jacobowitz <drow@mvista.com>
8270 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8271
8272 * Makefile.in: Update dependencies for valops.c.
8273 * valops.c: Include "gdb_assert.h".
8274 (typecmp): Skip THIS parameter to methods.
8275 (find_method_list): Remove static_memfuncp argument,
8276 update callers. Check for stub methods.
8277 (find_value_oload_method_list): Don't set *static_memfuncp.
8278 (find_overload_match): Don't check for stub methods. Assert
8279 that methods are not stubbed. Handle static methods.
8280 (value_find_oload_method_list): Remove static_memfuncp argument.
8281 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8282 to the argument list for static stub methods.
8283 * value.h (value_find_oload_method_list): Update prototype.
8284
b2e75d78
AC
82852002-05-11 Andrew Cagney <ac131313@redhat.com>
8286
8287 * arch-utils.h (generic_register_size): Declare.
8288 (generic_register_raw_size, generic_register_virtual_size): Delete
8289 declarations.
8290 * arch-utils.c (generic_register_raw_size): Delete.
8291 (generic_register_size): New function.
8292 (generic_register_virtual_size): Delete.
8293
8294 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8295 default generic_register_size.
8296 * gdbarch.h, gdbarch.c: Re-generate.
8297
8298 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8299 register_virtual_size.
8300 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8301 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8302
451fbdda
AC
83032002-05-11 Andrew Cagney <ac131313@redhat.com>
8304
8305 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8306 * gdbarch.h, gdbarch.c: Regenerate.
8307 * gnu-v3-abi.c: Update copyright.
8308 (vtable_address_point_offset): Update.
8309 (gnuv3_rtti_type): Update.
8310 (gnuv3_baseclass_offset): Update.
8311 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8312 (init_fetch_link_map_offsets): Update.
8313 * remote.c (get_remote_state): Update.
8314
6d2f5cea
DJ
83152002-05-11 Daniel Jacobowitz <drow@mvista.com>
8316
8317 * TODO: Remove value_headof/value_from_vtable_info comment.
8318 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8319 * values.c (value_headof, value_from_vtable_info): Delete.
8320 * value.h (value_from_vtable_info): Delete prototype.
8321
d2324da4
AC
83222002-05-11 Andrew Cagney <ac131313@redhat.com>
8323
8324 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8325 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8326 $(gdb_regex_h).
8327 (gdb_assert_h): Define.
8328 (gdb_wait_h): Define.
8329 (gdb_regex_h): Define.
8330
5c717440
DJ
83312002-05-11 Daniel Jacobowitz <drow@mvista.com>
8332
8333 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8334 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8335
6c7861b3
JT
83362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8337
8338 * nbsd-tdep.c: Fix comment.
8339
ea5bc2a6
JT
83402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8341
8342 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8343 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8344 (nbsd-tdep.o): New dependency list.
8345 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8346 nbsd-tdep.h.
8347 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8348 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8349 * nbsd-tdep.c: New file.
8350 * nbsd-tdep.h: New file.
8351 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8352 nbsd-tdep.h.
8353 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8354 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8355 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8356 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8357
b28da865
JT
83582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8359
8360 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8361 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8362 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8363 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8364 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8365 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8366
4b8ff1fa
JT
83672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8368
8369 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8370 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8371 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8372 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8373 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8374 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8375 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8376
dfe6eb1f
JT
83772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8378
8379 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8380 fetch_elfcore_registers to...
8381 * i386nbsd-tdep.c: ...here.
8382 (i386nbsd_use_struct_convention): Rename to...
8383 (i386nbsd_aout_use_struct_convention): ...this.
8384 (i386nbsd_supply_reg): New function.
8385 (i386nbsd_fill_reg): New function.
8386 (fetch_core_registers): Use i386nbsd_supply_reg.
8387 (fetch_elfcore_registers): Likewise.
8388 (_initialize_i386nbsd_tdep): New function.
8389 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8390 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8391 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8392 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8393 (i386nbsd_aout_use_struct_convention): ...this.
8394
20cb8cda
JT
83952002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8396
8397 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8398 (store_inferior_registers): Use shnbsd_fill_reg.
8399 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8400 sh_nbsd_supply_register): Collapse into...
8401 (shnbsd_supply_reg): ...this.
8402 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8403 (shnbsd_fill_reg): ...this.
8404 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8405 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8406 (fetch_core_registers): Use shnbsd_supply_reg.
8407 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8408 (sh_nbsd_core_fns): Rename to...
8409 (shnbsd_core_fns): ...this.
8410 (sh_nbsd_elfcore_fns): Rename to...
8411 (shnbsd_elfcore_fns): ...this.
8412 (sh_nbsd_init_abi): Rename to...
8413 (shnbsd_init_abi): ...this.
8414 (_initialize_sh_nbsd_tdep): Rename to...
8415 (_initialize_shnbsd_tdep): ...this.
8416 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8417 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8418 sh_nbsd_fill_register): Remove prototypes.
8419 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8420
e750d25e
JT
84212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8422
8423 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8424 (i387-nat.o): Delete dependency list.
8425 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8426 (x86-64-linux-nat.o): Likewise.
8427 * i387-nat.c: Delete file, moving contents to...
8428 * i387-tdep.c: ...here.
8429 * i387-nat.h: Rename...
8430 * i387-tdep.h: ...to this.
8431 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8432 * i386-linux-nat.c: Likewise.
8433 * i386bsd-nat.c: Likewise.
8434 * i386gnu-nat.c: Likewise.
8435 * i386nbsd-nat.c: Likewise.
8436 * i386v4-nat.c: Likewise.
8437 * x86-64-linux-nat.c: Likewise.
8438 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8439 * config/i386/go32.mh (NATDEPFILES): Likewise.
8440 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8441 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8442 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8443 * config/i386/linux.mh (NATDEPFILES): Likewise.
8444 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8445 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8446 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8447 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8448
1aee598a
JT
84492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8450
8451 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8452 (alphanbsd-nat.o): Remove dependency list.
8453 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8454 * alphanbsd-nat.c: Delete. Contents moved to...
8455 * alphanbsd-tdep.c: ...here.
8456 (_initialize_alphanbsd_tdep): Register core functions.
8457 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8458
12bcb0fe
JT
84592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8460
8461 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8462 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8463 (alphanbsd-nat.o): Likewise.
8464 (alphabsd-tdep.o): New dependency list.
8465 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8466 (fill_gregset): Use alphabsd_fill_reg.
8467 (supply_fpregset): Use alphabsd_supply_fpreg.
8468 (fill_fpregset): Use alphabsd_fill_fpreg.
8469 (fetch_inferior_registers): Use struct reg and struct fpreg
8470 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8471 and alphabsd_supply_fpreg.
8472 (store_inferior_registers): Use struct reg and struct fpreg
8473 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8474 and alphabsd_fill_fpreg.
8475 * alphabsd-tdep.c: New file.
8476 * alphabsd-tdep.h: New file.
8477 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8478 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8479 alphabsd_supply_fpreg.
8480 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8481 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8482
361d1df0
EC
84832002-05-11 Eric Christopher <echristo@redhat.com>
8484
8485 * mips-tdep.c (mips_double_register_type): Fix thinko.
8486 (mips_single_register_type): Ditto.
8487 * MAINTAINERS: Add self.
8488
92dd7cee
MK
84892002-05-11 Mark Kettenis <kettenis@gnu.org>
8490
8491 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8492 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8493 right thing on architectures with different endianness and/or
8494 integer sizes.
8495
e27da16d
JT
84962002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8497
8498 From Christian Limpach <chris@Pin.LU>
8499 * configure.in: Change sed expression which comments out
8500 NATDEPFILES to also comment out continuation lines.
8501 * configure: Regenerate.
8502
ddde02bd
EZ
85032002-05-10 Elena Zannoni <ezannoni@redhat.com>
8504
8505 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8506 big patch.
8507
1c922164
EZ
85082002-05-10 Elena Zannoni <ezannoni@redhat.com>
8509
8510 * sh-tdep.c: Include correct file.
8511
283150cd
EZ
85122002-05-10 Elena Zannoni <ezannoni@redhat.com>
8513
8514 New support for sh64-elf (sh5) target.
8515
8516 * configure.tgt: For sh64-elf target, default to sh-elf.
8517
8518 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8519 (struct gdbarch_tdep): Add new fields for new registers and ABI
8520 info.
361d1df0 8521
283150cd
EZ
8522 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8523 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8524 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8525 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8526 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8527 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8528 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8529 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8530 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8531 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8532 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8533 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8534 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8535 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8536 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8537 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8538 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8539 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8540 sign_extend, sh64_nofp_frame_init_saved_regs,
8541 sh64_init_extra_frame_info, sh64_get_saved_register,
8542 sh64_extract_struct_value_address, sh64_pop_frame,
8543 sh64_push_arguments, sh64_extract_return_value,
8544 sh64_store_return_value, sh64_show_media_regs,
8545 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8546 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8547 sh_sh64_register_virtual_type,
8548 sh_sh64_register_convert_to_virtual,
8549 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8550 sh64_register_read, sh64_pseudo_register_write,
8551 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8552 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8553 sh64_do_pseudo_register, sh_compact_do_registers_info,
8554 sh64_do_registers_info, sh_gdbarch_init): New functions.
8555
3117ed25
EZ
85562002-05-10 Elena Zannoni <ezannoni@redhat.com>
8557
8558 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8559
2654e6d4
DJ
85602002-05-10 Daniel Jacobowitz <drow@mvista.com>
8561
8562 * linespec.c (decode_line_1): Check for a double quote after
8563 a filename correctly.
8564
9ab3e532
JB
85652002-05-10 Jim Blandy <jimb@redhat.com>
8566
8567 Properly track the size of the current objfile's .debug_line section.
8568 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8569 (DWARF_LINE_SIZE): New macro.
8570 (dwarf2_build_psymtabs_hard): Record the line section's size in
8571 the partial symbol table.
8572 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8573 symbol table.
8574
126fa72d
PS
85752002-05-10 Petr Sorfa <petrs@caldera.com>
8576
8577 * ia64-tdep.c: Handle breakpoints on L instruction type
8578 in MLX instruction bundle by moving the breakpoint to
8579 the third slot (X instruction type) as L holds only data.
8580
1f077a3e
KB
85812002-05-10 Kevin Buettner <kevinb@redhat.com>
8582
8583 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8584 (process_one_symbol): Complain about discarding local symbols
8585 due to a misplaced N_LBRAC entry.
8586
8120c9d5 85872002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8588
8589 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8590 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8591 decrease the depth we are at, in the case of templates.
361d1df0 8592
67b2c998
DJ
85932002-05-09 Daniel Jacobowitz <drow@mvista.com>
8594
8595 * mips-tdep.c (mips_float_register_type): New function.
8596 (mips_double_register_type): New function.
8597 (mips_print_register): Use them.
8598 (do_fp_register_row): Likewise.
8599
fd326606
DJ
86002002-05-09 Daniel Jacobowitz <drow@mvista.com>
8601
6609d9af 8602 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8603 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8604 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8605
bef35864
MS
86062002-05-09 Michael Snyder <msnyder@redhat.com>
8607
8608 * remote-rdp.c (remote_rdp_can_run): Remove.
8609
c55a3f73
TT
86102002-05-09 Tom Tromey <tromey@redhat.com>
8611
8612 * jv-valprint.c (java_val_print): Handle `char' as a special case
8613 of TYPE_CODE_INT.
8614
b8d5e71d
MS
86152002-05-09 Michael Snyder <msnyder@redhat.com>
8616
8617 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8618 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8619 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8620 str r(0123),[sp,#nn].
361d1df0 8621 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8622 order-independent by placing it in a loop.
8623
e2cd42dd
MS
86242002-05-06 Michael Snyder <msnyder@redhat.com>
8625
8626 * stabsread.c (read_type): Add recognition for new attribute:
8627 "@V;" means that an array type is actually a vector.
8628 This is analogous to the vector flag that's been added to dwarf2.
8629
3ce1502b
MK
86302002-05-09 Mark Kettenis <kettenis@gnu.org>
8631
8632 * i386-tdep.h (i386_abi): New enum.
8633 (struct gdbarch_tdep): Replace os_ident member with abi.
8634 (i386_gdbarch_register_os_abi): New prototype.
8635 * i386-tdep.c (i386_abi_names): New array.
8636 (process_note_abi_tag_sections): Removed.
8637 (process_note_sections): New function.
8638 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8639 (struct i386_abi_handler): New struct.
8640 (i386_abi_handler_list): New variable.
8641 (i386_gdbarch_register_os_abi): New function.
8642 (i386_gdbarch_init): Adapt for the changes given above.
8643
084c156a
DJ
86442002-05-08 Daniel Jacobowitz <drow@mvista.com>
8645
8646 * gregset.h: Say "GNU/Linux".
8647
6599f021
EZ
86482002-05-08 Elena Zannoni <ezannoni@redhat.com>
8649
8650 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8651 (build_gdbtypes): Build builtin_type_v2_float.
8652 (_initialize_gdbtypes): Register new builtin type.
8653
40af4b0c
AC
86542002-05-08 Andrew Cagney <ac131313@redhat.com>
8655
8656 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8657 (clear_gdbarch_swap): New function.
8658 (initialize_non_multiarch): Call.
8659 (gdbarch_update_p): Before calling init(), swap out and clear the
8660 existing architecture.
8661 * gdbarch.c: Regenerate.
8662
4fe84f46
JT
86632002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8664
8665 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8666 alphanbsd-tdep.c.
8667
4015edd1
JT
86682002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8669
8670 * sh-nbsd-nat.c: Rename to...
8671 * shnbsd-nat.c: ...this.
8672 * sh-nbsd-tdep.c: Rename to...
8673 * shnbsd-tdep.c: ...this.
8674 * sh-nbsd-tdep.h: Rename to...
8675 * shnbsd-tdep.h: ...this.
8676 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8677 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8678
0e2bd219
RE
86792002-05-08 Richard Earnshaw <rearnsha@arm.com>
8680
8681 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8682 concatenation for command help messages.
8683
13a38d45
JT
86842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8685
8686 * NEWS: Note new sh*-*-netbsdelf* configuration.
8687 * configure.host: Set gdb_host_cpu to sh for all sh*.
8688 (sh*-*-netbsdelf*): New host.
8689 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8690 (sh*-*-netbsdelf*): New target.
8691 * sh-nbsd-nat.c: New file.
8692 * sh-nbsd-tdep.c: New file.
8693 * sh-nbsd-tdep.h: New file.
8694 * config/sh/nbsd.mh: New file.
8695 * config/sh/nbsd.mt: New file.
8696 * config/sh/nm-nbsd.h: New file.
8697 * config/sh/tm-nbsd.h: New file.
8698
d658f924
JT
86992002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8700
8701 * sh-tdep.c (sh_osabi_names): Declare.
8702 (process_note_abi_tag_sections): New function.
8703 (get_elfosabi): Ditto.
8704 (sh_gdbarch_register_os_abi): Ditto.
8705 (sh_dump_tdep): Ditto.
8706 _initialize_sh_tdep): Use gdbarch_register to register
8707 sh_gdbarch_init and sh_dump_tdep.
8708 * config/sh/tm-sh.h (sh_osabi): Declare.
8709 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8710
848cfffb
AC
87112002-05-07 Andrew Cagney <ac131313@redhat.com>
8712
8713 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8714 (thumb_scan_prologue): Ditto.
8715 (arm_find_callers_reg): Ditto.
8716 (arm_frame_chain): Ditto.
8717 (arm_init_extra_frame_info): Ditto.
8718 (arm_frame_saved_pc): Ditto.
8719 (arm_pop_frame): Ditto.
8720 (arm_push_return_address): New function.
8721 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8722 call_dummy_location, call_dummy_breakpoint_offset_p,
8723 call_dummy_breakpoint_offset, call_dummy_p,
8724 call_dummy_stack_adjust_p, call_dummy_words,
8725 sizeof_call_dummy_words, call_dummy_start_offset,
8726 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8727 call_dummy_address, push_return_address and push_dummy_frame for
8728 generic dummy frames.
8729
e7d717c0
JT
87302002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8731
8732 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8733 size computation for alloca.
8734 (sh_fp_frame_init_saved_regs): Likewise.
8735
7bbcf283
RE
87362002-05-07 Richard Earnshaw <rearnsha@arm.com>
8737
8738 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8739 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8740 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8741 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8742 * remote-rdp.c (remote_rdp_fetch_register): Use
8743 ARM_MAX_REGISTER_RAW_SIZE.
8744 (remote_rdp_store_register): Likewise.
8745
4657573b
ML
87462002-05-07 Michal Ludvig <mludvig@suse.cz>
8747
361d1df0 8748 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8749 added default labels to switch {} statements.
8750 * x86-64-tdep.c: Ditto.
8751 * x86-64-linux-nat.c: Ditto.
8752
010f3b2f
JT
87532002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8754
8755 * solib.h: Protect against multiple inclusion.
8756
debd256d
JB
87572002-05-06 Jim Blandy <jimb@redhat.com>
8758
9ab3e532
JB
8759 Add first preprocessor macro-expansion files.
8760 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8761 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8762 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8763 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8764 (COMMON_OBS): Add macrotab.o, macroexp.o.
8765 (macroexp.o, macrotab.o): New rules.
8766
debd256d
JB
8767 Separate the job of reading the line number info statement program
8768 header (...expialidocious) out into its own function.
8769 * dwarf2read.c (struct line_head, struct filenames, struct
8770 directories): Replace with...
8771 (struct line_header): New structure, containing the full
8772 contents of the statement program header, including the
8773 include directory and file name tables.
8774 (read_file_scope): If we have line number info, instead of just
8775 calling dwarf_decode_lines to do all the work, call
8776 dwarf_decode_line_header first to get a `struct line_header'
8777 containing the data in the statement program header, and then
8778 pass that to dwarf_decode_lines, which will pick up where that
8779 left off. Be sure to clean up the `struct line_header' object.
8780 (dwarf_decode_line_header, free_line_header, add_include_dir,
8781 add_file_name): New functions.
8782 (dwarf_decode_lines): Move all the code to read the statement
8783 program header into dwarf_decode_line_header. Take the line
8784 header it built as the first argument, instead of the offset to
8785 the compilation unit's line number info. Use the new `struct
8786 line_header' type instead of the old structures. No need to do
8787 cleanups here now, since we don't allocate anything.
8788 (dwarf2_statement_list_fits_in_line_number_section,
8789 dwarf2_line_header_too_long): New complaints.
8790
ac3aafc7
EZ
87912002-05-06 Elena Zannoni <ezannoni@redhat.com>
8792
8793 * gdbtypes.c (init_vector_type): New function.
8794 (build_builtin_type_vec128): Simplify the representation of SIMD
8795 registers.
8796 (build_gdbtypes): Initialize new builtin vector types.
8797 (_initialize_gdbtypes): Register new vector types with gdbarch.
8798 (builtin_type_v4_float, builtin_type_v4_int32,
8799 builtin_type_v8_int16, builtin_type_v16_int8,
8800 builtin_type_v2_int32, builtin_type_v4_int16,
8801 builtin_type_v8_int8): New (renamed) SIMD types.
8802
13e49980
MK
88032002-05-06 Mark Kettenis <kettenis@gnu.org>
8804
8805 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8806 (i387_fill_fxsave): Likewise.
8807
997b20b8
AO
88082002-05-05 Alexandre Oliva <aoliva@redhat.com>
8809
8810 * alpha-tdep.c (alpha_extract_return_value): Don't use
8811 non-constant array size in prototype.
8812
535c96ce
AC
88132002-05-04 Andrew Cagney <ac131313@redhat.com>
8814
8815 From Brian Taylor <briant at model dot com>:
8816 * ui-out.c (ui_out_field_core_addr): Use the function
8817 longest_local_hex_string_custom'to format addresses > 32 bits
8818 wide.
8819
8820 * ui-out.c (ui_out_field_core_addr): Update comment.
8821
bedfa57b
AC
88222002-05-04 Andrew Cagney <ac131313@redhat.com>
8823
8824 * stack.c (select_and_print_frame): Make static. Delete the
8825 parameter `level'.
8826 (func_command): Update call.
8827 (select_frame_command): Delete code computing the frame level.
8828 * frame.h (select_and_print_frame): Delete declaration.
8829
f621c63e
AC
88302002-05-04 Andrew Cagney <ac131313@redhat.com>
8831
8832 * sparc-tdep.c (sparc_get_saved_register): Comment why
8833 get_prev_frame call is safe.
8834
0f7d239c
AC
88352002-05-04 Andrew Cagney <ac131313@redhat.com>
8836
8837 * frame.h (select_frame): Delete level parameter.
8838 * stack.c (select_frame): Update. Use frame_relative_level to
8839 obtain the frame's level.
8840 (select_and_print_frame): Update call.
8841 (select_frame_command): Ditto.
8842 (up_silently_base): Ditto.
8843 (down_silently_base): Ditto.
8844 * ocd.c (ocd_start_remote): Ditto.
8845 * remote-rdp.c (remote_rdp_open): Ditto.
8846 * remote-mips.c (mips_initialize): Ditto.
8847 (common_open): Ditto.
8848 * remote-e7000.c (e7000_start_remote): Ditto.
8849 * m3-nat.c (select_thread): Ditto.
8850 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8851 (child_get_current_exception_event): Ditto.
8852 * varobj.c (varobj_create): Ditto.
8853 (varobj_update): Ditto.
8854 (c_value_of_root): Ditto.
8855 * tracepoint.c (finish_tfind_command): Ditto.
8856 * corelow.c (core_open): Ditto.
8857 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8858 * thread.c (info_threads_command): Ditto.
8859 (switch_to_thread): Ditto.
8860 * infrun.c (normal_stop): Ditto.
8861 (restore_selected_frame): Ditto.
8862 (restore_inferior_status): Ditto.
8863 * breakpoint.c (insert_breakpoints): Ditto.
8864 (watchpoint_check): Ditto.
8865 (bpstat_stop_status): Ditto.
8866 (do_enable_breakpoint): Ditto.
8867 * blockframe.c (flush_cached_frames): Ditto.
8868 (reinit_frame_cache): Ditto.
8869
71d6c7b1
AC
88702002-05-04 Andrew Cagney <ac131313@redhat.com>
8871
8872 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8873 maintainer.
8874
cda6c68a
JB
88752002-05-04 Jim Blandy <jimb@redhat.com>
8876
8877 * gdbtypes.c (replace_type): Doc fix.
8878
5c1c87f0
AC
88792002-05-04 Andrew Cagney <ac131313@redhat.com>
8880
8881 * valprint.c (strcat_longest): Delete commented out function.
8882 Update copyright.
8883
cd9bfe15
AC
88842002-05-04 Andrew Cagney <ac131313@redhat.com>
8885
8886 * MAINTAINERS: Mark a29k as deleted.
8887 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8888 Move new configurations to the top.
8889 * configure.tgt: Remove a29k.
8890 * config/a29k/tm-vx29k.h: Delete.
8891 * config/a29k/vx29k.mt: Delete.
8892 * config/a29k/tm-a29k.h: Delete.
8893 * config/a29k/a29k-udi.mt: Delete.
8894 * config/a29k/a29k.mt: Delete.
8895 * a29k-tdep.c: Delete.
8896 * remote-udi.c: Delete.
8897 * remote-mm.c: Delete.
8898 * remote-eb.c: Delete.
8899 * remote-adapt.c: Delete.
8900 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8901 * config/s390/s390x.mt: Ditto.
8902 * config/s390/s390.mt: Ditto.
8903 * config/sparc/sparclynx.mh: Ditto.
8904 * config/sparc/linux.mh: Ditto.
8905 * config/pa/hppaosf.mh: Ditto.
8906 * config/pa/hppabsd.mh: Ditto.
8907 * config/ns32k/nbsd.mt: Ditto.
8908 * config/mips/vr5000.mt: Ditto.
8909 * config/m68k/sun3os4.mh: Ditto.
8910 * config/m68k/nbsd.mt: Ditto.
8911 * config/m68k/m68klynx.mh: Ditto.
8912 * config/m32r/m32r.mt: Ditto.
8913 * config/i386/x86-64linux.mt: Ditto.
8914 * config/i386/nbsdelf.mt: Ditto.
8915 * config/i386/nbsd.mt: Ditto.
8916 * config/i386/i386lynx.mh: Ditto.
8917
bf0c5130
AC
89182002-05-04 Andrew Cagney <ac131313@redhat.com>
8919
8920 * target.c (debug_print_register): New function. Handle oversize
8921 registers.
8922 (debug_to_fetch_registers): Call.
8923 (debug_to_store_registers): Call.
8924
2ae1c2d2
JB
89252002-05-03 Jim Blandy <jimb@redhat.com>
8926
13a393b0
JB
8927 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8928 (read_type): Doc fix.
8929 * gdbtypes.c (replace_type): Doc fix.
8930
2ae1c2d2
JB
8931 * stabsread.c (multiply_defined_struct): New complaint.
8932 (read_struct_type): If the type we were passed isn't empty, or
8933 incomplete, don't read the new struct type into it; complain,
8934 and return the original type unchanged. Take a new `type_code'
8935 argument, which is the type code for the new type.
8936 (read_type): Rather than storing the type's type code here, pass
8937 it as an argument to read_struct_type, and let that take care of
8938 storing it. That way, we don't overwrite the original type code,
8939 so read_struct_type can use it to decide whether we're overwriting
8940 something we shouldn't.
8941 (complain_about_struct_wipeout): New function.
8942
8de9bdc4
AC
89432002-05-03 Andrew Cagney <ac131313@redhat.com>
8944
8945 * gdbarch.sh: Assert that gdbarch is non-NULL.
8946 * gdbarch.c: Regenerate.
8947
f773fdbb
JM
89482002-05-03 Jason Merrill <jason@redhat.com>
8949
8950 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8951 and return NULL.
8952
0e04a514
ML
89532002-05-03 Michal Ludvig <mludvig@suse.cz>
8954
8955 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8956 (x86_64_dwarf2gdb_regno_map_length),
8957 (x86_64_dwarf2_reg_to_regnum): Added.
8958 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8959 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8960 (_initialize_x86_64_tdep): Synced with the change above.
8961 (x86_64_skip_prologue): Reformulated message.
8962
065432a8
PM
89632002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8964
8965 * f-exp.y: Also use new prev_lexptr variable
8966 to improve error reporting. Based on Michael Snyder
8967 2002-04-24 dated patch to c-exp.y.
8968 * jv-exp.y: Likewise.
8969 * m2-exp.y: Likewise.
8970
a3162708
EZ
89712002-05-02 Elena Zannoni <ezannoni@redhat.com>
8972
8973 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8974 we are dealing with vectors.
8975
03620c38
PM
89762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8977
8978 * config/m68k/tm-nbsd.h: Obvious fix,
8979 correct machine name.
8980
6604db2e
PM
89812002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8982
8983 * p-typeprint.c (pascal_type_print_base): Add support
8984 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8985
0906b739
PM
89862002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8987
8988 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8989 for fondamental pascal 'char' type.
8990
e2625b33
PM
89912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8992
8993 * p-lang.h (is_pascal_string_type): Declaration changed,
8994 new sixth argument of type char ** added.
361d1df0 8995 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8996 changed. Args length_pos, length_size, string_pos, char_size
8997 can now be NULL. New argument arrayname set to the field
8998 name of the char array. Return value set to char array
8999 field index plus one.
361d1df0 9000 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9001 is_pascal_string_type function.
9002
cf17c188
AC
90032002-05-02 Andrew Cagney <cagney@redhat.com>
9004
9005 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9006 <cagney@redhat.com> change.
9007 * gdbarch.c: Regenerate.
9008
52bca491
AC
90092002-05-02 Andrew Cagney <cagney@redhat.com>
9010
9011 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9012 before probing for a new one. Detect errorenous gdbarch_init
9013 functions.
9014 * gdbarch.c: Regenerate.
9015
d5e72505
AC
90162002-05-01 Andrew Cagney <cagney@redhat.com>
9017
9018 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9019 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9020 * config/v850/tm-v850.h: Ditto. Update copyright.
9021
af566d9f
AC
90222002-04-30 Andrew Cagney <ac131313@redhat.com>
9023
9024 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9025 current_gdbarch.
9026
880d85fa
MS
90272002-04-30 Michael Snyder <msnyder@redhat.com>
9028
94c30b78
MS
9029 * arm-tdep.c: Whitespace clean-ups.
9030 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9031 should have been removed as part of 4/24 change.
9032
6f5987a6
KB
90332002-04-30 Kevin Buettner <kevinb@redhat.com>
9034
9035 * rs6000-tdep.c: Added comment describing how fpscr register
9036 numbers were chosen.
9037
1a113c93
MS
90382002-04-30 Michael Snyder <msnyder@redhat.com>
9039
9040 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9041
9a6f53fe
EZ
90422002-04-29 Elena Zannoni <ezannoni@redhat.com>
9043
9044 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9045 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9046 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9047
11ed25ac
KB
90482002-04-29 Kevin Buettner <kevinb@redhat.com>
9049
9050 From Louis Hamilton <hamilton@redhat.com>:
9051 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9052 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9053 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9054 not bfd-private xcoff data, to determine wordsize.
9055 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9056
ae232405
AC
90572002-04-29 Andrew Cagney <ac131313@redhat.com>
9058
9059 GDB 5.2 released from 5.2 branch.
9060
91fd20f7
ML
90612002-04-29 Michal Ludvig <mludvig@suse.cz>
9062
9063 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9064 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9065 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9066
2dc5091b
EZ
90672002-04-29 Elena Zannoni <ezannoni@redhat.com>
9068
9069 * rs6000-tdep.c (rs6000_extract_return_value,
9070 rs6000_store_return_value): Handle returning vectors.
9071 (rs6000_gdbarch_init): Use
9072 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9073 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9074 New function.
9075 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9076 vectors.
9077 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9078 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9079
2b9848d8
PM
90802002-04-24 Pierre Muller <ics.u-strasbg.fr>
9081
9082 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9083 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9084 with fprintf_unfiltered (gdb_stderr,...).
9085
f8d17dc5
PM
90862002-04-24 Pierre Muller <ics.u-strasbg.fr>
9087
9088 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9089 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9090 Replace fprintf (stderr,...
9091 with fprintf_unfiltered (gdb_stderr,....
9092 * remote-es.c: Likewise.
9093 * remote-os9k.c: Likewise.
9094 * remote-st.c: Likewise.
9095
2f2f1ad1
AS
90962002-04-28 Andreas Schwab <schwab@suse.de>
9097
9098 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9099 linux-proc.o and gcore.o.
9100
b6779aa2
AC
91012002-04-26 Michal Ludvig <mludvig@suse.cz>
9102
9103 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9104 code without frame pointers.
9105
7e57f5f4
AC
91062002-04-26 Andrew Cagney <ac131313@redhat.com>
9107
9108 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9109 ON_STACK is needed.
9110
2ceb85d0
BE
91112002-04-26 Ben Elliston <bje@redhat.com>
9112
9113 * target.c (do_xfer_memory): Correct reference to the new option
9114 "trust-readonly-sections".
9115
f5f8a009
EZ
91162002-04-26 Elena Zannoni <ezannoni@redhat.com>
9117
9118 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9119 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9120 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9121 vectors.
9122 (read_array_type): Record the fact that this array type is really a
9123 vector (i.e. are passed in by value).
9124
5868c862
JT
91252002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9126
9127 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9128 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9129 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9130 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9131 * alpha-linux-tdep.c: Include frame.h.
9132 (alpha_linux_sigcontext_addr): New function.
9133 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9134 alpha_linux_sigcontext_addr.
9135 * alpha-osf1-tdep.c: Include gdbcore.h.
9136 (alpha_osf1_sigcontext_addr): New function.
9137 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9138 alpha_osf1_sigcontext_addr.
9139 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9140 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9141
bfb01f37
AC
91422002-04-26 Andrew Cagney <ac131313@redhat.com>
9143
361d1df0 9144 * stack.c (selected_frame_level):
bfb01f37
AC
9145 (select_frame): Do not set selected_frame_level.
9146 * frame.h (selected_frame_level): Delete declaration.
9147
15813d3f
AC
91482002-04-26 Andrew Cagney <ac131313@redhat.com>
9149
9150 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9151 convert_from_func_ptr-addr when AIX / PowerOpen.
9152
6096c27a
AC
91532002-04-25 Andrew Cagney <ac131313@redhat.com>
9154
9155 * valops.c (hand_function_call): Call
9156 generic_save_call_dummy_addr.
9157 * frame.h (generic_save_call_dummy_addr): Declare.
9158 * blockframe.c (struct dummy_frame): Add fields call_lo and
9159 call_hi.
9160 (generic_find_dummy_frame): Check for PC in range call_lo to
9161 call_hi instead of entry_point_address.
9162 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9163 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9164 (generic_save_call_dummy_addr): New function.
9165
f510d44e
DM
91662002-04-24 David S. Miller <davem@redhat.com>
9167
9168 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9169 sparc_skip_prologue.
9170 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9171 information to find prologue when possible.
9172 (sparc_prologue_frameless_p): Call examine_prologue directly.
9173 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9174 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9175 second argument.
9176 (SKIP_PROLOGUE): Likewise.
9177
15d72a92
JT
91782002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9179
9180 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9181 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9182 indicate that the condition it was testing is always true.
9183 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9184 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9185 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9186
accc6d1f
JT
91872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9188
9189 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9190 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9191 tdep->jb_pc and tdep->jb_elt_size.
9192 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9193 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9194 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9195 * alpha-nat.c (get_longjmp_target): Remove.
9196 (JB_ELEMENT_SIZE): Ditto.
9197 (JB_PC): Ditto.
9198 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9199 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9200 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9201 to alpha_get_longjmp_target.
9202 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9203 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9204 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9205
1bfdc549
AC
92062002-04-25 Andrew Cagney <ac131313@redhat.com>
9207
9208 * README: Update to GDB 5.2.
9209
1bd316f0
AC
92102002-04-25 Andrew Cagney <ac131313@redhat.com>
9211
9212 * gdbarch.sh (LC_ALL): Set to `c'.
9213
2e5ff58c
TR
92142002-04-25 Theodore A. Roth <troth@verinet.com>
9215
9216 * avr-tdep.c: Ran through gdb_indent.sh.
9217
e33ce519
TR
92182002-04-25 Theodore A. Roth <troth@verinet.com>
9219
9220 * MAINTAINERS: Add myself as AVR maintainer.
9221 * NEWS: Note new target avr.
9222
8818c391
TR
92232002-04-25 Theodore A. Roth <troth@verinet.com>
9224
9225 * Makefile.in: Add support for AVR target.
9226 * configure.tgt: Add support for AVR target.
9227 * avr-tdep.c: New file
9228 * config/avr/avr.mt: New file.
9229
79509c2d
TR
92302002-04-25 Theodore A. Roth <troth@verinet.com>
9231
9232 * MAINTAINERS: Add myself to write-after-approval.
9233
dac8068e
PM
92342002-04-24 Pierre Muller <ics.u-strasbg.fr>
9235
9236 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9237 with fprintf_unfiltered (gdb_stderr,....
9238
25bf3106
PM
92392002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9240
9241 Fix PR gdb/508.
9242 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9243
24467a86
PM
92442002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9245
9246 * p-exp.y: Also use new prev_lexptr variable
9247 to improve error reporting. Based on Michael Snyder
9248 2002-04-24 dated patch to c-exp.y.
9249
95b80706
JT
92502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9251
9252 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9253 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9254 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9255 to 0.
9256 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9257 and struct value.
9258 (FUNCTION_START_OFFSET): Remove.
9259 (BREAKPOINT): Ditto.
9260
e90cc612
JT
92612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9262
9263 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9264 * NEWS: Ditto.
9265
6c72f9f9
JT
92662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9267
9268 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9269 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9270 alpha_linux_pc_in_sigtramp.
9271 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9272 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9273 alpha_osf1_pc_in_sigtramp.
9274 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9275 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9276 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9277 alphafbsd_pc_in_sigtramp.
9278 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9279 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9280 alphanbsd_pc_in_sigtramp.
9281 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9282 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9283
5e4f3379
JT
92842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9285
9286 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9287
da8ca43d
JT
92882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9289
9290 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9291 alphanbsd-tdep.c.
9292 (alphanbsd-nat.o): New dependency list.
9293 (alphanbsd-tdep.o): Ditto.
9294 * NEWS: Note new native NetBSD/alpha configuration.
9295 * alphanbsd-nat.c: New file.
9296 * alphanbsd-tdep.c: Ditto.
9297 * configure.host (alpha*-*-netbsd*): New host.
9298 * configure.tgt (alpha*-*-netbsd*): New target.
9299 * config/alpha/nbsd.mh: New file.
9300 * config/alpha/nbsd.mt: Ditto.
9301 * config/alpha/nm-nbsd.h: Ditto.
9302 * config/alpha/tm-nbsd.h: Ditto.
9303
36a6271d
JT
93042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9305
9306 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9307 (alpha-osf1-tdep.o): New dependency list.
9308 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9309 and skip_sigtramp_frame members.
9310 * alpha-linux-tdep.c: Include gdbcore.h.
9311 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9312 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9313 * alpha-osf1-tdep.c: New file.
9314 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9315 alpha-osf1-dep.c.
9316 (alpha_frame_past_sigtramp_frame): New function.
9317 (alpha_dynamic_sigtramp_offset): Ditto.
9318 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9319 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9320 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9321 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9322 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9323 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9324 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9325 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9326 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9327 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9328 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9329 to find_solib_trampoline_target.
9330 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9331 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9332 (SKIP_TRAMPOLINE_CODE): Remove.
9333 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9334 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9335 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9336 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9337 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9338 (PROC_SIGTRAMP_MAGIC): Ditto.
9339 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9340 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9341 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9342 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9343 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9344
2f4bc57b
JT
93452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9346
9347 * NEWS: Note that Alpha targets are now multi-arch.
9348
665132f9
MS
93492002-04-24 Michael Snyder <msnyder@redhat.com>
9350
9351 * parser-defs.h (prev_lexptr): New external variable.
9352 * parse.c (parse_exp_1): Set prev_lexptr to null before
9353 calling the language-specific parser.
9354 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9355 (yyerror): Use prev_lexptr in error reporting.
9356
32872fa7
DJ
93572002-04-24 Daniel Jacobowitz <drow@mvista.com>
9358
9359 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9360 * gregset.h: If FILL_FPXREGSET is defined, provide
9361 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9362 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9363 is defined, call fill_fpxregset.
9364
57e76fac
MS
93652002-04-24 Roland McGrath <roland@frob.com>
9366
9367 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9368 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9369 (supply_gregset, supply_fpregset): New functions.
9370
9371 * gnu-nat.c (gnu_find_memory_regions): New function.
9372 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9373 (gnu_xfer_memory): Add a cast.
9374
f43845b3
MS
93752002-04-24 Michael Snyder <msnyder@redhat.com>
9376
361d1df0 9377 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9378 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9379 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9380 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9381 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9382 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9383
a0abec03
AC
9384Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9385
9386 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9387 NUM_PSEUDO_REGS can be used.
9388
d7bd68ca
AC
93892002-04-24 Andrew Cagney <ac131313@redhat.com>
9390
9391 * arch-utils.h: Update copyright.
9392
9393 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9394 * gdbarch.h, gdbarch.c: Re-generate.
9395
9396 * inferior.h (IN_SIGTRAMP): Delete definition.
9397 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9398 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9399
9400 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9401 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9402 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9403 (find_proc_framesize): Ditto.
9404 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9405 (alpha_init_extra_frame_info): Ditto.
9406 * infrun.c (handle_inferior_event): Ditto.
9407 (handle_inferior_event): Ditto.
9408 (check_sigtramp2): Ditto.
9409 * blockframe.c (create_new_frame): Ditto.
9410 (get_prev_frame): Ditto.
9411 * ppc-linux-tdep.c: Update comments.
9412 * i386-linux-tdep.c: Update comments.
9413 * breakpoint.c (bpstat_what): Update comment.
9414
4867e41e
DM
94152002-04-24 David S. Miller <davem@redhat.com>
9416
21d83aa5
DM
9417 * i960-tdep.c (register_in_window_p): New function.
9418 (i960_find_saved_register): Use it instead of
9419 REGISTER_IN_WINDOW_P.
9420 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9421
4867e41e
DM
9422 * symtab.h (find_stab_function_addr): Kill extern.
9423 * minsyms.c (find_stab_function_addr): Remove from here...
9424 * dbxread.c: ... to here, and mark it static.
9425
69cdf6a2
DM
94262002-04-20 David S. Miller <davem@redhat.com>
9427
9428 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9429 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9430
5a595886
DM
94312002-04-21 David S. Miller <davem@redhat.com>
9432
9433 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9434 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9435 (vx_write_register): Likewise.
9436
1da1a192
JB
94372002-04-23 J. Brobecker <brobecker@gnat.com>
9438
9439 * source.c (is_regular_file): New function.
9440 (openp): Check wether file to open is a regular file
9441 to avoid opening directories.
9442
baa6f10b
JT
94432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9444
9445 * findvar.c (extract_signed_integer): Cast printf argument
9446 to suppress format warning.
9447 (extract_unsigned_integer): Likewise.
9448 * infcmd.c (registers_info): Likewise.
9449 * top.c (get_prompt_1): Likewise.
9450 * valops.c (value_assign): Likewise.
9451 * valprint.c (print_decimal): Likewise.
9452
b2c4da81
L
94532002-04-22 H.J. Lu (hjl@gnu.org)
9454
9455 * c-exp.y (typebase): Support
361d1df0 9456
b2c4da81
L
9457 [long|long long|short] [signed|unsigned] [int|]
9458
9459 and
9460
9461 signed [long|long long|short] int
9462
f267bd6a
JT
94632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9464
9465 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9466 and vax-tdep.h.
9467 * vax-tdep.h: New file.
9468 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9469 Make several routines static.
9470 (vax_get_saved_register): New function.
9471 (vax_gdbarch_init): New function.
9472 (_initialize_vax_tdep): Register vax_gdbarch_init.
9473 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9474 Remove macros now under the control of gdbarch.
9475
da3c6d4a
MS
94762002-04-22 Michael Snyder <msnyder@redhat.com>
9477
11d3b27d
MS
9478 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9479 Some whitespace and coding standards tweaks.
da3c6d4a 9480
a33f7558
JT
94812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * vax-tdep.c: Include regcache.h.
9484 (vax_call_dummy_words): New.
9485 (sizeof_vax_call_dummy_words): New.
9486 (vax_fix_call_dummy): New function.
9487 (vax_saved_pc_after_call): Ditto.
9488 * config/vax/tm-vax.h: Don't include regcache.h.
9489 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9490 (CALL_DUMMY): Remove.
9491 (CALL_DUMMY_WORDS): Define.
9492 (SIZEOF_CALL_DUMMY_WORDS): Define.
9493 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9494
47a73475
MS
94952002-04-18 Michael Snyder <msnyder@redhat.com>
9496
9497 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9498
52efde73
JT
94992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9500
9501 * vax-tdep.c (vax_frame_chain): New function.
9502 (vax_push_dummy_frame): Ditto.
9503 (vax_pop_frame): Ditto.
9504 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9505 (FRAMELESS_FUNCTION_INVOCATION): Use
9506 generic_frameless_function_invocation_not.
9507 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9508 (POP_FRAME): Use vax_pop_frame.
9509
ea74468c
JT
95102002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9511
9512 * vax-tdep.c (vax_store_struct_return): New function.
9513 (vax_extract_return_value): Ditto.
9514 (vax_store_return_value): Ditto.
9515 (vax_extract_struct_value_address): Ditto.
9516 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9517 vax_store_struct_return.
9518 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9519 (STORE_RETURN_VALUE): Use vax_store_return_value.
9520 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9521
5516aa92
JT
95222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9523
9524 * vax-tdep.c (vax_frame_saved_pc): New function.
9525 (vax_frame_args_address_correct): Ditto.
9526 (vax_frame_args_address): Ditto.
9527 (vax_frame_locals_address): Ditto.
9528 (vax_frame_num_args): Move code to be in proximity to
9529 other frame-related functions.
9530 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9531 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9532 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9533 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9534 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9535
36af0b35
L
95362002-04-22 H.J. Lu (hjl@gnu.org)
9537
9538 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9539 includedir.
9540
ab62c900
JT
95412002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9542
9543 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9544 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9545 (FRAME_INIT_SAVED_REGS): New macro.
9546
7232b100
JT
95472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9548
9549 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9550
b70d2aee
JT
95512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9552
9553 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9554 where needed.
9555 (fetch_osf_core_registers): Likewise.
9556 (supply_gregset): Likewise.
9557
a0e8a2d1 95582002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9559
a0e8a2d1
JB
9560 * symfile.h (get_section_index): Define.
9561 * symfile.c (get_section_index): New function.
9562 * mdebugread.c (SC_IS_SBSS): New macro.
9563 (SC_IS_BSS): Return true for the scBss storage class only, as
9564 the scSBss storage class refers to the .sbss section.
9565 (parse_partial_symbols): Discard the symbols which associated
9566 section does not exist.
9567 Make sure to use the .sbss section index for symbols which
9568 storage class is scBss, rather than using the .bss section index.
9569
51eb8b08
JT
95702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9571
9572 * vax-tdep.c: Update copyright years.
9573 (vax_register_name): New function.
9574 (vax_register_byte): Ditto.
9575 (vax_register_raw_size): Ditto.
9576 (vax_register_virtual_size): Ditto.
9577 (vax_register_virtual_type): Ditto.
9578 * config/vax/tm-vax.h: Update copyright years.
9579 (REGISTER_NAMES): Remove.
9580 (REGISTER_NAME): Define.
9581 (REGISTER_BYTE): Use vax_register_byte.
9582 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9583 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9584 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9585
6cc1c0a8
AC
95862002-04-21 Andrew Cagney <ac131313@redhat.com>
9587
9588 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9589 declaration
9590 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9591
9319a2fe
DM
95922002-04-21 David S. Miller <davem@redhat.com>
9593
9594 * arch-utils.c (generic_prologue_frameless_p): Kill
9595 SKIP_PROLOGUE_FRAMELESS_P code.
9596 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9597 references.
9598 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9599 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9600 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9601 references.
9602 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9603 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9604 (sparc_gdbarch_init): Pass it to
9605 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9606
e9ed6d01
JT
96072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9610 (alphabsd-nat.o): New dependency list.
9611
36012033
JT
96122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9613
9614 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9615 alphafbsd-tdep.c.
9616 (alpha-linux-tdep.o): New dependency list.
9617 (alphafbsd-tdep.o): Likewise.
9618
3379287a
JT
96192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9620
9621 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9622 to here...
9623 * alpha-tdep.c: ...from here.
9624 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9625
4bcbd6cb
JT
96262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9627
9628 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9629 prototype from here...
9630 * alpha-tdep.h: ...to here.
9631
b31da25e
AC
96322002-04-21 Andrew Cagney <ac131313@redhat.com>
9633
9634 * frame.h (selected_frame_level): Document as deprecated.
9635 (frame_relative_level): Declare.
9636 * stack.c (frame_relative_level): New function.
9637 (selected_frame_level): Document as deprecated.
9638 (select_frame): Do not set the selected_frame_level.
9639
9640 * stack.c (frame_info, record_selected_frame): Update.
9641 (frame_command, current_frame_command): Update.
9642 (up_silently_base, up_command, down_silently_base): Update.
9643 (down_command): Update.
9644 * inflow.c (kill_command): Update.
9645 * tracepoint.c (finish_tfind_command): Update.
9646 * corelow.c (core_open): Update.
9647 * thread.c (info_threads_command): Update.
9648 (do_captured_thread_select): Update.
9649 * infcmd.c (finish_command): Update.
9650 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9651
9c1d6fe5
JT
96522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9653
9654 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9655
ab89facf
AC
96562002-04-21 Andrew Cagney <ac131313@redhat.com>
9657
9658 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9659 type const.
9660
82a4efa1
JT
96612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9662
9663 * alphafbsd-tdep.c: Update copyright years. Include
9664 alpha-tdep.h.
9665 (alphafbsd_use_struct_convention): Make static.
9666 (alphafbsd_init_abi): New function.
9667 (_initialize_alphafbsd_tdep): New function.
9668 * config/alpha/tm-fbsd.h: Update copyright years.
9669 (USE_STRUCT_CONVENTION): Remove.
9670
44dffaac
JT
96712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9672
9673 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9674 an Alpha ABI variant.
9675 (alpha_abi_handler_list): Declare.
9676 (alpha_gdbarch_register_os_abi): New function.
9677 (alpha_gdbarch_init): Give registered ABI variant handlers a
9678 chance to tweak the gdbarch once we have set up defaults.
9679 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9680
65585be4
JT
96812002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9682
9683 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9684 to standard_coerce_float_to_double.
9685 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9686
d9b023cc
JT
96872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9688
9689 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9690 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9691 from gdbarch_tdep rather than a constant.
9692 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9693 the default text address for all Alpha Unix ABIs.
9694 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9695 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9696
dc129d82
JT
96972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9698
9699 * alpha-tdep.h: New file. Includes several Alpha target constants
9700 taken from...
9701 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9702 let gdbarch deal with.
9703 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9704 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9705 to dependency list.
9706 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9707 Alpha target register names.
9708 * alphabsd-nat.c: Likewise.
9709 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9710 Alpha target register names. Make serveral routines static.
9711 (alpha_get_saved_register): New function.
9712 (alpha_abi_names): New.
9713 (process_note_abi_tag_sections): New function.
9714 (get_elfosabi): New function.
9715 (alpha_gdbarch_init): New function.
9716 (alpha_dump_tdep): New function.
9717 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9718
d49d1e0a
AC
97192002-04-21 Andrew Cagney <ac131313@redhat.com>
9720
9721 * frame.c (find_saved_register): Delete #ifdef
9722 HAVE_REGISTER_WINDOWS code.
9723 * config/sparc/tm-sparc.h: Update comments.
9724 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9725
92e8c9ed
AC
97262002-04-21 Andrew Cagney <ac131313@redhat.com>
9727
9728 * i960-tdep.c (i960_find_saved_register): New function.
9729 (i960_get_saved_register): New function.
9730 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9731 (i960_get_saved_register): Declare.
9732 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9733
e1925118
DM
97342002-04-20 David S. Miller <davem@redhat.com>
9735
9736 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9737
29673b29
AC
97382002-04-20 Andrew Cagney <ac131313@redhat.com>
9739
9740 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9741 instead of NUM_PSEUDO_REGS.
9742
6c86dcd5
DM
97432002-04-20 David S. Miller <davem@redhat.com>
9744
9745 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9746 GDB_MULTI_ARCH_PARTIAL
9747 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9748 define, let tm-sp64.h do it.
9749
aa40ec90
JT
97502002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9751
9752 * frame.c (find_saved_register): Avoid a NULL pointer
9753 dereference and actually walk the frame list.
9754
0f79675b
AC
97552002-04-20 Andrew Cagney <ac131313@redhat.com>
9756
9757 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9758 sorted in most most-recent-used order. Document.
9759 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9760
f91305dd 97612002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9762
9763 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9764 instead of ->prev.
9765 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9766 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9767 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9768 instead of ->prev.
9769
73d322b1
EZ
97702002-04-19 Elena Zannoni <ezannoni@redhat.com>
9771
9772 Fix PR gdb/471.
9773 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9774 (build_builtin_type_vec128): Ditto.
9775 (append_composite_type_field): Fix calculation of type length in
9776 union case.
9777
ccd9a834
EZ
97782002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9779
9780 * config/djgpp/README: Update.
9781
9782 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9783 compiler warnings.
9784
a57f9e49
JT
97852002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9786
9787 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9788 (alpha_setup_arbitrary_frame): ...to this.
9789 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9790 for alpha_setup_arbitrary_frame.
9791
f4f9705a
AC
97922002-04-18 Andrew Cagney <cagney@redhat.com>
9793
9794 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9795 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9796
f4f9705a
AC
9797 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9798 * target.h (memory_breakpoint_from_pc): Update declaration.
9799 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9800
9801 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9802 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9803 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9804 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9805 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9806 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9807 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9808 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9809 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9810 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9811 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9812 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9813
9814 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9815 const pointer.
9816 * monitor.c (monitor_insert_breakpoint): Ditto.
9817 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9818
9819 * config/mcore/tm-mcore.h: Update copyright.
9820 * mem-break.c: Ditto.
9821 * xstormy16-tdep.c: Ditto.
9822
29f319b8
PM
98232002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9824
9825 * p-exp.y: Add precedence rule for '^' token.
9826 This removes the shift/reduce conflicts.
9827 Remove the comment concerning these shift/reduce conflicts.
9828
ebeac11a
EZ
98292002-04-18 Elena Zannoni <ezannoni@redhat.com>
9830
9831 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9832 (registers_powerpc_nofp): New register set for processors
9833 without floating point unit.
9834
27c31547
DM
98352002-04-18 David S. Miller <davem@redhat.com>
9836
9837 * MAINTAINERS: Add myself to write-after-approval.
9838
47a73475
MS
98392002-04-17 Michael Snyder <msnyder@redhat.com>
9840
9841 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9842
953836b2
AC
98432002-04-17 Andrew Cagney <ac131313@redhat.com>
9844
9845 * rs6000-tdep.c (frame_initial_stack_address): Use
9846 frame_register_read to read the alloca_reg.
9847
8b0d4340
AC
98482002-04-17 Andrew Cagney <ac131313@redhat.com>
9849
9850 * frame.c (find_saved_register): Find saved registers in the next
9851 not prev frame.
9852 Fix PR gdb/365.
9853
d8864532
AC
98542002-04-17 Andrew Cagney <ac131313@redhat.com>
9855
9856 * gdbarch.sh (LANG): Set to ``c''.
9857
36cc83a3 98582002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9859
36cc83a3 9860 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9861
2f4150cc 98622002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9863
9864 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9865 Update copyright.
9866
628703c6 9867 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9868 Also fix PR gdb/391.
361d1df0 9869
56157b4a
AC
98702002-04-14 Andrew Cagney <ac131313@redhat.com>
9871
9872 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9873 * aclocal.m4, configure: Re-generate.
9874 Fix PR gdb/391.
361d1df0 9875
6d1e3329
EZ
98762002-04-14 Elena Zannoni <ezannoni@redhat.com>
9877
9878 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9879 instead of tm_print_insn.
9880
cb06fa07
EZ
98812002-04-14 Elena Zannoni <ezannoni@redhat.com>
9882
9883 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9884
f208ba17
AC
98852002-04-14 Andrew Cagney <ac131313@redhat.com>
9886
9887 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9888 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9889 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9890
20f01a46
DH
98912002-04-12 Don Howard <dhoward@redhat.com>
9892
9893 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9894 max_user_call_depth.
9895 (init_cmd_lists): Initialize the new value;
9896 * cli/cli-script.c (execute_user_command): Limit the call depth of
9897 user defined commands. This avoids a core-dump when user commands
9898 are infinitly recursive.
9899
a88376a3
KB
99002002-04-12 Kevin Buettner <kevinb@redhat.com>
9901
9902 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9903 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9904 from tdep struct instead of DEFAULT_LR_SAVE.
9905 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9906 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9907 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9908
f2172603
MS
99092002-04-12 Michael Snyder <msnyder@redhat.com>
9910
694f61fb 9911 * Remote.c: Spelling fix.
20fe79c8
MS
9912 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9913 If no symbol found for "sbrk", try "_sbrk".
9914 (make_output_phdrs): Use bfd_section_name.
9915 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9916 * eval.c: Indentation fix-ups.
169a7369
MS
9917 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9918 in case it gets applied to an address that is already
9919 in the instruction space.
de74f71f
MS
9920 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9921 * symfile.c: Fix indentation, long lines.
f2172603
MS
9922 * source.c: White space fix-up.
9923
cda5a58a
AC
99242002-04-12 Andrew Cagney <cagney@redhat.com>
9925
9926 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9927 * frame.c (frame_register_read): New function. Return non-zero on
9928 success.
9929 (read_relative_register_raw_bytes_for_frame): Delete.
9930 (read_relative_register_raw_bytes): Delete.
9931 * frame.h (frame_register_read): Declare.
9932 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9933 * sh-tdep.c: Ditto.
9934 * infcmd.c (do_registers_info): Ditto.
9935 * hppa-tdep.c: Ditto.
9936 * rs6000-tdep.c: Ditto.
9937 * h8500-tdep.c: Ditto.
9938 * mips-tdep.c: Ditto.
9939 * h8300-tdep.c: Ditto.
9940 * z8k-tdep.c: Ditto.
9941
2ea5f656
KB
99422002-04-12 Kevin Buettner <kevinb@redhat.com>
9943
9944 From Jimi X <jimix@watson.ibm.com>:
9945 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9946 64-bit SysV ABI.
9947
27b15785
KB
99482002-04-12 Kevin Buettner <kevinb@redhat.com>
9949
9950 From Jimi X <jimix@watson.ibm.com>:
9951 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9952 bfd info.
9953
5d57ee30
KB
99542002-04-12 Kevin Buettner <kevinb@redhat.com>
9955
9956 From Jimi X <jimix@watson.ibm.com>:
9957 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9958 register sets for these processor variants.
9959
bc1e36ca
DJ
99602002-04-11 Daniel Jacobowitz <drow@mvista.com>
9961
bc1e36ca
DJ
9962 * regformats/reg-ppc.dat: Support FPSCR.
9963
e3f36dbd
KB
99642002-04-11 Kevin Buettner <kevinb@redhat.com>
9965
9966 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9967 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9968 Add fpscr as an invalid/unfetchable register.
9969 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9970 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9971 (fill_fpregset): Add support for register fpscr.
9972 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9973 (fill_gregset): Account for the fact that register ``mq'' might
9974 not exist.
9975 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9976 (registers_power): Add fpscr to register set at slot 71.
9977 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9978 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9979
943c9c25
MS
99802002-04-11 Michael Snyder <msnyder@redhat.com>
9981
9982 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9983 * configure: Regenerate.
9984 * config.in: Regenerate.
9985 * acconfig.h: Add define for _SYSCALL32.
9986 * core-sol2.c: Remove #define _SYSCALL32.
9987 * solib-legacy.c: Remove #define _SYSCALL32.
9988
d8c0a2e7
AC
99892002-04-10 Andrew Cagney <ac131313@redhat.com>
9990
9991 * stack.c (select_frame): Cleanup internal error message, do not
9992 use %p.
9993
7cc19214
AC
99942002-04-10 Andrew Cagney <ac131313@redhat.com>
9995
9996 * stack.c (select_frame): Check that selected_frame and the
9997 specified level are as expected.
9998 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9999 Update copyright.
10000 * frame.h (struct frame_info): Add field `level'. Update
10001 copyright.
10002 Work-in-progress PR gdb/464.
10003
67a2b77e
AC
100042002-04-10 Andrew Cagney <ac131313@redhat.com>
10005
10006 * maint.c (maint_print_section_info): Rename print_section_info.
10007 (print_bfd_section_info, print_objfile_section_info): Update.
10008 * inferior.h (struct gdbarch): Add opaque declaration.
10009 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10010 * gdbarch.h: Regenerate.
10011
8cfda98c
ML
100122002-04-10 Michal Ludvig <mludvig@suse.cz>
10013
10014 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10015 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10016 (kernel_u_size): Added.
10017 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10018 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10019
ca439ad2 100202002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10021
ca439ad2
JI
10022 * valarith.c (find_size_for_pointer_math): New function, either returns
10023 the size for a pointer's target, returns 1 for void *, or errors for
10024 incomplete types.
10025 (value_add, value_sub): use find_size_for_pointer_math.
10026
2f2893d9
DJ
100272002-04-09 Daniel Jacobowitz <drow@mvista.com>
10028
10029 * linux-low.c (linux_look_up_symbols): New hook.
10030 (linux_target_ops): Add linux_look_up_symbols.
10031 * remote-utils.c (decode_address): New function.
10032 (look_up_one_symbol): New function.
10033 * server.c (handle_query): Call target look_up_symbols hook.
10034 * server.h (look_up_one_symbol): Add prototype.
10035 * target.h (struct target_ops): Add look_up_symbols hook.
10036
96cb11df
AC
100372002-04-09 Andrew Cagney <ac131313@redhat.com>
10038
10039 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10040 override FP_REGNUM with frame->fp. Update copyright.
10041 * parse.c (num_std_regs, std_regs): Delete.
10042 (target_map_name_to_register): Do not search std_regs. Update
10043 function description.
10044 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10045 declarations. Update copyright.
10046 Fix PR gdb/251.
361d1df0 10047
97658e92
DJ
100482002-04-09 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10051 after the last symbol in a block.
10052
6044e3eb
PM
100532002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10054
10055 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10056 is non zero as a found symbol.
10057
0406ec40
AC
100582002-04-08 Andrew Cagney <ac131313@redhat.com>
10059
10060 * findvar.c: Include "builtin-regs.h".
10061 (value_of_register): Call value_of_builtin_reg when applicable.
10062 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10063 (target_map_name_to_register): Call
10064 builtin_reg_map_name_to_regnum.
10065 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10066 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10067 (builtin_regs_h): Define.
10068 (builtin-regs.o): New target.
10069 (findvar.o): Add $(builtin_regs_h).
10070 * builtin-regs.c, builtin-regs.h: New files.
10071 * std-regs.c: New file.
10072 Partial fix for PR gdb/251.
10073
56a6dfb9
KB
100742002-04-08 Kevin Buettner <kevinb@redhat.com>
10075
10076 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10077 it's no longer required.
10078
3a808432
AC
100792002-04-08 Andrew Cagney <ac131313@redhat.com>
10080
10081 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10082
7c40d541
KB
100832002-04-08 Kevin Buettner <kevinb@redhat.com>
10084
10085 From Jimi X <jimix@watson.ibm.com>:
10086 * rs6000-tdep.c (rs6000_software_single_step): Use
10087 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10088 and size. Use target_insert_breakpoint() and
10089 target_remove_breakpoint() to insert and remove breakpoints
10090 instead of explicit memory reads and writes.
10091
cc9836a8
KB
100922002-04-08 Kevin Buettner <kevinb@redhat.com>
10093
10094 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10095 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10096 ELF_OBJECT_FORMAT ifdef.
10097
7495d1dc
KB
100982002-04-08 Kevin Buettner <kevinb@redhat.com>
10099
10100 From Jimi X <jimix@watson.ibm.com>:
10101 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10102
4288e836
KB
101032002-04-08 Kevin Buettner <kevinb@redhat.com>
10104
10105 From Jimi X <jimix@watson.ibm.com>:
10106 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10107 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10108
a4e4e501
MK
101092002-04-07 Mark Kettenis <kettenis@gnu.org>
10110
10111 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10112 s/asprintf/xasprintf/.
10113 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10114
006defba
AC
101152002-04-07 Andrew Cagney <ac131313@redhat.com>
10116
10117 I believe Jeff Law denies responsability for this one:
10118 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10119 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10120 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10121 Work-around for PR gdb/366.
10122
7aa83cac
EZ
101232002-04-07 Elena Zannoni <ezannoni@redhat.com>
10124
10125 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10126 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10127 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10128
cf1fcca1
EZ
101292002-04-07 Elena Zannoni <ezannoni@redhat.com>
10130
10131 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10132 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10133 information.
10134
3f289e6f
AC
101352002-04-07 Andrew Cagney <ac131313@redhat.com>
10136
10137 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10138 maintainer.
10139
129188f6
AC
101402002-04-07 Andrew Cagney <ac131313@redhat.com>
10141
10142 * README (Reporting Bugs in GDB): Document the bug web page as the
10143 prefered way of submitting bugs.
10144 Fix PR gdb/402.
10145
1200cd6e
AC
101462002-04-06 Andrew Cagney <ac131313@redhat.com>
10147
10148 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10149 -1. Update comment.
10150 * gdbarch.h, gdbarch.c: Re-generate.
10151
2853c33c
AS
101522002-04-07 Andreas Schwab <schwab@suse.de>
10153
10154 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10155 buffer to regcache_collect.
10156
c2169756
AC
101572002-04-06 Andrew Cagney <ac131313@redhat.com>
10158
10159 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10160 * gdbarch.c, gdbarch.h: Re-generate.
10161
25f1b008
AC
101622002-04-06 Andrew Cagney <ac131313@redhat.com>
10163
10164 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10165 declaration. Fix -Werror.
10166
59263426
DJ
101672002-04-05 Daniel Jacobowitz <drow@mvista.com>
10168
10169 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10170 * gdbarch.c: Regenerate.
10171
f5db4da3
MS
101722002-04-05 Michael Snyder <msnyder@redhat.com>
10173
80f8a6eb
MS
10174 * breakpoint.c (clear_command): Rewrite middle section to
10175 combine two loops with identical control conditions.
10176 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10177 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10178
ad3dcc5c
L
101792002-04-05 H.J. Lu (hjl@gnu.org)
10180
10181 * solib-svr4.c (bkpt_names): Add "__start".
10182
f32e7a74
AC
101832002-04-04 Andrew Cagney <ac131313@redhat.com>
10184
10185 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10186 as test for 64 bit target.
10187
8227c0ff
AC
101882002-04-05 Andrew Cagney <ac131313@redhat.com>
10189
10190 * h8500-tdep.c (h8500_write_fp): Delete function.
10191 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10192 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10193 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10194 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10195 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10196 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10197 (s390_write_fp):
10198 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10199 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10200 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10201 (d10v_write_fp): Delete function.
10202 * inferior.h (write_fp, generic_target_write_fp): Delete
10203 declarations.
10204 * regcache.c (generic_target_write_fp): Delete function.
10205 (write_fp): Delete function.
10206 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10207 * gdbarch.h, gdbarch.c: Regenerate.
10208 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10209 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10210 (sparc64_write_fp): Delete declaration.
10211 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10212 (h8500_write_fp): Delete declaration.
10213
2757dd86
AC
102142002-04-04 Andrew Cagney <ac131313@redhat.com>
10215
10216 * sparc-tdep.c (sparc64_write_fp): Delete.
10217 (sparc_push_dummy_frame): Replace write_fp call with code to store
10218 the FP directly.
10219 (sparc_gdbarch_init): Do not initialize write_fp.
10220
c69255e1
KB
102212002-04-05 Kevin Buettner <kevinb@redhat.com>
10222
10223 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10224 clause.
10225
ae767bfb
JB
102262002-03-29 Jim Blandy <jimb@redhat.com>
10227
10228 * stack.c (get_selected_block): Add new argument `addr_in_block',
10229 used to return the exact code address we used to select the block,
10230 not just the block.
10231 * blockframe.c (get_frame_block, get_current_block): Same.
10232 * frame.h (get_frame_block, get_current_block,
10233 get_selected_block): Update declarations.
10234 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10235 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10236
84d2ac95
MS
102372002-04-05 Michael Snyder <msnyder@redhat.com>
10238
10239 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10240 warning message.
10241
596aa3bf
JB
102422002-04-05 J. Brobecker <brobecker@gnat.com>
10243
10244 * utils.c (xfullpath): New function.
10245 * defs.h (xfullpath): Add declaration.
10246 * source.c (openp): Use xfullpath in place of gdb_realpath to
10247 avoid resolving the basename part of filenames when the
10248 associated file is a symbolic link. This fixes a potential
10249 inconsistency between the filenames known to GDB and the
10250 filenames it prints in the annotations.
10251 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10252 to be able to match a filename with either the real filename, or
10253 the name of any symbolic link to this file.
10254 (lookup_partial_symtab): Ditto.
10255
c02f5703
MS
102562002-04-04 Michael Snyder <msnyder@redhat.com>
10257
10258 * breakpoint.c: Add support for hardware breakpoints in overlays.
10259 (overlay_events_enabled): New state variable.
10260 (insert_breakpoints): Use overlay_events_enabled to decide
10261 whether to attempt to set a breakpoint at the overlay load addr.
10262 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10263 (remove_breakpoint): Use overlay_events_enabled to decide
10264 whether breakpoints need to be removed from overlay load addr.
10265 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10266 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10267 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10268 disable_overlay_breakpoints): Update overlay_events_enabled.
10269
5fb290d7
DJ
102702002-04-04 Daniel Jacobowitz <drow@mvista.com>
10271
10272 * dwarf2read.c (struct function_range): New.
10273 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10274 (check_cu_functions): New.
10275 (read_file_scope): Initialize global function lists.
10276 Call dwarf_decode_line after processing children.
10277 (read_func_scope): Add to global function list.
10278 (dwarf_decode_lines): Call check_cu_functions everywhere
10279 record_line is called. Call record_line with a linenumber
10280 of 0 to mark sequence ends.
10281
7b3fabf0
ML
102822002-04-04 Michal Ludvig <mludvig@suse.cz>
10283
361d1df0 10284 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10285 change sync with glibc.
10286
bce58c09
JB
102872002-04-03 Jim Blandy <jimb@redhat.com>
10288
10289 * configure.in: Call AC_C_INLINE.
10290 * configure: Regenerated.
361d1df0 10291
2fccf04a
DJ
102922002-04-01 Daniel Jacobowitz <drow@mvista.com>
10293
10294 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10295 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10296
2d1bfe2e
MK
102972002-03-31 Mark Kettenis <kettenis@gnu.org>
10298
a5941fbf
MK
10299 * NEWS: Mention gcore support on FreeBSD/i386.
10300
a90cd31d
MK
10301 * fbsd-proc.c: New file.
10302 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10303 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10304
2d1bfe2e
MK
10305 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10306 while statement.
10307
9eb6e5a1
JB
103082002-03-29 Jim Blandy <jimb@redhat.com>
10309
10310 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10311 unescaped newlines in string literals, but newer ones don't. So
10312 escape them.
10313
f02df580
MS
103142002-03-26 Michael Snyder <msnyder@redhat.com>
10315 Andrew Cagney <cagney@redhat.com>
10316
361d1df0 10317 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10318 restore file to memory.
10319 * cli/cli-dump.h: New file.
10320 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10321 * NEWS: Mention new commands.
f02df580 10322
109f874e
MS
103232002-03-28 Michael Snyder <msnyder@redhat.com>
10324
10325 * symfile.c (symbol_file_add): Move test for null symbols to later.
10326
520f6ade
AC
103272002-03-27 Andrew Cagney <ac131313@redhat.com>
10328
10329 From veksler at il.ibm.com:
10330 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10331 the xstrduped original path.
10332 Fix PR gdb/417.
10333
d4654627
MS
103342002-03-27 Michael Snyder <msnyder@redhat.com>
10335
10336 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10337 * infcmd.c (_initialize_infcmd): Ditto.
10338 * language.c (_initialize_language): Ditto.
10339 * symfile.c (_initialize_symfile): Ditto.
10340 * top.c (_init_main): Ditto.
10341 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10342
6be8bc0c
EZ
103432002-03-27 Elena Zannoni <ezannoni@redhat.com>
10344
10345 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10346 vector registers handling.
10347 (skip_prologue): Handle new AltiVec instructions. Fill in new
10348 fields of frame data.
10349 (frame_get_saved_regs): Fill in information for AltiVec registers.
10350
12af6855
JB
103512002-03-27 Jim Blandy <jimb@redhat.com>
10352
10353 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10354 a function; leave this macro here to invoke that function.
10355 (symbol_init_mangled_name): Declaration for that function.
10356 * symtab.c (symbol_init_mangled_name): New function.
10357
dc672865
AC
103582002-03-27 Andrew Cagney <ac131313@redhat.com>
10359
10360 * valarith.c: Replace strerror with safe_strerror.
10361 * tracepoint.c: Ditto.
10362 * lin-lwp.c: Ditto.
10363 * go32-nat.c: Ditto.
10364 * inflow.c: Ditto.
10365 * gnu-nat.c: Ditto.
10366
d96429cd
AS
103672002-03-27 Andreas Schwab <schwab@suse.de>
10368
10369 * event-top.c (command_line_handler): Remove useless if.
10370
7e336ba1
AJ
103712002-03-27 Andreas Jaeger <aj@suse.de>
10372
10373 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10374 comment.
10375
de220d0f
ML
103762002-03-27 Michal Ludvig <mludvig@suse.cz>
10377
10378 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10379 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10380 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10381 (x86_64_linux_dr_get_status, supply_gregset),
10382 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10383 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10384 (x86_64_register_info_table): Add.
10385 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10386 (x86_64_register_raw_size, x86_64_register_virtual_type),
10387 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10388 general x86_64_register_info_table.
10389 (i386_gdbarch_init): gdbarch_register_bytes is now set
10390 dynamicaly during initialization.
10391 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10392 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10393
0e98d0a7
DJ
103942002-03-27 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * gdbserver/server.c (main): Call target_signal_to_host_p
10397 and target_signal_to_host on signals received from the remote.
10398 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10399 target_signal_from_host on signals sent to the remote.
10400 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10401 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10402
3130066b
DJ
104032002-03-27 Daniel Jacobowitz <drow@mvista.com>
10404
10405 * signals/signals.c: Include "server.h" in gdbserver build.
10406 (target_signal_from_name): Don't use STREQ.
10407 (_initialize_signals): Likewise. Don't include function in
10408 gdbserver build.
10409
9aedf4f4
DJ
104102002-03-27 Daniel Jacobowitz <drow@mvista.com>
10411
10412 * signals.c: Moved to...
10413 * signals/signals.c: Here.
7e336ba1 10414 * Makefile (signals.o): Update.
9aedf4f4 10415
3fa41cdb
JL
104162002-03-26 Jeff Law (law@redhat.com)
10417
10418 * somread.c (som_symtab_read): Remove some commented out code and
10419 updated related comments. Do not set the minimal symbol table to
10420 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10421 in a dynamic executable.
10422 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10423 where we are unable to find the minimal symbol for the given
10424 PC value.
10425
ee677e8d
MS
104262002-03-25 Jeff Law (law@redhat.com)
10427
10428 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10429
e76e1718
ML
104302002-03-25 Michal Ludvig <mludvig@suse.cz>
10431
10432 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10433
18a642a1
AC
104342002-03-23 Andrew Cagney <ac131313@redhat.com>
10435
10436 * command.h: Update copyright.
10437 (struct cmd_list_element): Replace definition with opaque
10438 declaration.
10439 (enum cmd_types): Document that it will eventually be moved to
10440 cli/cli-decode.h
10441 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10442 (MALLOCED_REPLACEMENT): Delete macro.
10443 * Makefile.in (cli_decode_h): Add $(command_h).
10444 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10445 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10446 * completer.c: Include "cli/cli-decode.h".
10447 * maint.c: Include "cli/cli-decode.h".
10448 * cli/cli-decode.h: Include "command.h".
10449 (enum command_class): Delete.
10450 (enum cmd_types): Comment out.
10451 (enum cmd_auto_boolean): Delete.
10452 (enum var_types): Delete.
10453
b2875cc0
AC
104542002-03-23 Andrew Cagney <ac131313@redhat.com>
10455
10456 * cli/cli-decode.c: Include "gdb_assert.h".
10457 (add_set_or_show_cmd): New static function.
10458 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10459 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10460 all fields, such as func, from the set command.
10461
3b45974e
AC
104622002-03-23 Andrew Cagney <ac131313@redhat.com>
10463
10464 * MAINTAINERS (sh-elf): Change warning flag to -w.
10465
823ca731
AC
104662002-03-23 Andrew Cagney <cagney@redhat.com>
10467
10468 * defs.h (error): Add printf format attribute.
10469 * thread-db.c (thread_from_lwp): Fix error format string.
10470 * stack.c (parse_frame_specification): Ditto.
10471 * cli/cli-decode.c (undef_cmd_error): Ditto.
10472 * scm-lang.c (scm_lookup_name): Ditto.
10473 * tracepoint.c (trace_error): Ditto.
10474 * remote-utils.c (usage): Ditto.
10475 * remote.c (compare_sections_command): Ditto.
10476 Fix PR gdb/328.
10477
0e101458
AC
104782002-03-22 Andrew Cagney <ac131313@redhat.com>
10479
10480 * gdbtypes.c (append_composite_type_field): New function.
10481 (init_composite_type): New function.
10482 * gdbtypes.h (append_composite_type_field): Declare.
10483 (init_composite_type): Ditto.
10484
8e0662df
EZ
104852002-03-22 Elena Zannoni <ezannoni@redhat.com>
10486
10487 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10488 function.
8e0662df
EZ
10489 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10490 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10491 structure returning convention for SYSV ABI case, but not
10492 for GNU/Linux, FreeBSD, or NetBSD.
10493
3121eff0
DJ
104942002-03-22 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * symtab.h (lookup_block_symbol): Add mangled_name argument
10497 to prototype.
10498
10499 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10500 with new mangled_name argument.
10501 * linespec.c (decode_line_1): Likewise.
10502 * valops (value_of_this): Likewise.
10503 * symtab.c (lookup_transparent_type): Likewise.
10504 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10505 (lookup_symbol): If we are given a mangled name, pass it down
10506 to lookup_symbol_aux.
10507 (lookup_block_symbol): If we are given a mangled name to check
10508 against, only return symbols which match it.
10509
349b409f
CF
105102002-03-22 Christopher Faylor <cgf@redhat.com>
10511
10512 * win32-nat.c (child_create_inferior): Check for proper shell to use
10513 here, in case the user changes it on the fly.
10514 (_initialize_inftarg): Remove shell path considerations.
10515
2a873819
EZ
105162002-03-21 Elena Zannoni <ezannoni@redhat.com>
10517
10518 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10519 for gdbarch_max_register_raw_size and max_register_virtual_size.
10520 Adjust copyright year.
10521
a1b9830c
DJ
105222002-03-21 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10525 in a function to cover the entire beginning of the function
10526 as well if it does not already.
10527
8b5790f2
TR
105282002-03-21 Tom Rix <trix@redhat.com>
10529
10530 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10531 (rs6000_ptrace64): Renamed from ptrace64.
10532
bdbe5747
MH
105332002-03-20 Martin M. Hunt <hunt@redhat.com>
10534
10535 * gdbserver/remote-utils.c (remote_open): Don't call
10536 getprotobyname, we're all using TCP here so just use
10537 IPPROTO_TCP.
7e336ba1 10538 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10539
105402002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10541
bdbe5747
MH
10542 * regcache.c (_initialize_regcache): No need to call
10543 build_regcache() at this time; it gets called whenever
10544 the gdbarch changes.
10545
7781cd62
DB
105462002-03-20 David O'Brien <obrien@FreeBSD.org>
10547
10548 * sparc-nat.c: Include sys/param.h where possible.
10549
f65ca430
DJ
105502002-03-20 Daniel Jacobowitz <drow@mvista.com>
10551
10552 Fix PR gdb/422.
10553 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10554 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10555 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10556 complex types.
10557 * stabsread.c (rs6000_builtin_type): Likewise.
10558 (read_sun_floating_type): Likewise.
10559
0c867556
PS
105602002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10561
10562 * stabsread.c (read_member_functions): Remove skip code for duplicate
10563 constructor/destructor methods. Use standard parsing for these
10564 methods and just do not chain them to the list of methods after
10565 parsing.
10566
12b9c64f
AO
105672002-03-19 Alexandre Oliva <aoliva@redhat.com>
10568
10569 * coffread.c: Remove redundant static declarations. Replace
10570 occurrences of `PTR' with `void *'.
10571 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10572 * top.h (quit_cover): Likewise.
10573 * defs.h (catch_errors): Likewise.
10574
349c5d5f
AC
105752002-03-18 Andrew Cagney <ac131313@redhat.com>
10576
10577 * defs.h (XMALLOC): Define.
10578 * gdb-events.sh (XMALLOC): Delete macro.
10579 * gdb-events.c, gdb-events.h: Regenerate.
10580 * gdbarch.sh (XMALLOC): Delete macro.
10581 * gdbarch.c: Regenerate.
10582 * serial.c (XMALLOC): Delete macro.
10583 * ui-file.c (XMALLOC): Ditto.
10584 * ser-unix.h (XMALLOC): Ditto.
10585 * sh-tdep.c (XMALLOC): Ditto.
10586 * ui-out.c (XMALLOC): Ditto.
10587 * utils.c (XMALLOC): Ditto.
10588 * i386-tdep.c (XMALLOC): Ditto.
10589 * gdb-events.c (XMALLOC): Ditto.
10590 * d10v-tdep.c (XMALLOC): Ditto.
10591 * cli-out.c (XMALLOC): Ditto.
10592
10593 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10594 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10595 * ui-file.c, ui-out.c: Ditto.
10596
7d0766f3
AC
105972002-03-18 Andrew Cagney <ac131313@redhat.com>
10598
10599 * command.h (struct cmd_list_element): Add field context.
10600 (set_cmd_context, get_cmd_context): Declare.
10601 * cli/cli-decode.h: Ditto.
10602 * cli/cli-decode.c (get_cmd_context): New function.
10603 (set_cmd_context): New function.
10604 (add_cmd): Initialize context.
10605 Part of fixing PR gdb/145 and PR gdb/146.
10606
5913bcb0
AC
106072002-03-17 Andrew Cagney <ac131313@redhat.com>
10608
1868c04e
AC
10609 * cli/cli-decode.c (cmd_type): New function.
10610 * command.h (cmd_type): Declare.
10611 * infrun.c (set_schedlock_func): Call function cmd_type.
10612 * kod.c (kod_set_os): Call cmd_type.
10613 * cris-tdep.c (cris_version_update): Use function cmd_type.
10614 (cris_mode_update, cris_abi_update): Ditto.
10615
5913bcb0
AC
10616 * command.h: (execute_cmd_post_hook): Declare.
10617 (execute_cmd_pre_hook): Declare.
10618 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10619 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10620 functions. Execute pre/post hook while ensuring that afterwords
10621 hook_in is cleared.
10622 * top.c (execute_command): Use execute_cmd_post_hook, and
10623 execute_cmd_pre_hook to execute pre/post commands.
10624 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10625 hook_stop_stub.
10626 (hook_stop_stub): Call execute_cmd_pre_hook.
10627
b51450c9
AC
106282002-03-17 Andrew Cagney <ac131313@redhat.com>
10629
10630 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10631 set'' and this leads to a core dump. Move xstrdup of
10632 operating_system to after check that it is not NULL.
10633
f66c9f11
AC
106342002-03-17 Andrew Cagney <ac131313@redhat.com>
10635
8e694ecf
AC
10636 * kod.c (kod_set_os): Remove unnecessary check that
10637 ``command->type'' is set_cmd.
10638
f66c9f11
AC
10639 * valprint.c (set_input_radix): Use input_radix.
10640 (set_output_radix): Use output_radix.
10641 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10642 isn't reverted.
10643
9d01611c
AC
106442002-03-16 Andrew Cagney <ac131313@redhat.com>
10645
10646 * value.h (struct value): Delete field ``substring_addr''. Change
10647 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10648 force_core_addr_align and force_pointer_aligh.
10649
10650 * value.h (struct value): Fix typo in above change.
9d01611c 10651
4156bb53
PS
106522002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10653
10654 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10655 to fix internal_error from ``maintenance print architecture''.
10656
0e5e3ea6
PS
106572002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10658
10659 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10660 for gcc versions after gcc-2.8.1.
10661
9b013045
PS
106622002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10663
10664 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10665 for method resolution. Restore adjustment of ``this'' pointer after
10666 calling value_struct_elt, which was accidentally removed during the
10667 HP merge.
10668
376c9600
AC
106692002-03-15 Andrew Cagney <ac131313@redhat.com>
10670
10671 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10672 value_of_register.
10673 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10674 get_saved_register.
10675 * value.h (value_of_register): Update.
10676
a4db0f07
RH
106772002-03-14 Richard Henderson <rth@redhat.com>
10678
10679 * configure.in: Detect declaration for canonicalize_file_name.
10680 * utils.c (canonicalize_file_name): Declare, if needed.
10681 (gdb_realpath): Prefer realpath if available and usable.
10682 * config.in, configure: Rebuild.
10683
96383835
RH
106842002-03-14 Richard Henderson <rth@redhat.com>
10685
10686 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10687 a constant array bound.
10688
10689 * MAINTAINERS: Add myself to write-after-approval.
10690
75245b24
MS
106912002-03-14 Michael Snyder <msnyder@redhat.com>
10692
10693 * symfile.c (syms_from_objfile): Return immediately if no syms.
10694 (symbol_file_add): Return immediately if no syms.
10695 (find_sym_fns): Return immediately if no syms.
10696
e641a1ca
ML
106972002-03-13 Michal Ludvig <mludvig@suse.cz>
10698
10699 * gdbserver/remote-util.c (remote_open): Print remote-side's
10700 IP address when remote debugging over the network.
7e336ba1 10701
df08bfec
DB
107022002-03-12 David O'Brien <obrien@FreeBSD.org>
10703
10704 * config/sparc/fbsd.mh: Fix copyright.
10705 * config/sparc/fbsd.mt: Likewise.
10706
9a57864f
RE
107072002-03-11 Richard Earnshaw <rearnsha@arm.com>
10708
10709 * MAINTAINERS: Fix typo in name of gdb warnings option.
10710 (x86-64): Fix formating so that this can be parsed by awk.
10711
dd7bf85e
DJ
107122002-03-10 Daniel Jacobowitz <drow@mvista.com>
10713
10714 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10715 * defs.h: Include "gdb/signals.h".
10716 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10717
33a0a2ac
ML
107182002-03-10 Michal Ludvig <mludvig@suse.cz>
10719
10720 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10721 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10722 from x86-64-tdep.h
10723
dd824b04
DJ
107242002-03-10 Daniel Jacobowitz <drow@mvista.com>
10725 Don Howard <dhoward@redhat.com>
10726
10727 * mips-tdep.c (ST0_FR): Define.
10728 (mips2_fp_compat): New function, temporarily disabled.
10729 (mips_read_fp_register_single): New function.
10730 (mips_read_fp_register_double): New function.
10731 (mips_print_register): Use them.
10732 (do_fp_register_row): Likewise.
10733
6a41ff59
AC
107342002-03-09 Andrew Cagney <ac131313@redhat.com>
10735
10736 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10737 approval''.
10738
4ea09c10
PS
107392002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10740
10741 * stabsread.c (read_member_functions): Fix is_stub test for
10742 static member functions, improve comment.
10743
6ccc741d
RE
107442002-03-07 Richard Earnshaw <rearnsha@arm.com>
10745
10746 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10747 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10748 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10749 commands that set boolean values.
10750 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10751 (arm_rdi_resume): Always initialize PC.
10752 (arm_rdi_open): Don't use rslt as a boolean.
10753 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10754 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10755 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10756 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10757
438013df
AO
107582002-03-06 Alexandre Oliva <aoliva@redhat.com>
10759
10760 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10761 * configure: Rebuilt.
10762
70ed8774
SC
107632002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10764
10765 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10766 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10767
5ba2abeb
AC
107682002-03-06 Andrew Cagney <ac131313@redhat.com>
10769
10770 * cli/cli-decode.c (set_cmd_completer): New function.
10771 * command.h (set_cmd_completer): Declare.
10772 * cli/cli-decode.h (set_cmd_completer): Ditto.
10773
10774 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10775 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10776 * win32-nat.c (_initialize_inftarg): Ditto.
10777 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10778 * proc-api.c (_initialize_proc_api): Ditto.
10779 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10780 * source.c (_initialize_source): Ditto.
10781 * exec.c (_initialize_exec): Ditto.
10782 * solib.c (_initialize_solib): Ditto.
10783 * top.c (init_main): Ditto.
10784 * tracepoint.c (_initialize_tracepoint): Ditto.
10785 * symfile.c (_initialize_symfile): Ditto.
10786 * printcmd.c (_initialize_printcmd): Ditto.
10787 * infcmd.c (_initialize_infcmd): Ditto.
10788 * corefile.c (_initialize_core): Ditto.
10789
f779ca99
AC
107902002-03-05 Andrew Cagney <ac131313@redhat.com>
10791
10792 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10793
01a3934b
AC
107942002-03-05 Andrew Cagney <ac131313@redhat.com>
10795
10796 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10797
37057839
AC
107982002-03-05 Andrew Cagney <ac131313@redhat.com>
10799
10800 * NEWS: Update headings, 5.2 has branched.
10801
c6ecbae5
DJ
108022002-03-04 Daniel Jacobowitz <drow@mvista.com>
10803
10804 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10805 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10806 (register_addr, REGISTER_RAW_SIZE): Likewise.
10807 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10808 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10809
e9f30c21
ML
108102002-03-03 Michal Ludvig <mludvig@suse.cz>
10811
10812 * MAINTAINERS (x86-64): Add myself.
10813 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10814 changed value_ptr -> struct value *
10815
54394ac3
DB
108162002-03-01 David O'Brien <obrien@FreeBSD.org>
10817
10818 * configure.host (sparc64-*-freebsd): Add.
10819 * configure.tgt: Likewise.
10820 * config/sparc/fbsd.mh: New file.
10821 * config/sparc/fbsd.mt: Likewise.
10822 * config/sparc/nm-fbsd.h: Likewise.
10823 * config/sparc/tm-fbsd.h: Likewise.
10824
bfe95955
DJ
108252002-03-01 Daniel Jacobowitz <drow@mvista.com>
10826
10827 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10828 regformats/reg-s390x.dat.
10829
f33c6cbf
AC
108302002-03-01 Andrew Cagney <ac131313@redhat.com>
10831
10832 * utils.c: Add FIXME explaining true/false problem.
10833
5ecaa7dd
AC
108342002-02-28 Andrew Cagney <ac131313@redhat.com>
10835
10836 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10837
2a251cc2
MC
108382002-02-28 Michael Chastain <mec@shout.net>
10839
10840 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10841
6a8031a3 108422002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10843
10844 * gdbserver/linux-s390-low.c: New file.
10845 * regformats/reg-s390.dat: New file.
10846 * regformats/reg-s390x.dat: New file.
10847 * gdbserver/configure.srv: Add S/390.
10848 * gdbserver/Makefile.in: Add S/390.
10849 * configure.tgt: Enable gdbserver for S/390.
10850
ac469903
EZ
108512002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10852
10853 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10854 first line of the doc string for "info dos", except at the end of
10855 the sentence, since the short help stops at the first period.
10856
985cb1a3
JM
108572002-02-28 Jason Merrill <jason@redhat.com>
10858
10859 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10860
c570663e
FF
108612002-02-27 Fred Fish <fnf@redhat.com>
10862
10863 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10864 comment (dumy -> dummy).
10865
43630227
PS
108662002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10867
10868 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10869
b84911e8
RB
108702002-02-27 Rodney Brown <rbrown64@csc.com.au>
10871
10872 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10873
58caa3dc
DJ
108742002-02-27 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * gdbserver/acconfig.h: New file.
10877 * gdbserver/i387-fp.c: New file.
10878 * gdbserver/i387-fp.h: New file.
10879 * gdbserver/linux-x86-64.c: New file.
10880 * regformats/reg-x86-64.dat: New file.
10881 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10882 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10883 * gdbserver/configure.in: Add support for regsets.
10884 * gdbserver/config.in: Regenerate.
10885 * gdbserver/configure: Regenerate.
10886 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10887 * gdbserver/linux-low.h: New file.
10888 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10889 for regsets.
10890 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10891 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10892 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10893 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10894 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10895 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10896 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10897 "i387-fp.h". Add PTRACE_GETREGS and friends.
10898 * gdbserver/regcache.c (supply_register): New function.
10899 (supply_register_by_name): New function.
10900 (collect_register): New function.
10901 (collect_register_by_name): New function.
10902
93652174
DJ
109032002-02-27 Daniel Jacobowitz <drow@mvista.com>
10904
10905 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10906 (config.status): Add configure.srv dependency.
10907 (server_h): Add config.h dependency.
10908
a02e4a61
DJ
109092002-02-27 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10912 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10913 * gdbserver/configure.srv: Change i386-*-linux* to use
10914 reg-i386-linux.o.
10915
ce0eebec
AC
109162002-02-26 Andrew Cagney <ac131313@redhat.com>
10917
10918 * x86-64-tdep.c: Re-indent. Update copyright date.
10919
82dbc5f7
AC
109202002-02-26 Andrew Cagney <ac131313@redhat.com>
10921
10922 From Michal Ludvig <mludvig@suse.cz>:
10923 * x86-64-tdep.c (value.h): Delete.
10924 (gdb_assert.h): Include.
10925 (x86_64_register_convert_to_virtual,
10926 x86_64_register_convert_to_raw ): Add check which lets only
10927 floating-point values to be converted.
10928 (value_push): Delete.
10929 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10930 (i386_gdbarch_init): Number of register_bytes fixed.
10931
e4621584
AC
109322002-02-26 Andrew Cagney <ac131313@redhat.com>
10933
10934 * MAINTAINERS: Add x86-64 target.
10935
81a9a963
AC
109362002-02-26 Andrew Cagney <ac131313@redhat.com>
10937
10938 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10939 * osfsolib.c (solib_map_sections): Ditto.
10940 * irix5-nat.c (solib_map_sections): Ditto.
10941 * corelow.c (gdb_check_format): Ditto.
10942 * symfile.c (symfile_bfd_open): Ditto.
10943 * solib.c (solib_map_sections): Ditto.
10944 Fix PR gdb/354.
7e336ba1 10945
0f017ab9
AC
109462002-02-26 Andrew Cagney <ac131313@redhat.com>
10947
10948 * remote.c (_initialize_remote): By default, disable ``e'' and
10949 ``E'' step out-of-range packets.
10950
75738c29
AS
109512002-02-26 Andreas Schwab <schwab@suse.de>
10952
10953 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10954 m68k_linux_frame_saved_pc.
10955 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10956 in_sigtramp.
10957 (SIGCONTEXT_PC_OFFSET): Remove.
10958 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10959 m68k_linux_sigtramp_saved_pc): New functions.
10960 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10961 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10962 (UCONTEXT_PC_OFFSET): Define.
10963 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10964 non-RT and RT signal trampolines.
10965
7e8ed687
RE
109662002-02-26 Richard Earnshaw <rearnsha@arm.com>
10967
10968 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10969 (TARGET_NBPG, STACK_END_ADDR): Delete
10970 (VARIABLES_INSIDE_BLOCK): Delete.
10971
6972bc8b
AC
109722002-02-25 Andrew Cagney <ac131313@redhat.com>
10973
10974 * utils.c (perror_with_name): Make string parameter constant.
10975 (print_sys_errmsg): Ditto.
10976 (query): Ditto.
10977 * defs.h (perror_with_name): Update.
10978 (print_sys_errmsg): Update.
10979 (query): Update.
10980
aa32f823
DJ
109812002-02-25 Daniel Jacobowitz <drow@mvista.com>
10982
10983 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10984 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10985
19caaa45
PS
109862002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10987
10988 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10989 if it already matches the current architecture from the exec file.
10990 Include arch-utils.h for gdbarch_info_init prototype.
10991 * Makefile.in (rs6000-nat.o): Update dependencies.
10992
d951901f
EZ
109932002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10994
10995 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10996 list of exported variables.
10997
7ea81414
DJ
109982002-02-24 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * gdbserver/configure.srv: New file.
11001 * gdbserver/configure.in: Use configure.srv instead
11002 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11003 from it.
11004 * gdbserver/configure: Regenerated.
11005 * gdbserver/terminal.h: New file.
11006 * gdbserver/Makefile.in: Update for configure changes. Remove
11007 more unneeded include paths.
11008
080fe24b
AC
110092002-02-24 Andrew Cagney <ac131313@redhat.com>
11010
11011 From wiz at danbala:
11012 * config/sparc/tm-sp64.h: Fix grammar and typos.
11013 Fix PR gdb/287.
11014
8605d56e
AC
110152002-02-24 Andrew Cagney <ac131313@redhat.com>
11016
11017 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11018 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11019 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11020 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11021 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11022 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11023 * s390-tdep.c: Ditto.
92362027
AC
11024 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11025 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11026 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11027 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11028 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11029 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11030 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11031 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11032 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11033 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11034 Fix PR gdb/378.
7e336ba1 11035
8ed32cc0
AC
110362002-02-23 Andrew Cagney <ac131313@redhat.com>
11037
a3007b6f
AC
11038 * lin-thread.c: Delete file.
11039 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11040 to gdb_proc_service.h.
11041 * configure: Re-generate.
11042
50a9e2f1
AC
11043 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11044 * serial.c (serial_open): Delete check for "ocd".
11045 Fix PR gdb/349.
11046
8b6e7932
AC
11047 * Makefile.in (linux-thread.o): Delete target.
11048 * linux-thread.c: Delete file.
11049
d155c46b
AC
11050 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11051 renamed SH files to be consistent.
11052
8ed32cc0
AC
11053 * symtab.c (sort_search_symbols): Use xfree.
11054
0e18d038
RE
110552002-02-23 Richard Earnshaw <rearnsha@arm.com>
11056
11057 * arm-linux-tdep.c (arm_linux_init_abi): Register
11058 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11059 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11060 definition with undef, since we don't want the sysvr4 definition.
11061 (SKIP_TRAMPOLINE_CODE): Likewise.
11062
27aac7ff
AC
110632002-02-23 Andrew Cagney <ac131313@redhat.com>
11064
11065 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11066
11067 * configure.in: (AC_CHECK_FUNCS) Added test for
11068 canonicalize_file_name Regenerated.
11069 * config.in, configure: Regenerated.
11070 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11071 defined use canonicalize_file_name.
7e336ba1 11072
65a6e0ee
MC
110732002-02-23 Michael Chastain <mec@shout.net>
11074
11075 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11076
47b95330
AC
110772002-02-23 Andrew Cagney <ac131313@redhat.com>
11078
11079 * README: Remove references to cygnus.com.
11080 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11081 dot com'' form. Remove references to cygnus.com and sourceware.
11082
696f451b
AC
110832002-02-23 Andrew Cagney <ac131313@redhat.com>
11084
11085 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11086 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11087 1003.1-2001 no longer allows "head -1".
11088 * gdb/Makefile.in (version.c): Likewise.
11089 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11090 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11091 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11092
bbaca940
AC
110932002-02-23 Andrew Cagney <ac131313@redhat.com>
11094
11095 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11096 * command.h (cmd_cfunc_eq): Declare.
11097 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11098
11099 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11100 ``struct cmd_list_element *''.
11101 * cli/cli-cmds.c (is_complete_command): Update. Use
11102 cmd_cfunc_eq.
11103 * top.c (execute_command): Pass the command to
11104 is_complete_command.
11105 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11106
b8b8b047
AC
111072002-02-23 Andrew Cagney <ac131313@redhat.com>
11108
11109 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11110 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11111 architecture defines.
11112 * s390-tdep.c (s390_gdbarch_init): Likewise.
11113
19d3fc80
RE
111142002-02-23 Richard Earnshaw <rearnsha@arm.com>
11115
11116 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11117 (arm_linux_push_arguments): Likewise.
11118 (arm_linux_init_abi): Register them. Also register linux-specific
11119 call_dummy_words.
11120 (find_minsym_and_objfile): Use strcmp, not STREQ.
11121 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11122 (arm_linux_call_dummy_words): Delete declaration.
11123 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11124 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11125 declarations.
11126 (LOWEST_PC): Delete.
11127
3ab13650
PS
111282002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11129
11130 * maint.c (print_section_info): Do not prepend `0x' to filepos
11131 output, it will be handled by local_hex_string_custom.
11132
19d3fc80 111332002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11134
11135 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11136 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11137 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11138
d85a5daf
JB
111392002-02-22 Jim Blandy <jimb@redhat.com>
11140
11141 Indicate that the bcache functions don't change the strings
11142 they're passed.
11143 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11144 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11145
eeb25b8a
PM
111462002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11147
11148 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11149
6badb179
CF
111502002-02-21 Christopher Faylor <cgf@redhat.com>
11151
11152 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11153 find the complete path to a loaded DLL.
11154
e8717518
FF
111552002-02-21 Fred Fish <fnf@redhat.com>
11156
11157 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11158 that marks the end of the range of a function, enter a line number
11159 entry that has a line number of zero and a PC offset that matches
11160 the end of the function. This starts a range of PC's for which no
11161 line number information is known.
11162 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11163 PC's for which no line number info is found (line number is zero)
11164 then we didn't find any valid line information.
11165 * symtab.h: Document use of zero line number entry.
11166
9abe5450
EZ
111672002-02-21 Elena Zannoni <ezannoni@redhat.com>
11168
11169 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11170 (have_ptrace_getvrregs): Define for run time checks.
11171 (gdb_vrregset_t): New type for Altivec register handling.
11172 (fetch_register, store_register): Fetch/store altivec register
11173 when needed.
11174 (fetch_altivec_register, store_altivec_register): New functions.
11175 (supply_vrregset, fill_vrregset): New functions.
11176 (fetch_altivec_registers, store_altivec_registers): New functions.
11177 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11178 registers as well.
11179
aaa38bb5
AJ
111802002-02-21 Jiri Smid <smid@suse.cz>
11181
11182 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11183
b34db576
RE
111842002-02-21 Richard Earnshaw <rearnsha@arm.com>
11185
11186 * Makefile.in (armnbsd-nat.o): Update dependencies.
11187 * armnbsd-nat.c (supply_gregset): New function. Common code to
11188 supply the integer register set.
11189 (supply_fparegset): New function. Similar for FPA registers.
11190 (fetch_regs, fetch_fp_regs): Use them.
11191 (fetch_core_registers): Likewise.
11192 (fetch_elfcore_registers): New function.
11193 (arm_netbsd_elfcore_fns): New core-file type specification.
11194 (_initialize_arm_netbsd_nat): Register it.
11195
3e56fc4b
RE
111962002-02-21 Richard Earnshaw <rearnsha@arm.com>
11197
11198 * armnbsd-nat.c: Include gdbcore.h.
11199 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11200 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11201 'void' to declaration, to shut up ARI.
11202 (fetch_core_registers): Make static. Rewrite using supply_register.
11203 (arm_netbsd_core_fns): New core-file type specification.
11204 (_initialize_arm_netbsd_nat): New function.
11205
097f6b0b
CF
112062002-02-21 Christopher Faylor <cgf@redhat.com>
11207
11208 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11209 value.
11210
c914e0cc
CF
112112002-02-20 Christopher Faylor <cgf@redhat.com>
11212
11213 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11214 fails.
11215
385fa495
DJ
112162002-02-20 Daniel Jacobowitz <drow@mvista.com>
11217
11218 * jv-exp.y (parse_number): Change type of implicit longs
11219 to builtin_type_uint64.
11220
e5f1222d
DJ
112212002-02-20 Daniel Jacobowitz <drow@mvista.com>
11222
11223 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11224 to be an integer instead of a `union wait'.
11225
75c9abc6
DJ
112262002-02-20 Daniel Jacobowitz <drow@mvista.com>
11227
11228 * mips-linux-nat.c: Call the operating system GNU/Linux.
11229 * mips-linux-tdep.c: Likewise.
11230 * mips-tdep.c: Likewise.
11231
551792a5
DJ
112322002-02-20 Daniel Jacobowitz <drow@mvista.com>
11233
11234 Fix PR gdb/265.
11235 * jv-exp.y (parse_number): Handle 64-bit integers.
11236
ee6e2b82
DJ
112372002-02-20 Daniel Jacobowitz <drow@mvista.com>
11238
11239 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11240 AC_STDC_HEADERS to AC_HEADER_STDC.
11241 * gdbserver/configure: Regenerated.
11242
a48442a0
RE
112432002-02-20 Richard Earnshaw <rearnsha@arm.com>
11244
11245 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11246 is defined.
11247 * sparc-tdep.c (get_longjmp_target): Likewise.
11248
fe419ffc
RE
112492002-02-20 Richard Earnshaw <rearnsha@arm.com>
11250
11251 * News: Add news about ARM and Multi-arch. Mention the new target
11252 arm*-*-netbsd*.
11253
5832ed7e
JB
112542002-02-19 Jim Blandy <jimb@redhat.com>
11255
11256 * stabsread.c (error_type_complaint): Improve error message.
11257
84563040
DJ
112582002-02-19 Daniel Jacobowitz <drow@mvista.com>
11259
11260 * gdbserver/README: Update documentation.
11261 * gdbserver/configure.in: Update configury to match documentation.
11262 * gdbserver/Makefile.in: Likewise.
11263 * gdbserver/configure: Regenerated.
11264 * gdbserver/aclocal.m4: New file, generated by aclocal.
11265 * gdbserver/config.in: New file, generated by autoheader.
11266
375fd65b
RE
112672002-02-19 Richard Earnshaw <rearnsha@arm.com>
11268
11269 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11270 armnbsd-nat.c.
11271
08216dd7
RE
112722002-02-19 Richard Earnshaw <rearnsha@arm.com>
11273
11274 * arm-tdep.h (enum arm_float_model): New enum.
11275 (struct gdbarch_tdep): Add fp_model.
11276 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11277 up floating-point conversions until we know the floating-point model
11278 in use by the inferior. Don't complain about being unable to
11279 determine the ABI of the inferior when we don't have one.
11280 (arm_extract_return_value): Support different floating-point models.
11281 (arm_store_return_value): Likewise.
aaa38bb5 11282 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11283 ARM_FLOAT_SOFT.
11284 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11285
65d6d66a
PS
112862002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11287
11288 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11289 of ``current_gdbarch''.
11290
47221191
RE
112912002-02-19 Richard Earnshaw <rearnsha@arm.com>
11292
11293 * armnbsd-nat.c : ANSIfy all function declarations.
11294 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11295 (fetch_inferior_registers): Re-implement in terms of above.
11296 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11297 (store_inferior_registers): Re-implement in terms of above.
11298
fdf39c9a
RE
112992002-02-19 Richard Earnshaw <rearnsha@arm.com>
11300
aaa38bb5 11301 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11302 kernel.
11303 * arm-linux-tdep.c: Likewise.
11304 * config/arm/tm-linux.h: Likewise.
11305
93247f88
RE
113062002-02-19 Richard Earnshaw <rearnsha@arm.com>
11307
11308 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11309 * config/arm/nbsd.mt (TM_FILE): Delete.
11310 * config/arm/tm-nbsd.h: Delete.
11311
d7b486e7
RE
113122002-02-19 Richard Earnshaw <rearnsha@arm.com>
11313
11314 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11315 Initialize CALL_DUMMY_LENGTH.
11316
41d39a95
RE
113172002-02-19 Richard Earnshaw <rearnsha@arm.com>
11318
11319 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11320 function.
11321 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11322 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11323 defines one thing and that is incorrect for this port.
11324 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11325
e1195560
PM
113262002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11327
11328 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11329
c1748f97
PM
113302002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11331
11332 * win32-nat.c (display_selector): New function. Displays information
11333 about the information returned by GetThreadSelectorEntry API function.
11334 (display_selectors): New function. Displays the infomation of
11335 the selector given as argument, or of CS, DS ans FS selectors
11336 if no argument is given.
11337 ( _initialize_inftarg): Add "w32" as info prefix command.
11338 Add "info w32 selector" as command calling display_selectors.
11339
e41e6bbf
PM
113402002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11341
11342 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11343 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11344 if not defined.
11345
0d3a9f48
RE
113462002-02-18 Richard Earnshaw <rearnsha@arm.com>
11347
11348 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11349
3fb4b924
RE
113502002-02-18 Richard Earnshaw <rearnsha@arm.com>
11351
11352 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11353 (arm_fix_call_dummy): Call it.
11354 (arm_call_dummy_breakpoint_offset): Delete.
11355 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11356 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11357
7f55af32
AC
113582002-02-18 Andrew Cagney <ac131313@redhat.com>
11359
11360 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11361 Default to func_frame_chain_valid.
11362 * gdbarch.h, gdbarch.c: Re-generate.
11363 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11364
05f13b9c
EZ
113652002-02-18 Elena Zannoni <ezannoni@redhat.com>
11366
11367 * ppc-linux-nat.c: Update copyright.
11368 (fetch_register, store_register): Add tid parameter, don't compute
11369 tid here.
11370 (fetch_ppc_registers, store_ppc_registers): Add tid
11371 parameter. Pass it along to callees.
11372 (fetch_inferior_registers, store_inferior_registers): Compute tid
11373 here, and pass it to calleed functions.
11374 (fill_gregset, supply_fpregset): Clean up formatting.
11375
d7afb4c9
RE
113762002-02-18 Richard Earnshaw <rearnsha@arm.com>
11377
11378 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11379 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11380
9df628e0
RE
113812002-02-18 Richard Earnshaw <rearnsha@arm.com>
11382
11383 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11384 * gdbarch.c gdbarch.h: Regenerate.
11385 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11386 function.
11387 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11388 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11389 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11390
11391 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11392 * arm-tdep.c (arm_get_longjmp_target): New function.
11393 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11394 this to a positive value register arm_get_longjmp_target as the
11395 longjmp handler.
11396 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11397 (arm_linux_init_abi): Set up longjmp description in tdep.
11398 * armnbsd-nat.c (get_longjmp_target): Delete.
11399 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11400 description in tdep.
11401 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11402 (get_longjmp_target): Delete declaration.
11403 (GET_LONGJMP_TARGET): Delete.
11404 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11405 (GET_LONGJMP_TARGET): Delete.
11406
57bc8964
KB
114072002-02-17 Kevin Buettner <kevinb@redhat.com>
11408
11409 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11410 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11411 of ``current_gdbarch''.
11412
83d31a92
TT
114132002-02-17 Tom Tromey <tromey@redhat.com>
11414
11415 * cli/cli-cmds.c (compare_strings): New function.
11416 (complete_command): Only print each unique item once.
11417 * completer.h (complete_line): Declare.
11418 * completer.c (complete_line): New function.
11419 (line_completion_function): Use it.
11420
17ef5d92
AC
114212002-02-16 Andrew Cagney <ac131313@redhat.com>
11422
11423 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11424 * gdbarch.h, gdbarch.c: Re-generate.
11425
491b8946
DJ
114262002-02-16 Daniel Jacobowitz <drow@mvista.com>
11427
11428 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11429
114302002-02-16 Daniel Jacobowitz <drow@mvista.com>
11431
11432 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11433 * valops.c (value_arg_coerce): Don't take the address of a reference
11434 to convert an argument to a reference.
11435
dfe7f3ac
CF
114362002-02-15 Christopher Faylor <cgf@redhat.com>
11437
11438 * win32-nat.c (get_image_name): New function.
11439 (handle_load_dll): Use get_image_name function.
11440 (get_child_debug_event): Avoid registering debug events until possibly
11441 execed process is started.
11442 (child_create_inferior): Allow invocation via shell so that command
11443 line redirection, etc. works ok.
11444 (_initialize_inftarg): Add new command: "set shell" to control whether
11445 a shell is used to start a process.
11446
1d33e73a
DJ
114472002-02-15 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11450 instead of find_register_by_number.
11451 (cannot_store_register): Likewise.
11452
48cd0caa
PM
114532002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11454
aaa38bb5 11455 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11456 fprintf_unfiltered (gdb_stderr, ...).
11457
8656e7d8
DJ
114582002-02-15 Daniel Jacobowitz <drow@mvista.com>
11459
11460 * gdbserver/gdbserver.1: Document --attach.
11461
66e810cd
RE
114622002-02-15 Richard Earnshaw <rearnsha@arm.com>
11463
11464 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11465 descriptions.
11466 * arm-tdep.c (arm_default_arm_le_breakpoint)
11467 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11468 (arm_default_thumb_be_breakpoint): New. Initialize them from
11469 traditional breakpoint defines.
11470 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11471 (arm_gdbarch_init): Initialize new breakpoint variables.
11472 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11473 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11474 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11475 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11476 code out to ...
11477 (arm_netbsd_init_abi_common): ... here; new function.
11478 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11479 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11480 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11481 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11482
97e03143
RE
114832002-02-15 Richard Earnshaw <rearnsha@arm.com>
11484
11485 * arm-tdep.h (enum arm_abi): New enum.
11486 (struct gdbarch_tdep): New structure.
11487 (LOWEST_PC): Provide a default.
11488 (arm_gdbarch_register_os_abi): Declare new function.
11489 * arm-tdep.c (arm_abi_names): New array.
11490 (process_note_abi_tag_sections): New function.
11491 (get_elfosabi): New function.
11492 (arm_gdbarch_register_os_abi): New function.
11493 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11494 support for that ABI has been built in, then call the appropriate
11495 configuration routine. Use gdbarch_num_regs() to get the number
11496 of registers.
11497 (arm_dump_tdep): New function.
11498 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11499 place-holder functions.
11500 (_initialize_arm_tdep): Register them.
11501 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11502
11503 * armnbsd-tdep.c: New file.
11504 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11505 * config/arm/nbsd.mt (TDEPFILES): Add it.
11506 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11507
11508 * armnbsd-nat.c: Include regcache.h.
11509 * Makefile.in (armnbsd-nat.o): Update dependency list.
11510
11511 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11512
ad68be46
DJ
115132002-02-14 Daniel Jacobowitz <drow@mvista.com>
11514
11515 * gdbserver/Makefile.in: Fix typos in target rules.
11516
003d6d1d
DJ
115172002-02-14 Daniel Jacobowitz <drow@mvista.com>
11518
aaa38bb5 11519 Fix part of PR gdb/267.
003d6d1d
DJ
11520 * linespec.c (find_methods): Handle constructors specially for now.
11521
6b230f1b
CV
115222002-02-14 Corinna Vinschen <vinschen@redhat.com>
11523
11524 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11525 handling.
11526 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11527 standard_coerce_float_to_double().
11528
1ea98d12
CF
115292002-02-14 Christopher Faylor <cgf@redhat.com>
11530
11531 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11532 GDBINIT_FILENAME.
11533
dd47e6fd
EZ
115342002-02-14 Elena Zannoni <ezannoni@redhat.com>
11535
11536 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11537 find_variant_by_name, because it confuses the multiarch
11538 framework. Return NULL if there isn't an architecture with the
11539 user supplied name, instead of forcing a different one without
11540 recording the change with the multiarch machinery.
11541 (find_variant_by_name): Delete.
11542
d7e39b9e
PS
115432002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11544
11545 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11546 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11547
76e42a4f
MH
115482002-02-13 Martin M. Hunt <hunt@redhat.com>
11549
aaa38bb5 11550 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11551 print_frame_info_listing_hook, set current_source_symtab.
11552
0a30fbc4
DJ
115532002-02-14 Daniel Jacobowitz <drow@mvista.com>
11554
11555 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11556 and remove unused $(INCLUDE_DIR).
11557 Add regcache.c to OBS.
11558 Add generated register protocol files to clean target.
11559 Update dependencies for new objects, obsolete old target code.
11560
11561 * gdbserver/linux-low.c: Remove all platform-specific code to
11562 new files. Remove various dead code. Update to use regcache
11563 functionality.
11564 * gdbserver/remote-utils.c (fromhex): Add return statement
11565 to quiet warning.
11566 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11567 constant.
11568 (input_interrupt): Add integer parameter to match prototype
11569 of a signal handler.
11570 (outreg): Use register_data ().
11571 (prepare_resume_reply): Use gdbserver_expedite_regs.
11572 * gdbserver/server.c (main): Dynamically allocate own_buf because
11573 PBUFSIZ is no longer constant. Use registers_to_string () and
11574 registers_from_string ().
11575 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11576 for error (), fatal (), and warning (). Update definition of
11577 PBUFSIZ to use regcache functionality. Add include guard.
11578 * gdbserver/utils.c (fatal): Add missing ``const''.
11579 (warning): New function.
11580
11581 * regformats/regdat.sh: Include "regcache.h" in generated files.
11582 Provide init_registers () function.
11583 * regformats/regdef.h: Add prototype for set_register_cache ().
11584 Add include guard.
11585
11586 * gdbserver/linux-arm-low.c: New file.
11587 * gdbserver/linux-i386-low.c: New file.
11588 * gdbserver/linux-ia64-low.c: New file.
11589 * gdbserver/linux-m68k-low.c: New file.
11590 * gdbserver/linux-mips-low.c: New file.
11591 * gdbserver/linux-ppc-low.c: New file.
11592 * gdbserver/linux-sh-low.c: New file.
11593
11594 * gdbserver/regcache.c: New file.
11595 * gdbserver/regcache.h: New file.
11596
11597 * gdbserver/low-linux.c: Removed obsolete file.
11598
4cc841d0
DJ
115992002-02-14 Daniel Jacobowitz <drow@mvista.com>
11600
11601 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11602 * config/i386/linux.mt: Likewise.
11603 * config/ia64/linux.mt: Likewise.
11604 * config/m68k/linux.mh: Likewise.
11605 * config/powerpc/linux.mh: Likewise.
11606 * config/mips/linux.mt: Likewise.
11607
11608 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11609
11610 * config/i386/i386lynx.mh: Mark gdbserver variables
11611 as (currently) obsolete for this target.
11612 * config/i386/nbsd.mt: Likewise.
11613 * config/i386/nbsdelf.mt: Likewise.
11614 * config/m32r/m32r.mt: Likewise.
11615 * config/m68k/m68klynx.mh: Likewise.
11616 * config/m68k/nbsd.mt: Likewise.
11617 * config/m68k/sun3os4.mh: Likewise.
11618 * config/mips/vr5000.mt: Likewise.
11619 * config/ns32k/nbsd.mt: Likewise.
11620 * config/pa/hppabsd.mh: Likewise.
11621 * config/pa/hppaosf.mh: Likewise.
11622 * config/powerpc/nbsd.mt: Likewise.
11623 * config/rs6000/rs6000lynx.mh: Likewise.
11624 * config/s390/s390.mt: Likewise.
11625 * config/s390/s390x.mt: Likewise.
11626 * config/sparc/sparclynx.mh: Likewise.
11627 * config/sparc/sun4os4.mh: Likewise.
11628 * config/i386/x86-64linux.mt: Likewise.
11629 * config/sparc/linux.mh: Likewise.
11630
a85f51e7
DJ
116312002-02-14 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * configure.tgt: Configure gdbserver only for known working
11634 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11635 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11636 SUBDIRS if it is configured. Update comment for ${nativefile}.
11637 * configure: Regenerated.
11638
65554fef
MS
116392002-02-13 Michael Snyder <msnyder@redhat.com>
11640
670a52db
MS
11641 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11642
6dbdc4a3
MS
11643 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11644 (default_gcore_mach): Just return 0, work around a problem in bfd.
11645 (default_gcore_target): OK to return NULL if exec_bfd is null.
11646 (make_mem_sec): Use a cast, avoid a warning.
11647
11648 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11649 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11650 sizeof (host pointer) != sizeof (target pointer)).
11651 (procfs_make_note_section): Avoid overflow in psargs string.
11652
aaa38bb5 11653 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11654 implementation return an error.
11655
116562002-02-13 Rodney Brown <rbrown64@csc.com.au>
11657
11658 * procfs.c (procfs_make_note_section): Provide a default definition
11659 (for alpha-dec-osf4.0f). Fix typos.
11660
1e4d76e7
EZ
116612002-02-13 Elena Zannoni <ezannoni@redhat.com>
11662
11663 * linux-proc.c: Add include of regcache.h.
11664 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11665
b6d1a1d5
AC
116662002-02-13 Andrew Cagney <ac131313@redhat.com>
11667
11668 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11669 * memattr.c (create_mem_region): Disallow useless empty region.
11670 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11671 non-overlapping.
b6d1a1d5 11672
6c6ea35e
MC
116732002-02-13 Michael Chastain <mec@shout.net>
11674
11675 * defs.h: Kill CONST_PTR.
11676 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11677 * c-lang.c (c_builtin_types): Likewise.
11678 * ch-lang.c (ch_builtin_types): Likewise.
11679 * f-lang.c (f_builtin_types): Likewise.
11680 * language.c (unknown_builtin_types): Likewise.
11681 * m2-lang.c (m2_builtin_types): Likewise.
11682 * p-lang.c (pascal_builtin_types): Likewise.
11683 * scm-lang.c (c_builtin_types): Likewise.
11684
3e0b0f48
KS
116852002-02-13 Keith Seitz <keiths@redhat.com>
11686
11687 * arm-tdep.h (arm_get_next_pc): Add declaration.
11688
67255d04
RE
116892002-02-13 Richard Earnshaw <rearnsha@arm.com>
11690
11691 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11692 with other related struct-returning functions.
11693 (arm_extract_struct_value_address): New function.
11694 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11695 initialize float_format, double_format and long_double_format as
11696 appropriate to the endianness of the target.
11697 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11698 (arm_use_struct_convention): Delete declaration.
11699 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11700
079777f6
KS
117012002-02-13 Keith Seitz <keiths@redhat.com>
11702
11703 * defs.h (core_addr_to_string_nz): New function.
11704
34588f23
MK
117052002-02-13 Mark Kettenis <kettenis@gnu.org>
11706
11707 Apply missing bits of 2002-01-15 patch.
11708 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11709 (fill_fpregset): Use i387_fill_fsave.
11710
49b563f9
KS
117112002-02-12 Keith Seitz <keiths@redhat.com>
11712
49b563f9
KS
11713 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11714 (core_addr_to_string_nz): New function.
11715
aeb98c60
RE
117162002-02-11 Richard Earnshaw <rearnsha@arm.com>
11717
11718 * arm-linux-nat.c: Really include arm-tdep.h.
11719 * config/arm/tm-linux.h (struct type, struct value): Declare.
11720
65554fef
MS
117212002-02-11 Michael Snyder <msnyder@redhat.com>
11722
11723 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11724 (gcore section): Ifdef for Solaris and Unixware only.
11725 (procfs_do_thread_registers): Unixware needs one lwpstatus
11726 per thread (not one prstatus or pstatus).
11727 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11728 not over all gdb threads. For unixware, call elfcore_write_pstatus
11729 once before iterating over threads.
11730
34e8f22d
RE
117312002-02-11 Richard Earnshaw <rearnsha@arm.com>
11732
11733 * arm-tdep.h: New file.
11734 * arm-tdep.c: Include arm-tdep.h.
11735 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11736 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11737 (arm_print_float_info, arm_register_type, convert_to_extended)
11738 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11739 (arm_extract_return_value, arm_register_name): Make static.
11740 (arm_software_single_step): Similarly. Fix types in declaration.
11741 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11742 (arm_store_return_value, arm_store_struct_return): New functions.
11743 (arm_gdbarch_init): Register the above functions. Also register
11744 call_dummy_start_offset, sizeof_call_dummy_words,
11745 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11746 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11747 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11748 prologue_cache.saved_regs here, rather than ...
11749 (_initialize_arm_tdep): ... here.
11750 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11751 declarations.
11752 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11753 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11754 (arm_print_float_info, arm_register_type, convert_to_extended)
11755 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11756 (arm_extract_return_value, arm_register_name): Delete declarations.
11757 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11758 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11759 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11760 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11761 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11762 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11763 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11764 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11765 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11766 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11767 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11768 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11769 interface.
11770 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11771 * remote-rdi.c remote-rdp.c: Likewise.
11772 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11773 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11774 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11775 definition.
11776
11777 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11778 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11779 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11780 from non-ARM_ prefixed definitions.
11781 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11782 all uses of above.
11783 * remote-rdi.c remote-rdp.c: Likewise.
11784 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11785
148754e5
RE
117862002-02-11 Richard Earnshaw <rearnsha@arm.com>
11787
11788 * arm-tdep.c (arm_frameless_function_invocation)
11789 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11790 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11791 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11792 (arm_pop_frame, arm_get_next_pc): Make static.
11793 (arm_gdbarch_init): Register above in gdbarch structure.
11794 (arm_read_fp): Renamed from arm_target_read_fp.
11795 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11796 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11797 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11798 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11799 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11800 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11801 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11802 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11803 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11804 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11805 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11806
434d2d4f
DJ
118072002-02-10 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * symtab.c (compare_search_syms): New function.
11810 (sort_search_symbols): New function.
11811 (search_symbols): Sort symbols after searching rather than
11812 before.
11813
55241689
AC
118142002-02-10 Andrew Cagney <ac131313@redhat.com>
11815
11816 * NEWS: Linux -> GNU/Linux.
11817
028c194b
AC
118182002-02-10 Andrew Cagney <ac131313@redhat.com>
11819
11820 * gdbarch.sh: For for level one methods, disallow a definition
11821 when partially multi-arched. Add comments explaining rationale.
11822 * gdbarch.h: Re-generate.
11823
6acf50cd
AC
118242002-02-10 Andrew Cagney <ac131313@redhat.com>
11825
11826 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11827 multi-arch partial.
aaa38bb5 11828
50248794
AC
118292002-02-10 Andrew Cagney <ac131313@redhat.com>
11830
11831 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11832 field. Use diff -u.
11833 * gdbarch.c: Re-generate.
11834
c30e0066
AC
118352002-02-10 Andrew Cagney <ac131313@redhat.com>
11836
9b56c5f3 11837 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11838 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11839 partial.
11840
6e6d6484
AC
118412002-02-10 Andrew Cagney <ac131313@redhat.com>
11842
11843 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11844 multi-arch partial.
11845 (PUSH_ARGUMENTS): Switch to using predefault.
11846 * gdbarch.c: Regenerate.
11847
c203844d
AC
118482002-02-10 Andrew Cagney <ac131313@redhat.com>
11849
11850 * valops.c (PUSH_ARGUMENTS): Delete definition.
11851 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11852 partial. Default to default_push_arguments.
11853 * gdbarch.h, gdbarch.c: Regenerate.
11854
b5a2688f
AC
118552002-02-09 Andrew Cagney <ac131313@redhat.com>
11856
11857 * defs.h (throw_exception): Rename return_to_top_level. Update
11858 comments.
11859 * utils.c (error_stream, internal_verror, quit): Ditto.
11860 * top.c (throw_exception, catcher): Ditto.
11861 * sparclet-rom.c (sparclet_load): Ditto.
11862 * remote.c (interrupt_query, minitelnet): Ditto.
11863 * remote-sds.c (interrupt_query): Ditto.
11864 * remote-mips.c (mips_error, mips_kill): Ditto.
11865 * ocd.c (interrupt_query): Ditto.
11866 * monitor.c (monitor_interrupt_query): Ditto.
11867 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11868 * target.h: Update comment.
aaa38bb5 11869
b5a2688f 11870 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11871
2fa5c1e0
AC
118722002-02-09 Andrew Cagney <ac131313@redhat.com>
11873
11874 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11875 default_double_format.
11876 * gdbarch.h, gdbarch.c: Re-generate.
11877 * findvar.c (floatformat_unknown): Delete variable definition.
11878 * doublest.h (floatformat_unknown): Delete variable declaration.
11879
da966255
JB
118802002-02-09 Jim Blandy <jimb@redhat.com>
11881
11882 * stabsread.c (read_type): Add code to parse Sun's syntax for
11883 prototyped function types.
11884
123a4891
AC
118852002-02-09 Andrew Cagney <ac131313@redhat.com>
11886
11887 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11888 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11889
fb39c8f3
PS
118902002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11891
11892 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11893 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11894 now _initialize_xcoffsolib gets called again and overrides the
11895 commands from solib.c in a native configuration.
11896
0b87a11d
MK
118972002-02-09 Mark Kettenis <kettenis@gnu.org>
11898
11899 * doublest.c (store_typed_floating): Don't try to return a value.
11900 Fixes PR gdb/290.
11901
bdc2fc72
JB
119022002-02-08 Jim Blandy <jimb@redhat.com>
11903
11904 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11905 is prototyped and has no arguments, print its argument list as
11906 `(void)'.
11907
da69bbcf
CD
119082002-02-08 Chris Demetriou <cgd@broadcom.com>
11909
11910 * MAINTAINERS (write-after-approval): Add myself.
11911 (paper-trail): I've escaped!
aaa38bb5 11912
b69571f5
CF
119132002-02-08 Christopher Faylor <cgf@redhat.com>
11914
11915 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11916 changes.
11917 (_initialize_check_for_gdb_ini): Ditto.
11918
f6871398
MH
119192002-02-08 Martin M. Hunt <hunt@redhat.com>
11920
11921 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11922 xaprintf -> xasprintf.
11923
4e52d31c
PM
119242002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11925
11926 * win32-nat.c: Remove use of printf and sprintf functions.
11927
39bbf761
RE
119282002-02-08 Richard Earnshaw <rearnsha@arm.com>
11929
11930 * arm-tdep.c (arm_frame_chain_valid): Make static.
11931 (arm_push_arguments): Likewise.
11932 (arm_gdbarch_init): New function.
11933 (_initialize_arm_tdep): Call it.
11934 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11935 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11936 (FRAME_CHAIN_VALID): Delete.
11937 (arm_frame_chain_valid): Delete declaration.
11938 (PUSH_ARGUMENTS): Delete.
11939 (arm_push_arguments): Delete declaration.
11940 (CALL_DUMMY_P): Delete.
11941
9c9532c9
CV
119422002-02-08 Andrew Cagney <ac131313@redhat.com>
11943 Corinna Vinschen <vinschen@redhat.com>
11944
11945 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11946 on builtin float types.
11947
4e8f7a8b
DJ
119482002-02-08 Daniel Jacobowitz <drow@mvista.com>
11949
11950 * utils.c: Include <curses.h> before "bfd.h".
11951 * tui/tui-hooks.c: Likewise.
11952 * tui/tui.c: Likewise.
11953 * tui/tuiCommand.c: Likewise.
11954 * tui/tuiData.c: Likewise.
11955 * tui/tuiDataWin.c: Likewise.
11956 * tui/tuiDisassem.c: Likewise.
11957 * tui/tuiGeneralWin.c: Likewise.
11958 * tui/tuiIO.c: Likewise.
11959 * tui/tuiLayout.c: Likewise.
11960 * tui/tuiRegs.c: Likewise.
11961 * tui/tuiSource.c: Likewise.
11962 * tui/tuiSourceWin.c: Likewise.
11963 * tui/tuiStack.c: Likewise.
11964 * tui/tuiWin.c: Likewise.
11965
cd4bffcf
EZ
119662002-02-07 Elena Zannoni <ezannoni@redhat.com>
11967
11968 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11969 to include space for pseudoregs as well. Update loops accordingly.
11970 (sh_fp_frame_init_saved_regs): Ditto.
11971 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11972
26806ce2
AC
119732002-02-07 Andrew Cagney <ac131313@redhat.com>
11974
11975 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11976 Add Richard Earnshaw to Arm maintainers.
11977
97fdab62
AC
119782002-02-07 Andrew Cagney <ac131313@redhat.com>
11979
a6b98203
AC
11980 * defs.h (warning_begin): Delete declaration.
11981
97fdab62
AC
11982 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11983 Delete macro.
11984
78b29b40
MS
119852002-02-07 Michael Snyder <msnyder@redhat.com>
11986
aaa38bb5 11987 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11988 Logic bug, remove misplaced else.
11989
d8849953
KD
119902002-02-07 Klee Dienes <klee@apple.com>
11991
11992 * fork-inferior.c (fork_inferior): Add '!' to the list of
11993 characters that need to be quoted when building a string for the
11994 shell. Quote '!' specifically with a backslash, since CSH chokes
11995 when trying to evaluate "str!str".
aaa38bb5 11996
095778a0
NC
119972002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11998
11999 * rdi-share/host.h: Only provide a typedef for bool if it is not
12000 defined.
12001
1900040c
MS
120022002-02-04 Michael Snyder <msnyder@redhat.com>
12003
12004 * breakpoint.h (enum bptype): Add new overlay event bp type.
12005 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12006
1900040c
MS
12007 * breakpoint.c (create_internal_breakpoint): New function.
12008 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12009 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12010 (create_thread_event_breakpoint): Ditto.
12011 (create_solib_event_breakpoint): Ditto.
12012 (create_overlay_event_breakpoint): New function.
12013 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12014 (update_breakpoints_after_exec): Delete and re-initialize
12015 overlay event breakpoints after an exec. Add FIXME comment
12016 about longjmp breakpoint.
12017 (print_it_typical): Ignore overlay event breakpoints.
12018 (print_one_breakpoint): Ditto.
12019 (mention): Ditto.
12020 (bpstat_what): Do not stop for overlay event breakpoints.
12021 (delete_breakpoint): Don't delete overlay event breakpoints.
12022 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12023 (breakpoint_re_set): Re-create overlay event breakpoint.
12024
12025 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12026 (overlay_manual_command): Disable overlay breakpoints.
12027 (overlay_off_command): Disable overlay breakpoints.
12028
082fc60d
RE
120292002-02-06 Richard Earnshaw <rearnsha@arm.com>
12030
12031 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12032 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12033 to here from config/tm-arm.h.
12034 (coff_sym_is_thumb): Make static.
12035 (arm_elf_make_msymbol_special): New function.
12036 (arm_coff_make_msymbol_special): New function.
12037 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12038 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12039 (coff_sym_is_thumb): Delete declaration.
12040 (arm_elf_make_msymbol_special): Declare.
12041 (arm_coff_make_msymbol_special): Declare.
12042 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12043 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12044
039c5766
RE
120452002-02-06 Richard Earnshaw <rearnsha@arm.com>
12046
12047 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12048
120492002-02-06 Richard Earnshaw <rearnsha@arm.com>
12050
12051 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12052 * gdbarch.c gdbarch.h: Regenerate.
12053 * arch-utils.c (default_print_float_info): New function.
12054 * arch-utils.h (default_print_float_info): Prototype it.
12055 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12056 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12057 (PRINT_FLOAT_INFO): Document it.
12058
12059 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12060 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12061 (PRINT_FLOAT_INFO): Define.
12062
58fa08f0
PM
120632002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12064
aaa38bb5 12065 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12066 Add typecast to sprintf argument to suppress a warning.
12067
7393af7c
PM
120682002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12069
58fa08f0 12070 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12071 to allow easier handling of pass state.
12072 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12073 that gives exception name and address.
12074 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12075 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12076 exceptions added.
aaa38bb5
AJ
12077 (child_continue): Correctly report continue_status.
12078 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12079 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12080 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12081 the exception should be passed to debuggee or not.
12082
6af4589c
MS
120832002-02-05 Michael Snyder <msnyder@redhat.com>
12084
12085 * regcache.c (fetch_register): Call target_fetch_register
12086 only if we don't call FETCH_PSEUDO_REGISTER.
12087 (store_register): Call target_store_register only if we
12088 don't call STORE_PSEUDO_REGISTER.
12089
a2cf933a
EZ
120902002-02-05 Elena Zannoni <ezannoni@redhat.com>
12091
12092 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12093 ELF_MAKE_MSYMBOL_SPECIAL.
12094 * gdbarch.c, gdbarch.h: Regenerate.
12095 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12096 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12097 * elfread.c (elf_symtab_read): Compile use of
12098 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12099 multiarched.
12100 * coffread.c (coff_symtab_read): Ditto, for
12101 COFF_MAKE_MSYMBOL_SPECIAL.
12102
6bb7be43
JB
121032002-02-05 Jim Blandy <jimb@redhat.com>
12104
12105 * solib-svr4.c (svr4_truncate_ptr): New function.
12106 (svr4_relocate_section_addresses): Do the address arithmetic with
12107 the appropriate truncation for target addresses, even when
12108 CORE_ADDR is larger than a target address.
12109
e18651ec
DJ
121102002-02-05 Daniel Jacobowitz <drow@mvista.com>
12111
12112 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12113 to (int *).
12114
6b2725be
DJ
121152002-02-05 Daniel Jacobowitz <drow@mvista.com>
12116
12117 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12118 code.
12119
fca9e603
DJ
121202002-02-05 Daniel Jacobowitz <drow@mvista.com>
12121
12122 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12123
6c537a52
DJ
121242002-02-05 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * gdbserver/linux-low.c: Remove unused include files.
12127
d844cde6
DJ
121282002-02-05 Daniel Jacobowitz <drow@mvista.com>
12129
12130 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12131 (read_inferior_memory): Use it.
12132 (write_inferior_memory): Likewise.
12133
d07c63e7
DJ
121342002-02-05 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12137 grubbing through sys_errlist.
12138
da6d8c04
DJ
121392002-02-05 Daniel Jacobowitz <drow@mvista.com>
12140
12141 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12142
5b421780
PM
121432002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12144 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12145
9f60d481
AC
121462002-02-04 Andrew Cagney <ac131313@redhat.com>
12147
12148 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12149 (do_sfunc, set_cmd_sfunc): New functions.
12150
12151 * command.h (struct cmd_list_element): Add field func.
12152 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12153 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12154 * cli/cli-decode.h: Ditto.
12155
12156 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12157 (help_all, help_cmd_list): Ditto.
12158 (find_cmd, complete_on_cmdlist): Ditto.
12159 * top.c (execute_command): Ditto.
12160
12161 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12162 function.sfunc.
12163
12164 * infcmd.c (notice_args_read): Fix function signature.
12165
12166 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12167 * cli/cli-decode.c (add_set_cmd): Ditto.
12168 * utils.c (initialize_utils): Ditto.
12169 * maint.c (_initialize_maint_cmds): Ditto.
12170 * infrun.c (_initialize_infrun): Ditto.
12171 * demangle.c (_initialize_demangler): Ditto.
12172 * remote.c (add_packet_config_cmd): Ditto.
12173 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12174 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12175 * proc-api.c (_initialize_proc_api): Ditto.
12176 * kod.c (_initialize_kod): Ditto.
12177 * valprint.c (_initialize_valprint): Ditto.
12178 * top.c (init_main): Ditto.
12179 * infcmd.c (_initialize_infcmd): Ditto.
12180 * corefile.c (_initialize_core): Ditto.
12181 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12182 * arch-utils.c (initialize_current_architecture): Ditto.
12183 (_initialize_gdbarch_utils): Ditto.
12184 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12185
12186 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12187 * wince.c (_initialize_inftarg): Ditto.
12188 * symfile.c (_initialize_symfile): Ditto.
12189 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12190 * language.c (_initialize_language): Ditto.
12191 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12192
f9ba0717
MS
121932002-02-04 Michael Snyder <msnyder@redhat.com>
12194
12195 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12196
0c74b2a7
DJ
121972002-02-04 Daniel Jacobowitz <drow@mvista.com>
12198
12199 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12200 Add rules for building the register data files.
12201
c638789f
DJ
122022002-02-04 Daniel Jacobowitz <drow@mvista.com>
12203
12204 * regformats/regdat.sh: Add braces to the definition of
12205 expedite_regs_${arch}.
12206
db253027
DJ
122072002-02-04 Daniel Jacobowitz <drow@mvista.com>
12208
12209 * regformats/regdef.h (struct reg): Add comment describing the
12210 requirements for offset and size fields.
12211
206be19c
AS
122122002-02-04 Andreas Schwab <schwab@suse.de>
12213
12214 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12215 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12216
181c1381
RE
122172002-02-04 Richard Earnshaw <rearnsha@arm.com>
12218
12219 * gdbarch.sh (copyright): Update years in generated header.
12220 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12221 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12222 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12223 * dbxread.c: Likewise.
12224 * dwarfread.c: Likewise.
12225 * elfread.c: Likewise.
12226 * somread.c: Likewise.
12227
12228 * arm-tdep.c (arm_smash_text_address): New function.
12229 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12230
fa4ba8da
PM
122312002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12232
12233 Add support for hardware watchpoints on win32 native.
aaa38bb5 12234 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12235 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12236 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12237 of debug registers.
12238 (debug_registers_changed): New variable. Reflects when debug registers
12239 are changed and need to be written to inferior.
aaa38bb5 12240 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12241 was set, used when new threads are created.
12242 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12243 i386-nat code.
12244 (thread_rec): Set dr array if id is the thread of current_event .
12245 (child_continue, child_resume): Change the debug registers for all
12246 threads if debug_registers_changed.
12247 (child_add_thread): Change the debug registers if debug_registers_used.
12248 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12249 Link nm.h to new nm-cygwin.h file.
12250 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12251 of hardware registers.
12252
a73c86fb
AC
122532002-02-03 Andrew Cagney <ac131313@redhat.com>
12254
12255 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12256 Restore behavour broken by 2002-01-20 Andrew Cagney
12257 <ac131313@redhat.com> IEEE_FLOAT removal.
12258
acf5ed49
DJ
122592002-02-03 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * c-valprint.c (c_val_print): Pass a proper valaddr to
12262 cp_print_class_method.
12263 * valops.c (search_struct_method): If there is only one method
12264 and args is NULL, return that method.
12265
493d28d5
DJ
122662002-02-03 Daniel Jacobowitz <drow@mvista.com>
12267
12268 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12269 accessing tag_name directly.
12270
7495dfdb
DJ
122712002-02-03 Daniel Jacobowitz <drow@mvista.com>
12272
12273 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12274 of accessing tag_name directly.
12275
dd6bda65
DJ
122762002-02-03 Daniel Jacobowitz <drow@mvista.com>
12277
12278 PR gdb/280
12279 * gdbtypes.c (replace_type): New function.
12280 * gdbtypes.h (replace_type): Add prototype.
12281 * stabsread.c (read_type): Use replace_type.
12282
88fe217c
RE
122832002-02-03 Richard Earnshaw <rearnsha@arm.com>
12284
12285 * Makefile.in (memattr.o): Add missing dependencies rule.
12286
e5d66720
PS
122872002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12288
12289 * breakpoint.c (break_at_finish_command): Really export.
12290 (break_at_finish_at_depth_command): Ditto.
12291 (tbreak_at_finish_command): Ditto.
12292 * hppa-tdep.c: Include completer.h.
12293 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12294 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12295
fffee0be
AC
122962002-02-01 Andrew Cagney <ac131313@redhat.com>
12297
12298 * utils.c (do_write): New function.
12299 (error_stream): Rewrite combining the code from error_begin and
12300 verror.
12301 (verror): Rewrite using error_stream.
12302 (error_begin): Delete function.
12303
255e7dbf
AC
123042002-02-01 Andrew Cagney <ac131313@redhat.com>
12305
12306 * utils.c (error_begin): Make static.
12307 * defs.h (error_begin): Delete declaration.
12308
12309 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12310 (decode_line_1): Use cplusplus_error instead of error_begin,
12311 cplusplus_hint and return_to_top_level.
12312 * coffread.c (coff_symfile_read): Use error instead of error_begin
12313 and return_to_top_level.
12314 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12315
ddfe3c15
AC
123162002-02-01 Andrew Cagney <ac131313@redhat.com>
12317
12318 * language.h (type_error, range_error): Make string parameter
12319 constant.
12320 * language.c (warning_pre_print): Delete extern declaration.
12321 * dwarfread.c (warning_pre_print): Ditto.
12322 * language.c (type_error, range_error): Rewrite to use verror and
12323 vwarning instead of warning_begin.
12324
03ac34d5
MS
123252002-02-01 Michael Snyder <msnyder@redhat.com>
12326
261c4ca2
MS
12327 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12328 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12329
e00d1dc8
AC
123302002-02-01 Andrew Cagney <ac131313@redhat.com>
12331
12332 * command.h (NO_FUNCTION): Delete macro.
12333 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12334 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12335 * tracepoint.c (_initialize_tracepoint): Ditto.
12336 * cli/cli-decode.c (add_set_cmd): Ditto.
12337 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12338
76b79d6e
DJ
123392002-02-01 Daniel Jacobowitz <drow@mvista.com>
12340
12341 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12342 Update ``this'' pointer when calling virtual functions.
12343
799f9e91
MS
123442002-02-01 Michael Snyder <msnyder@redhat.com>
12345
c7bd442c 12346 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12347 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12348
3cf384d4
DJ
123492002-02-01 Daniel Jacobowitz <drow@mvista.com>
12350
12351 * regformats/reg-arm.dat: New file.
12352 * regformats/reg-i386.dat: New file.
12353 * regformats/reg-ia64.dat: New file.
12354 * regformats/reg-m68k.dat: New file.
12355 * regformats/reg-mips.dat: New file.
12356 * regformats/reg-ppc.dat: New file.
12357 * regformats/reg-sh.dat: New file.
12358 * regformats/regdef.h: New file.
12359 * regformats/regdat.sh: New file.
12360
0defa245
RE
123612002-02-01 Richard Earnshaw <reanrsha@arm.com>
12362
12363 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12364 (arm_frame_args_address, arm_frame_locals_address): New functions.
12365 (arm_frame_num_args): New function.
12366 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12367 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12368 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12369
405f26e6
MS
123702002-01-31 Michael Snyder <msnyder@redhat.com>
12371
502fd408
MS
12372 * breakpoint.c (break_at_finish_command): Export.
12373 (break_at_finish_at_depth_command): Export.
12374 (tbreak_at_finish_command): Export.
d6020d45 12375 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12376 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12377 "txbreak" commands, which are HPPA specific.
502fd408 12378
7d35e135
MS
12379 * printcmd.c (disassemble_command): Remove an ancient
12380 artifact of an old merge.
12381
aaa38bb5 12382 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12383 Define enum constant values for overlay mode.
12384 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12385 (overlay_is_mapped, overlay_auto_command,
12386 overlay_manual_command): Ditto.
d874f1e2 12387
aaa38bb5
AJ
12388 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12389 breakpoint_here_p, breakpoint_inserted_here_p,
12390 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12391 describe_other_breakpoints, check_duplicates, clear_command):
12392 Coding standard fixes.
12393
8add0441 12394 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12395 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12396 code: check bfd SEC_READONLY flag for section.
12397
e351066e
AC
123982002-01-31 Andrew Cagney <ac131313@redhat.com>
12399
7d35e135 12400 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12401
8a48e967
DJ
124022002-01-30 Daniel Jacobowitz <drow@mvista.com>
12403
12404 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12405 data symbols, since we search based on textlow and texthigh.
12406 (find_pc_sect_symtab): Likewise.
12407
f5a96129
AC
124082002-01-30 Andrew Cagney <ac131313@redhat.com>
12409
12410 * defs.h (vwarning): Declare.
f5a96129
AC
12411 * utils.c (vwarning): New function.
12412 (warning): Call vwarning.
12413 (warning_begin): Delete function.
12414
12415 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12416 the warning message.
12417 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12418 warning_begin.
12419
cefd4ef5
MS
124202002-01-30 Michael Snyder <msnyder@redhat.com>
12421
1a703748
MS
12422 * NEWS: Mention "set trust-readonly-sections" command.
12423 Mention generate-core-file command.
cefd4ef5 12424
3a11626d
MS
124252002-01-15 Michael Snyder <msnyder@redhat.com>
12426
12427 * target.c: New command, "set trust-readonly-sections on".
12428 (do_xfer_memory): Honor the suggestion to trust readonly sections
12429 by reading them from the object file instead of from the target.
12430 (initialize_targets): Register command "set trust-readonly-sections".
12431
d1c7e53b
AC
124322002-01-29 Andrew Cagney <ac131313@redhat.com>
12433
12434 * parse.c (target_map_name_to_register): Simplify, search regs and
12435 pseudo-regs using a single loop.
12436
e2c9a72c
AC
124372002-01-30 Andrew Cagney <ac131313@redhat.com>
12438
12439 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12440
69824b4e
MK
124412002-01-15 Rodney Brown <rbrown64@csc.com.au>
12442
12443 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12444 * config/i386/i386v42mp.mh: Add i387-nat.o .
12445 * i386v4-nat.c: Include i387-nat.h.
12446 (supply_fpregset): Use i387_supply_fsave.
12447 (fill_fpregset): Use i387_fill_fsave.
12448
6eb69eab
RE
124492002-01-30 Richard Earnshaw <rearnsha@arm.com>
12450
12451 * arm-tdep.c (arm_call_dummy_words): Define.
12452 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12453 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12454 (CALL_DUMMY_WORDS): Define.
12455 (arm_call_dummy_words): Declare.
12456 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12457 (arm_linux_call_dummy_words): Declare.
12458
9852326a
AS
124592002-01-30 Andreas Schwab <schwab@suse.de>
12460
12461 * m68klinux-nat.c: Fix last change to use regcache_collect
12462 instead of referencing registers[] directly.
12463
977a3030
AC
124642002-01-29 Andrew Cagney <ac131313@redhat.com>
12465
12466 * parse.c (target_map_name_to_register): Delete code wrapped in
12467 #ifdef REGISTER_NAME_ALIAS_HOOK.
12468
2076c72b
MS
124692002-01-28 Michael Snyder <msnyder@redhat.com>
12470
12471 * regcache.c (legacy_read_register_gen): Need to be able to
12472 read pseudo-register as well as real register.
12473 (legacy_write_register_gen): Ditto.
12474
8fcc723b
AC
124752002-01-28 Andrew Cagney <ac131313@redhat.com>
12476
12477 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12478 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12479 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12480 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12481 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12482 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12483 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12484 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12485 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12486 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12487 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12488 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12489 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12490 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12491 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12492 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12493 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12494 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12495 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12496 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12497
afe64c1a
AC
124982002-01-28 Andrew Cagney <ac131313@redhat.com>
12499
12500 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12501 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12502 (initialize_current_architecture): Update target_byte_order using
12503 information from BFD.
aaa38bb5 12504 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12505 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12506
75bc7ddf
AC
125072002-01-28 Andrew Cagney <ac131313@redhat.com>
12508
12509 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12510 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12511
12512 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12513 #ifdef INVALID_FLOAT.
12514 * infcmd.c (do_registers_info): Ditto.
12515 * values.c (unpack_double): Ditto. Add comment.
12516
12517 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12518 already commented out.
12519
0280a90a
AS
125202002-01-26 Andreas Schwab <schwab@suse.de>
12521
12522 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12523 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12524 registers and add support for PTRACE_GETREGS.
12525
7072a954
AC
125262002-01-24 Andrew Cagney <ac131313@redhat.com>
12527
12528 GDB 5.1.1 released from 5.1 branch.
12529 * NEWS: Add 5.1.1 news.
12530 * README: Sync with 5.1 branch.
12531
86f902e0
FF
125322002-01-23 Fred Fish <fnf@redhat.com>
12533
12534 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12535 stabstring on initial malloc. Reallocing will copy it for us,
12536 if necessary.
12537
8af51c36
EZ
125382002-01-23 Elena Zannoni <ezannoni@redhat.com>
12539
aaa38bb5 12540 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12541 (HFILES_NO_SRCDIR): Remove hpread.h.
12542 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12543 (hpread.o): Update dependencies.
12544 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12545
12546 * hp-psymtab-read.c: Remove file.
12547 * hp-symtab-read.c: Remove file.
12548 * hpread.h: Remove file.
12549
12550 * hpread.c: Merge all contents of hp-psymtab-read.c,
12551 hp-symtab-read.c and hpread.h into this file, as it was prior to
12552 January 1999.
12553
12554 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12555 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12556 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12557 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12558
dc5cfeb6
EZ
125592002-01-23 Elena Zannoni <ezannoni@redhat.com>
12560
12561 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12562 fill_gregset): Call gdbarch_tdep() just once, assign result to
12563 variable and use that, instead of calling the function several
12564 times.
12565
ea87b71b
AO
125662002-01-24 Alexandre Oliva <aoliva@redhat.com>
12567
12568 * configure.host: Accept sparcv9 as alias for sparc64.
12569 * configure.tgt: Likewise.
12570
13fc0c2f
KB
125712002-01-22 Kevin Buettner <kevinb@redhat.com>
12572
12573 * solib-aix5.c (build_so_list_from_mapfile)
12574 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12575 arguments is not reversed.
12576 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12577 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12578
7bd872fe
EZ
125792002-01-22 Elena Zannoni <ezannoni@redhat.com>
12580
12581 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12582 modified version of obsolete sh_fetch_pseudo_register.
12583 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12584 (sh4_register_read): New function.
12585 (sh_pseudo_register_write): New function. Renamed and modified
12586 version of obsolete sh_store_pseudo_register.
12587 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12588 (sh4_register_write): New function.
12589 (sh_gdbarch_init): Remove setting of gdbarch function
12590 fetch_pseudo_register and store_pseudo_register. Remove setting of
12591 register_convert_to_raw, register_convert_to_virtual,
12592 register_convertible.
12593 (sh_sh4_register_convertible): Delete. No longer needed. All is
12594 taken care by architecture specific functions
12595 register_read/register_write.
12596 (sh_sh4_register_convert_to_virtual): Make static.
12597 (sh_sh4_register_convert_to_raw): Ditto.
12598
069e84fd
AC
125992002-01-22 Andrew Cagney <ac131313@redhat.com>
12600
12601 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12602 (floatformat_is_nan, floatformat_mantissa): Ditto.
12603
12604 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12605 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12606 builtin_type_ieee_double_little,
12607 builtin_type_ieee_double_littlebyte_bigword,
12608 builtin_type_m68881_ext, builtin_type_i960_ext,
12609 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12610 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12611 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12612 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12613
211a4f69
CV
126142002-01-22 Corinna Vinschen <vinschen@redhat.com>
12615
12616 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12617 parameter. Set frameless flag if it exists and depended of
12618 whether the scanned function is frameless or not.
12619 (xstormy16_skip_prologue): If function is frameless, return
12620 result of xstormy16_scan_prologue().
12621 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12622 call.
12623
f81353e4
EZ
126242002-01-21 Elena Zannoni <ezannoni@redhat.com>
12625
12626 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12627 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12628 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12629 sh_sh4_register_byte, sh_sh4_register_raw_size,
12630 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12631 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12632 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12633 sh_store_pseudo_register, sh_do_pseudo_register): Call
12634 gdbarch_tdep() just once, assign result to variable and use that,
12635 instead of calling the function several times.
12636
63c73a17
MK
126372002-01-20 Mark Kettenis <kettenis@gnu.org>
12638
12639 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12640 macros instead of LAST_FPU_CTRL_REGNUM.
12641 (store_register): Likewise.
12642
39ad761d
JB
126432002-01-21 Jim Blandy <jimb@redhat.com>
12644
12645 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12646 is up-to-date before running the program, not just when a program
12647 exits.
12648
3d74b771
FF
126492002-01-21 Fred Fish <fnf@redhat.com>
12650
12651 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12652 when we have found all instructions we are looking for.
12653
966fbf70
RE
126542002-01-21 Richard Earnshaw <rearnsha@arm.com>
12655
12656 * arm-tdep.c (arm_register_name): New function.
12657 (arm_registers_names): Make static.
12658 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12659 (arm_register_name): Declare.
12660 (REGISTER_NAME): Use it.
12661
c3b4394c
RE
126622002-01-21 Richard Earnshaw <rearnsha@arm.com>
12663 Kevin Buettner <kevinb@redhat.com>
12664
12665 Convert arm targets to new FRAME interface.
12666 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12667 (arm_frame_find_save_regs): Delete.
12668 (arm_frame_init_saved_regs): New.
12669 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12670 Allocate extra_info as required. Convert all uses of fsr.regs
12671 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12672 to use extra_info.
12673 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12674 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12675 (check_prologue_cache, save_prologue_cache): Likewise.
12676 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12677 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12678 (FRAME_FIND_SAVED_REGS): Delete.
12679 (arm_frame_find_saved_regs): Delete prototype.
12680 (arm_frame_init_saved_regs): New prototype.
12681 (FRAME_INIT_SAVED_REGS): Define.
12682
61d99182
AC
126832002-01-20 Andrew Cagney <ac131313@redhat.com>
12684
12685 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12686
6aaea291
AC
126872002-01-20 Andrew Cagney <ac131313@redhat.com>
12688
12689 From Jeff Law <law@redhat.com>:
12690 * infttrace.c: Include <sys/pstat.h>.
12691 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12692 exec file if the ttrace equivalent fails.
12693
15f698d2
AC
126942002-01-20 Andrew Cagney <ac131313@redhat.com>
12695
12696 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12697 (closeLogFile): Ditto.
12698
f86ddd7c
MC
126992002-01-20 Michael Chastain <mec@shout.net>
12700
12701 * top.c (print_gdb_version): Bump copyright year to 2002.
12702
904507ce
AC
127032002-01-20 Andrew Cagney <ac131313@redhat.com>
12704
12705 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12706 Zannoni and Eli Zaretskii.
12707
d7f0b9ce
DJ
127082002-01-20 Daniel Jacobowitz <drow@mvista.com>
12709
12710 * buildsym.c: Update copyright years.
12711 * c-typeprint.c: Likewise.
12712 * dwarf2read.c: Likewise.
12713 * f-typeprint.c: Likewise.
12714 * gdbtypes.c: Likewise.
12715 * gdbtypes.h: Likewise.
12716 * hp-symtab-read.c: Likewise.
12717 * hpread.c: Likewise.
12718 * mdebugread.c: Likewise.
12719 * p-typeprint.c: Likewise.
12720
3fd3d7d2
AC
127212002-01-20 Andrew Cagney <ac131313@redhat.com>
12722
12723 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12724 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12725 byte-order selectable.
12726 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12727 * arch-utils.c: Ditto.
12728 (set_endian): Ditto.
12729 (set_endian_from_file): Ditto.
12730 * gdbserver/low-sim.c (create_inferior): Ditto.
12731 * gdbarch.sh: Ditto.
12732 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12733 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12734 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12735 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12736 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12737 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12738 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12739 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12740 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12741 macro definition.
12742 * config/mips/tm-wince.h: Remove #undef of macro
12743 TARGET_BYTE_ORDER_SELECTABLE.
12744 * config/sh/tm-wince.h: Ditto.
12745
b02dede2
DJ
127462002-01-20 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12749 member function fields. Add accessor macro
12750 TYPE_FN_FIELD_ARTIFICIAL.
12751 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12752 * c-typeprint.c (c_type_print_base): Skip artificial member
12753 functions.
12754
c3643761
DJ
127552002-01-20 Daniel Jacobowitz <drow@mvista.com>
12756
12757 * f-typeprint.c: Delete unused function f_type_print_args.
12758 * p-typeprint.c: Delete unused function pascal_type_print_args.
12759
8176bb6d
DJ
127602002-01-20 Daniel Jacobowitz <drow@mvista.com>
12761
12762 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12763 comment. Add ``artificial'' to ``union field_location''.
12764
12765 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12766
12767 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12768 * mdebugread.c (parse_symbol): Likewise.
12769 * stabsread.c (define_symbol): Likewise.
12770 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12771 initializing TYPE_FIELD_BITPOS to n (obsolete).
12772 (hpread_doc_function_type): Likewise.
12773 * hpread.c (hpread_function_type): Likewise.
12774
7fd60527
AC
127752002-01-20 Andrew Cagney <ac131313@redhat.com>
12776
12777 * configure.in (host_makefile_frag): Only require a host makefile
12778 fragment when a native build.
12779 * configure: Re-generate.
12780
c2f05ac9
AC
127812002-01-20 Andrew Cagney <ac131313@redhat.com>
12782
12783 * doublest.h (floatformat_from_type): Declare.
12784 * doublest.c (floatformat_from_type): New function.
12785 (convert_typed_floating): Use.
12786
12787 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12788 call to function floatformat_from_type.
12789
12790 * gdbarch.sh (IEEE_FLOAT): Delete.
12791 * gdbarch.h, gdbarch.c: Re-generate.
12792 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12793 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12794 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12795 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12796 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12797 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12798 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12799 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12800 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12801 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12802 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12803 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12804
12805 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12806 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12807 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12808 * sh-tdep.c (sh_gdbarch_init): Ditto.
12809 * mips-tdep.c (mips_gdbarch_init): Ditto.
12810 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12811 * cris-tdep.c (cris_gdbarch_init): Ditto.
12812
abf22e64
AJ
128132002-01-20 Jiri Smid <smid@suse.cz>
12814
12815 * configure.host, configure.tgt: Support x86-64.
12816 * NEWS: Note new target x86-64.
12817
b7c4cbf8
AJ
12818 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12819 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12820 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12821 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12822 x86-64-linux-nat.o): Fix dependencies.
12823
82600034
AC
128242002-01-19 Andrew Cagney <ac131313@redhat.com>
12825
12826 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12827 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12828 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12829 * config/sparc/xm-sun4os4.h: Delete file.
12830 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12831
bbe5c628
AC
128322002-01-19 Andrew Cagney <ac131313@redhat.com>
12833
12834 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12835 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12836 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12837 * config/i386/i386lynx.mh (XM_FILE): Delete.
12838 * config/rs6000/xm-rs6000ly.h: Delete file.
12839 * config/sparc/xm-sparclynx.h: Delete file.
12840 * config/m68k/xm-m68klynx.h: Delete file.
12841 * config/i386/xm-i386lynx.h: Delete file.
12842 * config/xm-lynx.h: Delete file.
12843 * config/djgpp/fnchange.lst: Update.
12844
f8453e34
JT
128452002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12846
12847 * alpha-tdep.c (alpha_register_byte): New function.
12848 (alpha_register_raw_size): Ditto.
12849 (alpha_register_virtual_size): Ditto.
12850 (alpha_skip_prologue_internal): Renamed from
12851 alpha_skip_prologue.
12852 (alpha_skip_prologue): New version that calls
12853 alpha_skip_prologue_internal.
12854 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12855 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12856 second argument from alpha_skip_prologue.
12857 (REGISTER_BYTE): Use alpha_register_byte.
12858 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12859 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12860 (FRAMELESS_FUNCTION_INVOCATION): Use
12861 generic_frameless_function_invocation_not.
12862 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12863 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12864
52d9e613
AC
128652002-01-19 Andrew Cagney <ac131313@redhat.com>
12866
12867 * config/mips/xm-news-mips.h: Delete file.
12868 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12869
12870 * config/m88k/xm-m88k.h: Delete file.
12871 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12872 * config/m88k/xm-delta88v4.h: Ditto.
12873 * config/m88k/xm-delta88.h: Ditto.
12874
12875 * config/alpha/xm-fbsd.h: Delete file.
12876 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12877
12878 * config/sparc/xm-sparc.h: Delete file.
12879 * Makefile.in (xm-sun4os4.h): Delete dependency.
12880 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12881 * config/sparc/xm-sun4os4.h: Ditto.
12882 * config/sparc/xm-linux.h: Ditto.
12883
12884 * config/i386/xm-windows.h: Delete file.
12885
2d1b2124
AC
128862002-01-19 Andrew Cagney <ac131313@redhat.com>
12887
12888 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12889 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12890
ee1f65f0
JT
128912002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12892
12893 * alpha-tdep.c (alpha_call_dummy_words): New.
12894 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12895 (CALL_DUMMY_P): Define.
12896 (CALL_DUMMY_WORDS): Define.
12897 (SIZEOF_CALL_DUMMY_WORDS): Define.
12898
98081e55
PB
128992002-01-19 Per Bothner <per@bothner.com>
12900
12901 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12902 isn't NULL, which can happen with some gcj-3.x-produced code.
12903
0d056799
JT
129042002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12905
12906 * alpha-tdep.c (alpha_register_virtual_type): New function.
12907 (alpha_init_frame_pc_first): Ditto.
12908 (alpha_fix_call_dummy): Ditto.
12909 (alpha_store_struct_return): Ditto.
12910 (alpha_extract_struct_value_address): Ditto.
12911 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12912 alpha_register_virtual_type.
12913 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12914 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12915 alpha_extract_struct_value_address.
12916 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12917 (INIT_FRAME_PC): Use init_frame_pc_noop.
12918 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12919
4604bcad
MK
129202002-01-19 Mark Kettenis <kettenis@gnu.org>
12921
12922 * i386gnu-nat.c: Include "i386-tdep.h".
12923 (fetch_fpregs): Simplify code dealing with uninitialized floating
12924 point states such that it doesn't require FP7_REGNUM.
12925
140f9984
JT
129262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12927
abf22e64
AJ
12928 * alpha-tdep.c (frame_extra_info): New.
12929 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12930 frame->extra_info.
12931 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12932 (alpha_frame_saved_pc): Use frame->extra_info.
12933 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12934 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12935 (init_extra_frame_info): Rename to...
12936 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12937 (alpha_print_extra_frame_info): New function.
140f9984
JT
12938 (alpha_frame_locals_address): Ditto.
12939 (alpha_frame_args_address): Ditto.
abf22e64 12940 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12941 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12942 alpha_frame_args_address.
abf22e64 12943 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12944 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12945 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12946 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12947 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12948 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12949
d734c450
JT
129502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12951
12952 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12953 (alpha_cannot_fetch_register): Ditto.
12954 (alpha_cannot_store_register): Ditto.
12955 (alpha_register_convertible): Ditto.
12956 (alpha_use_struct_convention): Ditto.
12957 * config/alpha/tm-alpha.h: Update copyright years.
12958 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12959 (INNER_THAN): Use core_addr_lessthan.
12960 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12961 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12962 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12963 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12964 (FRAME_CHAIN): Remove unnecessary cast.
12965
b4ceaee6
AC
129662002-01-18 Andrew Cagney <ac131313@redhat.com>
12967
12968 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12969 obsolete.
12970
0a65a603
AC
129712002-01-18 Andrew Cagney <ac131313@redhat.com>
12972
12973 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12974 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12975 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12976 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12977 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12978 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12979 * x86-64-linux-nat.c: Ditto.
12980
636a6dfc
JT
129812002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12982
abf22e64 12983 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12984 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12985 (REGISTER_NAME): Define.
12986
acceddb6
JT
129872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12988
12989 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12990
ec32e4be
JT
129912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12992
12993 * alpha-tdep.c: Update copyright years.
12994 (alpha_next_pc): New function.
12995 (alpha_software_single_step): Ditto.
12996 * config/alpha/tm-alpha.h: Add prototype for
12997 alpha_software_single_step.
12998
e771a871
JT
129992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13000
13001 * alphabsd-nat.c: Update copyright years.
13002 (fill_gregset): Use regcache_collect.
13003 (fill_fpregset): Likewise.
13004 (fetch_inferior_registers): Only fetch integer registers
13005 if requested to do so.
13006 (store_inferior_registers): Only store integer registers
13007 if requested to do so.
13008
7708fa01
AC
130092002-01-17 Andrew Cagney <ac131313@redhat.com>
13010
13011 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13012 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13013 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13014 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13015 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13016 * config/arm/linux.mh (XDEPFILES): Delete.
13017 * config/arm/nbsd.mh (XDEPFILES): Delete.
13018 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13019 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13020 * config/i386/i386m3.mh (XDEPFILES): Delete.
13021 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13022 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13023 * config/i386/fbsd.mh (XDEPFILES): Delete.
13024 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13025 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13026 * config/i386/i386v4.mh (XDEPFILES): Delete.
13027 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13028 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13029 * config/i386/i386aix.mh (XDEPFILES): Delete.
13030 * config/i386/go32.mh (XDEPFILES): Delete.
13031 * config/i386/cygwin.mh (XDEPFILES): Delete.
13032 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13033 * config/i386/i386mach.mh (XDEPFILES): Delete.
13034 * config/i386/i386v32.mh (XDEPFILES): Delete.
13035 * config/i386/linux.mh (XDEPFILES): Delete.
13036 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13037 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13038 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13039 * config/i386/i386sco.mh (XDEPFILES): Delete.
13040 * config/i386/i386v.mh (XDEPFILES): Delete.
13041 * config/i386/nbsd.mh (XDEPFILES): Delete.
13042 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13043 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13044 * config/i386/symmetry.mh (XDEPFILES): Delete.
13045 * config/i386/obsd.mh (XDEPFILES): Delete.
13046 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13047 * config/ia64/linux.mh (XDEPFILES): Delete.
13048 * config/ia64/aix.mh (XDEPFILES): Delete.
13049 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13050 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13051 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13052 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13053 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13054 * config/m68k/linux.mh (XDEPFILES): Delete.
13055 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13056 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13057 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13058 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13059 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13060 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13061 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13062 * config/m88k/delta88.mh (XDEPFILES): Delete.
13063 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13064 * config/m88k/m88k.mh (XDEPFILES): Delete.
13065 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13066 * config/mips/linux.mh (XDEPFILES): Delete.
13067 * config/mips/irix6.mh (XDEPFILES): Delete.
13068 * config/mips/irix5.mh (XDEPFILES): Delete.
13069 * config/mips/irix4.mh (XDEPFILES): Delete.
13070 * config/mips/irix3.mh (XDEPFILES): Delete.
13071 * config/mips/decstation.mh (XDEPFILES): Delete.
13072 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13073 (NATDEPFILES): Move core-aout.o to here.
13074 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13075 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13076 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13077 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13078 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13079 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13080 * config/pa/hpux11.mh (XDEPFILES): Delete.
13081 * config/powerpc/aix.mh (XDEPFILES): Delete.
13082 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13083 * config/powerpc/linux.mh (XDEPFILES): Delete.
13084 * config/romp/rtbsd.mh: Rename XDEPFILES.
13085 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13086 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13087 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13088 * config/s390/s390.mh (XDEPFILES): Delete.
13089 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13090 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13091 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13092 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13093 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13094 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13095 * config/sparc/linux.mh (XDEPFILES): Delete.
13096 * config/vax/vaxult.mh (XDEPFILES): Delete.
13097 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13098 * Makefile.in (DEPFILES): Remove XDEPFILES.
13099
375fc983
AC
131002002-01-17 Andrew Cagney <ac131313@redhat.com>
13101
13102 * utils.c (internal_verror): Fix comments, default is yes not no.
13103 Update queries to match. Default to quit and dump core.
13104
8926118c
AC
131052002-01-17 Andrew Cagney <ac131313@redhat.com>
13106
13107 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13108 copyright.
13109 * defs.h, event-top.c, gdbcmd.h: Ditto.
13110 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13111 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13112 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13113 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13114 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13115 * mi/mi-main.c:Ditto.
13116
13117 * stack.c, symfile.c: Update copyright.
13118
45b7b345
DJ
131192002-01-17 Daniel Jacobowitz <drow@mvista.com>
13120
db728ff7
DJ
13121 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13122 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13123 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13124 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13125
db728ff7
DJ
131262002-01-17 Daniel Jacobowitz <drow@mvista.com>
13127
13128 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13129 * gdbserver/low-lynx.c (myattach): Likewise.
13130 * gdbserver/low-nbsd.c (myattach): Likewise.
13131 * gdbserver/low-sim.c (myattach): Likewise.
13132 * gdbserver/low-sparc.c (myattach): Likewise.
13133 * gdbserver/low-sun3.c (myattach): Likewise.
13134
13135 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13136
db728ff7 13137 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13138 (main): Handle "--attach".
13139
8de3c354
AC
131402002-01-16 Andrew Cagney <ac131313@redhat.com>
13141
13142 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13143 maintainer.
13144
b0129042
DJ
131452002-01-15 Daniel Jacobowitz <drow@mvista.com>
13146
13147 * c-typeprint.c (is_type_conversion_operator): Add additional
13148 check for non-conversion operators.
13149
ba8679fb 131502002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13151
13152 * linux-proc.c: Add "info proc" command, a la procfs.c.
13153 (read_mapping): New function, abstract and re-use code.
13154 (linux_find_memory_regions): Use new func read_mapping.
13155 (linux_info_proc_cmd): New function, implement "info proc".
13156 (_initialize_linux_proc): Add new command "info proc".
13157
e4f9b4d5
MS
131582002-01-15 Michael Snyder <msnyder@redhat.com>
13159
13160 * symfile.c (generic_load): Use bfd_map_over_sections method
13161 instead of manipulating bfd structure members directly.
13162 (add_section_size_callback): New function, bfd sections callback
13163 used by generic_load.
13164 (load_sections_callback): New function, bfd sections callback
13165 used by generic_load.
13166
08cf96df
EZ
131672002-01-15 Elena Zannoni <ezannoni@redhat.com>
13168
abf22e64 13169 [Based on work by Jim Blandy]
08cf96df
EZ
13170 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13171 (builtin_type_vec128): Export.
13172 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13173 types.
13174 (builtin_type_vec128): New builtin type for 128 bit vector
13175 registers.
13176 (build_gdbtypes): Initialize builtin_type_v16qi and
13177 builtin_type_v8hi. Create the vec128 register builtin type
13178 structure.
13179 (build_builtin_type_vec128): New function.
abf22e64 13180 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13181 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13182 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13183 AltiVec register to new builtin type.
13184
d7242108
DJ
131852001-01-15 Daniel Jacobowitz <drow@mvista.com>
13186
13187 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13188 to make_cv_type.
13189
4ee3352d
AC
131902002-01-14 Andrew Cagney <ac131313@redhat.com>
13191
13192 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13193 CLEAN_UP_REGISTER_VALUE.
13194 * regcache.c (supply_register): Update only call.
13195
f015b2e7
AC
131962002-01-14 Andrew Cagney <ac131313@redhat.com>
13197
13198 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13199 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13200 a29k-*-vxworks* targets as obsolete.
13201
356ae49d
MS
132022002-01-14 Michael Snyder <msnyder@redhat.com>
13203
13204 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13205 until we can resolve portability issues.
13206 * gregset.h: Remove references to fpxregs.
13207 * gcore.c (gcore_command): Initialize note_sec to NULL.
13208
ade8f45e
AC
132092002-01-13 Andrew Cagney <ac131313@redhat.com>
13210
13211 * signals.c (target_signal_to_name): Rewrite. Only use
13212 signals[].name when in bounds and non-NULL.
abf22e64 13213
89c49e7a
AC
132142002-01-13 Andrew Cagney <ac131313@redhat.com>
13215
13216 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13217 * signals.c (target_signal_to_name): Verify that SIG is within the
13218 bounds of the signals array.
13219
4daa9f9f
AC
132202002-01-13 Andrew Cagney <ac131313@redhat.com>
13221
13222 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13223
ba4bbdcb
KS
132242002-01-13 Keith Seitz <keiths@redhat.com>
13225
13226 * stack.c (print_frame_info_base): Print the frame's pc
13227 only if when print_frame_info_listing_hook is not defined.
13228
575bbeb6
KS
132292002-01-13 Keith Seitz <keiths@redhat.com>
13230
13231 * varobj.c (varobj_set_value): Make sure that there were no
13232 errors evaluating the object before attempting to set its
13233 value.
13234 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13235 so this offset adjustment is no longer necessary.
13236 (create_child): Don't set the error flag if the child is
13237 a CPLUS_FAKE_CHILD.
13238 (value_of_child): If value_fetch_lazy fails, return NULL
13239 so that callers will be notified that an error occurred.
13240 (c_value_of_variable): Delay check of variable's validity
13241 until later. We actually want all structs and unions to have
13242 the value "{...}".
13243 Do not return "???" for variables which could not be evaluated.
13244 This error condition must be returned to the caller so that it
13245 can get the error condition from gdb.
13246 (cplus_name_of_child): Adjust index for vptr before figuring
13247 out the name of the child.
13248 (cplus_value_of_child): If a child's (real) parent is not valid,
13249 don't even bother trying to give a value for it. Just return
13250 an error. Change all instances in this function.
13251 (cplus_type_of_child): If our parent is one of the "fake"
13252 parents, we need to get at the type of the real parent, and
13253 derive the child's true type using this information.
13254
b76898ab
AC
132552002-01-13 Andrew Cagney <ac131313@redhat.com>
13256
13257 From 2002-01-09 John Marshall <johnm@falch.net>:
13258 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13259 sources.redhat.com, and tweak some related URLs which had
13260 suffered from linkrot.
13261
b6649e88
AC
132622002-01-13 Andrew Cagney <ac131313@redhat.com>
13263
13264 From Jeff law:
13265 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13266 structures passed in registers.
13267
82cc5033
EZ
132682002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13269
13270 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13271 white space which prevented compilation. Reported by DSK
13272 <dsk@student.unsw.edu.au>.
13273
ba5f2f8a
MS
132742002-01-11 Michael Snyder <msnyder@redhat.com>
13275
fbd35540
MS
13276 * symfile.c (build_section_addr_info_from_section_tab):
13277 Use bfd access method instead of manipulating bfd directly.
13278 (syms_from_objfile): Ditto.
13279 (simple_overlay_update_1): Ditto.
13280 (simple_overlay_update): Ditto.
13281 (generic_load): Ditto.
13282 (overlay_unmapped_address): FIXME comment, bfd access methods.
13283 (sections_overlap): FIXME comment, bfd access methods.
13284 (pc_in_mapped_range): FIXME comment, bfd access methods.
13285 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13286 (section_is_mapped): FIXME comment, bfd access methods.
13287 (section_is_overlay): FIXME comment, bfd access methods.
13288
ba5f2f8a
MS
13289 * symfile.c (generic_load): Whitespace and long line cleanups.
13290 Remove duplicate variable, change several local variables to
13291 more appropriate data types.
13292 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13293
17df2af6
AC
132942002-01-12 Andrew Cagney <ac131313@redhat.com>
13295
13296 From Peter Schauer:
13297 * language.c (longest_local_hex_string_custom): Use phex_nz to
13298 convert NUM to a hex string.
13299
ec920329
EZ
133002002-01-12 Elena Zannoni <ezannoni@redhat.com>
13301
13302 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13303 the function.
538a76d6 13304 Update Copyright year.
ec920329 13305
3abd2e01
AC
133062002-01-12 Andrew Cagney <ac131313@redhat.com>
13307
13308 * language.c (longest_raw_hex_string): Delete unused function.
13309
b21b22e0
PS
133102002-01-11 Petr Sorfa <petrs@caldera.com>
13311
13312 * MAINTAINERS (write-after-approval): Add myself.
13313 * dwarf2read.c (read_tag_string_type): Handling of
13314 DW_AT_byte_size.
13315 (read_tag_string_type): FORTRAN fix to prevent propagation of
13316 first string size.
13317 (set_cu_language): Handling of DW_LANG_Fortran95
13318
747fe712
RE
133192002-01-11 Richard Earnshaw <rearnsha@arm.com>
13320
13321 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13322 GETPID(inferior_ptid).
13323 (store_inferior_registers): Likewise.
13324
f1bea926
JM
133252002-01-10 Jason Merrill <jason@redhat.com>
13326
13327 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13328 Fix DW_OP_minus.
13329
ae940673
AC
133302002-01-10 Andrew Cagney <ac131313@redhat.com>
13331
13332 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13333 and bfd/elf32-sh-nbsd.c.
13334
00546b04
MS
133352002-01-10 Michael Snyder <msnyder@redhat.com>
13336
352ed7b4
MS
13337 * NEWS: Mention --pid and corefile/proc-id behavior change.
13338
c18be923
MS
13339 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13340 * gcore.c: Include cli/cli-decode.h instead of command.h.
13341
00546b04
MS
13342 * main.c (captured_main): Add new command line option "--pid".
13343 If the second command line argument (following the symbol-file)
13344 begins with a digit, try to attach to it before trying to open
13345 it as a corefile.
13346 (print_gdb_help): Document the "--pid" argument.
13347
db60ec62
EZ
133482002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13349
13350 * completer.c (command_completer): New function.
13351
13352 * completer.h <command_completer>: Add prototype.
13353
13354 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13355 completer for the "help" command.
13356
39c22d1a
JM
133572002-01-09 Jason Merrill <jason@redhat.com>
13358
13359 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13360
c564377f
MS
133612002-01-09 Michael Snyder <msnyder@redhat.com>
13362
975aec09
MS
13363 * i386-linux-nat.c (fill_fpxregset): Make global.
13364 (store_fpxregset): Ditto.
13365
db4a10fa
MS
13366 * gregset.h (gdb_fpxregset_t): Define.
13367 (supply_fpxregset): Prototype.
13368 (fill_fpxregset): Prototype.
13369
c564377f
MS
13370 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13371
c3d45d70
RE
133722002-01-09 Richard Earnshaw <rearnsha@arm.com>
13373
13374 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13375 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13376 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13377
fcc87af1
AC
133782002-01-09 Andrew Cagney <ac131313@redhat.com>
13379
13380 * MAINTAINERS: Update target maintainer rules so that any
13381 Maintainer can approve a tested patch for a maintenance-only
13382 target.
13383
dd96c05b
RE
133842002-01-09 Richard Earnshaw <rearnsha@arm.com>
13385
d4297db9 13386 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13387
d4297db9 13388 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13389 IN_SIGTRAMP.
13390
145fdc6e
MS
133912002-01-08 Michael Snyder <msnyder@redhat.com>
13392
13393 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13394 real name of the executable, rather than the /proc name.
13395
be4d1333
MS
133962002-01-03 Michael Snyder <msnyder@redhat.com>
13397
13398 Implement a "generate-core-file" command in gdb, save target state.
13399 * gcore.c: New file. Implement new command 'generate-core-file'.
13400 Save a corefile image of the current state of the inferior.
13401 * linux-proc.c: Add linux-specific code for saving corefiles.
13402 * target.h (struct target_ops): Add new target vectors for saving
13403 corefiles; to_find_memory_regions and to_make_corefile_notes.
13404 (target_find_memory_regions): New macro.
13405 (target_make_corefile_notes): New macro.
13406 * target.c (update_current_target): Inherit new target methods.
13407 (dummy_find_memory_regions): New place-holder method.
13408 (dummy_make_corefile_notes): New place-holder method.
13409 (init_dummy_target): Initialize new dummy target vectors.
13410 * exec.c (exec_set_find_memory_regions): New function.
13411 Allow the exec_ops vector for memory regions to be taken over.
13412 (exec_make_note_section): New function, target vector method.
13413 * defs.h (exec_set_find_memory_regions): Export prototype.
13414 * procfs.c (proc_find_memory_regions): New function, corefile method.
13415 (procfs_make_note_section): New function, corefile method.
13416 (init_procfs_ops): Set new target vector pointers.
13417 (find_memory_regions_callback): New function.
13418 (procfs_do_thread_registers): New function.
13419 (procfs_corefile_thread_callback): New function.
13420 * sol-thread.c (sol_find_memory_regions): New function.
13421 (sol_make_note_section): New function.
13422 (init_sol_thread_ops): Initialize new target vectors.
13423 * inftarg.c (inftarg_set_find_memory_regions): New function.
13424 Allow to_find_memory_regions vector to be taken over.
13425 (inftarg_set_make_corefile_notes): New function.
13426 Allow to_make_corefile_notes vector to be taken over.
13427 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13428 interface layer if not target_has_execution (may be a corefile).
13429 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13430 * config/sparc/sun4sol2.mh: Ditto.
13431 * config/alpha/alpha-linux.mh: Ditto.
13432 * config/arm/linux.mh: Ditto.
13433 * config/i386/x86-64linux.mh: Ditto.
13434 * config/ia64/linux.mh: Ditto.
13435 * config/m68k/linux.mh: Ditto.
13436 * config/mips/linux.mh: Ditto.
13437 * config/powerpc/linux.mh: Ditto.
13438 * config/sparc/linux.mh: Ditto.
13439
c6b92abd
MS
134402002-01-07 Michael Snyder <msnyder@redhat.com>
13441
13442 * arm-linux-nat.c: Remove references to regcache.c internal data
13443 (registers[] and register_valid[]).
13444
4b09dc8c
MS
134452002-01-07 Michael Snyder <msnyder@redhat.com>
13446
abf22e64
AJ
13447 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13448 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13449 symbol file and shlibs.
13450 * Makefile.in: Add rule for linux-proc.o.
13451 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13452 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13453 * config/arm/linux.mh: Ditto.
13454 * config/i386/linux.mh: Ditto.
13455 * config/i386/x86-64linux.mh: Ditto.
13456 * config/ia64/linux.mh: Ditto.
13457 * config/m68k/linux.mh: Ditto.
13458 * config/mips/linux.mh: Ditto.
13459 * config/powerpc/linux.mh: Ditto.
13460 * config/sparc/linux.mh: Ditto.
13461
c25b74ac
PM
134622002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13463
13464 * win32-nat.c: Add i386-tdep.h dependency.
13465
94cd915f
MS
134662002-01-07 Michael Snyder <msnyder@redhat.com>
13467
c7cccb76
MS
13468 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13469 instead of bfd_get_arch_size. Don't bail out just because
13470 there's no exec_bfd.
abf22e64 13471
34c0bd93
MS
13472 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13473 * p-valprint.c (pascal_object_print_value): Ditto.
13474 * somread.c (som_symtab_read): Ditto.
13475 * symfile.c (simple_free_overlay_region_table): Ditto.
13476 * valops.c (value_assign): Ditto.
13477
21c1c920
MS
13478 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13479 use tilde_expand and strerror for opening save-tracepoints file.
13480
5bbd998e
MS
13481 * thread-db.c (thread_db_new_objfile): Indendation fix.
13482
94cd915f
MS
13483 * infptrace.c (GDB_MAX_ALLOCA): New define.
13484 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13485 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13486 can be overridden with whatever value is appropriate to the host).
13487 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13488 alloca to allocate potentially large buffer.
13489 * rs6000-nat.c (child_xfer_memory): Ditto.
13490 * symm-nat.c (child_xfer_memory): Ditto.
13491 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13492
494e8a93
JSC
134932002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13494
13495 From Nick Clifton <nickc@redhat.com>
13496 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13497
d0e1d48e
MS
134982002-01-07 Michael Snyder <msnyder@redhat.com>
13499
abf22e64 13500 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13501 Don't use exec_bfd if it's NULL.
13502
290b2c7a
MK
135032002-01-06 Mark Kettenis <kettenis@gnu.org>
13504
abf22e64 13505 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13506
aef21287
AC
135072002-01-06 Andrew Cagney <ac131313@redhat.com>
13508
13509 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13510 * gnu-nat.c: Ditto.
13511
30efa627
AC
135122002-01-06 Andrew Cagney <ac131313@redhat.com>
13513
13514 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13515 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13516 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13517 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13518 z8k-coff have not been multi-arched. Update z8k-coff build
13519 status.
13520
9b4ff276
AC
135212002-01-06 Andrew Cagney <ac131313@redhat.com>
13522
13523 * MAINTAINERS: Mark a29k target as obsolete.
13524 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13525 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13526 comments.
13527 * NEWS: Note that a29k targets are obsolete.
13528 * a29k-tdep.c: Mark as obsolete.
13529 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13530 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13531 a29k-*-vxworks* targets as obsolete.
13532 * remote-adapt.c: Obsolete.
13533 * remote-eb.c: Obsolete.
13534 * remote-mm.c: Obsolete.
13535 * remote-udi.c: Obsolete.
13536 * config/a29k/a29k-udi.mt: Obsolete.
13537 * config/a29k/a29k.mt: Obsolete.
13538 * config/a29k/tm-a29k.h: Obsolete.
13539 * config/a29k/tm-vx29k.h: Obsolete.
13540 * config/a29k/vx29k.mt: Obsolete.
13541
a9011d31
AC
135422002-01-05 Andrew Cagney <ac131313@redhat.com>
13543
13544 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13545 with BFD_ENDIAN_BIG.
13546
9299404e
AC
135472002-01-05 Andrew Cagney <ac131313@redhat.com>
13548
13549 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13550 * configure, config.in: Re-generate.
13551 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13552 * defs.h: Do not include <endian.h>.
13553
7e89e357
JT
135542002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13555
13556 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13557 * config.in: Regenerate.
13558 * configure.in: Update copyright years.
13559 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13560 * configure: Regenerate.
13561 * i386bsd-nat.c: Update copyright years.
13562 (fill_gregset): Use regcache_collect.
13563 (fetch_inferior_registers): Only fetch integer registers
13564 if requested to do so. Add support for XMM registers
13565 using PT_GETXMMREGS.
13566 (store_inferior_registers): Only store integer registers
13567 if requested to do so. Add support for XMM registers
13568 using PT_SETXMMREGS.
13569 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13570 (store_inferior_registers): Remove.
13571 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13572 (fetch_elfcore_registers): New function.
13573 (i386nbsd_elfcore_fns): New.
13574 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13575 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13576 i386bsd-nat.o.
13577 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13578 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13579 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13580 * config/i386/tm-nbsd.h: Update copyright years.
13581 (HAVE_SSE_REGS): Define.
13582 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13583 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13584 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13585 (SIGCONTEXT_PC_OFFSET): Remove.
13586 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13587
a752853e
AC
135882002-01-05 Andrew Cagney <ac131313@redhat.com>
13589
13590 * configure.tgt: Remove powerpc-*-macos* target.
13591 * config/m68k/xm-mpw.h: Delete file.
13592 * config/xm-mpw.h: Delete file.
13593 * ser-mac.c: Delete file.
13594 * mpw-make.sed: Delete file.
13595 * mpw-config.in: Delete file.
13596 * mac-xdep.c: Delete file.
13597 * mac-gdb.r: Delete file.
13598 * mac-defs.h: Delete file.
13599 * mac-nat.c: Delete file.
13600 * config/powerpc/macos.mh: Delete file.
13601 * config/powerpc/macos.mt: Delete file.
13602 * config/powerpc/nm-macos.h: Delete file.
13603 * config/powerpc/tm-macos.h: Delete file.
13604 * source.c (openp, open_source_file): Remove obsolete code.
13605 * top.c (gdb_readline): Ditto.
13606 * utils.c (query): Ditto.
13607 * event-top.c (display_gdb_prompt): Ditto.
13608 * Makefile.in (ser-mac.o): Delete obsolete target.
13609 * NEWS: Update.
13610
d7449b42
AC
136112002-01-04 Andrew Cagney <ac131313@redhat.com>
13612
13613 * defs.h (BIG_ENDIAN): Delete macro definition.
13614 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13615 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13616 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13617 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13618 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13619 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13620 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13621 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13622 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13623 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13624 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13625 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13626 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13627 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13628 * gdbarch.c: Re-generate.
13629
356374e8
DJ
136302002-01-04 Daniel Jacobowitz <drow@mvista.com>
13631
13632 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13633 for core files.
13634
a2b8f8f8
JT
136352002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13636
13637 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13638
12466af9
AC
136392002-01-04 Andrew Cagney <ac131313@redhat.com>
13640
13641 * value.h (value_ptr): Delete typedef.
13642
3549ab40
JT
136432002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13644
13645 * i386nbsd-nat.c: Update copyright years.
13646 Include i386-tdep.h.
13647
fedbd091
EZ
136482002-01-04 Elena Zannoni <ezannoni@redhat.com>
13649
13650 * stabsread.c: Update copyright years.
13651
13652 From Debashis Mahata <debashis.mahata@wipro.com>:
13653 (read_struct_fields): Deal with Sun C compiler erroneous stab
13654 output for structs and unions.
fec8b34f 13655 Fix PR gdb/269.
fedbd091 13656
eb43544b
DJ
136572002-01-04 Daniel Jacobowitz <drow@mvista.com>
13658
13659 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13660 prototype.
13661
1514d34e
DJ
136622002-01-04 Daniel Jacobowitz <drow@mvista.com>
13663
13664 * cp-abi.c: Fix whitespace.
13665 (baseclass_offset): New wrapper function.
13666 * cp-abi.h (baseclass_offset): Add prototype.
13667 (struct cp_abi_ops): Add baseclass_offset pointer.
13668
13669 * valops.c (vb_match): Move to...
13670 * gnu-v2-abi.c (vb_match): here.
13671 * valops.c (baseclass_offset): Move to...
13672 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13673
13674 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13675
13676 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13677 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13678 * hpacc-abi.c (init_hpacc_ops): Likewise.
13679
7f8c9282
DJ
136802002-01-04 Daniel Jacobowitz <drow@mvista.com>
13681
13682 * valops.c (find_overload_match): Accept obj as a
13683 reference parameter. Update it before returning.
13684 * value.h (find_overload_match): Update prototype.
13685 * eval.c (evaluate_subexp_standard): Pass object to
13686 find_overload_match by reference.
13687
f23631e4
AC
136882002-01-03 Andrew Cagney <ac131313@redhat.com>
13689
13690 * valarith.c: Replace value_ptr with struct value pointer. Remove
13691 register attribute from value declarations.
13692 * valops.c: Ditto.
13693 * value.h: Ditto.
13694 * scm-lang.c (scm_lookup_name): Ditto.
13695
79e10fab 136962002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13697
79e10fab
AC
13698 Abstract the functionality of iterating over mapped memory
13699 regions into a general purpose iterator function.
abf22e64 13700 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13701 iterator for memory sections.
13702 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13703 (solib_mappings_callback): New function, callback for above.
13704 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13705 (info_mappings_callback): New function, callback for above.
13706
13707 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13708
c5ad026a
MK
137092002-01-01 Mark Kettenis <kettenis@gnu.org>
13710
d2a7c97a
MK
13711 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13712 * i386-tdep.c: Include "elf-bfd.h".
13713 (process_note_abi_tag_sections): New function.
13714 (i386_gdbarch_init): Add code to recognize various OS/ABI
13715 combinations.
13716
c5ad026a
MK
13717 * maint.c (_initialize_maint_cmds): Add missing \ in
13718 string-literal.
13719
a1a5b71e 13720For older changes see ChangeLog-2001
c906108c
SS
13721\f
13722Local Variables:
13723mode: change-log
13724left-margin: 8
13725fill-column: 74
13726version-control: never
13727End:
This page took 1.003226 seconds and 4 git commands to generate.