2002-11-28 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8c69fc49
AC
12002-11-28 Andrew Cagney <cagney@redhat.com>
2
3 * stack.c (get_selected_block): In-line get_current_block.
4 * frame.h (get_current_block): Delete declaration.
5 * blockframe.c (get_current_block): Delete function.
6
07555a72
AC
72002-11-28 Andrew Cagney <ac131313@redhat.com>
8
9 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
10 USE_GENERIC_DUMMY_FRAMES.
11 * gdbarch.h, gdbarch.c: Regenerate.
12 * valops.c, frame.c: Update.
13 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
14 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
15 * config/pa/tm-hppa.h, blockframe.c: Update.
16 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
17 * m68k-tdep.c, alpha-tdep.c: Ditto.
18
19 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
20 * mips-tdep.c: Ditto.
21
b99fa2d2
AC
222002-11-27 Andrew Cagney <ac131313@redhat.com>
23
24 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
25 (USE_GENERIC_DUMMY_FRAMES): Default to true.
26 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
27 * gdbarch.c, gdbarch.h: Re-generate.
28 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
29 (CALL_DUMMY_LOCATION): Delete macro definition.
30 (PC_IN_CALL_DUMMY): Delete macro definitions.
31
32 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
33 default is already generic_pc_in_call_dummy.
34 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
35 * v850-tdep.c (v850_gdbarch_init): Ditto.
36 * sh-tdep.c (sh_gdbarch_init): Ditto.
37 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
38 * mips-tdep.c (mips_gdbarch_init): Ditto.
39 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
40 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
41 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
42 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
43 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
44 * avr-tdep.c (avr_gdbarch_init): Ditto.
45
46 * arm-tdep.c (arm_gdbarch_init): Do not set
47 use_generic_dummy_frames, default is already 1.
48 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
49 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
50 * v850-tdep.c (v850_gdbarch_init): Ditto.
51 * sh-tdep.c (sh_gdbarch_init): Ditto.
52 * s390-tdep.c (s390_gdbarch_init): Ditto.
53 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
54 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
55 * mips-tdep.c (mips_gdbarch_init): Ditto.
56 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
57 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
58 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
59 * i386-tdep.c (i386_gdbarch_init): Ditto.
60 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
61 * frv-tdep.c (frv_gdbarch_init): Ditto.
62 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
63 * cris-tdep.c (cris_gdbarch_init): Ditto.
64 * avr-tdep.c (avr_gdbarch_init): Ditto.
65
66 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
67 call_dummy_location, default is already AT_ENTRY_POINT.
68 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
69 * v850-tdep.c (v850_gdbarch_init): Ditto.
70 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
71 * sh-tdep.c (sh_gdbarch_init): Ditto.
72 * s390-tdep.c (s390_gdbarch_init): Ditto.
73 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
74 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
75 * mips-tdep.c (mips_gdbarch_init): Ditto.
76 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
77 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
78 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
79 * i386-tdep.c (i386_gdbarch_init): Ditto.
80 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
81 * frv-tdep.c (frv_gdbarch_init): Ditto.
82 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
83 * cris-tdep.c (cris_gdbarch_init): Ditto.
84 * avr-tdep.c (avr_gdbarch_init): Ditto.
85 * arm-tdep.c (arm_gdbarch_init): Ditto.
86 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
87
abc0af47
AC
882002-11-28 Andrew Cagney <cagney@redhat.com>
89
90 * frame.h: Update comments on set_current_frame, create_new_frame,
91 flush_cached_frames, reinit_frame_cache, select_frame and
92 selected_frame.
93
ed5cedc5
AC
942002-11-27 Andrew Cagney <cagney@redhat.com>
95
96 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
97 deprecated pc_in_call_dummy function.
98 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
99 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
100 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
101 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
102 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
103
b2a1bd4f
MH
1042002-11-26 Martin M. Hunt <hunt@redhat.com>
105
106 * Makefile.in: Remove Tix dependencies.
107 * acinclude.m4: Ditto.
108 * aclocal.m4: Ditto.
109 * configure.in: Ditto.
110 * configure: Regenerated.
111
f09cffaa
AC
1122002-11-26 Andrew Cagney <ac131313@redhat.com>
113
114 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
115 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
116 * gdbarch.c: Re-generate.
117
e92b0cc9
AC
1182002-11-26 Andrew Cagney <ac131313@redhat.com>
119
120 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
121 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
122 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
123 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
124 pc_in_call_dummy_at_entry_point.
125 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
126 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
127 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
128 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
129 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
130 pc_in_call_dummy_on_stack.
131 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
132 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
133 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
134 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
135 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
136
b4b88177
AC
1372002-11-26 Andrew Cagney <ac131313@redhat.com>
138
139 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
140 pc_in_call_dummy_before_text_end
141 (deprecated_pc_in_call_dummy_after_text_end): Rename
142 pc_in_call_dummy_after_text_end.
143 (deprecated_pc_in_call_dummy_on_stack): Rename
144 pc_in_call_dummy_on_stack.
145 (deprecated_pc_in_call_dummy_at_entry_point): Rename
146 pc_in_call_dummy_at_entry_point.
147 * m68k-tdep.c (m68k_gdbarch_init): Update.
148 * s390-tdep.c (s390_gdbarch_init): Update.
149 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
150 * vax-tdep.c (vax_gdbarch_init): Update.
151 * sparc-tdep.c (sparc_gdbarch_init): Update.
152 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
153 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
154 * i386-tdep.c (i386_gdbarch_init): Update.
155 * frv-tdep.c (frv_gdbarch_init): Update.
156 * cris-tdep.c (cris_gdbarch_init): Update.
157 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
158 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
159 (deprecated_pc_in_call_dummy_after_text_end)
160 (deprecated_pc_in_call_dummy_on_stack)
161 (deprecated_pc_in_call_dummy_at_entry_point): Update.
162 * alpha-tdep.c (alpha_gdbarch_init): Update.
163
eb784848
DJ
1642002-11-25 Daniel Jacobowitz <drow@mvista.com>
165
166 * acconfig.h (HAVE_PREAD64): Add.
167 * configure.in: Check for pread64.
168 * config.in: Regenerated.
169 * configure: Regenerated.
170 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
171 * linux-proc.c (linux_proc_xfer_memory): New function.
172 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
173
933c6fe4
DC
1742002-11-25 David Carlton <carlton@math.stanford.edu>
175
176 * dwarf2read.c (scan_partial_symbols): Descend into namespace
177 pdi's with no name.
178
158a8022
AC
1792002-11-25 Andrew Cagney <ac131313@redhat.com>
180
181 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
182 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
183
481d0f41
JB
1842002-11-25 Jim Blandy <jimb@redhat.com>
185
e8289572
JB
186 * symfile.c (init_objfile_sect_indices): New function.
187 (default_symfile_offsets): Move the section-index-initializing
188 stuff into init_objfile_sect_indices, and call that.
189
b29c9944
JB
190 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
191 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
192
13de58df
JB
193 * symfile.c (syms_from_objfile): Adjust indentation.
194
481d0f41
JB
195 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
196 || info_verbose isn't true.
197
7d6a26a7
AC
1982002-11-24 Andrew Cagney <ac131313@redhat.com>
199
200 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
201 default to get_frame_base.
202 * gdbarch.h, gdbarch.c: Regenerate.
203 * arch-utils.c (default_frame_address): Delete function.
204 * arch-utils.h (default_frame_address): Delete declaration
205
6abe1021
PM
2062002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
207
208 * varobj.c (find_frame_addr_in_frame_chain):
209 Use get_frame_base instead of FRAME_FP,
210 obvious fix.
211
c193f6ac
AC
2122002-11-19 Andrew Cagney <ac131313@redhat.com>
213
214 * frame.h (FRAME_FP): Delete macro.
215 (get_frame_base): New function declaration.
216 * frame.c (get_frame_base): New function.
217 (get_frame_id): Use ->frame.
218 (frame_find_by_id): Rewrite to use get_frame_id.
219 * blockframe.c: Use get_frame_base instead of FRAME_FP.
220 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
221 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
222 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
223 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
224 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
225 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
226
e5d2af14
AC
2272002-11-24 Andrew Cagney <ac131313@redhat.com>
228
229 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
230
931d12c6
AC
2312002-11-24 Andrew Cagney <ac131313@redhat.com>
232
233 * frame.c (set_unwind_by_pc): Revert change below, use
234 PC_IN_CALL_DUMMY.
235 (get_prev_frame): Ditto.
236
5e0f933e
AC
2372002-11-24 Andrew Cagney <ac131313@redhat.com>
238
239 * dummy-frame.c (pc_in_dummy_frame): New function.
240 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
241 (find_dummy_frame): Update comment.
242 (generic_pop_current_frame): Use get_frame_type.
243 * dummy-frame.h (pc_in_dummy_frame): Declare.
244 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
245 (create_new_frame): Use pc_in_dummy_frame.
246 (get_prev_frame): Use pc_in_dummy_frame.
247 (frame_saved_regs_register_unwind): Use get_prev_frame.
248 (deprecated_generic_get_saved_register): Use get_prev_frame.
249
7d8547c9
AC
2502002-11-23 Andrew Cagney <ac131313@redhat.com>
251
252 * blockframe.c (find_frame_addr_in_frame_chain): Move function
253 from here ...
254 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
255 (varobj_create): Note that frame ID should be used.
256 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
257
0225421b
AC
2582002-11-23 Andrew Cagney <ac131313@redhat.com>
259
260 * breakpoint.c: Include "gdb_assert.h".
261 (deprecated_frame_in_dummy): Assert that generic dummy frames are
262 not being used.
263 * Makefile.in (breakpoint.o): Update dependencies.
264 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
265 deprecated_frame_in_dummy.
266 * stack.c (print_frame_info_base): Ditto.
267 (frame_info): Ditto.
268 (print_frame_info_base): Ditto. Delete dead code.
269
32eeb91a
AS
2702002-11-23 Andreas Schwab <schwab@suse.de>
271
272 * Makefile.in (m68k_tdep_h): Define.
273 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
274 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
275 * m68k-tdep.c: Move register number enum ...
276 * m68k-tdep.h: ... to this new file and rename the constants from
277 E_* to M68K_*. All uses changed.
278 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
279 * abug-rom.c: Include "m68k-tdep.h". Use
280 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
281 * cpu32bug-rom.c: Likewise.
282 * dbug-rom.c: Likewise.
283 * m68k-tdep.c: Likewise.
284 * m68klinux-nat.c: Likewise.
285 * remote-est.c: Likewise.
286 * rom68k-rom.c: Likewise.
287 * config/m68k/tm-linux.h: Likewise.
288
9648bac8
AC
2892002-11-23 Andrew Cagney <ac131313@redhat.com>
290
291 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
292 dummy frame initialization code.
293 * mips-tdep.c (mips_gdbarch_init): Ditto.
294
91a175b3
CF
2952002-11-22 Christopher Faylor <cgf@redhat.com>
296
297 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
298 attach will hang.
299
f4ded5b1
AC
3002002-11-22 Andrew Cagney <ac131313@redhat.com>
301
302 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
303 to default_frame_address.
304 * gdbarch.h, gdbarch.c: Re-generate.
305
306 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
307 or frame_locals_address to default_frame_address.
308 * m68k-tdep.c (m68k_gdbarch_init): Update.
309 * i386-tdep.c (i386_gdbarch_init): Update.
310 * frv-tdep.c (frv_gdbarch_init): Update.
311 * sh-tdep.c (sh_gdbarch_init): Update.
312 * v850-tdep.c (v850_gdbarch_init): Update.
313 * sparc-tdep.c (sparc_gdbarch_init): Update.
314 * mips-tdep.c (mips_gdbarch_init): Update.
315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
316 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
318
319 * cris-tdep.c (cris_frame_args_address): Delete function.
320 (cris_frame_locals_address): Delete function.
321 (cris_gdbarch_init): Do not set frame_args_address or
322 frame_locals_address.
323
f7c1e0f3
MS
3242002-11-22 Michael Snyder <msnyder@redhat.com>
325
326 * thread-db.c (thread_db_load): Tell the user what's going on
327 if dlopen fails on libthread_db.
328
03dac896
AS
3292002-11-23 Andreas Schwab <schwab@suse.de>
330
331 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
332 invariant return values.
333
7a67d0fe
AS
3342002-11-22 Andreas Schwab <schwab@suse.de>
335
336 * valops.c (value_slice): Move declaration of `offset' to avoid
337 warning.
338
5633f842
CF
3392002-11-22 Christopher Faylor <cgf@redhat.com>
340
341 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
342 (struct so_stuff): Add end_addr field.
343 (register_loaded_dll): Calculate and store end address of loaded dll.
344 (solib_address): New function.
345 (child_solib_loaded_library_pathname): Pass carefully constructed
346 section info to safe_symbol_file_add rather than ignoring it.
347 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
348 DLL is loaded.
349 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
350 (child_create_inferior): Fix a compiler warning.
351 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
352 (solib_address): Declare new function.
353
d85fe7f7
AS
3542002-11-22 Andreas Schwab <schwab@suse.de>
355
356 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
357 and FPS registers.
358
8308e54c
DJ
3592002-11-21 Daniel Jacobowitz <drow@mvista.com>
360
361 * maint.c (_initialize_maint_cmds): Fix typo. From
362 Francesco Potorti` <pot@gnu.org>.
363
8997bd5e
AC
3642002-11-21 Andrew Cagney <cagney@redhat.com>
365
366 * mips-tdep.c (mips_dump_tdep): Delete references to
367 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
368 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
369 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
370 * printcmd.c (build_address_symbolic): Delete calls to
371 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
372 (address_info): Ditto.
373 Fix PR gdb/773.
374
4e87b832
KD
3752002-11-19 Klee Dienes <kdienes@apple.com>
376 Adam Fedor <fedor@gnu.org>
377
378 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
379 the ability to explicitly specify the quote characters and word
380 break characters; if NULL is specified for either, use the old
381 behavior of using the characters used by the completer.
382 (skip_chars): New function. Convenience wrapper around
383 skip_quoted_chars to provide the original skip_chars behavior.
384 * completer.h (skip_quoted_chars): Add prototype.
385
9ba8d803
AC
3862002-11-19 Andrew Cagney <ac131313@redhat.com>
387
388 Problems reported by Paul Eggert.
389 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
390
0a595803
AS
3912002-11-19 Andreas Schwab <schwab@suse.de>
392
393 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
394 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
395 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
396 (m68k_linux_frame_saved_pc): Move to ...
397 * m68klinux-tdep.c: ... here. New file.
398 * Makefile.in (m68klinux-tdep.o): Add dependencies.
399 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
400
e8afa4d7
AF
4012002-11-19 Adam Fedor <fedor@gnu.org>
402
403 * objc-exp.y: Revert to old skip_quoted usage.
404
a76c9d72
AF
4052002-11-19 Adam Fedor <fedor@gnu.org>
406
407 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
408 (objc_lang_h): Define.
409 (YYFILES): Add objc-exp.tab.c.
410 (local-maintainer-clean): Remove objc-exp.tab.c.
411 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
412
fd0e9d45
PM
4132002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
414
415 * p-exp.y (typecast rule): Add automatic dereference of
416 pascal classes if needed.
417 (THIS): Set current_type.
418 Automatically dereference pascal classes.
419 (typebase rule): Add ^typebase recognition.
420
82eeeb94
AF
4212002-11-18 Adam Fedor <fedor@gnu.org>
422
423 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
424 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
425 (op_name): Handle OP_OBJC_SELF.
426 * Makefile.in (expprint.o): Add additional depends.
427
646df18d
AF
4282002-11-18 Adam Fedor <fedor@gnu.org>
429
430 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
431 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
432 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
433 * objc-exp.y: Likewise.
434
379b85df
AF
4352002-11-18 Adam Fedor <fedor@gnu.org>
436
437 * gdb/parser-defs.h: (struct objc_class_str): New structure
438 for parsing ObjC classes.
439
85cf597a
AC
4402002-11-18 Andrew Cagney <ac131313@redhat.com>
441
442 * stack.c (frame_relative_level): Copy function from here ...
443 * frame.c (frame_relative_level): ...to here.
444
5a203e44
AC
4452002-11-18 Andrew Cagney <ac131313@redhat.com>
446
447 * frame.h (enum frame_type): Define.
448 (get_frame_type): Declare.
449 (struct frame_info): Add field `type'. Delete field
450 signal_handler_caller.
451 (deprecated_set_frame_signal_handler_caller): Declare.
452 * frame.c (get_frame_type): New function.
453 (deprecated_set_frame_type): New function.
454 (create_new_frame): Set the frame's type.
455 (get_prev_frame): Similar.
456 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
457 * s390-tdep.c: Ditto.
458 * m68klinux-nat.c: Ditto.
459 * ns32k-tdep.c: Ditto.
460 * x86-64-linux-tdep.c: Ditto.
461 * vax-tdep.c: Ditto.
462 * rs6000-tdep.c: Ditto.
463 * ppc-linux-tdep.c: Ditto.
464 * i386-interix-tdep.c: Ditto.
465 * mips-tdep.c: Ditto.
466 * m68k-tdep.c: Ditto.
467 * hppa-tdep.c: Ditto.
468 * ia64-tdep.c: Ditto.
469 * cris-tdep.c: Ditto.
470 * arm-tdep.c: Ditto.
471 * alpha-tdep.c: Ditto.
472 * i386-tdep.c: Ditto.
473 * stack.c: Ditto.
474 * ada-lang.c: Ditto.
475 * blockframe.c: Update.
476 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
477 deprecated_set_frame_type instead of signal_handler_caller.
478 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
479 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
480 * breakpoint.h: Delete FIXME suggesting get_frame_type.
481
bf4ae8b2
KD
4822002-11-18 Klee Dienes <kdienes@apple.com>
483
484 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
485
a672ef13
KD
4862002-11-18 Klee Dienes <kdienes@apple.com>
487
488 * buildsym.c (pop_context): Add comment.
489
0c5e171a
KD
4902002-11-18 Klee Dienes <kdienes@apple.com>
491
492 * buildsym.h (pop_context): Convert to function, defined in
493 buildsym.c.
494 * buildsym.c: Include gdb_assert.h.
495 (pop_context): Implement as C function. Add check for stack
496 underflow.
497 * dbxread.c (process_one_symbol): Complain and stop processing
498 that symbol if we are already at the top of the context stack for
499 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
500 when processing N_RBRAC.
501
8a1f4c4c
DJ
5022002-11-16 Daniel Jacobowitz <drow@mvista.com>
503
504 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
505 define.
506 (struct target_waitstatus): Add opaque definition.
507 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
508 * exec.c (init_exec_ops): Likewise.
509 * fork-child.c (clone_and_follow_inferior): Remove.
510 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
511 * inferior.h (clone_and_follow_inferior): Remove prototype.
512 * infrun.c (follow_fork_mode_both): Remove.
513 (follow_fork_mode_kind_names): Remove commented out "both".
514 (follow_inferior_fork): Remove follow_fork_mode_both support.
515 * inftarg.c (child_clone_and_follow_inferior): Remove.
516 (child_post_follow_inferior_by_clone): Remove.
517 (init_child_ops): Don't set to_clone_and_follow_inferior
518 or to_post_follow_inferior_by_clone.
519 * target.c (default_clone_and_follow_inferior): Remove.
520 (cleanup_target): Don't set to_clone_and_follow_inferior
521 or to_post_follow_inferior_by_clone.
522 (find_default_clone_and_follow_inferior): Remove.
523 (init_dummy_target): Don't set to_clone_and_follow_inferior.
524 (debug_to_clone_and_follow_inferior): Remove.
525 (debug_to_post_follow_inferior_by_clone): Remove.
526 (setup_target_debug): Don't set to_clone_and_follow_inferior
527 or to_post_follow_inferior_by_clone.
528 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
529 and to_post_follow_inferior_by_clone.
530 (child_clone_and_follow_inferior): Remove prototype.
531 (child_post_follow_inferior_by_clone): Remove prototype.
532 (target_clone_and_follow_inferior): Remove macro.
533 (target_post_follow_inferior_by_clone): Remove macro.
534 (find_default_clone_and_follow_inferior): Remove prototype.
535
47932f85
DJ
5362002-11-16 Daniel Jacobowitz <drow@mvista.com>
537
538 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
539 inferior_has_vforked, and inferior_has_execd instead of
540 target_has_forked, target_has_vforked, and target_has_execd.
541 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
542 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
543 (CHILD_WAIT): Define.
544 (child_wait): Add prototype.
545 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
546 Add prototype.
547 (hpux_has_vforked): Likewise, from child_has_vforked.
548 (hpux_has_execd): Likewise, from child_has_execd.
549 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
550 (not_same_real_pid, child_wait): New, copied from inftarg.c.
551 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
552 and hpux_has_syscall_event instead of the target hooks.
553 * infrun.c (inferior_has_forked, inferior_has_vforked)
554 (inferior_has_execd): New functions.
555 * inftarg.c (not_same_real_pid): Remove.
556 (child_wait): Remove references to not_same_real_pid,
557 target_has_forked, target_has_vforked, target_has_execd,
558 and target_has_syscall_event.
559 (child_has_forked, child_has_vforked, child_has_execd)
560 (child_has_syscall_event): Remove.
561 (init_child_ops): Remove references to child_has_forked,
562 child_has_vforked, child_has_execd, and child_has_syscall_event.
563 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
564 (hpux_has_vforked): Likewise, from child_has_vforked.
565 (hpux_has_execd): Likewise, from child_has_execd.
566 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
567 * target.c (cleanup_target): Remove references to
568 to_has_forked, to_has_vforked, to_has_execd, and
569 to_has_syscall_event.
570 (update_current_target): Likewise.
571 (setup_target_debug): Likewise.
572 (debug_to_has_forked): Remove.
573 (debug_to_has_vforked): Remove.
574 (debug_to_has_execd): Remove.
575 (debug_to_has_syscall_event): Remove.
576 * target.h (struct target_ops): Remove to_has_forked.
577 to_has_vforked, to_has_execd, and to_has_syscall_event.
578 (child_has_forked, child_has_vforked, child_has_execd)
579 (child_has_syscall_event): Remove prototypes.
580 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
581 prototypes.
582 (target_has_forked, target_has_vforked, target_has_execd)
583 (target_has_syscall_event): Remove macros.
584
4088142a
DJ
5852002-11-16 Daniel Jacobowitz <drow@mvista.com>
586
587 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
588 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
589 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
590 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
591 * target.c (cleanup_target): Remove reference to
592 to_can_follow_vfork_prior_to_exec.
593 (update_current_target): Likewise.
594 (debug_to_can_follow_vfork_prior_to_exec): Remove.
595 (setup_target_debug): Remove reference to
596 to_can_follow_vfork_prior_to_exec.
597 * target.h (struct target_ops): Remove
598 to_can_follow_vfork_prior_to_exec.
599 (child_can_follow_vfork_prior_to_exec): Remove prototype.
600 (target_can_follow_vfork_prior_to_exec): Remove definition.
601 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
602 define.
603 * infrun.c (follow_vfork_when_exec): Remove.
604 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
605 (follow_exec): Likewise.
606 (handle_inferior_event): Likewise.
607 (keep_going): Likewise.
608
18cde8d5
AC
6092002-11-15 Andrew Cagney <cagney@redhat.com>
610
611 * frame.c (generic_unwind_get_saved_register): Make static.
612 * frame.h (generic_unwind_get_saved_register): Delete declaration.
613 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
614 defaults to generic_unwind_get_saved_register.
615 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
616 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
617 * frv-tdep.c (frv_gdbarch_init): Ditto.
618 * i386-tdep.c (i386_gdbarch_init): Ditto.
619 * s390-tdep.c (s390_gdbarch_init): Ditto.
620 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
621 * v850-tdep.c (v850_gdbarch_init): Ditto.
622 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
623 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
624 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
625
a6b063af
AC
6262002-11-15 Andrew Cagney <cagney@redhat.com>
627
628 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
629 i386-tdep.c.
630
f407986f
AC
6312002-11-15 Andrew Cagney <cagney@redhat.com>
632
633 * frame.h (sigtramp_saved_pc): Delete declaration.
634 * blockframe.c (sigtramp_saved_pc): Delete function.
635 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
636 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
637 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
638 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
639
f18c5a73
AC
6402002-11-15 Andrew Cagney <ac131313@redhat.com>
641
642 * frame.c (frame_pc_unwind): New function.
643 (frame_saved_regs_pc_unwind): New function.
644 (frame_register_unwind): Pass unwind_cache instead of
645 register_unwind_cache.
646 (set_unwind_by_pc): Add unwind_pc parameter, set.
647 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
648 (get_prev_frame): Ditto.
649 * frame.h (frame_pc_unwind_ftype): Declare.
650 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
651 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
652 (frame_pc_unwind): Declare.
653 * dummy-frame.c (dummy_frame_pc_unwind): New function.
654 (struct dummy_frame): Add comment mentioning that values are for
655 previous frame.
656 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
657 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
658 (generic_file_frame_chain_valid): Ditto.
659 * stack.c (frame_info): Ditto.
660
d9285969 6612002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
662
663 * linespec.c (locate_first_half): New function.
664 (decode_line_1): Move code into locate_first_half.
665
d741b867
AC
6662002-11-15 Andrew Cagney <ac131313@redhat.com>
667
668 * complaints.h: Add comment explaining how to eliminate a
669 deprecated_complain call.
24382c5c 670 * complaints.h: Fix spelling errors.
d741b867 671
82d03c99
DC
6722002-11-15 David Carlton <carlton@math.stanford.edu>
673
674 * printcmd.c: Remove #include "disasm.h".
675
c97eb5d9
AC
6762002-11-14 Andrew Cagney <ac131313@redhat.com>
677
678 * frame.h: Move the most relevant interface functions to the start
679 of the file.
680
524d7c18
AC
6812002-11-14 Andrew Cagney <ac131313@redhat.com>
682
683 * regcache.h (deprecated_registers): Rename registers.
684 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
685 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
686 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
687 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
688 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
689 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
690 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
691 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
692 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
693 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
694 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
695 * v850ice.c: Update.
696
6411e720
AC
697Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
698
699 * utils.c (gdb_realpath): Add comment mentioning realpath with a
700 NULL buffer.
701
73937e03
AC
7022002-11-13 Andrew Cagney <cagney@redhat.com>
703
704 * regcache.h (deprecated_read_register_bytes): Rename
705 read_register_bytes.
706 (deprecated_write_register_bytes): Rename write_register_bytes.
707 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
708 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
709 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
710 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
711 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
712 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
713 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
714 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
715 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
716 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
717 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
718 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
719 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
720 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
721
fb0cd46e
JB
7222002-11-13 Jim Blandy <jimb@redhat.com>
723
724 * findvar.c (read_var_value): Doc fix.
725
2d28509a
AC
7262002-11-13 Andrew Cagney <cagney@redhat.com>
727
728 * regcache.c (struct regcache): Replace passthough_p with
729 readonly_p.
730 (regcache_xmalloc): Initialize readonly_p.
731 (build_regcache): Initialize readonly_p.
732 (regcache_save): New function.
733 (regcache_restore): New function.
734 (regcache_cpy): Re-implement using regcache_save and
735 regcache_restore.
736 (regcache_raw_read): Update.
737 (regcache_cooked_read): When a read-only cache, checked for cached
738 pseudo register values.
739 (regcache_raw_write): Assert that the cache is not read-only.
740 Remove code handling a non-passthrough cache.
741 * regcache.h (regcache_save): Declare.
742 (regcache_restore): Declare.
743
067df2e5
AC
7442002-11-13 Andrew Cagney <cagney@redhat.com>
745
746 * regcache.c (struct regcache_descr): Add fields
747 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
748 (init_legacy_regcache_descr): Compute the size of a cooked
749 register cache and then assign that to sizeof_raw_registers. Set
750 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
751 (init_legacy_regcache_descr): Ditto.
752
51b1fe4e
AC
7532002-11-13 Andrew Cagney <cagney@redhat.com>
754
755 * regcache.c (register_buffer): Move to near start of file, update
756 description.
757 (regcache_raw_read): Use.
758 (regcache_raw_write): Use.
759 (struct regcache): Rename raw_registers to registers and
760 raw_register_valid_p to register_valid_p.
761 (regcache_xmalloc): Update.
762 (regcache_xfree): Update.
763 (register_buffer): Update.
764 (regcache_cpy): Update.
765 (regcache_cpy_no_passthrough): Update.
766 (regcache_valid_p): Update.
767 (deprecated_grub_regcache_for_registers): Update.
768 (deprecated_grub_regcache_for_register_valid): Update.
769 (set_register_cached): Update.
770 (regcache_raw_write): Update.
771
80b4c677
PM
7722002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
773
774 * p-exp.y (name_not_typename): Use copy_name to
775 set current_type variable for fields of THIS.
776
0f3fafde
DJ
7772002-11-12 Daniel Jacobowitz <drow@mvista.com>
778
779 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
780 * monitor.c (init_base_monitor_ops): Likewise.
781 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
782 * remote-array.c (init_array_ops): Likewise.
783 * remote-e7000.c (init_e7000_ops): Likewise.
784 * remote-es.c (init_es1800_ops): Likewise.
785 (init_es1800_child_ops): Likewise.
786 * remote-rdp.c (init_remote_rdp_ops): Likewise.
787 * remote-sim.c (init_gdbsim_ops): Likewise.
788 * remote-st.c (init_st2000_ops): Likewise.
789 * sol-thread.c (init_sol_core_ops): Likewise.
790 (init_sol_thread_ops): Likewise.
791 * v850ice.c (init_850ice_ops): Likewise.
792 * win32-nat.c (init_child_ops): Likewise.
793 * wince.c (init_child_ops): Likewise.
794
82c0260e
AC
7952002-11-12 Andrew Cagney <ac131313@redhat.com>
796
797 * utils.c (gdb_realpath): Make rp a constant pointer.
798
70d35819
AC
7992002-11-12 Andrew Cagney <ac131313@redhat.com>
800
801 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
802 a constant buffer; cannonicalize_file_name(); realpath() with a
803 pathconf() defined buffer, xstrdup().
804
9835a8b0
AC
8052002-11-12 Andrew Cagney <ac131313@redhat.com>
806
807 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
808 to hang2.C; hang3.c to hang3.C.
809
3f47be5c
EZ
8102002-11-11 Elena Zannoni <ezannoni@redhat.com>
811
812 * findvar.c (read_var_value): Reenable TLS code.
813
8142002-11-11 Elena Zannoni <ezannoni@redhat.com>
815 Jim Blandy <jimb@redhat.com>
816
817 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
818 * target.c (update_current_target): Add
819 to_get_thread_local_address.
820 * target.h (to_get_thread_local_address): Export.
821 (target_get_thread_local_address): Define.
822 (target_get_thread_local_address_p): Define.
823 * thread-db.c: Include solib-svr4.h.
824 (td_thr_tls_get_addr_p): Define.
825 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
826 (thread_db_get_thread_local_address): New function.
827 (init_thread_db_ops): Initialize to_get_thread_local_address.
828 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
829 * configure: Regenerate.
830 * config.in: Regenerate.
831
636b1a6d
DC
8322002-11-11 David Carlton <carlton@math.stanford.edu>
833
834 * linespec.c (set_flags): New function.
835 (decode_line_1): Move code into set_flags.
836
44fe14ab
DC
8372002-11-11 David Carlton <carlton@math.stanford.edu>
838
839 * linespec.c (decode_line_1): Move chunks of code to separate
840 functions.
841 (initialize_defaults): New function.
842 (decode_indirect): New function.
843
e6f181f5
AC
8442002-11-11 Andrew Cagney <ac131313@redhat.com>
845
8971b011
AC
846 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
847 instead of void_code_ptr.
848 (sigtramp_saved_pc): Ditto.
849
e6f181f5
AC
850 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
851 i386_fp_regnum_p.
852
01ad7f36
DJ
8532002-11-10 Daniel Jacobowitz <drow@mvista.com>
854
855 * gdbtypes.h (struct main_type): Move artificial flag out of
856 loc. New member of ``struct field'' named static_kind. Reduce
857 overloaded meaning of bitsize.
858 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
859 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
860 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
861
862 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
863 new fields.
864 (template_to_fixed_record_type, template_to_static_fixed_type)
865 (to_record_with_fixed_variant_part): Likewise.
866 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
867 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
868 * dwarfread.c (struct_type, enum_type): Likewise.
869 * hpread.c (hpread_read_enum_type)
870 (hpread_read_function_type, hpread_read_doc_function_type)
871 (hpread_read_struct_type): Likewise.
872 * mdebugread.c (parse_symbol): Likewise.
873
bf1e52be
AC
8742002-11-10 Andrew Cagney <ac131313@redhat.com>
875
876 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
877 * stack.c (print_frame_info_base): Update.
878 (print_frame_info_base, frame_info): Update.
879 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
880 (sparc_frame_saved_pc): Update.
881 * ada-lang.c (find_printable_frame): Update.
882 * breakpoint.c (deprecated_frame_in_dummy): Update.
883
ce556f85
MK
8842002-11-09 Mark Kettenis <kettenis@gnu.org>
885
886 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
887 defined.
888 (regmap): Extend to cover all registers.
889 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
890 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
891 definitions.
892 (fetch_register, sore_register): Simplify.
893 (old_fetch_inferior_registers, old_store_inferior_registers):
894 Remove functions.
895 (cannot_fetch_register, cannot_store_register): Change
896 implementation to use regmap array to decide which registers
897 cannot be fetched/stored. This removes $orig_eax from the
898 registers that cannot be fetched/stored.
899 (fetch_inferior_registers): Call fetch_register directly instead
900 of calling old_fetch_inferior_registers.
901 (store_inferior_registers): Call store_register directly instead
902 of calling old_store_inferior_registers.
903 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
904 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
905 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
906
932bb524
KD
9072002-11-09 Klee Dienes <kdienes@apple.com>
908
909 * i387-tdep.c (i387_supply_register): When called with NULL as a
910 buffer, mark the register as not provided (to mirror the behavior
911 of supply_register).
912 (i387_supply_fxsave): Ditto.
913 (i387_supply_fsave): Ditto (inherits the behavior from
914 i387_supply_register).
915
ebe68b27
KD
9162002-11-09 Klee Dienes <kdienes@apple.com>
917
918 * blockframe.c (sigtramp_saved_pc): Use
919 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
920 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
921 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
922
15220c65
AC
9232002-11-09 Andrew Cagney <ac131313@redhat.com>
924
925 * frame.c (get_prev_frame): Test prev_p to identify a previously
926 unwound frame. Initialize prev_p.
927 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
928 comment.
929
95adb866
AC
9302002-11-09 Andrew Cagney <ac131313@redhat.com>
931
932 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
933 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
934 more comments. Zap dead code.
935
e71ecd70
MK
9362002-11-09 Mark Kettenis <kettenis@gnu.org>
937
938 * infcmd.c (print_vector_info, print_float_info): Move code that
939 checks whether the target has any registers and whether there is a
940 selected frame up, such that it is also used if a target provides
941 multi-arch definitions of these functions.
942
c525330d
AC
9432002-11-08 Andrew Cagney <ac131313@redhat.com>
944
72bdd927
AC
945 * Makefile.in (DESTDIR): Define.
946 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
947 prefix.
948
c525330d
AC
949 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
950 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
951
38c968cf
AC
9522002-11-08 Andrew Cagney <ac131313@redhat.com>
953
954 * i386-linux-tdep.c: Include "reggroups.h".
955 (i386_linux_register_reggroup_p): New function.
956 (i386_linux_init_abi): Set register_reggroup_p to
957 i386_linux_register_reggroup_p.
958 * i386-tdep.h (i386_register_reggroup_p): Declare.
959 * i386-tdep.c: Include "reggroups.h".
960 (i386_init_reggroups): New function.
961 (i386_add_reggroups): New function.
962 (i386_register_reggroup_p): New function.
963 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
964 (_initialize_i386_tdep): Call i386_init_reggroups.
965 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
966 specific reggroups.
967
19e33363
MK
9682002-11-09 Mark Kettenis <kettenis@gnu.org>
969
371a6e84
MK
970 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
971 request that's available in *BSD.
972
94ba925a
MK
973 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
974
19e33363
MK
975 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
976 FDOFF_REGNUM.
977
8779790c
AC
9782002-11-08 Andrew Cagney <ac131313@redhat.com>
979
980 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
981 * dummy-frame.c (find_dummy_frame): Rename
982 generic_find_dummy_frame, make static. Return the dummy frame
983 instead of the regcache.
984 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
985 (cached_find_dummy_frame): New function. Use find_dummy_frame.
986 (dummy_frame_register_unwind): Rename
987 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
988 * dummy-frame.h (dummy_frame_register_unwind): Rename
989 generic_call_dummy_register_unwind.
990
8674b74f
MK
9912002-11-08 Mark Kettenis <kettenis@gnu.org>
992
993 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
994 except the inclusion of "i386/tm-i386.h", to...
995 * config/i386/nm-i386v42mp.h: ...here.
996 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
997
4c1e7e9d
AC
9982002-11-08 Andrew Cagney <ac131313@redhat.com>
999
1000 * Makefile.in (frame.o): Update dependencies.
1001 * blockframe.c (current_frame, frame_obstack_alloc)
1002 (frame_saved_regs_zalloc, get_current_frame)
1003 (set_current_frame, create_new_frame)
1004 (set_unwind_by_pc, get_next_frame)
1005 (flush_cached_frames, reinit_frame_cache)
1006 (frame_saved_regs_register_unwind)
1007 (deprecated_generic_get_saved_register)
1008 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1009 (_initialize_blockframe): Move frame code from here...
1010 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1011 "annotate.h" and "dummy-frame.h".
1012 (_initialize_frame): New function.
1013
921e78cf
JB
10142002-11-08 Jim Blandy <jimb@redhat.com>
1015
1016 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1017 when we finish a function a context.
1018 * buildsym.h (outermost_context_p): New macro.
1019 (Bug analyzed by David Edelsohn.)
1020
9c1412c1
AC
10212002-11-08 Andrew Cagney <ac131313@redhat.com>
1022
1023 * blockframe.c: Include "dummy-frame.h".
1024 (struct dummy_frame, dummy_frame_stack)
1025 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1026 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1027 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1028 (generic_save_call_dummy_addr, generic_pop_current_frame)
1029 (generic_pop_dummy_frame, generic_fix_call_dummy)
1030 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1031 dummy frame code from here...
1032 * dummy-frame.c: ...to here. New file.
1033 * dummy-frame.h: New file.
1034 (generic_call_dummy_register_unwind): Declare.
1035 (generic_find_dummy_frame): Declare.
1036 * Makefile.in (SFILES): Add dummy-frame.c.
1037 (dummy-frame.o): Specify dependencies.
1038 (dummy_frame_h): Define.
1039 (COMMON_OBS): Add dummy-frame.o.
1040 (blockframe.o): Update dependencies.
1041
208d8187
JB
10422002-11-08 Jim Blandy <jimb@redhat.com>
1043
1044 * dwarf2read.c (read_func_scope): Restore local_symbols and
1045 param_symbols after we finish the function context. (Based on a
1046 patch from David Edelsohn.)
1047
413dad4d
DC
10482002-11-08 David Carlton <carlton@math.stanford.edu>
1049
1050 * linespec.c (symbol_found): New function.
1051 (minsym_found): New function.
1052 (decode_line_1): Separate out some code into separate functions.
1053
5512c44a
JB
10542002-11-08 Joel Brobecker <brobecker@gnat.com>
1055
1056 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1057 the benefit of the interix target.
1058 * i386-tdep.h (i386_frameless_signal_p): Declare.
1059
1b33ef47
AC
10602002-11-08 Andrew Cagney <ac131313@redhat.com>
1061
1062 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1063 declaration that snuck in from change below.
1064
23a34459
AC
10652002-11-06 Andrew Cagney <cagney@redhat.com>
1066
1067 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1068 all callers.
1069 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1070 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1071 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1072 (i386_mxcsr_regnum_p): new function. Use instead of
1073 MXCSR_REGNUM_P.
1074 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1075 (i386_sse_regnum_p): Declare.
1076 (i386_mxcsr_regnum_p): Declare.
1077 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1078 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1079 (IS_FP_REGNUM): Update definition.
1080 (IS_FPU_CTRL_REGNUM): Update definition..
1081 (IS_SSE_REGNUM): Update definition..
1082 * i386v-nat.c (register_u_addr): Update.
1083 * go32-nat.c (fetch_register): Update.
1084 (store_register): Update.
1085
d709c020
JB
10862002-11-07 Joel Brobecker <brobecker@gnat.com>
1087
1088 Preparation work to convert the hppa targets to multiarch partial.
1089
1090 * hppa-tdep.c: Add new functions replacing macro bodies from
1091 config/pa/tm-hppa.h. These function will be used to initialize
1092 the gdbarch structure. Import some comments from tm-hppa.h,
1093 and place them where appropriate, to avoid loosing them when
1094 we cleanup this file.
1095 (hppa_reg_struct_has_addr): New function.
1096 (hppa_inner_than): New function.
1097 (hppa_stack_align): New function.
1098 (hppa_pc_requires_run_before_use): New function.
1099 (hppa_instruction_nullified): New function.
1100 (hppa_register_byte): New function.
1101 (hppa_register_virtual_type): New function.
1102 (hppa_store_struct_return): New function.
1103 (hppa_cannot_store_register): New function.
1104 (hppa_frame_args_address): New function.
1105 (hppa_frame_locals_address): New function.
1106 (hppa_smash_text_address): New function.
1107 (hppa_coerce_float_to_double): New function. Requires the inclusion
1108 of "language.h".
1109
1110 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1111
1112 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1113 gdbarch-eligible macro to a call to the new associated function
1114 created in hppa-tdep.c.
1115 (INNER_THAN): Likewise.
1116 (STACK_ALIGN): Likewise.
1117 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1118 (INSTRUCTION_NULLIFIED): Likewise.
1119 (REGISTER_BYTE): Likewise.
1120 (REGISTER_VIRTUAL_TYPE): Likewise.
1121 (STORE_STRUCT_RETURN): Likewise.
1122 (CANNOT_STORE_REGISTER): Likewise.
1123 (FRAME_ARGS_ADDRESS): Likewise.
1124 (FRAME_LOCALS_ADDRESS): Likewise.
1125 (SMASH_TEXT_ADDRESS): Likewise.
1126 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1127 (ABOUT_TO_RETURN): Delete, as no longer used.
1128
83c31e7d
FN
11292002-11-07 Fernando Nasser <fnasser@redhat.com>
1130
1131 * printcmd.c (disassemble_command): Remove obsolete function.
1132 (_initialize_printcmd): Do not create disassemble command here.
1133 * cli/cli-cmds.c (disassemble_command): New function. Implements
1134 disassemble command.
1135 (init_cli_cmds): Create disassemble command here instead.
1136
0ec30a36
AC
11372002-11-07 Andrew Cagney <ac131313@redhat.com>
1138
1139 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1140
e600bd34
AC
11412002-11-07 Andrew Cagney <ac131313@redhat.com>
1142
1143 * regcache.h (regcache_cooked_read_using_offset_hack)
1144 (regcache_cooked_write_using_offset_hack): Delete declarations.
1145 (register_changed): Delete declaration.
1146 * regcache.c (regcache_cooked_read_using_offset_hack)
1147 (regcache_cooked_write_using_offset_hack): Delete functions.
1148 (cooked_xfer_using_offset_hack): Delete function.
1149 (register_changed): Delete function.
1150
568f8739
JB
11512002-11-07 Jim Blandy <jimb@redhat.com>
1152
1153 * macroscope.c: #include "complaints.h".
1154 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1155 but not in the macro table.
1156 * Makefile.in (macroscope.o): Record dependency.
1157
b0718b7b
JB
11582002-11-07 Joel Brobecker <brobecker@gnat.com>
1159
1160 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1161
2b9e5f3f
AC
11622002-11-07 Andrew Cagney <ac131313@redhat.com>
1163
1164 * regcache.c (deprecated_registers_fetched): Update.
1165 * regcache.h (deprecated_registers_fetched): Rename
1166 registers_fetched.
1167 * remote-vxsparc.c (vx_read_register): Update.
1168 * remote-vxmips.c (vx_read_register): Update.
1169 * remote-vx68.c (vx_read_register): Update.
1170 * irix5-nat.c (fetch_core_registers): Update.
1171 * mipsm3-nat.c (fetch_inferior_registers): Update.
1172 * sun3-nat.c (fetch_inferior_registers): Update.
1173 * symm-nat.c (fetch_inferior_registers): Update.
1174 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1175 (fetch_core_registers): Update.
1176 (fetch_kcore_registers): Update.
1177 * mips-nat.c (fetch_inferior_registers): Update.
1178 * corelow.c (get_core_registers): Update.
1179 * a68v-nat.c (fetch_inferior_registers): Update.
1180
e6e68f1f
JB
11812002-11-06 Joel Brobecker <brobecker@gnat.com>
1182
1183 Put in place the framework necessary for multiarching the hppa targets.
1184 * hppa-tdep.c (hppa_gdbarch_init): New function.
1185 (hppa_dump_tdep): New function.
1186 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1187 tdep structure dumper.
1188 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1189 until the multi-arching conversion has partially been completed.
1190
492254e9
AC
11912002-11-06 Andrew Cagney <ac131313@redhat.com>
1192
1193 * valops.c (value_assign): Merge lval_register case into
1194 lval_reg_frame_relative. Use frame_register and
1195 regcache_cooked_write instead of get_saved_register and
1196 write_register_bytes. After flushing the register cache, try to
1197 re-select the selected frame.
1198
8262ee23
AC
11992002-11-06 Andrew Cagney <ac131313@redhat.com>
1200
1201 * regcache.h (deprecated_register_valid): Rename register_valid.
1202 * regcache.c: Update.
1203 * ia64-aix-nat.c: Update.
1204 * i386gnu-nat.c: Update.
1205 * alpha-nat.c: Update.
1206 * sparc-nat.c: Update.
1207 * lynx-nat.c: Update.
1208 * remote-mips.c: Update.
1209
4facf7e8
JB
12102002-11-06 Joel Brobecker <brobecker@gnat.com>
1211
1212 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1213 to end of file, to be more consistent with the pratice followed
1214 by other targets.
1215
f9418c0f
AC
12162002-11-06 Andrew Cagney <ac131313@redhat.com>
1217
1218 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1219 (print_float_info): Print registers in float_reggroup.
1220 (print_vector_info): Print registers in vector_reggroup.
1221 (default_print_registers_info): When all, print registers in
1222 all_reggroup. Otherwize, print registers in general_reggroup.
1223 (registers_info): Rewrite. Add support for register groups.
1224 Eliminate a goto.
1225
3fe235a7
EZ
12262002-11-06 Elena Zannoni <ezannoni@redhat.com>
1227
1228 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1229 ages.
1230 (symtab_symbol_info): Remove eons old ifdeffed out code.
1231 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1232 command.
1233
ef944135
TR
12342002-11-06 Theodore A. Roth <troth@openavr.org>
1235
1236 * c-exp.y: Add missing semi-colons.
1237 * f-exp.y: Add missing semi-colons.
1238 * m2-exp.y: Add missing semi-colons.
1239 * p-exp.y: Add missing semi-colons.
1240 Add empty action to start rule to avoid a type clash error when
1241 building with bison >= 1.50.
1242
f8302a57
JB
12432002-11-06 Jim Blandy <jimb@redhat.com>
1244
1245 * macrotab.h (struct macro_source_file): Doc fix.
1246
6e382aa3
JJ
12472002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1248
1249 * varobj.c (child_exists, cplus_number_of_children): Change
1250 STREQ macro references to strcmp.
1251 (cplus_name_of_child): Change code to handle the fact that
1252 fields are not necessarily contiguous with regards to their
1253 access control. This is a fix for PR gdb/792.
1254
a216a322
AC
12552002-11-05 Andrew Cagney <ac131313@redhat.com>
1256
1257 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1258 * gdbarch.h, gdbarch.c: Regnerate.
1259 * frame.h (frame_register): Declare.
1260 * frame.c (frame_register): New function.
1261 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1262 GET_SAVED_REGISTER, otherwize call
1263 generic_unwind_get_saved_register.
1264 (frame_register_read): Use frame_register instead of
1265 get_saved_register.
1266
7d5b6fdd
EZ
12672002-11-05 Elena Zannoni <ezannoni@redhat.com>
1268
1269 From Jim Ingham <jingham@apple.com>:
1270 * event-top.c (gdb_disable_readline): New function.
1271 (_initialize_event_loop): Move comment.
1272
b7c64260
EZ
12732002-11-05 Elena Zannoni <ezannoni@redhat.com>
1274
1275 * event-loop.c (start_event_loop): Add comment.
1276 Update copyright.
1277
c2e1b8f2
AC
12782002-11-05 Andrew Cagney <ac131313@redhat.com>
1279
1280 * infcmd.c (default_print_registers_info): Do not call
1281 PRINT_REGISTER_HOOK.
1282
87647bb0
AC
12832002-11-05 Andrew Cagney <ac131313@redhat.com>
1284
1285 * sparc-tdep.c (sparc_print_register_hook): Make static.
1286 (sparc_print_registers_info): New function.
1287 (sparc_do_registers_info): New function.
1288 (sparclet_print_registers_info): New function.
1289 (sparclet_do_registers_info): New function.
1290 (do_sparc_print_registers_info): New function.
1291 (sparc_print_registers): New static function, clone of infcmd.c's
1292 default_print_registers_info.
1293 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1294 (sparclet_do_registers_info): Declare.
1295 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1296 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1297 Re-define.
1298 (sparc_do_registers_info): Declare.
1299 (PRINT_REGISTER_HOOK): Delete macro.
1300 (sparc_print_register_hook): Delete declaration.
1301
8155455b
DC
13022002-11-05 David Carlton <carlton@math.stanford.edu>
1303
1304 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1305 functions.
1306 (lookup_symbol_aux_local): New function.
1307 (lookup_symbol_aux_symtabs): New function.
1308 (lookup_symbol_aux_psymtabs): New function.
1309
29924310
DC
13102002-11-05 David Carlton <carlton@math.stanford.edu>
1311
1312 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1313 previous values of 'objfile' and 'block'.
1314
cc303028
PM
13152002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1316
1317 * values.c (value_change_enclosing_type): Set
1318 enclosing_type field correctly also for the case where
1319 more memory needs to be allocated.
1320
1d70089a
MK
13212002-11-03 Mark Kettenis <kettenis@gnu.org>
1322
f16a25ae
MK
1323 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1324 of puts_filtered.
1325
1d70089a
MK
1326 * i387-tdep.c (i387_print_float_info): Replace calls to
1327 register_read and deprecated_read_register_gen with calls to
1328 frame_register_read, and make the necessary adjustments to the
1329 surrounding code.
1330
7e20f3fb
AC
13312002-11-02 Andrew Cagney <ac131313@redhat.com>
1332
1333 * gdbarch.sh (register_reggroup_p): Allow default value.
1334 * gdbarch.h, gdbarch.c: Regenerate.
1335
192dbe33
AC
13362002-11-02 Andrew Cagney <ac131313@redhat.com>
1337
1338 * regcache.h: Add coment indicating replacements for deprecated
1339 functions.
1340
b59ff9d5
AC
13412002-11-02 Andrew Cagney <cagney@redhat.com>
1342
1343 * reggroups.h, reggroups.c: New files.
1344 * regcache.c: Include "reggroups.h".
1345 (enum regcache_dump_what): Add `regcache_dump_groups'.
1346 (regcache_dump): Contract size of the "Type" column. When
1347 specified, dump the register's groups.
1348 (maintenance_print_register_groups): New function.
1349 (_initialize_regcache): Add command `maint print register-groups'.
1350 * Makefile.in (COMMON_OBS): Add reggroups.o
1351 (SFILES): Add reggroups.c.
1352 (reggroups_h): Define.
1353 (regcache.o, gdbarch.o): Update dependencies.
1354 (reggroups.o): Specify dependencies.
1355 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1356 Add opaque declaration for `struct reggroup' in generated .h file.
1357 Include "reggroups.h" in generated .c file.
1358 gdbarch.h, gdbarch.c: Re-generate.
1359
4caf0990
AC
13602002-11-02 Andrew Cagney <cagney@redhat.com>
1361
1362 * regcache.h (deprecated_read_register_gen): Rename
1363 read_register_gen.
1364 (deprecated_write_register_gen): Rename write_register_gen.
1365 * i387-tdep.c: Update.
1366 * x86-64-linux-nat.c: Update
1367 * wince.c: Update.
1368 * thread-db.c: Update.
1369 * win32-nat.c: Update.
1370 * mips-tdep.c: Update.
1371 * d10v-tdep.c: Update.
1372 * cris-tdep.c: Update.
1373 * remote-sim.c: Update.
1374 * remote-rdi.c: Update.
1375 * remote-rdp.c: Update.
1376 * frame.c: Update.
1377 * target.c: Update.
1378 * blockframe.c: Update.
1379 * x86-64-tdep.c: Update.
1380 * xstormy16-tdep.c: Update.
1381 * sh-tdep.c: Update.
1382 * s390-tdep.c: Update.
1383 * rs6000-tdep.c: Update.
1384 * sparc-tdep.c: Update.
1385 * i386-tdep.c: Update.
1386 * dwarf2cfi.c: Update.
1387 * regcache.c: Update.
1388
7a7adcdf
JB
13892002-11-01 Joel Brobecker <brobecker@gnat.com>
1390
1391 New interix-specific files:
1392 * config/i386/nm-interix.h: New file.
1393 * config/i386/interix.mh: New file.
1394 * config/i386/interix.mt: New file.
1395 * i386-interix-nat.c: New file.
1396 * i386-interix-tdep.c: New file.
1397
bdcdd535
AC
13982002-11-01 Andrew Cagney <cagney@redhat.com>
1399
1400 * frame.h (deprecated_generic_get_saved_register): Rename
1401 generic_get_saved_register.
1402 * blockframe.c (deprecated_generic_get_saved_register): Update.
1403 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1404 (xstormy16_frame_saved_register): Update.
1405 * sh-tdep.c (sh_gdbarch_init): Update.
1406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1407 * ia64-tdep.c (ia64_get_saved_register): Update.
1408 * cris-tdep.c (cris_gdbarch_init): Update.
1409 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1410 * arm-tdep.c (arm_gdbarch_init): Update.
1411
2a4b7c45
DJ
14122002-10-31 Daniel Jacobowitz <drow@mvista.com>
1413
1414 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1415
ef17e74b
DJ
14162002-10-31 Daniel Jacobowitz <drow@mvista.com>
1417
1418 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1419 trampolines in sigaction.
1420
4904ba5b
AC
14212002-10-31 Andrew Cagney <cagney@redhat.com>
1422
1423 * h8300-tdep.c: Include "gdb_assert.h".
1424 (h8300_print_register): Add gdbarch, file and frame parameters.
1425 Use frame_read_unsigned_register to read the register's value.
1426 Use fprintf_filtered to display output.
1427 (h8300_print_registers_info): Replace h8300_do_registers_info.
1428 (h8300_gdbarch_init): Set print_registers_info.
1429
f908a0eb
AC
14302002-10-31 Andrew Cagney <cagney@redhat.com>
1431
1432 * frame.c (frame_read_unsigned_register): New function.
1433 (frame_read_signed_register): New function.
1434 * frame.h (frame_read_unsigned_register): Declare.
1435 (frame_read_signed_register): Declare.
1436
c5646e11
AC
14372002-10-31 Andrew Cagney <cagney@redhat.com>
1438
1439 * h8500-tdep.c (h8500_print_registers_info): New static function,
1440 clone of infcmd.c's default_print_registers_info.
1441 (h8500_do_registers_info): New funtion.
1442 (h8500_print_register_hook): Rename print_register_hook, make
1443 static.
1444
1445 * config/h8500/tm-h8500.h: Update copyright.
1446 (DEPRECATED_DO_REGISTERS_INFO): Define.
1447 (h8500_do_registers_info: Declare.
1448 (PRINT_REGISTER_HOOK): Delete macro.
1449 (print_register_hook): Delete function.
1450
0bdd672b
AC
14512002-10-31 Andrew Cagney <cagney@redhat.com>
1452
1453 * z8k-tdep.c (z8k_print_register_hook): Make static.
1454 (z8k_print_registers_info): New static function, clone of
1455 infcmd.c's default_print_registers_info.
1456 (z8k_do_registers_info): New function. Wrap
1457 z8k_print_registers_info.
1458 * config/z8k/tm-z8k.h: Update copyright.
1459 (PRINT_REGISTER_HOOK): Delete macro.
1460 (z8k_print_register_hook): Delete declaration.
1461 (DEPRECATED_DO_REGISTERS_INFO): Define.
1462 (z8k_do_registers_info): Declare.
1463
bf9c25dc
JB
14642002-10-30 Joel Brobecker <brobecker@gnat.com>
1465
1466 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1467 as this is already provided by value.h, and was actually causing
1468 a compilation error because of a conflict in parameter type
1469 declaration due to a missing const keyword.
1470 (low_text_segment_addres): Fix a compilation warning.
1471
2c665b51
DJ
14722002-10-29 Daniel Jacobowitz <drow@mvista.com>
1473
1474 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1475 registers without a name.
1476 (mips_linux_cannot_store_register): Don't store registers without
1477 a name.
1478
e70ea697
DC
14792002-10-28 David Carlton <carlton@math.stanford.edu>
1480
1481 * symtab.c (find_addr_symbol): Delete. (It was already commented
1482 out.)
1483 * symtab.h: Delete prototype for find_addr_symbol.
1484
903ad3a6
AC
14852002-10-26 Andrew Cagney <cagney@redhat.com>
1486
1487 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1488 DO_REGISTERS_INFO.
1489 gdbarch.h, gdbarch.c: Re-generate.
1490 * infcmd.c (default_print_registers_info): Update reference.
1491 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1492 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1493 * sh-tdep.c (sh_gdbarch_init): Ditto.
1494 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1495 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1496
ab91194c
MK
14972002-10-26 Mark Kettenis <kettenis@gnu.org>
1498
e3033f15
MK
1499 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1500 cfi_init_extra_frame_info.
1501 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1502 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1503
b83b026c
MK
1504 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1505 target where necessary. Add more comments and remove the ones
1506 that don't provide any useful information.
1507
267bf4bb
MK
1508 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1509 deprecated_read_register_dummy with
1510 frame_unwind_unsigned_register.
1511
751f1375
MK
1512 * i386-tdep.c (i386_extract_struct_value_address): Use
1513 regcache_raw_read_unsigned instead of
1514 regcache_cooked_read_unsigned since we know that the register
1515 we're reading isn't a pseudo register. Rename variable 'val' into
1516 the more descriptive 'addr'.
1517
26abbdc4
MK
1518 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1519 (x86_64_push_return_address): Add comment.
1520 (x86_64_pop_frame): Make static.
1521 (examine_argument): Clarify comment.
1522 (x86_64_skip_prologue): Make prolog_expact variable static.
1523
9f1549cc
MK
1524 * dwarf2cfi.c: Fix some formatting problems.
1525 (context_cpy, read_encoded_pointer): Clarify comments.
1526
ab91194c
MK
1527 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1528 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1529 i386 target back into x86_64_gdbarch_init. Add some comments and
1530 remove meaningless ones.
1531
72367fb4
AC
15322002-10-25 Andrew Cagney <cagney@redhat.com>
1533
1534 * complaints.h (struct deprecated_complaint): Rename `struct
1535 complaint'.
1536 * complaints.c (complain): Update.
1537 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1538 incorrect comment indicating that "symfile.h" was being included
1539 for the `struct complaint' definition.
1540 * remote-vx.c: Update.
1541 * objc-lang.c: Update.
1542 * xcoffread.c: Update.
1543 * hpread.c: Update.
1544 * mdebugread.c: Update.
1545 * stabsread.c: Update.
1546 * dwarf2read.c: Update.
1547 * dwarfread.c: Update.
1548 * elfread.c: Update.
1549 * coffread.c: Update.
1550 * stabsread.h: Update.
1551 * dbxread.c: Update.
1552 * buildsym.c: Update.
1553 * gdbtypes.c: Update.
1554 * macrotab.c: Update.
1555
1f2baacc
MK
15562002-10-25 Mark Kettenis <kettenis@gnu.org>
1557
0c1a73d6
MK
1558 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1559 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1560 (x86_64_init_abi): ...new function.
1561
6aee4d54 1562 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1563 * i386v-nat.c: Include "i386-tdep.h".
1564
8f9cbe01
AC
15652002-10-25 Andrew Cagney <cagney@redhat.com>
1566
5f11f355
AC
1567 * gdbtypes.c (address_space_name_to_int): Update.
1568 (address_space_int_to_name): Update.
1569 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1570 multi-arch predicate.
1571 (address_class_name_to_type_flags): Ditto.
1572 * gdbarch.h, gdbarch.c: Re-generate.
1573
8f9cbe01
AC
1574 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1575
e8d96a5d
MH
15762002-10-24 Martin M. Hunt <hunt@redhat.com>
1577
1578 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1579
fe39c653
EZ
15802002-10-24 Elena Zannoni <ezannoni@redhat.com>
1581
1582 * symtab.h (INIT_SAL): Delete macro.
1583 (init_sal): Export.
1584 * symtab.c (init_sal): New function.
1585
1586 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1587 to init_sal function call.
1588 (find_sal_from_funcs_and_line): Ditto.
1589 (all_sals_for_line): Ditto.
1590 * breakpoint.c (create_internal_breakpoint): Ditto.
1591 (create_fork_vfork_event_catchpoint): Ditto.
1592 (create_exec_event_catchpoint): Ditto.
1593 (parse_breakpoint_sals): Ditto.
1594 (watch_command_1): Ditto.
1595 (handle_gnu_4_16_catch_command): Ditto.
1596 (clear_command): Ditto.
1597 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1598 * infcmd.c (run_stack_dummy): Ditto.
1599 * infrun.c (process_event_stop_test): Ditto.
1600 (check_sigtramp2): Ditto.
1601 (step_over_function): Ditto.
1602 * linespec.c (decode_line_2): Ditto.
1603 (decode_line_1): Ditto.
1604 * source.c (line_info): Ditto.
1605 * symtab.c (find_pc_sect_line): Ditto.
1606
baed091b
ML
16072002-10-24 Michal Ludvig <mludvig@suse.cz>
1608
1609 * dwarf2cfi.c (struct context)
1610 (struct context_reg): Moved to dwarf2cfi.h
1611 (context_alloc, frame_state_alloc, context_cpy):
1612 Made extern instead of static, removed prototypes.
1613 * dwarf2cfi.h (struct context)
1614 (struct context_reg): New, moved from dwarf2cfi.c
1615 (context_alloc, frame_state_alloc, context_cpy):
1616 New prototypes.
1617 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1618 Changed from static to extern.
1619 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1620 (LINUX_SIGCONTEXT_FP_OFFSET)
1621 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1622 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1623 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1624 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1625 set_gdbarch_*() calls now use x86-64 specific functions
1626 instead of DWARF2 CFI ones.
1627 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1628 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1629 (x86_64_init_extra_frame_info): New prototypes.
1630
c38da1af
DC
16312002-10-23 David Carlton <carlton@math.stanford.edu>
1632
1633 * linespec.c: #include "parser-defs.h".
1634 Delete prototype for find_template_name_end.
1635 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1636
fb9b6b35
JJ
16372002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1638
1639 * NEWS: add recent mi fixes.
1640 * varobj.c (struct varobj): Add new "updated" flag.
1641 (new_variable): Default "updated" flag to 0.
1642 (varobj_set_value): Set "updated" flag to 1 if value
1643 changes.
1644 (varobj_update): Check varobj "updated" flag before
1645 comparing old and refreshed values. Fix for
1646 PR gdb/702.
1647
8da065d5
DC
16482002-10-23 David Carlton <carlton@math.stanford.edu>
1649
1650 * parse.c (parse_exp_1): Use BLOCK_START.
1651 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1652 SYMBOL_BLOCK_VALUE.
1653 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1654
87f2f08c
DC
16552002-10-23 David Carlton <carlton@math.stanford.edu>
1656
1657 * symtab.c: Delete cplusplus_hint.
1658 Delete prototype for find_template_name_end.
1659
88cda038
EZ
16602002-10-23 Elena Zannoni <ezannoni@redhat.com>
1661
1662 * symtab.h: Update comment.
1663
2625d86c
MS
16642002-10-23 Michael Snyder <msnyder@redhat.com>
1665
1666 * printcmd.c (address_info): Restore quotes in output.
1667 * valops.c (value_of_local): Restore quotes in error message.
1668
9cc0d196
EZ
16692002-10-23 Elena Zannoni <ezannoni@redhat.com>
1670
1671 * symtab.c (symbol_demangled_name): New function.
1672 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1673 turning most of it into a function.
1674 (symbol_demangled_name): Export.
1675
19de93d0
MS
16762002-10-23 Michael Snyder <msnyder@redhat.com>
1677
1678 * valops.c (value_of_local): Restore quotes in error message.
1679
89aad1f9
EZ
16802002-10-23 Elena Zannoni <ezannoni@redhat.com>
1681
1682 * symtab.c (symbol_init_language_specific): New function.
1683 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1684 turning most of it into a function.
1685 (symbol_init_language_specific): Export.
1686
d9fa45fe
DC
16872002-10-23 David Carlton <carlton@math.stanford.edu>
1688
1689 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1690 (dwarf_attr_name): Ditto.
1691 (dwarf_type_encoding_name): Ditto.
1692 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1693 (process_die): Handle DW_TAG_namespace,
1694 DW_TAG_imported_declaration, DW_TAG_imported_module.
1695 (read_namespace): New function.
1696
1045b512
JB
16972002-10-22 Joel Brobecker <brobecker@gnat.com>
1698
1699 * configure.in: Define NEW_PROC_API on Interix too.
1700 * configure: Regenerate.
1701
17022002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1703
1704 * configure: Regenerate using the proper version of autoconf.
1705
3987b9d4
EZ
17062002-10-21 Elena Zannoni <ezannoni@redhat.com>
1707
1708 * findvar.c (read_var_value): Temporarily disable TLS code, until
1709 complete TLS support is added.
1710
9d774e44
EZ
17112002-10-21 Jim Blandy <jimb@redhat.com>
1712 Elena Zannoni <ezannoni@redhat.com>
1713
1714 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1715 for thread local storage locations.
1716 (struct symbol): Add objfile field.
1717 (SYMBOL_OBJFILE): Define.
1718 * dwarf2read.c (is_thread_local): New static variable.
1719 (new_symbol): If variable is in thread local fill in address class
1720 and objfile appropriately.
1721 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1722 stack operation.
1723 * printcmd.c (address_info): Print the information for thread
1724 local storage variable.
1725 * findvar.c (read_var_value): In case of thread local variable,
1726 defer to the target vector code to compute address.
1727
bc4a16ae
EZ
17282002-10-21 Elena Zannoni <ezannoni@redhat.com>
1729
1730 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1731 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1732
407caf07
EZ
17332002-10-21 Elena Zannoni <ezannoni@redhat.com>
1734
1735 * symtab.h (address_class): Rename
1736 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1737 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1738 * printcmd.c (address_info): Ditto.
1739 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1740
005328e3
MK
17412002-10-20 Mark Kettenis <kettenis@gnu.org>
1742
afdb036a
MK
1743 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1744 DBREG_DRX macro to acces debug registers.
1745
ca02e098
MK
1746 * Makefile.in (i386obsd-tdep.o): New target.
1747
03cc47f7
MK
1748 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1749 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1750
005328e3
MK
1751 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1752 * config/i386/obsd.mt: New file.
1753 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1754 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1755 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1756 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1757 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1758 * i386obsd-tdep.c: New file.
1759
9c96f9f2
AF
17602002-10-19 Adam Fedor <fedor@gnu.org>
1761
1762 * objc-exp.y (name_not_typename): Fix invalid comment.
1763
ce1ed485
MK
17642002-10-20 Mark Kettenis <kettenis@gnu.org>
1765
1766 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1767 to allocate partial syms and macro byte caches.
1768
1efc7aaa
DC
17692002-10-18 David Carlton <carlton@math.stanford.edu>
1770
1771 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1772
7e1d63ec
AF
17732002-10-18 Adam Fedor <fedor@gnu.org>
1774
1775 * stabsread.c (find_name_end): New function.
1776 (define_symbol): Use it.
1777
6e8d29a9
DJ
17782002-10-18 Daniel Jacobowitz <drow@mvista.com>
1779
1780 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1781 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1782 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1783 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1784
1efc7aaa 17852002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1786
1787 * symfile.h: Add opaque declaration for struct obstack.
1788 Declare obsavestring to take a const char *.
1789 * symfile.c (obsavestring): Make first argument a const char *.
1790
1aeae86e
AF
17912002-10-16 Adam Fedor <fedor@gnu.org>
1792
1793 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1794 names when matching breakpoints in current file.
1795
8b2dbe47
KB
17962002-10-16 Kevin Buettner <kevinb@redhat.com>
1797
1798 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1799 (read_tag_pointer_type): Add address class support.
1800 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1801 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1802 New methods.
1803 * gdbarch.h, gdbarch.c: Regenerate.
1804 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1805 (make_type_with_address_space, recursive_type_dump): Add address
1806 class support.
1807 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1808 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1809 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1810
74451869
KD
18112002-10-16 Klee Dienes <kdienes@apple.com>
1812
1813 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1814 to get the last character of a char[] buffer, not
1815 name[sizeof(vptr_name)-1].
1816
ff4cb3e8
AF
18172002-10-14 Adam Fedor <fedor@gnu.org>
1818
1819 * symtab.h: New objc_specific struct.
1820 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1821 (SYMBOL_DEMANGLED_NAME): Likewise.
1822
da2cf7e0
AF
18232002-10-14 Adam Fedor <fedor@gnu.org>
1824
1825 * symfile.c (init_filename_language_table): Add ObjC file extension.
1826
4a351cef
AF
18272002-10-14 Adam Fedor <fedor@gnu.org>
1828
1829 * utils.c (puts_filtered_tabular): New function.
1830 (fprintf_symbol_filtered): Get ObjC demangled name.
1831 * defs.h (puts_filtered_tabular): Declared.
1832
9750e763
KB
18332002-10-14 Kevin Buettner <kevinb@redhat.com>
1834
1835 * c-lang.h (c_type_print_varspec_prefix): Delete.
1836 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1837 ``need_post_space'' parameter. Adjust all callers.
1838
eee771c1
DJ
18392002-10-14 Daniel Jacobowitz <drow@mvista.com>
1840
1841 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1842 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1843 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1844 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1845
46c82446
AF
18462002-10-13 Adam Fedor <fedor@gnu.org>
1847
1848 * source.c (print_source_lines): Update comments.
1849
d069f99d
AF
18502002-10-13 Adam Fedor <fedor@gnu.org>
1851
1852 * valops.c (value_of_local): New function.
1853 (value_of_this): Use it.
1854 * value.h (value_of_local): Declared.
1855
53c551b7
AF
18562002-10-13 Adam Fedor <fedor@gnu.org>
1857
1858 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1859 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1860
eb392fbf
AF
18612002-10-12 Adam Fedor <fedor@gnu.org>
1862
1863 * language.c (binop_result_type): Add language_objc to case.
1864 (integral_type): Likewise.
1865 (character_type): Likewise.
1866 (string_type): Likewise.
1867 (boolean_type): Likewise.
1868 (structured_type): Likewise.
1869 (binop_type_check): Likewise.
1870
e2b23ee9
AF
18712002-10-11 Adam Fedor <fedor@gnu.org>
1872
1873 * printcmd.c (address_info): Print 'self' for ObjC.
1874
b01ab485
AF
18752002-10-11 Adam Fedor <fedor@gnu.org>
1876
1877 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1878 OP_SELF.
1879
806e6073
AF
18802002-10-11 Adam Fedor <fedor@gnu.org>
1881
1882 * language.h (CAST_IS_CONVERSION): Add language_objc.
1883
50f85cdf
AF
18842002-10-11 Adam Fedor <fedor@gnu.org>
1885
1886 * defs.h (enum language): Add language_objc.
1887
0d540cdf
KD
18882002-10-11 Klee Dienes <kdienes@apple.com>
1889
69266111 1890 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1891 * gdbcore.h (read_memory_typed_address): Add prototype.
1892 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1893 to read a value destined for a CORE_ADDR, not read_memory_integer.
1894 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1895 (f77_get_dynamic_lowerbound): Ditto.
1896
d5dc7960
MH
18972002-10-11 Martin M. Hunt <hunt@redhat.com>
1898
1899 * utils.c (string_to_core_addr): After turning string into
1900 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1901 which will do necessary sign-extension, etc.
1902
8343f86c
DJ
19032002-10-11 Daniel Jacobowitz <drow@mvista.com>
1904
1905 * c-exp.y (THIS): Delete token and grammar rule.
1906 (yylex): Don't return THIS.
1907 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1908 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1909 * demangle.c (cplus_markers): Update comment. Put '$'
1910 first. Remove CPLUS_MARKER.
1911 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1912 * jv-exp.y (THIS): Delete token and grammar rule.
1913 (yylex): Don't return THIS.
1914 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1915 * objc-exp.y (THIS): Delete token and grammar rule.
1916 (yylex): Don't return THIS.
1917 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1918 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1919 (read_member_functions): Likewise for opname.
1920 (read_tilde_fields): Use is_cplus_marker.
1921
1922 * defs.h (CPLUS_MARKER): Don't define.
1923 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1924 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1925 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1926 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1927 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1928
1929 * config/i386/tm-i386v4.h: Delete file.
1930 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1931 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1932 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1933 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1934 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1935 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1936 * config/i386/i386v4.mt (TM_FILE): Likewise.
1937 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1938
967c0d83
MM
19392002-10-10 Marko Mlinar <markom@opencores.org>
1940
1941 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1942 accidentially not commited 2002-10-09
1943 * gdbarch.h, gdbarch.c: Re-generate.
1944
f74fa174
MM
19452002-10-09 Marko Mlinar <markom@opencores.org>
1946
1947 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1948 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1949 * gdbarch.h, gdbarch.c: Re-generate.
1950
57349743
JB
19512002-10-08 Petr Sorfa <petrs@caldera.com>
1952
1953 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1954
1955 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1956 so we can work on more than one compilation unit at a time. This
1957 helps prepare GDB to handle inter-CU die references.
1958 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1959 the code to be defined before struct comp_unit_head.
1960 (comp_unit_head): Added new members - offset, cu_head,
1961 begin_die, next and dwarf2_abbrevs.
1962 (dwarf2_abbrevs): Removed single static var; now member of
1963 struct comp_unit_head.
1964 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1965 members.
1966 (psymtab_to_symtab_1): Changed to work with the new
1967 struct comp_unit_head.
1968 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1969 constructs the dwarf2_abbrevs[] inside the cu_header.
1970 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1971 dwarf2_abbrev table to clean up.
1972 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1973 handling of dwarf2_abbrevs inside the cu_header.
1974 (read_partial_die): Now supports the call to the new
1975 dwarf2_lookup_abbrev.
1976 (read_full_die): Now supports the call to the new
1977 dwarf2_lookup_abbrev.
1978
4092aadb
CF
19792002-10-06 Christopher Faylor <cgf@redhat.com>
1980
1981 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1982 insure that shell variables, such as "transformed_name" are propagated
1983 to later shell statements in rule.
1984
af0b2512
MK
19852002-10-06 Mark Kettenis <kettenis@gnu.org>
1986
1987 * config/i386/nm-i386sco.h: Add protection against
1988 multiple-inclusion. Include "i386/nm-i386v.h".
1989 (REGISTER_U_ADDR): Remove define.
1990 (i386_register_u_addr): Remove prototype.
1991
d6020d45
MS
19922002-10-04 Michael Snyder <msnyder@redhat.com>
1993
1994 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1995 before treating it as a single-step event.
1996
7248f48e
AF
19972002-10-03 Adam Fedor <fedor@gnu.org>
1998
1999 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2000 (objc_demangle): Remove assignment in if statements, Replace
2001 free with xfree.
2002 (add_msglist): Likewise.
2003 (end_msglist): Likewise.
2004 (complare_selectors): Likewise.
2005 (selectors_info): Likewise.
2006 (compare_classes): Likewise.
2007 (classes_info): Likewise.
2008 (print_object_command): Likewise.
2009 (find_objc_msgcall_submethod): Replace PTR with void *.
2010 * objc-lang.h: Remove check for __STDC__.
2011
52c6a6ac
JJ
20122002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2013
2014 * ui-out.h (ui_out_field_fmt_int): New prototype.
2015 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2016 of field width and alignment.
2017 * stack.c (print_frame_info_base): When printing frame level, use
2018 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2019 PR gdb/192
2020
7e3cec17
JJ
20212002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2022
2023 * MAINTAINERS: Add self to Write After Approval list.
2024
a58dd373
EZ
20252002-10-02 Elena Zannoni <ezannoni@redhat.com>
2026
2027 * infcmd.c (interrupt_target_command_wrapper): Delete.
2028 (interrupt_target_command): Make non static.
2029 (nofp_registers_info): Make static.
2030 * stack.c (return_command_wrapper): Delete.
2031 (return_command): Make non static.
2032
cee6ddeb
EZ
20332002-10-02 Elena Zannoni <ezannoni@redhat.com>
2034
2035 * event-top.c (gdb_setup_readline): New function. Code moved from
2036 _initialize_event_loop().
2037 (_initialize_event_loop): Call gdb_setup_readline().
2038
c4ed33b9
AC
20392002-10-02 Andrew Cagney <ac131313@redhat.com>
2040
2041 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2042 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2043 * gdbarch.h, gdbarch.c: Re-generate.
2044
cef4f5dd
DJ
20452002-10-02 Daniel Jacobowitz <drow@mvista.com>
2046
2047 Fix PR gdb/778
2048 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2049 before recursing.
2050 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2051 of fill_in_vptr_fieldno.
2052
36dc181b 20532002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2054
36dc181b
EZ
2055 * inferior.h (registers_info, stepi_command, nexti_command,
2056 continue_command, interrupt_target_command): Export from infcmd.c.
2057 * frame.h (args_info, selected_frame_level_changed_hook,
2058 return_command): Export from stack.c.
2059 * v850ice.c (stepi_command, nexti_command, continue_command): use
2060 prototypes from inferior.h.
2061 * tracepoint.c (registers_info, args_info, locals_info): Use
2062 prototypes from frame.h and inferior.h.
2063 * Makefile.in (mi-main.o): Add dependency on frame.h.
2064
6f99cb26
AC
20652002-10-02 Andrew Cagney <ac131313@redhat.com>
2066
da3eff49
AC
2067 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2068 value in register 3 adjusted by ppc_gp0_regnum.
2069
6f99cb26
AC
2070 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2071
da615bee
MM
20722002-10-02 Marko Mlinar <markom@opencores.org>
2073
2074 * MAINTAINERS: Add myself to the Write After Approval list.
2075
d154bee2
AO
20762002-10-01 Alexandre Oliva <aoliva@redhat.com>
2077
62a49b2c
AO
2078 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2079 of the section for the N64 ABI, fixed.
2080
d154bee2
AO
2081 * config/mips/tm-irix6.h: Include solib.h.
2082
ed348acc
EZ
20832002-10-01 Elena Zannoni <ezannoni@redhat.com>
2084
2085 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2086 GNU operators.
2087
da0f9dcd
AC
20882002-10-01 Andrew Cagney <ac131313@redhat.com>
2089
2090 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2091 and that "mi0" syntax has been removed.
2092
bdf64bac
DC
20932002-09-30 David Carlton <carlton@math.stanford.edu>
2094
2095 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2096 * ppc-sysv-tdep.c: #include "gdb_string.h".
2097 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2098 pacify GCC.
2099
54c2a1e6
AC
21002002-10-01 Andrew Cagney <ac131313@redhat.com>
2101
2102 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2103 "vrsave"'s register number.
2104
cedea778
AC
21052002-09-30 Andrew Cagney <ac131313@redhat.com>
2106
2107 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2108 use frame_unwind_signed_register to obtain the PC.
2109 (mips_frame_chain): Handle a generic dummy frame.
2110 (mips_init_extra_frame_info): When a generic dummy frame, don't
2111 re-compute the frame base.
2112 (mips_pop_frame): Handle generic dummy frames.
2113 (mips_gdbarch_init): When generic dummy frames, set
2114 use_generic_dummy_frames, push_dummy_frame to
2115 generic_push_dummy_frame, pc_in_call_dummy to
2116 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2117 generic_save_dummy_frame_tos.
2118
68315eb8
AC
21192002-09-30 Andrew Cagney <ac131313@redhat.com>
2120
2121 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2122 against TOP when TOP was explictly set.
2123 (generic_push_dummy_frame): Set TOP to zero.
2124
3b8630c3
EZ
21252002-09-30 Elena Zannoni <ezannoni@redhat.com>
2126
2127 * event-loop.c (start_event_loop): Rename variable 'result' to
2128 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2129
28ee05e9
KS
21302002-09-30 Keith Seitz <keiths@redhat.com>
2131
2132 * gdb-events.sh (selected_thread_changed): New event.
2133 * gdb-events.c: Regenerated.
2134 * gdb-events.h: Regenerated.
2135
6eecb1c8
HPN
21362002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2137
2138 * MAINTAINERS: Add self to Write After Approval list.
2139
92df71f0
FN
21402002-09-30 Fernando Nasser <fnasser@redhat.com>
2141
3b8630c3
EZ
2142 * disasm.c: New file.
2143 * disasm.h: New file.
92df71f0
FN
2144 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2145 (compare_lines): Ditto.
2146 (dump_insns): Ditto.
3b8630c3
EZ
2147 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2148 argument.
92df71f0 2149 (do_assembly_only): Ditto.
3b8630c3
EZ
2150 (do_disassembly): Renamed to gdb_disassembly and moved to
2151 disasm.c. Sdded uiout argument.
2152 * Makefile.in: Add new files. Reorder SFILES list. Update
2153 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2154
0c22854d
AC
21552002-09-29 Andrew Cagney <ac131313@redhat.com>
2156
2157 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2158 bfd/elf64-alpha-fbsd.c.
2159
e67f2023
AC
21602002-09-29 Andrew Cagney <ac131313@redhat.com>
2161
2162 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2163 i386gnu-tdep.c.
2164
89396210
AC
21652002-09-29 Andrew Cagney <ac131313@redhat.com>
2166
2167 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2168 __FUNCTION__.
2169 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2170 function name.
2171 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2172 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2173 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2174 (S_msg_sig_post_reply): Ditto.
2175
7079c36c
CV
21762002-09-28 Corinna Vinschen <vinschen@redhat.com>
2177
89396210
AC
2178 * sh-tdep.c (sh_use_struct_convention): Use definition according
2179 to ABI.
7079c36c
CV
2180 (sh_push_arguments): Store in register with correct endianess.
2181 (sh_default_store_return_value): Ditto.
2182 (sh_gdbarch_init): Set sizeof long double to 8.
2183
975ac915
MK
21842002-09-27 Mark Kettenis <kettenis@gnu.org>
2185
2186 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2187 Fix some whitespace problems.
2188
9bbe19fb
DC
21892002-09-27 David Carlton <carlton@math.stanford.edu>
2190
2191 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2192 (mcore-tdep.o): Ditto.
2193 (ns32k-tdep.o): Ditto.
2194 (ns32knbsd-tdep.o): Ditto.
2195 (sh3-rom.o): Ditto.
2196 (vax-tdep.o): Ditto.
2197 * cris-tdep.c: #include "gdb_string.h"
2198 * mcore-tdep.c: Ditto.
2199 * ns32k-tdep.c: Ditto.
2200 * ns32knbsd-tdep.c: Ditto.
2201 * sh3-rom.c: Ditto.
2202 * vax-tdep.c: Ditto.
2203
43b2fdc7
DC
22042002-09-27 David Carlton <carlton@math.stanford.edu>
2205
2206 * config/djgpp/fnchange.lst: Add entries for
2207 gdb/testsuite/gdb.c++/m-static files.
2208
e8cfbbd9
JW
22092002-09-27 Jim Wilson <wilson@redhat.com>
2210
2211 * MAINTAINERS: Add myself to the Write After Approval list.
2212
43b2fdc7 22132002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2214
2215 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2216
2217
9f3b7f07
AC
22182002-09-26 Andrew Cagney <ac131313@redhat.com>
2219
2220 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2221 frame.
2222
11269d7e
AC
22232002-09-26 Andrew Cagney <ac131313@redhat.com>
2224
2225 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2226 (rs6000_struct_return_address): Delete variable.
2227 (rs6000_store_struct_return): Update.
2228 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2229 deprecated_extract_struct_value_address.
2230 (rs6000_frame_align): New function.
2231 (rs6000_gdbarch_init): Set frame_align.
2232
f15ab4a7
AC
22332002-09-26 Andrew Cagney <ac131313@redhat.com>
2234
2235 From Grace Sainsbury <graces@redhat.com>:
2236 * Makefile.in (gdbtk-main.o): New target.
2237 (gdb.o): New target.
2238 (main_h): Define.
2239 (main.o): Update dependencies.
2240 (gdb$(EXEEXT)): Add gdb.o.
2241 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2242 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2243 (SUBDIR_GDBTK_CLEAN): Set.
2244 (install-gdbtk): Install the insight binary.
2245 (uninstall-gdbtk): New target.
2246 (all-gdbtk, clean-gdbtk): New rule.
2247 * top.c (use_windows): Default to zero.
2248 * main.c: Include "main.h".
2249 (main): Delete.
2250 (struct captured_main_args): Delete.
2251 (gdb_main): New function.
2252 * main.h: New file.
2253 * gdb.c: New File.
2254
e36180d7
AC
22552002-09-25 Andrew Cagney <cagney@redhat.com>
2256
2257 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2258 (frame_map_regnum_to_name): New function.
2259 (frame_map_name_to_regnum): New function.
2260 * frame.h (frame_map_name_to_regnum): Declare.
2261 (frame_map_regnum_to_name): Declare.
2262 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2263 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2264 * parse.c: Do not include "builtin-regs.h".
2265 (target_map_name_to_register): Delete function.
2266 (write_dollar_variable): Use frame_map_name_to_regnum.
2267 * parser-defs.h (target_map_name_to_register): Delete declaration.
2268 * expprint.c: Include "frame.h".
2269 (print_subexp): Use frame_map_regnum_to_name.
2270 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2271 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2272
8b69000d
AC
22732002-09-25 Andrew Cagney <ac131313@redhat.com>
2274
2275 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2276 wasn't saved, and the next innermost frame is a dummy, return the
2277 dummy frame's link register.
2278
046ca86a
JB
22792002-09-24 Jim Blandy <jimb@redhat.com>
2280
2281 Fix from Paul Breed:
2282 * main.c (captured_main): Add a `break' after the case for 'b'.
2283
94b66fa7
KS
22842002-09-24 Keith Seitz <keiths@redhat.com>
2285
2286 * varobj.c (c_type_of_child): Use get_target_type instead
2287 of TYPE_TARGET_TYPE.
2288
c214a6fd
FN
22892002-09-22 Fernando Nasser <fnasser@redhat.com>
2290
53cb0458
FN
2291 * source.c (get_current_or_default_source_symtab_and_line): Remove
2292 function.
2293 (set_default_source_symtab_and_line): New function. Attempts to
2294 determine a source file to list lines from if one is not currently
2295 defined.
2296 (get_current_source_symtab_and_line): Initialize sal.pc and
2297 sal.end fields.
2298 (set_current_source_symtab_and_line): Mark argument as const.
2299 * source.h: Update declarations and comments.
2300 * linespec.c (decode_line_1): Replace call to removed routine above.
2301 * stack.c (print_frame_info_base): Ditto.
2302 * cli/cli-cmds.c (edit_command): Ditto.
2303 (list_command): Ditto.
2304
23052002-09-22 Fernando Nasser <fnasser@redhat.com>
2306
d6020d45 2307 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2308 sal.pc and sal.end fields.
c214a6fd
FN
2309 (get_current_or_default_source_symtab_and_line): Ditto.
2310 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2311 so we do not cause a new source symtab to be searched for (reverting an
2312 unintentional change from the 2002-09-20 patch).
2313 * scm-lang.c (scm_unpac): Ditto.
2314
cc3b68a5
AC
23152002-09-21 Andrew Cagney <cagney@redhat.com>
2316
2317 * complaints.c (symfile_explanations): Remove new-line from
2318 ``isolated_message''.
2319 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2320 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2321
5835abe7
NC
23222002-09-20 Nick Clifton <nickc@redhat.com>
2323
2324 * NEWS: Announce that V850EA ISA is no longer supported.
2325 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2326
a15ef5f5
DC
23272002-09-20 David Carlton <carlton@math.stanford.edu>
2328
06ba1b39
DC
2329 * Makefile.in (c-lang.o): Correct dependencies.
2330 (utils.o): Gather dependencies.
2331 (charset.o): Move.
a15ef5f5
DC
2332 * c-lang.c: #include "gdb_string.h"
2333
87885426
FN
23342002-09-20 Fernando Nasser <fnasser@redhat.com>
2335
2336 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2337 * cli/cli-cmds.c (list_command): New function. Implements the new
2338 cli edit command.
2339 (_init_cli_cmds): Add new command definition.
2340 * gdb.1: Document edit command.
2341 * doc/gdb.texinfo: Document edit command.
2342
23432002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2344
2345 * source.c: Make global variables current_source_symtab and
2346 current_source_line static.
2347 (list_command): Moved to cli/cli-cmds.c.
2348 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2349 (get_first_line_listed): New accessor function.
2350 (get_lines_to_list): New accessor function.
2351 (get_current_source_symtab_and_line): New function. Retrieves the
2352 position in the source code that we consider current.
2353 (get_current_or_default_source_symtab_and_line): New function.
2354 Like the above but attempts to determine a default position if one
2355 is not currently defined.
2356 (set_current_source_symtab_and_line): New function. Sets the source
2357 code position considered current and returns the previously set one.
2358 (clear_current_source_symtab_and_line): Reset stored information about
2359 a current source line.
2360 (_initialize_source): Remove registration for the "list" command and
2361 its alias.
2362 * source.h: Add declarations for the new functions above.
2363 * symtab.h: Remove declarations for the global variables mentioned
2364 above.
2365 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2366 obtain current source line.
2367 * linespec.c (decode_line_1): Ditto.
2368 * macroscope.c (default_macro_scope): Ditto.
2369 * scm-lang.c (scm_unpac): Ditto.
2370 * stack.c (print_frame_info_base): Ditto.
2371 * symfile.c (clear_symtab_users): Ditto.
2372 * symtab.c (decode_line_spec): Ditto.
2373 * cli/cli-cmds.c (list_command): Moved here from source.c.
2374 (ambiguous_line_spec): Moved here from source.c.
2375 (_init_cli_cmds): Add definition for "list" and its alias.
2376 * Makefile.in: Update dependencies.
2377
ddd216ea
CV
23782002-09-20 Corinna Vinschen <vinschen@redhat.com>
2379
2380 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2381 with what gcc thinks is correct.
2382
6d305052
CV
23832002-09-20 Corinna Vinschen <vinschen@redhat.com>
2384
2385 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2386 multiple register push instruction.
2387
234b45d4
KB
23882002-09-19 Jim Blandy <jimb@redhat.com>
2389
2390 Add support for distinct host and target character sets.
2391 * charset.c, charset.h: New files.
2392 * c-exp.y: #include "charset.h".
2393 (yylex): Convert character and string literals to the target
2394 character set, before returning them as the semantic value of the
2395 token.
2396 * c-lang.c: #include "charset.h".
2397 (c_emit_char): Use charset-specific methods to recognize
2398 characters with backslash escape forms, to decide which characters
2399 to print literally and which to print using numeric escape
2400 sequences, and to convert target characters to host characters
2401 before printing.
2402 * utils.c: #include "charset.h".
2403 (no_control_char_error): New function.
2404 (parse_escape): Use charset-specific methods to recognize
2405 backslash escapes, parse `control character' notation, and convert
2406 characters from the host character set to the target character set.
2407 * configure.in: Set the default host character set.
2408 Check where to find iconv, and what its argument types might be.
2409 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2410 * Makefile.in (SFILES): List charset.c.
2411 (COMMON_OBS): List charset.o.
2412 (charset.o): New rule.
2413 (charset_h): New header dependency variable.
2414 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2415 (LIBICONV): New variable, set by configure.
2416 (CLIBS): Include $(LIBICONV) here.
2417 * aclocal.m4, config.in, configure: Regenerated.
2418
525d6a61
JB
24192002-09-19 Joel Brobecker <brobecker@gnat.com>
2420
2421 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2422 bison 1.35 warning.
2423
3ed93867
RE
24242002-09-19 Richard Earnshaw <rearnsha@arm.com>
2425
2426 * gdb_mbuild.sh: New file.
2427
437666f8
AC
24282002-09-19 Andrew Cagney <ac131313@redhat.com>
2429
2430 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2431
389e51db
AC
24322002-09-18 Andrew Cagney <ac131313@redhat.com>
2433
2434 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2435 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2436 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2437 valops.c, value.h: Revert previous change.
2438
3b4efeaa
MS
24392002-09-18 Michael Snyder <msnyder@redhat.com>
2440
2441 Preliminary support for Objective-C:
2442 * defs.h (language_objc): New enum value.
2443 (puts_filtered_tabular): Declaration only, exported from utils.c.
2444 (skip_quoted): Delete, declared in completer.h.
2445 * c-exp.y: Include completer.h.
2446 * p-exp.y: Ditto.
2447 * jv-exp.y: Ditto.
2448 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2449 New operator enum values.
2450 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2451 * language.c (binop_result_type): Handle language_objc case.
2452 (integral_type, character_type, string_type, boolean_type,
2453 structured_type, binop_type_check): Ditto.
2454 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2455 (struct objc_specific): Add to general_symbol_info.
2456 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2457 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2458 * parser-defs.h (struct objc_class_str): New struct type.
2459 (start_msglist, end_msglist, add_msglist): Declaration only,
2460 exported from objc-lang.c.
2461 * value.h (value_of_local, value_nsstring,
2462 call_function_by_hand_expecting_type): Exported from valops.c.
2463 * valops.c (find_function_addr): Export.
2464 (call_function_by_hand_expecting_type): New function.
2465 (value_of_local): New function.
2466 * symfile.c (init_filename_language_table): Add ".m" extension
2467 for Objective-C.
2468 * utils.c (puts_filtered_tabular): New function.
2469 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2470 (set/show demangle): Extend help-string to refer to ObjC.
2471 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2472 * stabsread.c (symbol_reference_defined): Objective-C symbols
2473 may contain colons: make allowances when scanning stabs strings
2474 for colons.
2475 (objc_find_colon): New function.
2476 * printcmd.c (address_info): If language == objc then print
2477 "self" instead of "this".
2478 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2479 OP_NSSTRING, and OP_SELF.
2480 (prefixify_subexp): Ditto.
2481 * source.c (print_source_lines): Mention objc in comment.
2482 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2483 method names.
2484
b9caf505
AC
24852002-09-18 Andrew Cagney <ac131313@redhat.com>
2486
2487 * complaints.h: Update copyright.
2488 (struct complaints): Declare.
2489 (struct complaint): Make `message' constant.
2490 (internal_complaint): Declare.
2491 (complaint): Declare.
2492 (complaint_root): Delete declaration.
2493 (symfile_complaints): Delete declaration.
2494 (struct complaints): Add opaque declaration.
2495 (clear_complaints): Add a complaints parameter.
2496 * complaints.c: Update copyright.
2497 (enum complaint_series): Define.
2498 (complaint_root): Delete.
2499 (struct complaints): Define.
2500 (complaint_sentinel, symfile_complaint_book): New variables.
2501 (symfile_explanations, symfile_complaints): New variables.
2502 New variables.
2503 (get_complaints): New function.
2504 (vcomplaint): New function.
2505 (complaint): New function.
2506 (internal_complaint): New function.
2507 (complain): Call vcomplain with symfile_complaint.
2508 (clear_complaints): Rewrite.
2509 (_initialize_complaints): Use add_setshow_command.
2510 * Makefile.in (complaints.o): Update dependencies.
2511 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2512 to call to clear_complaints.
2513 (new_symfile_objfile, reread_symbols): Ditto.
2514 (oldsyms_complaint): Delete.
2515 (empty_symtab_complaint, unknown_option_complaint): Delete.
2516 (free_named_symtabs): Use complaint instead of complain.
2517
d2e6263c
MS
25182002-09-18 Michael Snyder <msnyder@redhat.com>
2519
5fb2031a
AC
2520 Contributed by Apple Computer, Inc. Merged with current sources
2521 by Adam Fedor <fedor@doc.com> [cagney].
2522
d2e6263c
MS
2523 * objc-lang.c: First clean-up round: comments, indentation.
2524 * objc-lang.h: Ditto.
2525 * objc-lang.y: Ditto.
2526
dec43320
AC
25272002-09-18 Andrew Cagney <ac131313@redhat.com>
2528
2529 * maint.c (maintenance_internal_error): Print the parameter as the
2530 error message.
2531 (maintenance_internal_warning): New function.
2532 (_initialize_maint_cmds): Add command `maint internal-warning'.
2533
2534 * defs.h (internal_warning, internal_vwarning): Declare.
2535 * utils.c (struct internal_problem): Define.
2536 (internal_vproblem): New function.
2537 (internal_warning): New function.
2538 (internal_vwarning): New function.
2539 (internal_warning_problem, internal_error_problem): New variables.
2540 (internal_verror): Just call internal_vproblem.
2541
b81654f1
MS
25422002-09-18 Michael Snyder <msnyder@redhat.com>
2543
2544 * objc-lang.c: New file, support for Objective-C.
2545 Preliminary check-in, not yet integrated into gdb.
2546 * objc-lang.h: New file.
2547 * objc-exp.y: New file.
2548
0542c381
AC
25492002-09-18 Andrew Cagney <ac131313@redhat.com>
2550
7bda5e4a
AC
2551 * infrun.c (signal_stop_update): Convert definition to ISO C.
2552 (signal_print_update): Ditto.
2553 (signal_pass_update): Ditto.
2554 * inflow.c (terminal_save_ours): Ditto.
2555
5247b418
AC
2556 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2557 comments.
2558
fc60962c
AC
2559 * config/djgpp/fnchange.lst: Handle name clashes between
2560 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2561 bfd/coff-tic80.c.
2562
0542c381
AC
2563 * i386-linux-tdep.h: Fix tipo.
2564
5b924b9b
AF
25652002-09-18 Adam Fedor <fedor@gnu.org>
2566
2567 * MAINTAINERS: Add myself to the Write After Approval list.
2568
5afc051b
JB
25692002-09-18 Jim Blandy <jimb@redhat.com>
2570
2571 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2572 texthigh and textlow to reader-specific structs caused
2573 objfile_relocate to miss them. This is fixable, but the work that
2574 the change was supposed to prepare GDB for never got done anyway.
2575
eb944380
DC
25762002-09-18 David Carlton <carlton@math.stanford.edu>
2577
2578 * MAINTAINERS: Alphabetize Write After Approval list.
2579
948e66d9
DJ
25802002-09-18 Daniel Jacobowitz <drow@mvista.com>
2581
2582 Fix PR gdb/709
2583 * values.c (value_static_field): Call read_var_value.
2584
dc604539
AC
25852002-09-18 Andrew Cagney <ac131313@redhat.com>
2586
2587 * valops.c (hand_function_call): Align the initial stack pointer
2588 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2589 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2590 return value.
2591 * mips-tdep.c (mips_frame_align): New function.
2592 (mips_gdbarch_init): Set frame_align.
2593 * gdbarch.sh (FRAME_ALIGN): New method.
2594 * gdbarch.h, gdbarch.c: Re-generate.
2595
cb7e422f
ML
25962002-09-18 Michal Ludvig <mludvig@suse.cz>
2597
2598 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2599 registers.
2600
a094c6fb
AC
26012002-09-17 Andrew Cagney <ac131313@redhat.com>
2602
2603 * NEWS: Mention that MIPS $fp behavior changed.
2604 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2605 reference to FP_REGNUM.
2606 (mipsnbsd_cannot_store_register): Ditto.
2607 * mips-linux-nat.c: Update copyright.
2608 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2609 (mips_linux_cannot_store_register): Ditto.
2610 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2611 * config/mips/tm-mips.h: Update copyright.
2612 (FP_REGNUM): Delete macro.
2613 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2614 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2615 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2616 (mips_r3041_reg_names, mips_r3051_reg_names)
2617 (mips_r3081_reg_names): Replace "fp" with "".
2618 Fix PR gdb/480.
2619
45cf40d1
TR
26202002-09-17 Theodore A. Roth <troth@verinet.com>
2621
2622 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2623 generic_read_register_dummy() (PR gdb/703).
2624 (avr_push_return_address): #if 0 out unused vars.
2625 (avr_gdbarch_init): Enable use of avr_push_return_address().
2626
c7e701b5
MS
26272002-09-17 Michael Snyder <msnyder@redhat.com>
2628
d76ba2a5 2629 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2630 RTE will take care of it.
2631
20bcf01c
AC
26322002-09-17 Andrew Cagney <ac131313@redhat.com>
2633
2634 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2635 invalid, return SP_REGNUM.
2636
009a9971 26372002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2638
2639 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2640 point registers without sign extension.
2641
135c175f
AC
26422002-09-17 Andrew Cagney <cagney@redhat.com>
2643
2644 * blockframe.c (deprecated_read_register_dummy): Rename
2645 generic_read_register_dummy.
2646 * frame.c (frame_unwind_signed_register): New function.
2647 (frame_unwind_unsigned_register): New function.
2648 * frame.h (frame_unwind_signed_register): Declare.
2649 (frame_unwind_unsigned_register): Declare.
2650 (deprecated_read_register_dummy): Rename
2651 generic_read_register_dummy.
2652
2653 * h8300-tdep.c (h8300_frame_chain): Update.
2654 (h8300_frame_saved_pc): Update.
2655 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2656 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2657 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2658 (s390_frame_chain): Update.
2659 * v850-tdep.c (v850_find_callers_reg): Update.
2660 (v850_frame_saved_pc): Update.
2661 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2662 (m32r_find_callers_reg): Update.
2663 (m32r_frame_saved_pc): Update.
2664 * sh-tdep.c (sh_find_callers_reg): Update.
2665 (sh64_get_saved_pr): Update.
2666 (sh_init_extra_frame_info): Update.
2667 (sh_init_extra_frame_info): Update.
2668 (sh64_init_extra_frame_info): Update.
2669 (sh64_init_extra_frame_info): Update.
2670 * mcore-tdep.c (mcore_find_callers_reg): Update.
2671 (mcore_frame_saved_pc): Update.
2672 (mcore_init_extra_frame_info): Update.
2673 * i386-tdep.c (i386_frame_saved_pc): Update.
2674 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2675 (ia64_init_extra_frame_info): Update.
2676 (ia64_init_extra_frame_info): Update.
2677 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2678 * cris-tdep.c (cris_init_extra_frame_info): Update.
2679 * avr-tdep.c (avr_frame_chain): Update.
2680 (avr_init_extra_frame_info): Update.
2681 (avr_frame_saved_pc): Update.
2682 * arm-tdep.c (arm_find_callers_reg): Update.
2683 (arm_init_extra_frame_info): Update.
2684 (arm_frame_saved_pc): Update.
2685
a741e514
TT
26862002-09-17 Tom Tromey <tromey@redhat.com>
2687
2688 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2689 is "'".
2690
d1a8e808
CV
26912002-09-17 Corinna Vinschen <vinschen@redhat.com>
2692
2693 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2694 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2695 NEXT_PROLOGUE_INSN.
2696 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2697 NEXT_PROLOGUE_INSN.
2698
d9025a18
JB
26992002-09-16 Joel Brobecker <brobecker@gnat.com>
2700
2701 * osfsolib.c: Remove file, replaced by solib-osf.c.
2702 * Makefile.in: Remove compilation rules for osfsolib.c.
2703
1b2ef1b6
DC
27042002-09-16 David Carlton <carlton@math.stanford.edu>
2705
2706 * cp-valprint.c (cp_print_class_method): Correct args to
2707 check_stub_method_group.
2708
928e48af
CV
27092002-09-16 Corinna Vinschen <vinschen@redhat.com>
2710
2711 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2712 `set architecture'. Unify naming convention of functions.
2713 (h8300_skip_prologue): Improve prologue analysis.
2714 (h8300_push_arguments): Rewritten to more closely match GCC's
2715 bizarre argument-passing behavior, along with the comment describing
2716 said behavior.
2717 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2718 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2719 sim, remote-e7000.c, remote-hms.c and remote.c
2720
5e3397bb
MK
27212002-09-15 Mark Kettenis <kettenis@gnu.org>
2722
2723 * i386-tdep.c (gdb_print_insn_i386): Removed.
2724 (i386_print_insn): New function.
2725 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2726 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2727 tm_print_insn_info.
2728
f710f4fc
MK
27292002-09-14 Mark Kettenis <kettenis@gnu.org>
2730
2731 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2732 zero.
2733
db54fef4
CV
27342002-09-14 Corinna Vinschen <vinschen@redhat.com>
2735
2736 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2737 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2738 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2739
2becadee
CF
27402002-09-13 Christopher Faylor <cgf@redhat.com>
2741
2742 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2743
de17c821
DJ
27442002-09-13 Daniel Jacobowitz <drow@mvista.com>
2745
2746 * gdbtypes.c (check_stub_method): Make static.
2747 (check_stub_method_group): New function.
2748 * gdbtypes.h: Update prototypes.
2749 * cp-support.c: New file.
2750 * cp-support.h: New file.
2751
2752 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2753 (update_method_name_from_physname): New function.
2754 (read_member_functions): Correct method names for operators
2755 and v3 constructors/destructors. Separate v2 constructors and
2756 destructors.
2757 * Makefile.in (stabsread.o): Update dependencies.
2758 (SFILES): Add cp-support.c.
2759 (COMMON_OBS): Add cp-support.o.
2760 (cp_support_h, cp-support.o): Add.
2761
2762 * cp-valprint.c (cp_print_class_method): Call
2763 check_stub_method_group instead of check_stub_method. Remove
2764 extraneous QUITs.
2765 * p-valprint.c (pascal_object_print_class_method): Likewise.
2766 * valops.c (search_struct_method): Likewise.
2767 (find_method_list, value_struct_elt_for_reference): Likewise.
2768
e76cff22
AC
27692002-09-13 Andrew Cagney <cagney@redhat.com>
2770
2771 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2772 * gdbarch.h, gdbarch.c: Regenerate.
2773
905abb3f
AC
27742002-09-13 Andrew Cagney <ac131313@redhat.com>
2775
2776 * frame.c (find_saved_register): Delete function.
2777 * frame.h (find_saved_register): Delete declaration.
2778 Fix PR gdb/631.
2779
64159455
AC
2780Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2781
2782 * mips-tdep.c (read_next_frame_reg): Re-hack using
2783 frame_register_unwind.
2784
795e1e11
AC
2785Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2786
2787 * mips-tdep.c (mips_get_saved_register): Re-hack using
2788 frame_register_unwind.
2789
5720643c
JB
27902002-09-12 Joel Brobecker <brobecker@gnat.com>
2791
2792 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2793 vector. Will be useful for Interix.
2794 * gdbarch.h, gdbarch.c: Regenerate.
2795
2796 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2797 name of the malloc function by NAME_OF_MALLOC.
2798
3bada2a2
JB
27992002-09-12 Joel Brobecker <brobecker@gnat.com>
2800
2801 * value.h (find_function_in_inferior): Add const keyword to
2802 one of the parameters. Allows us to invoke this function with
2803 a const char *.
2804 * valops.c (find_function_in_inferior): Likewise.
2805
3db26b01
JB
28062002-09-12 Joel Brobecker <brobecker@gnat.com>
2807
2808 * exec.c (xfer_memory): Fix compilation warning with old versions
2809 of GCC.
2810 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2811
17c5ed2c
DC
28122002-09-12 David Carlton <carlton@math.stanford.edu>
2813
2814 * symtab.h: Run through gdb_indent.h.
2815 Add 2002 to Copyright year list.
2816
ecd1107e
AM
28172002-09-12 Alan Modra <amodra@bigpond.net.au>
2818
2819 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2820 mach constants.
2821 * MAINTAINERS: Add myself to write after approval list.
2822
e64f66d1
JB
28232002-09-11 J. Brobecker <brobecker@gnat.com>
2824
2825 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2826
f9395794
JB
28272002-09-11 J. Brobecker <brobecker@gnat.com>
2828
2829 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2830 Interix.
2831
1a303dec
MS
28322002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2833
2834 * procfs.c (do_detach): Clear current signal, not just fault.
2835 Corrects problem with breakpoint trap signal leaking to detached
2836 process on Tru64.
2837
c0219d42
MS
28382002-09-10 Michael Snyder <msnyder@redhat.com>
2839
2840 * buildsym.c (finish_block): Protect against null pointer.
2841
9d84ac84
AC
28422002-09-10 Andrew Cagney <cagney@redhat.com>
2843
2844 * infcmd.c (default_print_registers_info): Send all output to
2845 ``file'' instead of ``gdb_stdout''.
2846
77d8f2b4
MS
28472002-09-10 Michael Snyder <msnyder@redhat.com>
2848
2849 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2850 LONGEST, and use signed register read (addresses are sign-
2851 extended for mips).
2852
99656a61
SC
28532002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2854
2855 * event-loop.c (gdb_do_one_event): Make public.
2856 * event-loop.h (gdb_do_one_event): Declare.
2857
da12f4d8
JL
28582002-09-10 Jeff Law <law@redhat.com>
2859
2860 * infttrace.c (child_resume): Simplify and rework to avoid
2861 TT_PROC_CONTINUE.
2862
d0aee0c4
FF
28632002-09-09 Fred Fish <fnf@intrinsity.com>
2864
2865 * printcmd.c (print_scalar_formatted): "len" is the number of
2866 target bytes, NOT the number of target bits.
2867
7cb3ec5e
EZ
28682002-09-09 Elena Zannoni <ezannoni@redhat.com>
2869
2870 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2871 * top.c (init_main): Set rl_terminal_name.
2872
4dc81987
AS
28732002-09-08 Aidan Skinner <aidan@velvet.net>
2874
2875 * ada-lang.c (ada_array_bound, ada_type_match,
2876 _initialize_ada_language): Fix K&R definitions.
2877 * ada-tasks.c (get_current_task): Fix K&R definitions.
2878 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2879
842330b4
CF
28802002-09-07 Christopher Faylor <cgf@redhat.com>
2881
2882 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2883 Add XP.
2884
43156d82
MK
28852002-09-06 Mark Kettenis <kettenis@gnu.org>
2886
66da5fd8
MK
2887 * i386-tdep.c (i386_register_virtual_type,
2888 i386_register_convertible, i386_register_convert_to_virtual,
2889 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2890 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2891 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2892 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2893 Don't set push_arguments twice.
2894
4b218c18
MK
2895 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2896 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2897 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2898 sigtramp_end to NULL.
2899 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2900 defines.
2901 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2902
4cc314d5
MK
2903 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2904 whitespace.
2905
43156d82
MK
2906 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2907 * gdbarch.h, gdbarch.c: Re-generate.
2908 * blockframe.c (find_pc_sect_partial_function): Convert to use
2909 SIGTRAMP_START_P predicate.
2910
6672060b
MS
29112002-09-05 Michael Snyder <msnyder@redhat.com>
2912
a90c3637
MS
2913 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2914 generic_dummy_frame method and old method. Also distinguish
2915 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2916 (arm_extract_return_value): Use new regcache method.
a90c3637 2917
6672060b
MS
2918 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2919 adjustment that doesn't conform to the ABI.
2920 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2921 saved regcache, not from current regcache.
2922
299ffc64
AC
29232002-09-05 Andrew Cagney <ac131313@redhat.com>
2924
2925 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2926 * README: Update.
2927
a3a2ee65
JT
29282002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2929
2930 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2931 if arm_apcs_32 is false.
2932
2bc7eea9
AC
29332002-09-04 Andrew Cagney <ac131313@redhat.com>
2934
2935 GDB 5.3 branch created.
2936
8a55a7c5
TR
29372002-09-03 Theodore A. Roth <troth@verinet.com>
2938
2939 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2940 generic_unwind_get_saved_register.
2941
e26fb1d7
DC
29422002-09-03 David Carlton <carlton@math.stanford.edu>
2943
2944 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2945 argument (PR gdb/653). Update call to smash_to_method_type.
2946 (read_structure_scope): Update call to dwarf2_add_member_fn.
2947
30d52491
ML
29482002-09-03 Michal Ludvig <mludvig@suse.cz>
2949
2950 * x86-64-linux-tdep.c: Include gdb_string.h
2951 * x86-64-linux-nat.c: Ditto.
2952
06891d83
JT
29532002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2954
2955 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2956 when YYDEBUG is set to 1.
2957 * c-exp.y: Likewise.
2958 * f-exp.y: Likewise.
2959 * jv-exp.y: Likewise.
2960 * m2-exp.y: Likewise.
2961 * p-exp.y: Likewise.
2962
7d400e77
JT
29632002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2964
2965 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2966 dependency list.
2967 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2968 solib_svr4_fetch_link_map_offsets to
2969 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2970 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2971 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2972 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2973 solib-svr4.o, and solib-legacy.o.
2974 * config/i386/tm-nbsd.h: Include solib.h.
2975
704a27c4
JT
29762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2977
2978 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2979 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2980 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2981 comment noting that this needs its own target configuration.
2982 * config/i386/nbsd.mt: New file.
2983 * config/i386/nbsdaout.mt: Remove.
2984 * config/i386/nbsdelf.mt: Ditto.
2985 * config/i386/tm-nbsdaout.h: Ditto.
2986
d66198e1
JT
29872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2988
2989 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2990 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2991 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2992 tdep->sigtramp_end.
2993 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2994 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2995 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2996
3cac699e
JT
29972002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2998
2999 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3000 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3001 * i386-tdep.h (i386bsd_init_abi): New prototype.
3002 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3003 function declaration.
3004 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3005 for NetBSD-a.out or NetBSD-ELF.
3006 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3007 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3008 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3009 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3010 and nbsd-tdep.h.
3011 (i386nbsd_pc_in_sigtramp): New function.
3012 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3013 i386nbsd_pc_in_sigtramp.
3014 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3015 and i386nbsdelf_init_abi OS ABI handlers.
3016 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3017 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3018
7010ca0a
MK
30192002-09-02 Mark Kettenis <kettenis@gnu.org>
3020
3021 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3022 registers if the target really has them.
3023
6dd93b72
JT
30242002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3025
3026 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3027 than nbsd-tdep.h.
3028
2ca8ae21
JT
30292002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3030
3031 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3032 list.
3033 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3034 (alphanbsd_skip_sigtramp_frame): New functions.
3035 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3036 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3037 to alphanbsd_sigcontext_addr.
3038
3d9b49b0
JT
30392002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3040
3041 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3042 list.
3043 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3044 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3045 nbsd_pc_in_sigtramp.
3046 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3047 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3048 * nbsd-tdep.c: Include gdb_string.h.
3049 (nbsd_pc_in_sigtramp): New function.
3050 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3051 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3052 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3053 ppcnbsd_pc_in_sigtramp.
3054 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3055 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3056 shnbsd_pc_in_sigtramp.
3057 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3058 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3059 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3060
c860120c
PM
30612002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3062
3063 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3064 watchpoints to NULL.
3065 (insert_breakpoints): set val field of watchpoints if NULL.
3066
3067
c7612d53
JB
30682002-08-29 Jim Blandy <jimb@redhat.com>
3069
3070 * symtab.c (lookup_symbol_aux): In the cases where we find a
3071 minimal symbol of an appropriate name and use its address to
3072 select a symtab to read and search, use `name' (as passed to us)
3073 as the demangled name when searching the symtab's global and
3074 static blocks, not the minsym's name.
3075
66609862
KS
30762002-08-29 Keith Seitz <keiths@redhat.com>
3077
3078 * stack.c (print_frame_info_base): Always set current_source_symtab
3079 and current_source_line.
3080
151fefe2
JB
30812002-08-29 Donn Terry <donnte@microsoft.com>
3082
3083 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3084
bfb3754e
KS
30852002-08-28 Keith Seitz <keiths@redhat.com>
3086
3087 * stack.c (select_frame): Add FIXME concerning selected-frame
3088 events.
3089 (select_frame_command): Send selected-frame-level-changed
3090 event notification, but only if the level actually changed.
3091 (up_silently_base): Add selected-frame-level-changed event
3092 notification.
3093 (down_silently_base): Likewise.
3094
e822a2a0
AC
30952002-08-28 Andrew Cagney <ac131313@redhat.com>
3096
3097 * Makefile.in: Update dependencies for all gdb/*.c files.
3098
309367d4
TT
30992002-08-27 Tom Tromey <tromey@redhat.com>
3100
3101 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3102 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3103 Update dependencies.
3104 * i387-tdep.c: Include gdb_string.h.
3105 * osabi.c: Likewise.
3106 * i386-linux-nat.c: Likewise.
3107 * lin-lwp.c: Likewise.
3108 * ax-gdb.c: Likewise.
3109 * signals/signals.c: Likewise.
3110 * jv-valprint.c: Likewise.
3111 * p-lang.c: Likewise.
3112 * c-valprint.c: Likewise.
3113 * cp-abi.c: Likewise.
3114
e1507482
EZ
31152002-08-27 Elena Zannoni <ezannoni@redhat.com>
3116
3117 * cli/cli-script.h (copy_command_lines): Export.
3118 * breakpoint.c: Include cli/cli-script.h.
3119 * Makefile.in (breakpoint.o): Update dependencies.
3120
c6510018
MS
31212002-08-26 Michael Snyder <msnyder@redhat.com>
3122
3123 * breakpoint.c (insert_breakpoints): Protect all references
3124 to 'process_warning'. Shorten long lines.
3125
c2b8ed2c
MS
31262002-08-26 Joel Brobecker <brobecker@gnat.com>
3127
3128 * cli/cli-script.c (copy_command_lines): New function.
3129 * defs.h (copy_command_lines): Export.
3130 * testsuite/gdb.base/commands.exp: New tests for commands
3131 attached to a temporary breakpoint, and for commands that
3132 delete the breakpoint they are attached to.
3133
31342002-08-26 Michael Snyder <msnyder@redhat.com>
3135
3136 * breakpoint.c (bpstat_stop_status): Instead of copying the
3137 pointer to the breakpoint commands struct, make a new copy
3138 of the struct and point to that.
3139 (bpstat_clear): Free the commands struct.
3140 (bpstat_clear_actions): Free the commands struct.
3141 (bpstat_do_actions): Free the command actions. Also execute
3142 the local cleanups, instead of deleting them.
3143 (delete_breakpoint): Leave the commands field of the bpstat
3144 chain alone -- it will be freed later.
3145
64b84175
KB
31462002-08-26 Kevin Buettner <kevinb@redhat.com>
3147
3148 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3149 deleted in 2002-08-20 commit. This function is still used by
3150 ppc-linux-nat.c.
3151
55970da6
KS
31522002-08-26 Keith Seitz <keiths@redhat.com>
3153
3154 * gdb-events.sh: Add selected-frame-level-changed event.
3155 * gdb-events.c: Regenerated.
3156 * gdb-events.h: Regenerated.
3157
a790ad35
SC
31582002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3159
3160 Fix PR gdb/393:
3161 * inflow.c (terminal_save_ours): New function to save terminal
3162 settings.
3163 * inferior.h (terminal_save_ours): Declare.
3164 * target.c (debug_to_terminal_save_ours): New function.
3165 (cleanup_target): Defaults to_terminal_save_ours.
3166 (update_current_target): Inherit to_terminal_save_ours.
3167 (setup_target_debug): Set to_terminal_save_ours.
3168 * target.h (target_terminal_save_ours): New to save terminal settings.
3169 (target_ops): New member to_terminal_save_ours.
3170 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3171 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3172 * inftarg.c (init_child_ops): Likewise.
3173 * m3-nat.c (init_m3_ops): Likewise.
3174 * procfs.c (init_procfs_ops): Likewise.
3175 * wince.c (init_child_ops): Likewise.
3176 * win32-nat.c (init_child_ops): Likewise.
3177 * sol-thread.c (init_sol_thread_ops): Likewise.
3178
c00dcbe9
MK
31792002-08-26 Mark Kettenis <kettenis@gnu.org>
3180
3d7f4f49
MK
3181 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3182 use regcache_* functions.
3183 (i386_gdbarch_init): Set store_return_value instead of
3184 deprecated_store_return_value.
3185
c00dcbe9
MK
3186 * regcache.c (regcache_raw_write_signed,
3187 regcache_raw_write_unsigned): New functions.
3188 * regcache.h (regcache_raw_write_signed,
3189 regcache_raw_write_unsigned): New prototypes.
3190
0e0d15ca
AC
31912002-08-25 Andrew Cagney <ac131313@redhat.com>
3192
3193 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3194 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3195 source file dependencies. Cleanup corresponding generator rules.
3196
d3b22ed5
AC
31972002-08-25 Andrew Cagney <ac131313@redhat.com>
3198
3199 * regcache.h (register_offset_hack): Declare.
3200 (regcache_cooked_read_using_offset_hack): Declare.
3201 (regcache_cooked_write_using_offset_hack): Declare.
3202
3203 * regcache.c (register_offset_hack): New function.
3204 (regcache_cooked_read_using_offset_hack): New function.
3205 (regcache_cooked_write_using_offset_hack): New function.
3206 (regcache_dump): Check that the registers, according to their
3207 offset, are packed hard against each other.
3208 (cooked_xfer_using_offset_hack): New function.
3209
bb425013
AC
32102002-08-25 Andrew Cagney <ac131313@redhat.com>
3211
3212 * regcache.c (struct regcache_descr): Add field register_type.
3213 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3214 in as a parameter
3215 (init_regcache_descr): Initialize register_type. Pass the descr
3216 to init_legacy_regcache_descr. Use register_type instead of
3217 REGISTER_VIRTUAL_TYPE.
3218 (register_type): New function.
3219 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3220 * regcache.h (register_type): Declare.
3221
d0403e00
AC
32222002-08-25 Andrew Cagney <ac131313@redhat.com>
3223
3224 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3225 instead of deprecated_store_return_value. Fix fallout from
3226 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3227
0ed04cce
AC
32282002-08-25 Andrew Cagney <ac131313@redhat.com>
3229
3230 * regcache.c (max_register_size): New function.
3231 (init_legacy_regcache_descr): Ensure that max_register_size is
3232 large enough for REGISTER_VIRTUAL_SIZE.
3233 * regcache.h (max_register_size): Declare.
3234
46d79c04
AC
32352002-08-24 Andrew Cagney <ac131313@redhat.com>
3236
3237 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3238 store_return_value.
3239 (e500_extract_return_value): Change type of valbuf pointer to
3240 void.
3241
853c7bd0
MK
32422002-08-24 Mark Kettenis <kettenis@gnu.org>
3243
cd87e769
MK
3244 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3245 workaround.
3246
853c7bd0
MK
3247 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3248 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3249 long long) to prevent compiler warning on 64-bit systems.
3250
ebba8386
AC
32512002-08-23 Andrew Cagney <cagney@redhat.com>
3252
3253 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3254 (DEPRECATED_STORE_RETURN_VALUE): New method.
3255 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3256 * gdbarch.h, gdbarch.c: Re-generate.
3257
3258 * values.c (set_return_value): Pass current_regcache to
3259 STORE_RETURN_VALUE.
3260 * arch-utils.h (legacy_store_return_value): Declare.
3261 * arch-utils.c (legacy_store_return_value): New function.
3262 (legacy_extract_return_value): Update parameters.
3263
3264 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3265 STORE_RETURN_VALUE.
3266 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3267 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3268 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3269 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3270 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3271 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3272 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3273 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3274 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3275 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3276
3277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3278 * i386-tdep.c (i386_extract_return_value): Update.
3279 * arch-utils.c (legacy_extract_return_value): Update.
3280 * frv-tdep.c (frv_gdbarch_init): Update.
3281 * cris-tdep.c (cris_gdbarch_init): Update.
3282 * d10v-tdep.c (d10v_gdbarch_init): Update.
3283 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3284 * m68k-tdep.c (m68k_gdbarch_init): Update.
3285 * mcore-tdep.c (mcore_gdbarch_init): Update.
3286 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3287 * s390-tdep.c (s390_gdbarch_init): Update.
3288 * sparc-tdep.c (sparc_gdbarch_init): Update.
3289 * sh-tdep.c (sh_gdbarch_init): Update.
3290 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3291 * v850-tdep.c (v850_gdbarch_init): Update.
3292 * avr-tdep.c (avr_gdbarch_init): Update.
3293 * ia64-tdep.c (ia64_gdbarch_init): Update.
3294 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3295 * vax-tdep.c (vax_gdbarch_init): Update.
3296 * alpha-tdep.c (alpha_gdbarch_init): Update.
3297 * arm-tdep.c (arm_gdbarch_init): Update.
3298 * mips-tdep.c (mips_gdbarch_init): Update.
3299 * i386-tdep.c (i386_gdbarch_init): Update.
3300
5bd8c6d0
AC
33012002-08-23 Andrew Cagney <ac131313@redhat.com>
3302
3303 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3304 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3305
e73e1724
MK
33062002-08-24 Mark Kettenis <kettenis@gnu.org>
3307
3308 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3309 problems.
3310
3e6564e1
JB
33112002-08-23 Joel Brobecker <brobecker@gnat.com>
3312
3313 * infrun.c (handle_inferior_event): Move a comment outside of a
3314 function call, in order to avoid indent reformatting this part
3315 of the code in an unreadable way.
3316
81d0cc19
GS
33172002-08-23 Grace Sainsbury <graces@redhat.com>
3318
3319 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3320 when breakpoints fail. Move general breakpoint error messages to
3321 insert_breakpoints.
3322 * breakpoint.c (insert_breakpoints): Change warnings when
3323 breakpoints are nto inserted to specify the type. Remove call to
3324 memory_error when hardware breakpoints can't be inserted. Remove
3325 multiple calls to warning so all messages are sent to the user at
3326 once.
3327 (delete_breakpoints): Make insert error messsages more explicit.
3328
17574093
DJ
33292002-08-23 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3332 gdbserver/ChangeLog.
3333
8acc2935
MK
33342002-08-23 Mark Kettenis <kettenis@gnu.org>
3335
dfe01d39
MK
3336 * i386-tdep.c: Include "objfiles.h".
3337 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3338 skip_trampoline_code.
3339 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3340 (CPLUS_MARKER): Define to '.'.
3341
8acc2935
MK
3342 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3343 member.
3344 (linux_corefile_thread_callback): Increase args->num_notes.
3345 (linux_make_note_section): Initialize thread_args.num_notes, and
3346 use it to determine whether notes for any threads were created.
3347
151fefe2 33482002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3349
3350 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3351 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3352 and PCUNKILL.
3353 (write_with_trace): Conditionalize out the switch branch handling
3354 PCSHOLD if the corresponding macro is not defined. Likewise for
3355 PRSABORT and PRSTOP.
3356 This change will be needed by the Interix port.
3357
e1507482
EZ
33582002-08-22 Elena Zannoni <ezannoni@redhat.com>
3359
3360 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3361 write_register wherever possible instead of manipulating the
3362 register bytes directly.
3363 Assign VALUE_CONTENTS to a variable and use that.
3364 The GPR numbers are now dependent on the architecture.
3365
96ff0de4
EZ
33662002-08-22 Elena Zannoni <ezannoni@redhat.com>
3367
3368 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3369 ev_offset fields.
3370 (skip_prologue): Add support for BookE/e500 instructions.
3371 (e500_extract_return_value): New function.
3372 (frame_get_saved_regs): Add support for saving ev registers and
3373 pseudo gpr's.
3374 (e500_store_return_value): New function.
3375 (rs6000_gdbarch_init): Move up default intializations of
3376 deprecated_extract_return_value and store_return_value. Overwrite
3377 init of store_return_value with e500 specific version.
3378 Set extract_return_value for e500.
3379
fbefca5b
EZ
33802002-08-22 Elena Zannoni <ezannoni@redhat.com>
3381
3382 * blockframe.c (generic_call_dummy_register_unwind): Use
3383 regcache_cooked_read to catch cases in which the variable is
3384 stored in a pseudo register.
3385
4d210288
AC
33862002-08-22 Andrew Cagney <cagney@redhat.com>
3387
3388 * NEWS: Mention that the i960 has been made obsolete.
3389 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3390 i960-tdep.c
3391 (remote-nrom.o): Obsolete target.
3392 (remote-nindy.o, i960-tdep.o): Ditto.
3393 * remote-nrom.c: Make file obsolete.
3394 * remote-nindy.c, remote-vx960.c: Ditto.
3395 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3396 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3397 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3398 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3399 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3400 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3401 i960-*-vxworks* obsolete.
3402 * MAINTAINERS: Note that the i960 is obsolete.
3403
6c0c456d
CV
34042002-08-21 Corinna Vinschen <vinschen@redhat.com
3405
3406 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3407 detach to allow reinitialization.
3408
9f9d12b3
AC
34092002-08-22 Andrew Cagney <ac131313@redhat.com>
3410
3411 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3412 attempt).
3413
ebeb39fe
JB
34142002-08-22 Jim Blandy <jimb@redhat.com>
3415
3416 * coffread.c (coff_symfile_read): Don't try to read the line
3417 number table from disk if the image file doesn't have a symbol
3418 table; we'll never actually look at the info anyway, and Windows
3419 ships DLL's with bogus file offsets for the line number data.
3420
5bf1c677
EZ
34212002-08-21 Elena Zannoni <ezannoni@redhat.com>
3422
3423 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3424 an e500 executable.
3425
71b8ef93
MS
34262002-08-21 Michael Snyder <msnyder@redhat.com>
3427
3428 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3429 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3430 (DEFAULT_MIPS_TYPE): Delete unused macro.
3431 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3432 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3433
d174216d
JB
34342002-08-21 Jim Blandy <jimb@redhat.com>
3435
3436 * valops.c (value_cast): Simplify and correct logic for doing a
3437 static cast from a pointer to a base class to a pointer to a
3438 derived class.
3439
0ab7a791
AC
34402002-08-21 Andrew Cagney <ac131313@redhat.com>
3441
3442 * infcmd.c (default_print_registers_info): Replace
3443 do_registers_info.
3444 (registers_info): Use gdbarch_print_registers_info instead of
3445 DO_REGISTERS_INFO.
3446 * inferior.h (default_print_registers_info): Replace
3447 do_registers_info.
3448 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3449 (DO_REGISTERS_INFO): Change to a predicate function.
3450 * gdbarch.h, gdbarch.c: Regenerate.
3451
e23792cc
KS
34522002-08-21 Keith Seitz <keiths@redhat.com>
3453
3454 * gdb-events.sh: Add target-changed event.
3455 * gdb-events.c: Regenerated.
3456 * gdb-events.c: Regenerated.
3457 * valops.c (value_assign): Add target-changed event notification
3458 to inlval_register, lval_memory, and lval_reg_frame_relative.
3459
9fb14e79
JB
34602002-08-21 Joel Brobecker <brobecker@gnat.com>
3461
3462 * NEWS: Add an entry regarding the improvement of the next/step
3463 operation on Alpha Tru64 multi-processor machines.
3464
6d39a69f
AC
34652002-08-21 Andrew Cagney <ac131313@redhat.com>
3466
72acd513
AC
3467 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3468 directores.
342af04b 3469 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3470 * Makefile.in (install-gdbtk): Move to install section.
3471 (rdi-share/libangsd.a): Move to end of file.
3472
fa5f27c7
AC
34732002-08-19 Andrew Cagney <ac131313@redhat.com>
3474
3475 * frame.c (frame_register_unwind): When a register, set addrp to
3476 the register's byte.
3477
5a89d8aa
MS
34782002-08-20 Michael Snyder <msnyder@redhat.com>
3479
3480 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3481 used locally, so move them from the target machine header to here.
3482 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3483 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3484 Make static.
3485 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3486
822e978b
AC
34872002-08-20 Andrew Cagney <cagney@redhat.com>
3488
3489 * NEWS: Mention that the Apollo line was made obsolete.
3490 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3491 m68*-hp-hpux* obsolete.
3492 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3493 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3494 * buildsym.c (make_blockvector): Make static.
3495 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3496 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3497 (ALLDEPFILES): Remove dstread.c.
3498 (dstread.o): Obsolete make rule.
3499 * dstread.c: Makefile obsolete.
3500 * dst.h: Ditto.
3501 * config/m68k/hp300hpux.mt: Ditto.
3502 * config/m68k/hp300hpux.mh: Ditto.
3503 * config/m68k/hp300bsd.mt: Ditto.
3504 * config/m68k/hp300bsd.mh: Ditto.
3505 * config/m68k/apollo68b.mt: Ditto.
3506 * config/m68k/apollo68v.mh: Ditto.
3507 * config/m68k/apollo68b.mh: Ditto.
3508
e41b17f0
MS
35092002-08-20 Michael Snyder <msnyder@redhat.com>
3510
3511 * mips-tdep.c (mips_in_return_stub): Make static.
3512 (mips_gdbarch_init): Set in_solib_return_trampoline.
3513 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3514
d50355b6
MS
35152002-08-20 Michael Snyder <msnyder@redhat.com>
3516
3517 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3518 * gdbarch.c, gdbarch.h: Regenerate.
3519 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3520 Add.
3521 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3522
757a7cc6
MS
35232002-08-20 Michael Snyder <msnyder@redhat.com>
3524
3525 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3526 (mips_gdbarch_init): Set skip_trampoline_code,
3527 in_solib_call_trampoline.
3528 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3529 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3530
c8001721
EZ
35312002-08-20 Elena Zannoni <ezannoni@redhat.com>
3532
3533 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3534
3535 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3536 vector type for ev registers.
3537 (e500_pseudo_register_read): New function.
3538 (e500_pseudo_register_write): New function.
3539 (e500_dwarf2_reg_to_regnum): New function.
3540 (PPC_UISA_NOFP_SPRS): New macro.
3541 (PPC_EV_REGS): New macro.
3542 (PPC_GPRS_PSEUDO_REGS): New macro.
3543 (registers_e500): New register set for e500.
3544 (variants): Add e500 variant.
3545 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3546 before setting architectural dependent variations. Initialize ev
3547 registers numbers. Add case for e500 architecture. Set the
3548 number of pseudo registers.
3549
64366f1c
EZ
35502002-08-20 Elena Zannoni <ezannoni@redhat.com>
3551
3552 * rs6000-tdep.c: Clean up comments.
3553
7e78f0ca
AC
35542002-08-20 Andrew Cagney <cagney@redhat.com>
3555
3556 * h8300-tdep.c: Re-indent file.
3557
697f7479
JB
35582002-08-20 Jim Blandy <jimb@redhat.com>
3559
3560 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3561 default for this.
697f7479 3562
e86ae29f
KS
35632002-08-20 Keith Seitz <keiths@redhat.com>
3564
3565 * breakpoints.c (watch_command_1): Use internal breakpoint
3566 when setting a watchpoint_scope breakpoint.
3567
216b504f
EZ
35682002-08-20 Elena Zannoni <ezannoni@redhat.com>
3569
3570 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3571 (build_builtin_type_vec64i): Ditto.
3572 (build_builtin_type_vec128): Ditto.
3573 (build_builtin_type_vec128i): Ditto.
3574
f7ab6ec6
MS
35752002-08-19 Michael Snyder <msnyder@redhat.com>
3576
3577 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3578 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3579 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3580 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3581 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3582 CALL_DUMMY_ADDRESS): Delete.
3583 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3584 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3585 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3586 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3587 push_return_address.
3588 (mips_register_raw_size, mips_eabi_use_struct_convention,
3589 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3590 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3591 mips_init_extra_frame_info, mips_eabi_push_arguments,
3592 mips_n32n64_push_arguments, mips_push_return_address,
3593 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3594 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3595
b5d1566e
MS
35962002-08-19 Michael Snyder <msnyder@redhat.com>
3597
3598 * mips-tdep.c (mips_frame_num_args): New function.
3599 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3600 frame_saved_pc, frame_args_address, frame_locals_address,
3601 frame_num_args, and frame_args_skip.
3602 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3603 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3604 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3605 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3606
2f1488ce
MS
36072002-08-20 Michael Snyder <msnyder@redhat.com>
3608
3609 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3610 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3611 * mips-tdep.c (mips_store_struct_return): New function.
3612 (mips_extract_struct_value_address): New function.
3613 (mips_gdbarch_init): Set store_struct_return and
3614 extract_struct_value_address.
3615
41ff2da1
DC
36162002-08-20 David Carlton <carlton@math.stanford.edu>
3617
3618 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3619 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3620 (read_file_scope): Check that line_header is nonzero before
3621 decoding macro information.
3622
e5451d58
MK
36232002-08-20 Mark Kettenis <kettenis@gnu.org>
3624
3625 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3626 flag the general-purpose registers as floating-point on targets
3627 that don't support the floating-point registers.
3628
4a6daafa
EZ
36292002-08-20 Elena Zannoni <ezannoni@redhat.com>
3630
3631 * rs6000-tdep.c (altivec_register_p): Delete.
3632 (rs6000_do_altivec_registers): Delete.
3633 (rs6000_altivec_registers_info): Delete.
3634 (rs6000_do_registers_info): Delete.
3635 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3636 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3637
ab4327e0
EZ
36382002-08-20 Elena Zannoni <ezannoni@redhat.com>
3639
3640 * infcmd.c (do_registers_info): Print vector registers in hex
3641 format only.
3642 (print_vector_info): Check that printing registers
3643 makes sense.
3644 (print_float_info): Ditto.
3645
cb1d2653
AC
36462002-08-20 Andrew Cagney <ac131313@redhat.com>
3647
3648 * mips-tdep.c (mips_gdbarch_init): Update.
3649 (mips_o32_extract_return_value): Rewrite.
3650 (mips_o32_store_return_value): Rewrite.
3651 (mips_o32_xfer_return_value): New function.
3652 (mips_xfer_register): Tweak debug print message. Allow for
3653 buf_offset when dumping the value transfered.
3654
dfc3d9b2
AC
36552002-08-20 Andrew Cagney <ac131313@redhat.com>
3656
3657 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3658 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3659 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3660 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3661 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3662
7807aa61
MS
36632002-08-14 Michael Snyder <msnyder@redhat.com>
3664
3665 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3666
489461e2
EZ
36672002-08-19 Elena Zannoni <ezannoni@redhat.com>
3668
3669 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3670 register.
3671 (P): New macro to define a register as a pseudo register.
3672 (R, R4, R8, R16, FR32, R64, R0): Updated.
3673 (struct variant): Add new fields for number of pseudo registers
3674 and number of total registers.
3675 (tot_num_registers): New macro replacing....
3676 (num_registers): ...deleted macro.
3677 (num_registers): New function.
3678 (num_pseudo_registers): New function.
3679 (variants): Update all variants to intialize new fields correctly.
3680 Postpone initialization of number of pseudo regs and real regs.
3681 (init_variants): New function.
3682 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3683 registers offsets.
3684
fcaffe4c
DC
36852002-08-19 David Carlton <carlton@math.stanford.edu>
3686
2c2738a0
DC
3687 * valops.c (search_struct_field): Change error message to treat
3688 return value of 0 from value_static_field as meaning that field is
3689 optimized out.
3690 (value_struct_elt_for_reference): Ditto.
3691 * values.c (value_static_field): Treat an unresolved location the
3692 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3693 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3694 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3695 * MAINTAINERS: Add self to Write After Approval list.
3696
88658117
AC
36972002-08-19 Andrew Cagney <ac131313@redhat.com>
3698
3699 * mips-tdep.c (mips_xfer_register): New function.
3700 (mips_n32n64_extract_return_value): Rewrite.
3701 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3702 instead of deprecated_extract_return_value.
3703
21283beb
EZ
37042002-08-19 Elena Zannoni <ezannoni@redhat.com>
3705
3706 * rs6000-tdep.c (TDEP): Delete macro.
3707 (branch_dest): Replace use of TDEP macro with its body.
3708 (rs6000_pop_frame): Ditto.
3709 (rs6000_push_arguments): Ditto.
3710 (rs6000_skip_trampoline_code): Ditto.
3711 (rs6000_frame_saved_pc): Ditto.
3712 (rs6000_frame_chain): Ditto.
3713 (rs6000_register_name): Ditto.
3714 (rs6000_register_byte): Ditto.
3715 (rs6000_register_raw_size): Ditto.
3716 (rs6000_register_virtual_type): Ditto.
3717 (rs6000_register_convertible): Ditto.
3718 (rs6000_convert_from_func_ptr_addr): Ditto.
3719
bf072999
DJ
37202002-08-19 Daniel Jacobowitz <drow@mvista.com>
3721
3722 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3723 conditionally.
3724 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3725 MIPS_LINUX_JB_ELEMENT_SIZE.
3726 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3727 for MAX_REGISTER_RAW_SIZE arrays.
3728 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3729 MIPS_LINUX_JB_ELEMENT_SIZE.
3730
9b949a49
PM
37312002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3732
3733 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3734
6d3e79c6
AS
37352002-08-19 Aidan Skinner <aidan@velvet.net>
3736
3737 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3738 ada-valprint.c ada-tasks.c.
3739 (YYFILES): Add ada-exp.y.
3740 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3741 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3742 (ada-exp.tab.o): New target.
3743
06c0b04e
AC
37442002-08-18 Andrew Cagney <ac131313@redhat.com>
3745
3746 * regcache.c (regcache_xfer_part): New function.
3747 (regcache_raw_read_part): New function.
3748 (regcache_raw_write_part): New function.
3749 (regcache_cooked_read_part): New function.
3750 (regcache_cooked_write_part): New function.
3751 * regcache.h (regcache_raw_read_part): Declare.
3752 (regcache_raw_write_part): Declare.
3753 (regcache_cooked_read_part): Declare.
3754 (regcache_cooked_write_part): Declare.
3755
92d1e331
DJ
37562002-08-18 Daniel Jacobowitz <drow@mvista.com>
3757
3758 * remote.c (remote_open_1): Add async_p.
3759 (remote_async_open_1): Delete.
3760 (open_remote_target): Delete.
3761 (remote_open, extended_remote_open): Update calls to remote_open_1.
3762 (remote_async_open, extended_remote_async_open): Call
3763 remote_open_1 instead of remote_async_open_1.
3764
247055de
MK
37652002-08-19 Mark Kettenis <kettenis@gnu.org>
3766
3767 * blockframe.c: Fix a few coding standard violations.
3768
641eda39
MK
37692002-08-19 Mark Kettenis <kettenis@gnu.org>
3770
0b717710
MK
3771 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3772 here from ...
3773 * config/i386/tm-i386sco5.h: ... here. File removed.
3774 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3775
26d28e12 3776 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3777 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3778 (TM_FILE): Set to tm-i386.h.
3779 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3780 * config/i386/tm-i386v.h: Remove file.
3781 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3782 instead of "i386/tm-i386v.h".
3783 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3784 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3785 "i386/tm-i386v.h".
3786 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3787 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3788 "i386/tm-i386.h".
3789
d4e0bab4
MK
37902002-08-18 Mark Kettenis <kettenis@gnu.org>
3791
3792 * config/i386/nm-i386v.h: Add protection against
3793 multiple-inclusion.
3794 (i386_register_u_addr): Remove prototype.
3795 (register_u_addr): New prototype.
3796 (REGISTER_U_ADDR): Redefine accordingly.
3797 * i386v-nat.c: Improve several comments.
3798 (i386_register_u_addr): Change signature and rename to
3799 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3800 ubase variable.
3801
46cac009
AC
38022002-08-18 Andrew Cagney <ac131313@redhat.com>
3803
3804 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3805 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3806 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3807 deprecated_extract_return_value.
3808 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3809 rename mips_o32o64_push_arguments.
3810 (mips_gdbarch_init): Update.
3811 (mips_extract_return_value): Delete.
3812 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3813 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3814 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3815 (mips_n32n64_extract_return_value): Clone
3816 mips_extract_return_value.
3817 (mips_store_return_value): Delete.
3818 (mips_o32_store_return_value): Clone mips_store_return_value.
3819 (mips_o64_store_return_value): Clone mips_store_return_value.
3820 (mips_eabi_store_return_value): Clone mips_store_return_value.
3821 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3822
d2e4a39e
AS
38232002-08-18 Aidan Skinner <aidan@velvet.net>
3824
0c30c098
AS
3825 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3826 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3827
38282002-08-18 Aidan Skinner <aidan@velvet.net>
3829
3830 * ada-lang.c: Run through gdb_indent.sh.
3831 * ada-lang.h: Run through gdb_indent.sh.
3832 * ada-tasks.c: Run through gdb_indent.sh.
3833 * ada-typeprint.c: Run through gdb_indent.sh.
3834 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3835
01fc4e33
AC
38362002-08-18 Andrew Cagney <ac131313@redhat.com>
3837
3838 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3839 ABI.
3840
d8ee244c
MK
38412002-08-18 Mark Kettenis <kettenis@gnu.org>
3842
c38d8261
MK
3843 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3844
222db64c
MK
3845 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3846 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3847
c2848c82
MK
3848 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3849 write_register_gen instead of write_register_bytes.
3850
d8ee244c
MK
3851 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3852 i[3456]-*-osf1mk* configurations have been made obsolete.
3853 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3854 i[3456]86-*-osf1mk* hosts obsolete.
3855 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3856 targets obsolete.
3857 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3858 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3859 config/i386/i386m3.mt, config/i386/nm-m3.h,
3860 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3861 config/i386/i386mk.mh, config/i386/i386mk.mt,
3862 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3863 obsolete.
3864 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3865 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3866 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3867
61d8d407
AC
38682002-08-18 Andrew Cagney <ac131313@redhat.com>
3869
3870 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3871 (hppa_value_returned_from_stack): Declare.
3872 (hppa_extract_return_value): Declare.
3873 * config/pa/hppa.mt: New file.
3874 * configure.tgt: Recognize hppa*-*-*.
3875 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3876
0c52bd59
MK
38772002-08-18 Mark Kettenis <kettenis@gnu.org>
3878
3879 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3880 comment.
3881
b5686e99
MK
38822002-08-17 Mark Kettenis <kettenis@gnu.org>
3883
3884 * top.c (gdb_rl_operate_and_get_next): Make sure
3885 operate-and-get-next functions correctly even when the history
3886 list is completely filled.
3887
c1bab85b
AC
38882002-08-18 Andrew Cagney <ac131313@redhat.com>
3889
3890 * MAINTAINERS (Target Instruction Set Architectures): Rename
3891 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3892 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3893 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3894 already listed under Host/Native.
3895
3896 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3897 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3898 mips*-*-*.
3899
32089c7c
AC
39002002-08-17 Andrew Cagney <ac131313@redhat.com>
3901
3902 * config/ia64/ia64.mt: New file.
3903 * config/alpha/alpha.mt: New file.
3904 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3905 ia64-linux-gnu. Mention that ia64-elf is broken.
3906 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3907
b4671f85
MK
39082002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3909
3910 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3911 generic_func_frame_valid instead of func_frame_valid.
3912
c8edd8b4
JB
39132002-08-16 Joel Brobecker <brobecker@gnat.com>
3914
3915 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3916 procfs appears to be broken when debugging on multi-processor
3917 machines. So enable software single stepping in order to avoid
3918 using the procfs interface to do next/step operations, using
3919 internal breakpoints instead.
3920
3921 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3922 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3923 make this pc address equal to the value it would have if the
3924 system stepping capability was used. Also set a new flag used
3925 to ensure that we don't readjust the PC one more time later.
3926
3927 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3928 address by DECR_PC_AFTER_BREAK when software single step is
3929 in use for this architecture, as this has already been taken
3930 care of in handle_inferior_event().
3931
238617f6
JB
39322002-08-16 Joel Brobecker <brobecker@gnat.com>
3933
3934 * infrun.c (handle_inferior_event): Minor reformatting, to make
3935 a rather long condition expression easier to read.
3936
541a7aac
AC
39372002-08-16 Andrew Cagney <ac131313@redhat.com>
3938
3939 * Makefile.in (gdbtk.o): Move to end of file.
3940 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3941 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3942 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3943 (gdbtk-wrapper.o, gdbres.o): Ditto.
3944
f92d4a7b
AC
39452002-08-16 Andrew Cagney <ac131313@redhat.com>
3946
3947 * Makefile.in (copying.o): Separate out compile rule.
3948 (hpux-thread.o, procfs.o, signals.o): Ditto.
3949 (v850ice.o, z8k-tdep.o): Ditto.
3950 (tui-file.o): Move to TUI section.
3951 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3952 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3953
1cce71eb
JB
39542002-08-16 Joel Brobecker <brobecker@gnat.com>
3955
3956 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3957 skip_trampoline_code, for better namespace-proofing.
3958
3959 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3960
0851f23d
JB
39612002-08-16 Joel Brobecker <brobecker@gnat.com>
3962
3963 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3964
f8d40ec8
JB
39652002-08-16 Joel Brobecker <brobecker@gnat.com>
3966
3967 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3968 signal, check whether we hit a breakpoint before checking for a
3969 single step breakpoint. Otherwise, GDB fails to notice that a
3970 breakpoint has been hit when stepping onto a breakpoint.
3971
63d022e0
KS
39722002-08-16 Keith Seitz <keiths@redhat.com>
3973
3974 * gdb-events.sh (clear_gdb_event_hooks): New function.
3975 * gdb-events.c: Regenerate.
3976 * gdb-events.h: Regenerate.
3977
6e31adb3
AC
39782002-08-16 Andrew Cagney <ac131313@redhat.com>
3979
3980 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3981 not_a_sw_breakpoint.
3982 * breakpoint.h (bpstat_stop_status): Add parameter names.
3983
c8189ed1
GS
39842002-08-16 Grace Sainsbury <graces@redhat.com>
3985
3986 * remote.c (remote_insert_hw_breakpoint)
3987 (remote_remove_hw_breakpoint): Fix calculation of length field
3988 for Z-packet.
3989
d05285fa
MS
39902002-08-15 Michael Snyder <msnyder@redhat.com>
3991
466d7106
MS
3992 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3993 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3994 (supply_fpregset): Ditto.
3995
d05285fa
MS
3996 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3997 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3998 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3999 (TARGET_READ_SP): Delete.
bf1f5b4c 4000 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4001 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4002 Delete.
4003 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4004 from macros to functions.
bf1f5b4c 4005
d05285fa
MS
4006 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4007 (mips_register_convertible, mips_register_convert_to_virtual,
4008 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4009 (mips_read_sp): New function.
4010 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4011 (mips_do_registers_info): Make static.
4012 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4013 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4014 (mips_register_convert_from_type, mips_register_convert_to_type):
4015 New functions.
4016 (mips_gdbarch_init): Set up function_start_offset,
4017 register_virtual_size, pc_in_sigtramp.
d05285fa 4018
e76f1f2e
AC
40192002-08-15 Andrew Cagney <ac131313@redhat.com>
4020
4021 * infcmd.c (vector_info): New function.
4022 (_initialize_infcmd): Add command "info vector".
4023 (print_vector_info): New function.
4024
4025 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4026 * gdbarch.h, gdbarch.c: Regenerate.
4027
4782dc19
AC
40282002-08-15 Andrew Cagney <ac131313@redhat.com>
4029
4030 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4031 ``print_all''. Only print vector registers when ``print_all''.
4032
23e3a7ac
AC
40332002-08-15 Andrew Cagney <ac131313@redhat.com>
4034
8e186fd6
AC
4035 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4036 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4037
23e3a7ac
AC
4038 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4039 Add `args' parameter.
4040 * gdbarch.h, gdbarch.c: Regenerate.
4041
4042 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4043
4044 * infcmd.c (float_info): Call print_float_info.
4045 (print_float_info): New function. By default, print the
4046 floating-point registers.
4047
4048 * arch-utils.h (default_print_float_info): Delete declaration.
4049 * arch-utils.c (default_print_float_info): Delete function.
4050
e0ca2bb9
MK
40512002-08-16 Mark Kettenis <kettenis@gnu.org>
4052
3f733acc
MK
4053 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4054 out define.
4055
7d8d2918
MK
4056 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4057 FRAME.
4058
1c7cc583
MK
4059 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4060 * configure.host: Make i[3456]86-*-aix host obsolete.
4061 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4062 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4063 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4064 config/i386/xm-i386aix.h: Make files obsolete.
4065 * i386aix-nat.c: Make file obsolete.
4066 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4067 (i386aix-nat.o): Make target obsolete.
4068
e0ca2bb9
MK
4069 * config/i386/nm-gnu.h: Removed.
4070 * config/i386/nm-i386gnu.h: New file.
4071 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4072 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4073 Moved here from ...
4074 * config/i386/tm-i386gnu.h: ... here. Removed.
4075 * config/i386/xm-i386gnu.h: Removed.
4076 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4077 (NAT_FILE): Set to nm-i386gnu.h.
4078 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4079 * i386-tdep.c: New file.
4080 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4081 (i386gnu-tdep.o): Specify dependencies.
4082
16057ec7 40832002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4084
6b99ee2e
MK
4085 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4086 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4087 Adjust a few comments to reflect reality a bit closer.
4088 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4089 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4090 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4091 target_insert_watchpoint, target_remove_watchpoint):
4092 Move defines to ...
4093 * config/i386/nm-i386sco5.h: ... here.
4094 (kernel_u_size): Add prototype. Improve a few comments and add
4095 protection against multiple inclusion.
4096
d9a6f65c
MK
4097 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4098 out define.
4099
047eff6a
MK
4100 * uw-thread.c (SP_ARG0): Define if not already defined.
4101 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4102
dcdb1290
MK
4103 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4104
5d2d0b2a
MK
4105 * config/i386/tm-i386.h: Don't include "regcache.h".
4106
61113f8b
MK
4107 * i387-tdep.h (i387_print_float_info): New prototype.
4108 * i387-tdep.c (print_i387_value, print_i387_ext,
4109 print_i387_status_word, print_i387_control_word): Add `struct
4110 ui_file *' argument and use it for output.
4111 (i387_print_float_info): Renamed from i387_float_info. Add
4112 `struct gdbarch *' and `struct ui_file *' arguments and use the
4113 latter for output.
4114 * i386-tdep.c: Include "i387-tdep.h".
4115 (i386_gdbarch_init): Set print_float_info.
4116 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4117 (FLOAT_INFO): Remove define.
4118
46e0f506
MS
41192002-08-13 Michael Snyder <msnyder@redhat.com>
4120
4121 * mips-tdep.c (mips_push_arguments): Rename to
4122 mips_eabi_push_arguments, and tune for EABI.
4123 (MIPS_REGS_HAVE_HOME_P): Delete.
4124 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4125 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4126 Delete references to mips_regs_have_home_p.
4127
409268de
KS
41282002-08-14 Keith Seitz <keiths@redhat.com>
4129
4130 * Makefile.in (install-gdbtk): Create insight plugin directory.
4131 Install plugins.tcl file.
4132
ffc6a242
KS
41332002-08-14 Keith Seitz <keiths@redhat.com>
4134
4135 * configure.in: Move SUBDIRS to near top of the file so that
4136 --enable options may add things to it.
4137 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4138 * configure: Regenerate.
4139
ebafbe83
MS
41402002-08-13 Michael Snyder <msnyder@redhat.com>
4141
4142 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4143 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4144 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4145
32f6f25d
AC
41462002-08-13 Andrew Cagney <ac131313@redhat.com>
4147
4148 * vax-tdep.c (vax_get_saved_register): Delete function.
4149 (vax_gdbarch_init): Update.
4150 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4151 (ns32k_gdbarch_init): Update.
4152 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4153 (alpha_gdbarch_init): Update.
4154
53826de9
AC
41552002-08-13 Andrew Cagney <cagney@redhat.com>
4156
4157 * regcache.c (init_regcache_descr): Overallocate the
4158 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4159 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4160 nr_raw_registers.
4161 (set_register_cached): Add range checking assertions. Use
4162 current_regcache.
4163
16057ec7 41642002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4165
4166 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4167 numbers for MMX registers.
4168
7b4c2dce
AC
41692002-08-13 Andrew Cagney <cagney@redhat.com>
4170
4171 * i386-tdep.c (i386_gdbarch_init): Use
4172 generic_unwind_get_saved_register.
4173
1e03ad20
KB
41742002-08-13 Kevin Buettner <kevinb@redhat.com>
4175
4176 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4177 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4178 target vector.
4179 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4180 Delete. Add comment regarding this now-deleted target method.
4181
548bcbec
SC
41822002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4183
4184 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4185 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4186 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4187 real PC and the page number (if it's within the memory bank window).
4188 (m68hc11_pseudo_register_write): Likewise when saving.
4189 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4190 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4191 (m68hc11_register_raw_size): And use 32-bit for it.
4192 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4193 16K memory bank is used by the prog; also use the virtual pc.
4194
7df11f59
SC
41952002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4196
4197 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4198 (m68hc11_gdbarch_init): Install it in gdbarch.
4199 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4200 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4201 (MSYMBOL_SIZE): New for documentation.
4202 (insn_return_kind): Enum to specify how a function returns.
4203 (frame_extra_info): Cleanup and record the return mode.
4204 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4205 register in address computation.
4206 (m68hc11_get_return_insn): New to obtain the return instruction used
4207 by the function.
4208 (m68hc11_frame_init_saved_regs): Take into account the return
4209 instruction used by the function for far and interrupt functions.
4210 (m68hc11_init_extra_frame_info): Take into account page register.
4211 (m68hc11_frame_args_address): Adjust according to the return mode.
4212 (show_regs): Print page register only when it's used.
4213
5706502a
SC
42142002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4215
4216 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4217 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4218 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4219 registers.
4220 (m68hc11_register_raw_size): Likewise.
4221
28fc6740
AC
42222002-08-13 Andrew Cagney <cagney@redhat.com>
4223
4224 * i386-tdep.c (i386_register_name): Handle mmx registers.
4225 (mmx_regnum_p): New function.
4226 (i386_mmx_names): New array.
4227 (mmx_num_regs): New variable.
4228 (i386_pseudo_register_read): New function.
4229 (i386_pseudo_register_write): New function.
4230 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4231
4232 * regcache.c (regcache_raw_read_unsigned): New function.
4233 (regcache_raw_read_signed): New function.
4234 * regcache.h (regcache_raw_read_unsigned): Declare.
4235 (regcache_raw_read_signed): Declare.
4236
a378f419
AC
42372002-08-13 Andrew Cagney <cagney@redhat.com>
4238
4239 * regcache.c (regcache_raw_read_as_address): Delete function.
4240 (regcache_cooked_read_signed): New function.
4241 (regcache_cooked_read_unsigned): New function.
4242 * regcache.h (regcache_cooked_read_signed): Declare.
4243 (regcache_cooked_read_unsigned): Declare.
4244 (regcache_raw_read_as_address): Delete declaration.
4245
4246 * blockframe.c (generic_read_register_dummy): Use
4247 regcache_cooked_read_unsigned.
4248 * i386-tdep.c (i386_extract_struct_value_address): Use
4249 regcache_cooked_read_unsigned.
4250
81967506
SC
42512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4252
4253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4254 double sizes according to ELF ABI flags.
4255 (gdbarch_tdep): Record elf_flags.
4256
ffe1f3ee
SC
42572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4258
4259 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4260 (m6812_prolog): They can appear in 68HC12 function prologue.
4261 (m68hc11_frame_chain): Cleanup.
4262
98216c5d
AC
42632002-08-12 Andrew Cagney <cagney@redhat.com>
4264
4265 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4266 declarations.
4267 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4268 (i386_linux_register_raw_size): Delete function.
4269 (i386_linux_init_abi): Update.
4270 * i386-tdep.c (i386_register_raw_size): Delete function.
4271 (i386_register_byte): Delete function.
4272 (i386_gdbarch_init): Update.
4273 (i386_register_size): Delete array.
4274 (i386_register_offset): Delete array.
4275
4276 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4277 (REGISTER_RAW_SIZE): Delete macro.
4278 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4279 (REGISTER_BYTE): Delete macro.
4280
3b19021e
AS
42812002-08-11 Aidan Skinner <aidan@velvet.net>
4282
4283 * ada-lang.c (ada_lookup_partial_symbol)
4284 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4285 prototype names so that grep ^func works properly.
4286
4287 * ada-lang.c (ada_array_element_type)
4288 (ada_lookup_partial_symbol): Fix typos in parameter list.
4289
4290 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4291 Fix prototype names so that grep ^func works properly.
4292
b063e7a2
AC
42932002-08-10 Andrew Cagney <cagney@redhat.com>
4294 Elena Zannoni <ezannoni@redhat.com>
4295 Martin M. Hunt <hunt@redhat.com>
4296
4297 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4298 (build_builtin_type_vec128i): Set the vector bit.
4299 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4300 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4301 (build_builtin_type_vec64): New function.
4302 (build_builtin_type_vec64i): New function.
4303 (build_gdbtypes): Initialize builtin_type_vec64 and
4304 builtin_type_vec64i.
4305
a7e3c2ad
AC
43062002-08-09 Andrew Cagney <cagney@redhat.com>
4307
4308 * regcache.c (regcache_dump): Compare the register offset
4309 with REGISTER_BYTE.
4310 * arch-utils.c (generic_register_byte): New function.
4311 * arch-utils.h (generic_register_byte): Declare.
4312 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4313 * gdbarch.h, gdbarch.c: Regenerate.
4314
af030b9a
AC
43152002-08-09 Andrew Cagney <cagney@redhat.com>
4316
4317 * regcache.c: Include "gdbcmd.h"
4318 (_initialize_regcache): Add commands "maintenance print
4319 registers", "maintenance print raw-registers" and "maintenance
4320 print cooked-registers".
4321 (enum regcache_dump_what): Define.
4322 (dump_endian_bytes): New function.
4323 (regcache_dump): New function.
4324 (regcache_print): New function.
4325 (maintenance_print_registers): New function.
4326 (maintenance_print_raw_registers): New function.
4327 (maintenance_print_cooked_registers): New function.
4328 * Makefile.in (regcache.o): Update dependencies.
4329
cb3d25d1
MS
43302002-08-09 Michael Snyder <msnyder@redhat.com>
4331
4332 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4333 (mips_push_arguments): Correct some comments. Use paddr_nz
4334 for printing addresses in debug output. Replace static
4335 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4336 (mips_n32n64_push_arguments): New function, cloned from
4337 mips_push_arguments and tuned for the n32/n64 ABI.
4338 (mips_push_register): Buffer needs dynamic allocation.
4339 (mips_print_register): Ditto.
4340 (do_gp_register_row): Ditto.
4341 (mips_store_return_value): Ditto.
4342 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4343
2163ab9d
DH
43442002-08-09 Don Howard <dhoward@redhat.com>
4345
4346 * memattr.c (mem_info_command): Print special case of upper bound
4347 as max CORE_ADDR + 1.
4348
b78bcb18
MS
43492002-08-08 Michael Snyder <msnyder@redhat.com>
4350
4351 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4352 returns structs by ref if they're too big to fit in two registers.
4353
ffabd70d
KB
43542002-08-09 Kevin Buettner <kevinb@redhat.com>
4355
4356 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4357 saved regs value.
4358 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4359 mips_find_saved_regs().
4360 (mips_pop_frame): Likewise.
4361
fbcdb4a3
KB
43622002-08-09 Kevin Buettner <kevinb@redhat.com>
4363
4364 * blockframe.c (frame_saved_regs_register_unwind): Revise
4365 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4366 frames are in use.
4367
3c3bea1c
GS
43682002-08-09 Grace Sainsbury <graces@redhat.com>
4369
4370 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4371 T-packets; the 'a' is not taken as a register number.
4372 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4373 (remote_stopped_data_address): New functions; add to target
4374 vector.
4375 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4376 prototypes to match other implementations of this
4377 function. replace integer argument with pointer -- the length
4378 field in the Z-packet is the length of what is pointed to or 1 if
4379 pointer is null. Add to target vector.
4380 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4381 target vector.
4382
4383 From Mark Salter:
4384 * remote.c (remote_wait): Add support to extract optional
4385 watchpoint information from T-packet. Ignore unrecognized
4386 optional info in T-packet.
4387 (remote_async_wait): Ditto.
4388
5d1d95de
CV
43892002-08-09 Corinna Vinschen <vinschen@redhat.com>
4390
4391 * cli/cli-dump.c: Change fopen modes to use binary open modes
4392 as defined in include/fopen-bin.h throughout.
4393
c86b5b38
MS
43942002-08-08 Michael Snyder <msnyder@redhat.com>
4395
4396 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4397
b30590dc
KB
43982002-08-08 Kevin Buettner <kevinb@redhat.com>
4399
4400 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4401 assertion failure by returning early after a warning.
4402
498868ed
KB
44032002-08-08 Kevin Buettner <kevinb@redhat.com>
4404
4405 * mips-tdep.c (mips_find_saved_regs): Make static.
4406 (mips_frame_init_saved_regs): New function.
4407 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4408 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4409 (mips_find_saved_regs): Delete declaration.
4410
b2dd6311
GS
44112002-08-08 Grace Sainsbury <graces@redhat.com>
4412
3c3bea1c
GS
4413 * remote.c (remote_wait, remote_async_wait): Change
4414 thread_num from int to ULONGEST.
4415 (unpack_varlen_hex): Change result parameter from
4416 int * to ULONGEST *.
b2dd6311 4417
ea47855f
AC
44182002-08-08 Andrew Cagney <ac131313@redhat.com>
4419
4420 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4421 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4422 powerpc*-*-*.
4423 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4424
69db8bae
AC
44252002-08-08 Andrew Cagney <cagney@redhat.com>
4426
4427 * gcore.c (override_derive_stack_segment): Delete variable.
4428 (preempt_derive_stack_segment): Delete function.
4429 (derive_stack_segment): Delete function.
4430 (default_derive_stack_segment): Renamed to derive_stack_segment.
4431 (override_derive_heap_segment): Delete variable.
4432 (preempt_derive_heap_segment): Delete function.
4433 (derive_heap_segment): Delete function.
4434 (default_derive_heap_segment): Rename to derive_heap_segment.
4435
cb811fe7
MS
44362002-08-06 Michael Snyder <msnyder@redhat.com>
4437
4438 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4439 * mips-tdep.c (mips_EABI_use_struct_convention,
4440 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4441 New functions. (mips_use_struct_convention): Delete.
4442 (mips_gdbarch_init): set use_gdbarch_convention.
4443
8b389c40
MS
44442002-08-06 Michael Snyder <msnyder@redhat.com>
4445
4446 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4447 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4448 mips_o32_reg_struct_has_addr): New functions.
4449 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4450
5c27f28a
AC
44512002-08-07 Andrew Cagney <ac131313@redhat.com>
4452
4453 * regcache.c (pseudo_register): Delete function.
4454 (fetch_register): Delete function.
4455 (store_register): Delete function.
4456 (regcache_raw_read, legacy_read_register_gen): Use
4457 target_fetch_registers instead of fetch_register.
4458 (legacy_write_register_gen, regcache_raw_write): Use
4459 target_store_register instead of store_register.
4460 (write_register_bytes): Ditto.
4461
4462 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4463 (STORE_PSEUDO_REGISTER): Delete.
4464 * gdbarch.h, gdbarch.c: Regenerate.
4465
5b331675
CV
44662002-08-06 Corinna Vinschen <vinschen@redhat.com>
4467
4468 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4469 write dump file binary.
4470
6acdf5c7
MS
44712002-08-05 Michael Snyder <msnyder@redhat.com>
4472
4473 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4474 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4475 (mips_gdbarch_init): Set N32 target to be mips64.
4476
b2f01c35
KB
44772002-08-06 Kevin Buettner <kevinb@redhat.com>
4478
4479 * frame.c (find_saved_register): Break out of loop once saved
4480 register address is found. Don't mention sparc in loop comment
4481 anymore.
4482
63db5580
KB
44832002-08-06 Kevin Buettner <kevinb@redhat.com>
4484
4485 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4486 mips_default_saved_regsize to 8.
4487
5e34e75e
AC
44882002-08-06 Andrew Cagney <ac131313@redhat.com>
4489
4490 * gcore.c: Do not include <sys/procfs.h>.
4491 * Makefile.in (gcore.o): Update dependencies.
4492
eb4c54a2
AC
44932002-08-06 Andrew Cagney <cagney@redhat.com>
4494
4495 * configure.tgt: Make arc-*-* obsolete.
4496 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4497 * MAINTAINERS: Make arc-elf obsolete.
4498 * arc-tdep.c: Make file obsolete.
4499 * config/arc/arc.mt: Ditto.
4500 * config/arc/tm-arc.h: Ditto.
4501
ced15480
TR
45022002-08-05 Theodore A. Roth <troth@verinet.com>
4503
c1bab85b 4504 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4505
b4743822
AC
45062002-08-05 Andrew Cagney <ac131313@redhat.com>
4507
4508 * mcore-tdep.c (mcore_gdbarch_init): Use
4509 generic_unwind_get_saved_register instead of
4510 generic_get_saved_register.
4511 * v850-tdep.c (v850_gdbarch_init): Ditto.
4512 * frv-tdep.c (frv_gdbarch_init): Ditto.
4513 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4514 * s390-tdep.c (s390_gdbarch_init): Ditto.
4515 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4516 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4517 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4518
3956d554
JB
45192002-08-05 Joel Brobecker <brobecker@gnat.com>
4520
4521 * objfiles.h: Add missing #include "symfile.h"
4522
4523 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4524
8249c0d6
AC
45252002-08-04 Andrew Cagney <ac131313@redhat.com>
4526
4527 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4528 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4529 of FIELD_BITSIZE.
4530
b9d14705
DJ
45312002-08-04 Daniel Jacobowitz <drow@mvista.com>
4532
4533 * NEWS: Cleanup and nitpick.
4534
dd73b9bb
AC
45352002-08-03 Andrew Cagney <ac131313@redhat.com>
4536
4537 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4538
043a27f8
AC
45392002-08-03 Andrew Cagney <ac131313@redhat.com>
4540
4541 * Makefile.in (gdbtk-bp.o): Update dependencies.
4542 (gdbtk-register.o): Ditto.
4543 (gdbtk-varobj.o): Ditto.
4544
46ce284d
AC
45452002-08-03 Andrew Cagney <cagney@redhat.com>
4546
4547 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4548 m68hc11_fetch_pseudo_register.
4549 (m68hc11_pseudo_register_write): Replace
4550 m68hc11_store_pseudo_register.
4551 (m68hc11_gdbarch_init): Update.
4552
b66d6d2e
AC
4553Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4554
4555 * gdbarch.sh: Include "gdb_string.h".
4556 * gdbarch.c: Regenerate.
4557
4558 * regcache.c: Include "gdb_string.h".
4559 * ax-general.c: Ditto.
4560 * varobj.c: Ditto.
4561 * std-regs.c: Ditto.
4562 * fbsd-proc.c: Ditto.
4563 * thread.c: Ditto.
4564
4565 * Makefile.in (regcache.o): Update dependencies.
4566 (thread.o, gdbarch.o): Ditto.
4567 (ax-general.o, gdbarch.o): Ditto.
4568 (varobj.o, std-regs.o): Ditto.
4569 (fbsd-proc.o): Specify dependencies.
4570
29e1842b
AC
45712002-08-02 Andrew Cagney <cagney@redhat.com>
4572
4573 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4574 regnum.
4575 (regcache_cooked_write): Ditto.
4576
68365089
AC
45772002-08-02 Andrew Cagney <ac131313@redhat.com>
4578
4579 * regcache.c (regcache_cooked_read): New function.
4580 (regcache_cooked_write): New function.
4581 (read_register_gen): Rewrite using regcache_cooked_read.
4582 (write_register_gen): Rewrite using regcache_cooked_write.
4583
4584 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4585 Declare.
4586
d8124050
AC
45872002-08-02 Andrew Cagney <cagney@redhat.com>
4588
4589 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4590 Replace the architecture methods register_read and register_write.
4591 * gdbarch.h, gdbarch.c: Regenerate.
4592 * regcache.c (init_regcache_descr): Update.
4593 (read_register_gen): Update.
4594 (write_register_gen): Update.
4595 (supply_register): Update comment.
4596
4597 * sh-tdep.c (sh_gdbarch_init): Update.
4598 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4599 `regcache' and `gdbarch' parameters. Make `buffer' a void
4600 pointer. Update code.
4601 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4602 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4603 void pointer. Update code.
4604 (sh64_register_write): Delete.
4605 (sh4_register_read): Delete.
4606 (sh64_register_read): Delete.
4607 (sh4_register_write): Delete.
4608 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4609 void pointer, `to' parameter a void pointer.
4610 (sh_sh64_register_convert_to_raw): Ditto.
4611
a6425924
KB
46122002-08-01 Kevin Buettner <kevinb@redhat.com>
4613
4614 * mips-tdep.c (mips_register_virtual_type): Use architecture
4615 invariant return values.
4616
ff5922b5
AC
46172002-08-01 Andrew Cagney <cagney@redhat.com>
4618
4619 * linux-proc.c: Include "gdb_string.h".
4620 * Makefile.in (linux-proc.o): Update dependency list.
4621
32a6503c
KB
46222002-08-01 Kevin Buettner <kevinb@redhat.com>
4623
4624 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4625 comment.
4626
ccaa32c7
GS
46272002-08-01 Grace Sainsbury <graces@redhat.com>
4628
4629 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4630 to_insert_watchpoint, to_remove_watchpoint,
4631 to_stopped_by_watchpoint, to_stopped_data_address,
4632 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4633 target vecctor. Define their corresponding macros so they call
4634 them.
4635
4636 * target.c: Add default and debug versions of for
4637 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4638 to_insert_watchpoint, to_remove_watchpoint,
4639 to_stopped_by_watchpoint, to_stopped_data_address,
4640 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4641
78fde5f8
KB
46422002-08-01 Kevin Buettner <kevinb@redhat.com>
4643
4644 * mips-tdep.c (mips_register_virtual_type): New function.
4645 (mips_gdbarch_init): Register mips_register_virtual_type()
4646 with gdbarch machinery.
4647 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4648 this file instead of tm-bigmips.h.
4649 (MIPS_REGSIZE): Delete this macro.
4650 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4651 multiarch version in mips-tdep.c will be found.
4652
db034ac5
AC
46532002-08-01 Andrew Cagney <cagney@redhat.com>
4654
4655 * NEWS: Menion that CHILL has been made obsolete.
4656
4657 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4658 * stabsread.c (read_range_type): Ditto.
4659 * gdbtypes.h: Ditto.
4660 * language.c (binop_type_check): Ditto.
4661 (binop_result_type): Ditto.
4662 (integral_type): Ditto.
4663 (character_type): Ditto.
4664 (string_type): Ditto.
4665 (boolean_type): Ditto.
4666 (structured_type): Ditto.
4667 (lang_bool_type): Ditto.
4668 (binop_type_check): Ditto.
4669 * language.h (_LANG_chill): Ditto.
4670 * dwarfread.c (set_cu_language): Ditto.
4671 * dwarfread.c (CHILL_PRODUCER): Ditto.
4672 * dwarfread.c (handle_producer): Ditto.
4673 * expression.h (enum exp_opcode): Ditto.
4674 * eval.c: Ditto for comments.
4675 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4676 * expprint.c (print_subexp): Ditto.
4677 (print_subexp): Ditto.
4678 * valops.c (value_cast): Ditto.
4679 (search_struct_field): Ditto.
4680 * value.h (COERCE_VARYING_ARRAY): Ditto.
4681 * symfile.c (init_filename_language_table): Ditto.
4682 (add_psymbol_with_dem_name_to_list): Ditto.
4683 * valarith.c (value_binop): Ditto.
4684 (value_neg): Ditto.
4685 * valops.c (value_slice): Ditto.
4686 * symtab.h (union language_specific): Ditto.
4687 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4688 (SYMBOL_DEMANGLED_NAME): Ditto.
4689 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4690 * defs.h (enum language): Ditto.
4691 * symtab.c (got_symtab): Ditto.
4692 * utils.c (fprintf_symbol_filtered): Ditto.
4693
4694 * ch-typeprint.c: Make file obsolete.
4695 * ch-valprint.c: Make file obsolete.
4696 * ch-lang.h: Make file obsolete.
4697 * ch-exp.c: Make file obsolete.
4698 * ch-lang.c: Make file obsolete.
4699
4700 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4701 CHILL_LIB.
4702 (TARGET_FLAGS_TO_PASS): Ditto.
4703 (CHILLFLAGS): Obsolete.
4704 (CHILL): Obsolete.
4705 (CHILL_FOR_TARGET): Obsolete.
4706 (CHILL_LIB): Obsolete.
4707 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4708 ch-valprint.c.
4709 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4710 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4711 ch-lang.o.
4712 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4713 targets.
4714
8aaf0b47
JB
47152002-07-31 Joel Brobecker <brobecker@gnat.com>
4716
4717 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4718 This does not change anything at the moment, but will be helpful
4719 later when full Ada support is integrated.
4720
f3a7b3a5
KB
47212002-07-31 Kevin Buettner <kevinb@redhat.com>
4722
4723 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4724 help message.
4725
fb850278
KB
47262002-07-31 Kevin Buettner <kevinb@redhat.com>
4727
4728 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4729 and save it in a local variable. Use variable in later test.
4730
e3bddbfa
KB
47312002-07-31 Kevin Buettner <kevinb@redhat.com>
4732
4733 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4734 test. (Thanks to Daniel Jacobowitz.)
4735
28d169de
KB
47362002-07-31 Kevin Buettner <kevinb@redhat.com>
4737
4738 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4739 (mips_abi_strings): Add "n64".
4740 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4741
7fe7e44e
KB
47422002-07-31 Kevin Buettner <kevinb@redhat.com>
4743
4744 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4745 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4746
c6caf090
KB
47472002-07-31 Kevin Buettner <kevinb@redhat.com>
4748
4749 * utils.c (host_pointer_to_address, address_to_host_pointer):
4750 Use gdb_assert() instead of explicit call to internal_error().
4751
c41669e0
KB
47522002-07-30 Kevin Buettner <kevinb@redhat.com>
4753
4754 * Makefile.in (rs6000-nat.o): Update dependencies.
4755
4756 From Nicholas Duffek:
4757 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4758 (aix-thread.o): New rule.
4759 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4760 * config/powerpc/aix432.mh: New file.
4761
2fda4977
DJ
47622002-07-30 Daniel Jacobowitz <drow@mvista.com>
4763
4764 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4765 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4766 (fetch_core_registers, ppc_linux_supply_gregset)
4767 (ppc_linux_supply_fpregset): New functions.
4768 (ppc_linux_regset_core_fns): New.
4769 (_initialize_ppc_linux_tdep): Call add_core_fns.
4770 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4771 and ppc_linux_supply_gregset.
4772 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4773 (supply_fpregset): Call ppc_linux_supply_fpregset.
4774 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4775 corelow.o.
4776 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4777
729051e6
DJ
47782002-07-30 Daniel Jacobowitz <drow@mvista.com>
4779
4780 * symtab.c (lookup_symbol): Demangle before lowercasing.
4781
5f8a3188
AC
47822002-07-30 Andrew Cagney <ac131313@redhat.com>
4783
4784 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4785 declaration.
4786 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4787 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4788 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4789 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4790 "gdb_string.h".
4791 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4792 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4793 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4794 (avr-tdep.o, mon960-rom.o): Ditto.
4795 (aout_stabs_gnu_h): Define.
4796 (symtab_h): Remove $(gdb_obstack_h).
4797
67f07146
JB
47982002-07-30 Jim Blandy <jimb@redhat.com>
4799
4800 Patch from David Carlton <carlton@math.stanford.edu>:
4801 * gdbinit.in: Move the `dir' commands that add GDB's own source
4802 directory to the search path to the end, so that the `gdb' source
4803 directory will be searched first.
4804
04ea0df1
AC
48052002-07-29 Andrew Cagney <ac131313@redhat.com>
4806
4807 * gdb_obstack.h: New file.
4808 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4809 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4810 * objfiles.h: Include "gdb_obstack.h".
4811 * Makefile.in (gdb_obstack_h): Define.
4812 (symtab_h): Add $(gdb_obstack_h).
4813 (objfiles_h): Add $(gdb_obstack_h).
4814
4815 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4816 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4817 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4818 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4819 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4820 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4821 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4822 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4823
4824 * Makefile.in (bcache.o): Update dependencies.
4825 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4826 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4827 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4828 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4829 (stabsread.o, symfile.o, symmisc.o): Ditto.
4830 (symtab.o, typeprint.o, macroexp.o): Ditto.
4831 (macrotab.o, mdebugread.o): Ditto.
4832 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4833 (coff_ecoff_h, aout_aout64_h): Define.
4834 (aout_stabs_gnu_h, libaout_h): Define.
4835
d138e37a
AC
48362002-07-29 Andrew Cagney <cagney@redhat.com>
4837
4838 * regcache.c (struct regcache_descr): Rename nr_registers to
4839 nr_cooked_registers. Revise comments describing the structure
4840 member fields.
4841 (init_regcache_descr): Update.
4842 (init_legacy_regcache_descr): Update.
4843 (read_register_gen, write_register_gen): When a cooked register in
4844 the raw register range, directly access the value from the raw
4845 register cache.
4846
460e6ec3
AC
48472002-07-29 Andrew Cagney <ac131313@redhat.com>
4848
4849 * z8k-tdep.c: Do not include "obstack.h".
4850 * h8300-tdep.c, h8500-tdep.c: Ditto.
4851 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4852 * valprint.c, v850-tdep.c: Ditto.
4853 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4854 * mn10200-tdep.c: Ditto.
4855
4856 * Makefile.in (z8k-tdep.o): Update dependencies.
4857 (m68hc11-tdep.o, valprint.o): Ditto.
4858 (v850-tdep.o, d10v-tdep.o): Ditto.
4859 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4860 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4861 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4862 (sh_opc_h, gdb_sim_sh_h): Define.
4863 (elf_sh_h, elf_bfd_h): Define.
4864 (opcode_m68hc11_h): Define.
4865 (OPCODES_SRC, OPCODES_DIR): define.
4866 (OPCODES): Use $(OPCODES_DIR).
4867 (gdb_sim_d10v_h): Rename sim_d10v_h.
4868 (gdb_sim_arm_h): Rename sim_arm_h.
4869
790c9cf0
KB
48702002-07-26 Kevin Buettner <kevinb@redhat.com>
4871
4872 * utils.c (host_pointer_to_address, address_to_host_pointer):
4873 Change internal_error() message to indicate function responsible
4874 for the error.
4875
9647fa49
KB
48762002-07-26 Kevin Buettner <kevinb@redhat.com>
4877
4878 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4879 calls to local_hex_string_custom().
4880
dabbe2c0
KB
48812002-07-26 Kevin Buettner <kevinb@redhat.com>
4882
4883 * irix5-nat.c: Move IRIX shared library support from here...
4884 * solib-irix.c: ...to here. Revised substantially to work with
4885 generic solib framework.
4886
b96d0a4e
KB
4887 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4888 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4889 * mips-irix-tdep.c: New file.
4890
313fb2f6
KB
4891 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4892 (mips-irix-tdep.o, solib-irix.o): New rules.
4893 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4894 solib-irix.o.
4895 * config/mips/irix6.mt (TDEPFILES): Likewise.
4896 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4897
ab2eaf26
KB
48982002-07-26 Kevin Buettner <kevinb@redhat.com>
4899
177e4768 4900 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4901 disabled (via ``#if 0'') includes.
4902
7244546a
KB
49032002-07-26 Kevin Buettner <kevinb@redhat.com>
4904
4905 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4906 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4907 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4908 Add support for the fpscr register.
4909 * rs6000-nat.c (regmap, fetch_inferior_registers)
4910 (store_inferior_registers, fetch_core_registers): Likewise.
4911
dd7be90a
KB
49122002-07-26 Kevin Buettner <kevinb@redhat.com>
4913
4914 * rs6000-nat.c (language.h): Include.
4915 (special_regs): Delete this array.
4916 (regmap): New function.
4917 (fetch_register, store_register): Use regmap() to map gdb
4918 register numbers to ptrace register numbers. Also, use
4919 outputs from regmap() to make decisions regarding type of
4920 ptrace() call to make. In particular, don't compare against
4921 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4922 (fetch_inferior_registers, store_inferior_registers): Where
4923 possible, obtain register numbers from tdep struct. Don't
4924 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4925 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4926 (LAST_UISA_SP_REGNUM): Delete.
4927
11bf77db
KB
49282002-07-25 Kevin Buettner <kevinb@redhat.com>
4929
4930 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4931 (fetch_registers, store_register, fetch_core_registers): Don't
4932 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4933 regcache_collect() as appropriate.
4934 (find_toc_address): Format hex address with local_hex_string().
4935
06afebeb
AC
49362002-07-25 Andrew Cagney <ac131313@redhat.com>
4937
4938 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4939 bfd/elf32-frv.c.
4940
8c554d79
TT
49412002-07-24 Tom Tromey <tromey@redhat.com>
4942
4943 * jv-exp.y: Marked all strings with _().
4944 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4945 internal_error.
4946 (MethodInvocation, CastExpression, parse_number, yyerror,
4947 java_type_from_name, push_expression_name, yylex): Typo fixes.
4948
e4c242d9
DJ
49492002-07-24 Daniel Jacobowitz <drow@mvista.com>
4950
4951 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4952 (tee_file_flush, tee_file_write, tee_file_fputs)
4953 (tee_file_isatty): New.
4954 * ui-file.h (tee_file_new): Add prototype.
4955
ebf56fd3
AS
49562002-07-24 Aidan Skinner <aidan@velvet.net>
4957
4958 * ada-lang.c: Change k&r style function definitions to prototyped
4959 form.
4960 * ada-typeprint.c: Change k&r style function definitions to prototyped
4961 form.
4962 * ada-valprint.c: Change k&r style function definitions to prototyped
4963 form.
4964
7fb623f7
AC
49652002-07-24 Andrew Cagney <cagney@redhat.com>
4966
4967 * README: Remove reference to remote-bug.
4968 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4969 remote-bug.c.
4970 (m88k-nat.o): Delete rule.
4971 (m88k-tdep.o): Delete rule.
4972 (remote-bug.o): Delete rule.
4973 * MAINTAINERS: Mark as obsolete.
4974 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4975 * m88k-tdep.c: Make file obsolete.
4976 * config/m88k/m88k.mh: Ditto.
4977 * config/m88k/delta88v4.mh: Ditto.
4978 * config/m88k/delta88v4.mt: Ditto.
4979 * config/m88k/delta88.mt: Ditto.
4980 * config/m88k/delta88.mh: Ditto.
4981 * remote-bug.c: Ditto.
4982 * config/m88k/tm-delta88.h: Ditto.
4983 * config/m88k/nm-delta88v4.h: Ditto.
4984 * config/m88k/xm-delta88.h: Ditto.
4985 * config/m88k/xm-dgux.h: Ditto.
4986 * config/m88k/tm-m88k.h: Ditto.
4987 * config/m88k/nm-m88k.h: Ditto.
4988 * config/m88k/tm-delta88v4.h: Ditto.
4989 * m88k-nat.c: Ditto.
4990 * cxux-nat.c: Ditto.
4991 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4992 and m88*-*-* obsolete.
4993 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4994 m88*-*-* obsolete.
4995
37611a2b
AC
49962002-07-24 Andrew Cagney <cagney@redhat.com>
4997
4998 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4999 constant. Same for local pointer variables.
5000 (extract_signed_integer): Ditto.
5001 * defs.h (extract_unsigned_integer): Update.
5002 (extract_signed_integer): Update.
5003
1aaa5f99
AC
50042002-07-24 Andrew Cagney <cagney@redhat.com>
5005
5006 * regcache.c (regcache_raw_write): Change buf parameter to a
5007 constant void pointer.
5008 (regcache_raw_read): Change buf parameter to a void pointer.
5009 (legacy_write_register_gen): Change myaddr parameter a constant
5010 void pointer.
5011 (supply_register): Change val parameter to a const void pointer.
5012 * regcache.h (regcache_raw_write): Update declaration.
5013 (regcache_raw_read): Update declaration.
5014 (supply_register): Update declaration.
5015
b4f5539f
TT
50162002-07-24 Tom Tromey <tromey@redhat.com>
5017
5018 * defs.h (gdb_readline_wrapper): Declare.
5019 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5020 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5021 * top.c (gdb_readline_wrapper): New function.
5022 (command_line_input): Use it.
5023
0818c12a
AC
50242002-07-24 Andrew Cagney <cagney@redhat.com>
5025
5026 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5027 regcache_read and regcache_write.
5028 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5029 * regcache.c: Update.
5030 * sh-tdep.c (sh64_push_arguments): Update comment.
5031 (sh_pseudo_register_read): Update.
5032 (sh_pseudo_register_write): Update.
5033 (sh4_register_read): Update.
5034 (sh4_register_write): Update.
5035 (sh64_pseudo_register_read): Update.
5036 (sh64_pseudo_register_write): Update.
5037 (sh64_register_read): Update.
5038 (sh64_register_write): Update.
5039 * i386-tdep.c (i386_extract_return_value): Update.
5040 (i386_extract_struct_value_address): Update.
5041 (i386_extract_return_value): Update.
5042 * blockframe.c (generic_read_register_dummy): Update.
5043 (generic_call_dummy_register_unwind): Update
5044 * infrun.c (write_inferior_status_register): Update.
5045
f7321c06
JB
50462002-07-23 Jim Blandy <jimb@redhat.com>
5047
5048 * parser-defs.h (expression_context_pc): Make this extern.
5049 (Thanks to Michael Snyder.)
5050
2037aebb
AC
50512002-07-23 Andrew Cagney <ac131313@redhat.com>
5052
5053 GDB 5.2.1 released from 5.2 branch.
5054 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5055 * README: Update to mention 5.2.1.
5056
66504d44
MS
50572002-07-23 Mark Salter <msalter@redhat.com>
5058
5059 * remote.c (remote_read_bytes): Fix check for error.
5060
27bae383
KB
50612002-07-22 Kevin Buettner <kevinb@redhat.com>
5062
5063 * aix-thread.c (language.h): Include.
5064 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5065 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5066 Print newlines at end of debug messages.
5067 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5068 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5069
50702002-07-22 Kevin Buettner <kevinb@redhat.com>
5071
5072 * aix-thread.c (ppc-tdep.h): Include.
5073 (special_register_p): New function.
5074 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5075 (store_regs_user_thread): Use register number information from
5076 gdbarch_tdep struct instead of hardcoded offsets relative to
5077 FIRST_UISA_SP_REGNUM.
5078 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5079 special_register_p() instead of using FPLAST_REGNUM and
5080 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5081 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5082 will be MQ's register number.
5083
50842002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5085
5086 * aix-thread.c (ops): Rename to aix_thread_ops.
5087 (base_ops): Rename to base_target.
5088 (ops_attach): Rename to aix_thread_attach.
5089 (ops_detach): Rename to aix_thread_detach.
5090 (ops_resume): Rename to aix_thread_detach.
5091 (ops_wait): Rename to aix_thread_wait.
5092 (ops_kill): Rename to aix_thread_kill.
5093 (init_ops): Rename to init_aix_thread_ops.
5094 (ops_fetch_register): Rename to aix_thread_fetch_register.
5095 (ops_store_register): Rename to aix_thread_store_register.
5096 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5097 (ops_thread_alive): Rename to aix_thread_thread_alive.
5098 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5099 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5100 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5101 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5102 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5103 (store_regs_lib): Rename to store_regs_user_thread.
5104 (store_regs_kern): Rename to store_regs_kernel_thread.
5105
27bae383 51062002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5107
5108 * aix-thread.c (ops_prepare_to_store): Eliminate.
5109 (init_ops): Don't initialize ops.prepare_to_store.
5110 (store_regs_kern): Pre-fetch register buffers from child,
5111 because some registers may not be in the cache. Copy
5112 regs from register cache only if they are cached.
5113 (store_regs_lib): Copy regs from register cache only
5114 if they are cached.
5115 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5116 fill_gprs64): Ditto.
5117
61c5da0b
KB
51182002-07-22 Kevin Buettner <kevinb@redhat.com>
5119
5120 * aix-thread.c (gdb_assert.h): Include.
5121 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5122 register sizes (from register cache) match size of buffer holding
5123 register data.
5124 (fill_sprs32): Change parameter types to match those in the ptrace()
5125 buffer.
5126 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5127 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5128
51292002-07-22 Michael Snyder <msnyder@redhat.com>
5130
5131 * aix-thread.c (supply_sprs64): Cosmetic change.
5132 (supply_sprs32): Cosmetic change.
5133 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5134 (fill_sprs64): Use regcache_collect instead of read_register.
5135 (store_regs_lib): Use regcache_collect instead of
5136 read_register. Use fill_sprs32 instead of fill_sprs64,
5137 if debugging a 32-bit architecture.
5138 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5139 out of the register cache, instead of passing a pointer into
5140 the register cache directly to ptrace. Use regcache_collect
5141 insteaad of read_register.
5142 (ops_prepare_to_store): Use target_read_registers instead
5143 of read_register_bytes.
5144
36479eb1
AS
51452002-07-20 Aidan Skinner <aidan@velvet.net>
5146
5147 * MAINTAINERS: Add self under write after approval.
5148
80ae6ee2
AS
51492002-07-20 Aidan Skinner <aidan@velvet.net>
5150
5151 * ada-tasks.c: Change k&r style function definitions to prototyped
5152 form.
5153
8a8ab2b9
AC
51542002-07-19 Andrew Cagney <ac131313@redhat.com>
5155
5156 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5157 * x86-64-tdep.c: Include "objfiles.h".
5158 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5159 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5160
fb16b900
ML
51612002-07-17 Michal Ludvig <michal@suse.cz>
5162
5163 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5164 (update_context): Initialise cfa variable.
5165
0fe7bf7b
MS
51662002-07-17 Michael Snyder <msnyder@redhat.com>
5167
5168 * aix-thread.c: Shorten some long lines.
5169 Bring comments into line with code spec.
5170
488f131b
JB
51712002-07-18 Joel Brobecker <brobecker@gnat.com>
5172
5173 * infrun.c: Re-indent using gdb_indent.sh.
5174
46c415d2
JB
51752002-07-18 Joel Brobecker <brobecker@gnat.com>
5176
5177 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5178 Leave the indentation temporarily untouched, to minimize the diffs.
5179
cdecafbe
EZ
51802002-07-18 Elena Zannoni <ezannoni@redhat.com>
5181
5182 * stabsread.c: Make os9k sections of the code obsolete,
5183 for real this time.
5184 * stabsread.h: Make os9k sections of the code obsolete.
5185
7b6aa020
ML
51862002-07-18 Michal Ludvig <mludvig@suse.cz>
5187
09ec9b38
ML
5188 * linux-low.c (regsets_store_inferior_registers): Add free()
5189 at the end of a loop to prevent memory leak.
5190 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5191 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5192 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5193 line a comment.
4894ac5d 5194 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5195
233282cd
JB
51962002-07-17 Jim Blandy <jimb@redhat.com>
5197
5198 * macrocmd.c (info_macro_command): Remove newline from error
5199 message.
5200
7b6aa020 52012002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5202
5203 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5204 (sh_gdbarch_init): Use it for sh-dsp.
5205
f7ef9339
KB
52062002-07-16 Kevin Buettner <kevinb@redhat.com>
5207
5208 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5209 64-bit DWARF2 format.
5210
8dd72958
JB
52112002-07-16 Joel Brobecker <brobecker@gnat.com>
5212
5213 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5214 <sys/proc.h> when not available.
5215
a99a9e1b
AC
52162002-07-16 Andrew Cagney <ac131313@redhat.com>
5217
5218 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5219 * stabsread.c: Make os9k sections of the code obsolete.
5220 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5221 * config/i386/i386os9k.mt: Make file obsolete.
5222 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5223 (COMMON_OBS): Remove os9kread.o
5224 (SFILES): Remove os9kread.c.
5225 (os9kread.o, remote-os9k.o): Make target obsolete.
5226 * remote-os9k.c: Make file obsolete.
5227 * os9kread.c: Make file obsolete.
5228 * Makefile.in
5229
7a3085c1
AC
52302002-07-16 Andrew Cagney <ac131313@redhat.com>
5231
5232 * NEWS: Mention that the FR30 has been made obsolete.
5233 * fr30-tdep.c: Make file obsolete.
5234 * config/fr30/tm-fr30.h: Ditto.
5235 * config/fr30/fr30.mt: Ditto.
5236 * configure.tgt: Make fr30-*-elf obsolete.
5237 * MAINTAINERS: Make fr30-elf obsolete.
5238
28a93f5a
PM
52392002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5240
5241 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5242 found is not inside a section.
5243
be006b8b
KB
52442002-07-15 Kevin Buettner <kevinb@redhat.com>
5245
5246 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5247 strerror().
5248 (pdc_realloc): Use xrealloc() instead of realloc().
5249
14fa3751
KB
52502002-07-15 Kevin Buettner <kevinb@redhat.com>
5251
5252 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5253 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5254 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5255 macros.
5256
42cc437f
KB
52572002-07-15 Kevin Buettner <kevinb@redhat.com>
5258
5259 * aix-thread.c (ptrace_check): Eliminate goto.
5260 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5261 problem.
5262
8e2c28d4
KB
52632002-07-15 Kevin Buettner <kevinb@redhat.com>
5264
5265 * aix-thread.c (gdbcmd.h): Include.
5266 (DEBUG, DBG, DBG2, dbg): Eliminate.
5267 (debug_aix_thread): New static global.
5268 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5269 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5270 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5271 invocations to DBG and DBG2 macros to test against
5272 ``debug_aix_thread'' and call fprintf_unfiltered().
5273 (_initialize_aix_thread): Add new command "set debug aix-thread".
5274
30413464
AC
52752002-07-15 Andrew Cagney <ac131313@redhat.com>
5276
5277 From Gerhard Tonn <TON@de.ibm.com>:
5278 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5279 instead of supply_register.
5280
7c43edc1
AC
52812002-07-15 Andrew Cagney <ac131313@redhat.com>
5282
5283 * dwarf2cfi.c: Include "gdb_assert.h".
5284 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5285 non-NULL.
5286 (update_context): Do not use __func__. Add missing ``break''.
5287 (update_context): Do not use __func__.
5288
9364a0ef
EZ
52892002-07-15 Elena Zannoni <ezannoni@redhat.com>
5290
5291 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5292 and its setting. Set gdbarch instruction printing functions
5293 directly. For non-rs6000 case use new function
5294 gdb_print_insn_powerpc.
5295 (gdb_print_insn_powerpc): New function.
5296
3fbeef0b
AC
52972002-07-13 Andrew Cagney <ac131313@redhat.com>
5298
92eb23c5 5299 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5300 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5301 * configure.tgt: Mark d30v-*-* as obsolete.
5302 * d30v-tdep.c: Mark file as obsolete.
5303 * config/d30v/d30v.mt: Ditto.
5304 * config/d30v/tm-d30v.h: Ditto.
5305
aacb1f0a
AS
53062002-07-13 Aidan Skinner <aidan@velvet.net>
5307
5308 * ada-tasks.c (add_task_entry): replace calls to
5309 malloc() with xmalloc
5310 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5311
5312 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5313 ada_finish_decode_line_1, all_sals_for_line
5314 ada_breakpoint_rewrite): replace calls to free() with xfree()
5315
c11d79f2
KB
53162002-07-12 Kevin Buettner <kevinb@redhat.com>
5317
5318 From Nicholas Duffek (with minor changes by Martin Hunt,
5319 Louis Hamilton, and Kevin Buettner):
5320 * aix-thread.c: New file.
5321
8e19ed76
PS
53222002-07-12 Petr Sorfa <petrs@caldera.com>
5323
5324 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5325 complaint for invalid attribute class or form.
5326 (read_func_scope): DW_AT_frame_base
5327 better handling of DW_AT_block*.
5328 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5329 better handling of DW_AT_block*.
5330 (read_common_block): DW_AT_location
5331 better handling of DW_AT_block*.
5332 (read_partial_die): DW_AT_location better handling
5333 of DW_AT_block*.
5334 (new_symbol): DW_AT_external better handling of
5335 DW_AT_block*. Proper initialization of variable
5336 "addr".
5337 (attr_form_is_block): New function that returns true
5338 if the attribute's form is of DW_FORM_block*.
5339
295401f7
DJ
53402002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5341
5342 * valops.c (find_method_list): Remove comment about
5343 removed STATIC_MEMFUNCP argument.
5344 (value_find_oload_method_list): Likewise.
5345
e42dc924
KB
53462002-07-12 Kevin Buettner <kevinb@redhat.com>
5347
5348 From Nicholas Duffek:
5349 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5350 target_new_objfile_hook.
5351
6904b546
KB
53522002-07-12 Kevin Buettner <kevinb@redhat.com>
5353
5354 From Nicholas Duffek:
5355 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5356 csect.
5357
53fe9346
AC
53582002-07-12 Andrew Cagney <cagney@redhat.com>
5359
5360 * MAINTAINERS: Mention --enable-sim-build-warnings.
5361 (m68hc11-elf): Disable sim build warnings.
5362 (m32r-elf): Mark as broken obsolete candidate.
5363 (x86_64-linux-gnu): Mark as buildable with -Werror.
5364 (arm-elf): Change -w to ``,'' which enables warnings but not
5365 -Werror.
5366
af5f3db6
AC
53672002-07-12 Andrew Cagney <ac131313@redhat.com>
5368
5369 * bcache.h: Update copyright.
5370 (struct bstring, struct bcache): Move definition to "bcache.c".
5371 Replaced by opaque declaration.
5372 (bcache_xfree): Replace free_bcache.
5373 (bcache_xmalloc, bcache_memory_used): Declare.
5374
5375 * bcache.c: Update copyright.
5376 (struct bstring, struct bcache): Moved to here from "bcache.h".
5377 Update comments.
5378 (bcache_xmalloc, bcache_memory_used): New functions.
5379 (bcache_xfree): Replace function free_bcache.
5380
5381 * Makefile.in (objfiles.o): Add $(bcache_h).
5382 (objfiles_h): Remove $(bcache_h).
5383 (symfile.o): Add $(bcache_h).
5384
5385 * symmisc.c: Update copyright.
5386 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5387 (print_objfile_statistics): Use bcache_memory_used.
5388
5389 * symfile.c: Include "bcache.h".
5390 (reread_symbols): Use bcache_xfree.
5391 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5392 (add_psymbol_to_list): Pass psymbol_cache by value.
5393 (add_psymbol_with_dem_name_to_list): Ditto.
5394
5395 * objfiles.h: Update copyright.
5396 (struct bcache): Declare opaque. Do not include "bcache.h".
5397 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5398 bcache'' pointers.
5399 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5400
5401 * objfiles.c: Include "bcache.h". Update copyright.
5402 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5403 macro_cache.
5404 (free_objfile): Use bcache_xfree.
5405
444199e7
GS
54062002-07-11 Grace Sainsbury <graces@redhat.com>
5407
5408 * monitor.c (monitor_fetch_register): Make name a constant.
5409 (monitor_store_register): Same.
5410
261397f8
DJ
54112002-07-11 Daniel Jacobowitz <drow@mvista.com>
5412
5413 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5414 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5415 (finish_block) For non-function blocks, hash the symbol table. For
5416 function blocks, mark the symbol table as unhashed.
5417 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5418 (msymbol_hash_iw): Likewise.
5419 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5420 value.
5421 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5422 (lookup_minimal_symbol): Likewise for both.
5423 * symtab.h (struct block): Add `hashtable' flag. Comment the
5424 hashtable.
5425 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5426 (ALL_BLOCK_SYMBOLS): Update.
5427 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5428 (struct symbol): Add `hash_next' pointer.
5429 * symtab.c (lookup_block_symbol): Search using the hash table when
5430 possible.
5431 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5432 (search_symbols, find_addr_symbol): Likewise.
5433
5434 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5435 (read_dst_symtab): Likewise.
5436 * jv-lang.c (get_java_class_symtab): Likewise.
5437 * mdebugread.c: Include "gdb_assert.h".
5438 (shrink_block): Assert that the block being modified is not hashed.
5439 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5440 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5441 symbols.
5442 (dump_symtab): Recognize hashed blocks.
5443 * printcmd.c (print_frame_args): Assert that function blocks do not
5444 have hashed symbol tables.
5445 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5446 (fill_in_ada_prototype, debug_print_block): Likewise.
5447 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5448
6f0eaa01
CV
54492002-07-11 Corinna Vinschen <vinschen@redhat.com>
5450
5451 * stack.c (print_frame): Use result of frame_address_in_block()
5452 instead of fi->pc when evaluating symbols.
5453 (backtrace_command_1): Ditto.
5454
a208b0cb
AC
54552002-07-11 Andrew Cagney <cagney@redhat.com>
5456
5457 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5458 Make static.
5459
5460 * arm-tdep.c (arm_register_name): Make return type constant.
5461
a6b6b089
AC
54622002-07-10 Andrew Cagney <ac131313@redhat.com>
5463
5ae5f592
AC
5464 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5465 prototype.
5466 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5467 * s390-tdep.c (s390_fp_regnum): Ditto.
5468 (s390_read_fp): Ditto.
5469 (s390_pop_frame): Ditto.
5470 (_initialize_s390_tdep): Ditto.
5471 * remote.c (get_remote_state): Ditto.
5472 * procfs.c (mappingflags): Ditto.
5473 * memattr.c (_initialize_mem): Ditto.
5474 * mcore-tdep.c (mcore_pop_frame): Ditto.
5475 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5476 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5477 * language.c (set_case_str): Ditto.
5478 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5479 * frv-tdep.c (new_variant): Ditto.
5480 (frv_stopped_data_address): Ditto.
5481 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5482 (context_alloc): Ditto.
5483 (frame_state_alloc): Ditto.
5484 (unwind_tmp_obstack_init): Ditto.
5485 (unwind_tmp_obstack_free): Ditto.
5486 (cfi_read_fp): Ditto.
5487 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5488 (cris_pop_frame): Ditto.
5489 * c-lang.c (scanning_macro_expansion): Ditto.
5490 (finished_macro_expansion): Ditto.
5491 (c_preprocess_and_parse): Ditto.
5492 * gdbarch.sh: Ditto.
5493 * gdbarch.h, gdbarch.c: Regenerate.
5494 * config/mn10200/tm-mn10200.h: Adjust indentation.
5495 * target.c: Adjust indentation.
5496 * symtab.h: Adjust indentation.
5497 * stabsread.h: Adjust indentation.
5498 * remote-es.c: Adjust indentation.
5499 * os9kread.c: Adjust indentation.
5500
55012002-07-10 Andrew Cagney <ac131313@redhat.com>
5502
a6b6b089
AC
5503 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5504 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5505
a1789893
GS
55062002-07-10 Grace Sainsbury <graces@redhat.com>
5507
5508 * NEWS: Mention m68k, mcore multi-arching.
5509 * MAINTAINERS: Change status of m68k, mcore to reflect
5510 multi-arching.
5511
02f0d45d
DJ
55122002-07-10 Daniel Jacobowitz <drow@mvista.com>
5513
5514 * valops.c (find_overload_match): Free oload_syms.
5515
f15f768e
JB
55162002-07-09 Joel Brobecker <brobecker@gnat.com>
5517
5518 Define HAVE_SYS_PROC_H if sys/proc.h exists
5519 * configure.in: Add check for sys/proc.h
5520 * config.in: Regenerate.
5521 * configure: Regenerate.
5522
902a7139
GS
55232002-07-09 Grace Sainsbury <graces@redhat.com>
5524
5525 * config/m68k/tm-m68k.h: Remove macros wrapped in
5526 #if !GDB_MULTI_ARCH.
5527
a534e424
AC
55282002-07-08 Andrew Cagney <ac131313@redhat.com>
5529
5530 * config.in, configure: Regenerate.
5531
9b94f7bf
MK
55322002-07-08 Mark Kettenis <kettenis@gnu.org>
5533
5534 * dwarf2cfi.c: Include "gcore.h".
5535 (execute_stack_op): Fix implementation of the
5536 DW_OP_deref and DW_OP_deref_size operators by letting do their
5537 lookup in the target.
5538
1d34db41
MK
55392002-07-07 Mark Kettenis <kettenis@gnu.org>
5540
5541 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5542 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5543 tdep->sc_sp_offset.
5544
79d5b63a
DJ
55452002-07-05 Daniel Jacobowitz <drow@mvista.com>
5546
5547 Fix PR gdb/595, gdb/602
5548 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5549 Don't call value_cast, just read the vtable pointer; update comments
5550 to match.
5551
3bb912e8
GS
55522002-07-05 Grace Sainsbury <graces@redhat.com>
5553
5554 * config/mcore/tm-mcore.h: Remove file.
5555 * config/mcore/mcore.mt: Remove definition of TM_FILE
5556 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5557
ca39387d
MK
55582002-07-05 Mark Kettenis <kettenis@gnu.org>
5559
5560 * i386bsd-tdep.c: Include "gdb_string.h".
5561
efdc1108
GS
55622002-07-04 Grace Sainsbury <graces@redhat.com>
5563
5564 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5565 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5566 mcore-tdep.
5567 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5568 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5569 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5570 (RETVAL_REGNUM): Move macros from tm-mcore.h
5571 (mcore_reg_struct_has_addr): New function.
5572 (mcore_gdbarch_init): Added initializations for the macros removed
5573 from tm-mcore.h.
5574
bb21884d
MK
55752002-07-04 Mark Kettenis <kettenis@gnu.org>
5576
5577 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5578 traditonal string branding within the ELF header.
5579
228c6d41
DJ
55802002-07-04 Daniel Jacobowitz <drow@mvista.com>
5581
5582 * symtab.c (remove_params): New function.
5583 (make_symbol_overload_list): Use it instead of cplus_demangle.
5584 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5585
2404952e
MK
55862002-07-04 Mark Kettenis <kettenis@gnu.org>
5587
e5e4acad
MK
5588 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5589
baadce09
MK
5590 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5591 New variables.
5592 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5593 and tdep->sigtramp_end.
5594 * i386obsd-nat.c: New file.
5595 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5596
2404952e
MK
5597 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5598 Don't call get_current_frame().
5599
9b4f1ba7
PM
56002002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5601
5602 * i386-nat.c (child_post_startup_inferior): New function
5603 calling i386_cleanup_dregs if
5604 I386_USE_GENERIC_WATCHPOINTS is defined.
5605 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5606 conditional to acknowledge that i386-nat.c has its
5607 own child_post_startup_inferior function.
5608
c0d1d883
MK
56092002-07-04 Mark Kettenis <kettenis@gnu.org>
5610
00f8375e
MK
5611 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5612 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5613 instead of MAX_REGISTER_RAW_SIZE.
5614 (i386_extract_return_value, i386_extract_struct_value_address):
5615 Convert to use regcache.
5616 (i386_gdbarch_init): Set max_register_raw_size and
5617 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5618 Set extract_return_value and extract_struct_value_address instead
5619 of their deprecated variants.
5620
c0d1d883
MK
5621 Convert i386 target to generic dummy frames.
5622 * i386-tdep.c: Include "symfile.h".
5623 (i386_frameless_signal_p): Consider a function to be frameless if
5624 the pc points at the first instruction of the function.
5625 (i386_frame_chain): Handle (generic) call dummies.
5626 (i386_frame_saved_pc): Likewise.
5627 (i386_frame_init_saved_regs): Remove code dealing with call
5628 dummies on the stack.
5629 (i386_push_dummy_frame): Removed.
5630 (i386_call_dummy_words): Removed.
5631 (i386_fix_call_dummy): Removed.
5632 (i386_push_return_address): New function.
5633 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5634 parameter, and don't call get_current_frame.
5635 (i386_pop_frame): New function.
5636 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5637 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5638 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5639 call_dummy_length to 0, set call_dummy_words to NULL, set
5640 sizeof_call_dummy_words to 0, set fix_call_dummy to
5641 generic_fix_call_dummy, set pc_in_call_dummy to
5642 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5643 generic_push_dummy_frame, set push_return_address to
5644 i386_push_return_address and set frame_chain_valid to
5645 generic_file_frame_chain_valid.
5646
049ee0e4
AC
56472002-07-03 Andrew Cagney <ac131313@redhat.com>
5648
5649 * gdbarch.sh (struct regcache): Add opaque declaration.
5650 (EXTRACT_RETURN_VALUE): New architecture method.
5651 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5652 * gdbarch.h, gdbarch.c: Regenerate.
5653 * arch-utils.c (legacy_extract_return_value): New function.
5654 * arch-utils.h (legacy_extract_return_value): Declare.
5655 * values.c (value_being_returned): Re-enable code handling
5656 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5657 deprecated_grub_regcache_for_registers call to block handling
5658 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5659 (EXTRACT_RETURN_VALUE): Do not define.
5660
4e0d9804
GS
56612002-07-03 Grace Sainsbury <graces@redhat.com>
5662
5663 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5664 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5665 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5666 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5667 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5668 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5669 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5670 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5671 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5672 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5673 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5674 argument so the function fits the prototype in the architecture
5675 vector.
5676 (mcore_pop_frame): Remove argument so the function fits the
5677 prototype. Use get_current_frame instead of the argument.
5678 (mcore_push_arguments): Change type of struct_return so the
5679 function can be used in the architecture vector.
5680 (mcore_store_struct_return): Add.
5681 (mcore_frame_init_saved_regs): Add.
5682 (mcore_gdbarch_init): Add function calls to replace the macros
5683 removed from tm-mcore.h
5684
36160dc4
AC
56852002-07-03 Andrew Cagney <ac131313@redhat.com>
5686
5687 * infcmd.c (print_return_value): Remove compatibility code calling
5688 deprecated_grub_regcache_for_registers.
5689
5690 * values.c: Include "regcache.h".
5691 (value_being_returned): Update. Use
5692 deprecated_grub_regcache_for_registers to extract the register
5693 buffer address.
5694 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5695 ``struct regcache''.
5696 * Makefile.in (values.o): Add dependency on $(regcache_h).
5697
5698 * inferior.h (run_stack_dummy): Change type of second parameter to
5699 a ``struct regcache''.
5700 * valops.c (hand_function_call): Change type of retbuf to ``struct
5701 regcache''. Allocate using regcache_xmalloc, clean using
5702 make_cleanup_regcache_xfree.
5703 * infcmd.c (run_stack_dummy): Update. Use
5704 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5705
5706 * regcache.c (do_regcache_xfree): New function.
5707 (make_cleanup_regcache_xfree): New function.
5708 * regcache.h (make_cleanup_regcache_xfree): Declare.
5709
e64d9b3d
MH
57102002-07-03 Martin M. Hunt <hunt@redhat.com>
5711
4dd79c29
MH
5712 * event-top.c (command_line_handler): Don't read past
5713 beginning of buffer.
e64d9b3d 5714
4dd79c29
MH
57152002-07-03 Martin M. Hunt <hunt@redhat.com>
5716
e64d9b3d
MH
5717 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5718 struct frame_id.
5719 (varobj_create): Store frame_id for root.
5720 (varobj_gen_name): Use xasprintf.
5721 (varobj_update): Save and restore frame using get_frame_id() and
5722 frame_find_by_id().
5723 (create_child): Use xasprintf.
5724 (new_root_variable): Initialize frame_id.
5725 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5726 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5727 to prevent memory leak.
5728
26e6c56a
AC
57292002-07-03 Andrew Cagney <ac131313@redhat.com>
5730
5731 * valops.c (hand_function_call): Move declaration of retbuf to
5732 start of function, allocate using malloc, add a cleanup but before
5733 the inf_status cleanup, cleanup the buffer. Rename local variable
5734 old_chain to inf_status_cleanup.
5735
f436dd25
MH
57362002-07-03 Martin M. Hunt <hunt@redhat.com>
5737
5738 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5739
5740 * cli/cli-decode.c (cmd_func_p): New function.
5741 (cmd_func): New function.
5742
5743 * command.h: Add cmd_func() and cmd_func_p().
5744
4cfe2084
GS
57452002-07-03 Grace Sainsbury <graces@redhat.com>
5746
5747 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5748 (REGISTER_SIZE): Remove.
5749 (MAX_REGISTER_RAW_SIZE): Remove.
5750 (REGISTER_VIRTUAL_TYPE): Remove.
5751 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5752 (REGISTER_NAME): Remove.
5753 (USE_GENERIC_DUMMY_FRAMES): Remove.
5754 (CALL_DUMMY): Remove.
5755 (CALL_DUMMY_START_OFFSET): Remove.
5756 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5757 (CALL_DUMMY_LOCATION): Remove.
5758 (FIX_CALL_DUMMY): Remove.
5759 (CALL_DUMMY_ADDRESS): Remove.
5760 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5761 (SAVE_DUMMY_FRAME_TOS): Remove.
5762 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5763 (mcore_register_virtual_type): New function.
5764 (mcore_register_byte): New function.
5765 (mcore_register_size): New function.
5766 (mcore_register_name): New function.
5767 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5768 macros removed from tm-mcore.h.
5769 (mcore_dump_tdep): Add.
5770 (_initialize_mcore_tdep): Add gdbarch_register call.
5771
4fd667e9
MK
57722002-07-03 Mark Kettenis <kettenis@gnu.org>
5773
5774 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5775 frameless_look_for_prologue, such that we actually call this
5776 function.
5777
42f99ac2
JB
57782002-07-02 Joel Brobecker <brobecker@gnat.com>
5779
5780 * frame.h (frame_address_in_block): New function.
5781
5782 * blockframe.c (frame_address_in_block): New function extracted
5783 from get_frame_block().
5784 (get_frame_block): Use frame_address_in_block().
5785 (block_innermost_frame): Use frame_address_in_block() to match
5786 the frame pc address against the block boundaries rather than
5787 the frame pc directly. This prevents a failure when a frame pc
5788 is actually a return-address pointing immediately after the end
5789 of the given block.
5790
103a1597 57912002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5792
5793 * MAINTAINERS: Add self under write after approval.
5794
57952002-07-02 Grace Sainsbury <graces@redhat.com>
5796
103a1597
GS
5797 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5798 used in architecture vector. The default is
5799 m68k_local_breakpoint_from_pc.
5800 (m68k_local_breakpoint_from_pc): Add.
5801 (enum): Add register numbers from tm-m68k.h.
5802 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5803 vector.
5804 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5805 GDB_MULTI_ARCH_PARTIAL.
5806 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5807 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5808 m68k-tdep.c.
5809 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5810 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5811 to enum in m68k-tdep.c
5812
7a5a0534
JB
58132002-07-02 Joel Brobecker <brobecker@gnat.com>
5814
5815 * solib-osf.c (open_map): Compute the list of shared libraries
5816 loaded by the inferior, rather than the list of libraries loaded
5817 by GDB itself. Otherwise, GDB ends up reading the symbols from
5818 the wrong shared libraries...
5819
6f558d74
MK
58202002-07-02 Mark Kettenis <kettenis@gnu.org>
5821
b7d15bf7
MK
5822 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5823 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5824 macros.
5825 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5826 Remove functions.
5827 (FRAMELESS_SIGNAL): Remove function.
5828 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5829 i386_linux_saved_pc_after_call): Removed.
5830 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5831 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5832 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5833
6bff26de
MK
5834 * i386-tdep.c (i386_frameless_signal_p): New function.
5835 (i386_frame_chain): Deal with frameless signals.
5836 (i386_sigtramp_saved_sp): New function.
5837 (i386_frame_saved_pc): Deal with frameless signals.
5838 (i386_saved_pc_after_call): Make sure the correct value is
5839 returned just after entry into a sigtramp.
5840 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5841 i386fbsd4_sc_sp_offset): New variables.
5842 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5843 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5844 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5845 similiar to what we already did for sc_pc_offset.
5846 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5847 tdep->sc_sp_offset.
5848
6f558d74
MK
5849 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5850
145564b7
ML
58512002-07-02 Michal Ludvig <mludvig@suse.cz>
5852
5853 * config/i386/tm-x86-64linux.h: New.
5854 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5855 definitions.
5856 * config/i386/nm-x86-64.h: Rename to ...
5857 * config/i386/nm-x86-64linux.h: ... this one.
5858 * config/i386/x86-64linux.mh: Reflect the above change.
5859
3a1e71e3
MK
58602002-07-01 Mark Kettenis <kettenis@gnu.org>
5861
21d0e8a4
MK
5862 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5863 with sigcontext_addr. Add sc_sp_offset.
5864 (i386bsd_sigtramp_saved_pc): Remove prototype.
5865 (i386bsd_sicontext_addr): Add prototype.
5866 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5867 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5868 (i386_svr4_sigtramp_saved_pc): Removed.
5869 (i386_svr4_sigcontext_addr): New function.
5870 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5871 Initialize tdep->sigcontext_addr instead. Initialize
5872 tdep->sc_pc_offset and tdep->sc_sp_offset.
5873 (i386_gdbarch_init): Likewise.
5874 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5875 any more.
5876 (i386bsd_sigtramp_saved_pc): Remove function.
5877 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5878 Initialize tdep->sigcontext_addr instead. Initialize
5879 tdep->sc_pc_offset.
5880 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5881 of tdep->sigtramp_saved_pc.
5882 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5883 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5884 instead.
5885
3a1e71e3
MK
5886 * i386-tdep.c (i386_frameless_function_invocation,
5887 i386_frame_num_args, i386_frame_init_saved_regs,
5888 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5889 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5890 i386_extract_return_value, i386_store_return_value,
5891 i386_extract_struct_value_address, i386_register_virtual_type,
5892 i386_register_convertible, i386_register_convert_to_virtual,
5893 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5894 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5895 static.
5896
52e9098c
MK
58972002-07-01 Mark Kettenis <kettenis@gnu.org>
5898
77b13a25
MK
5899 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5900
52e9098c
MK
5901 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5902 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5903 this macro. Include "value.h".
5904
1b372fff
AS
59052002-06-30 Aidan Skinner <aidan@velvet.net>
5906
5907 * ada-exp.tab.c: remove as it's a generated file
5908 * ada-lex.c: remove as it's a generated file
5909
9c5045b5
MK
59102002-06-30 Mark Kettenis <kettenis@gnu.org>
5911
4a93c5bb
MK
5912 * config/i386/tm-i386.h (struct frame_info, struct
5913 frame_saved_regs, struct value, struct type): Remove forward
5914 declarations.
5915
322d4fe0
MK
5916 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5917 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5918 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5919 (FILL_FPXREGSET): Define.
5920
fdd8263d
MK
5921 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5922
482e577b
MK
5923 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5924 i[3456]86-*-netbsd* case.
5925 * config/i386/tm-obsd.h: Removed.
5926 * config/i386/obsd.mt: Removed.
5927 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5928 core-aout.o.
5929 (MH_CFLAGS): Add -DYYDEBUG=0.
5930
6916549a
MK
5931 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5932 i386nbsd_sc_pc_offset on OpenBSD too.
5933
9c5045b5
MK
5934 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5935 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5936 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5937 define.
5938 * i386bsd-tdep.c: Include "arch-utils.h".
5939 (i386bsd_aout_in_solib_call_trampoline): New function.
5940 (i386bsd_init_abi): Set in_solib_call_trampoline to
5941 i386bsd_aout_in_solib_call_trampoline.
5942 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5943 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5944
aa84d1bb
AC
59452002-06-28 Andrew Cagney <ac131313@redhat.com>
5946
5947 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5948 (struct obstack, struct bcache): Add opaque declarations.
5949 * Makefile.in (macrotab_h): Update
5950
b4d83933
AC
59512002-06-28 Andrew Cagney <ac131313@redhat.com>
5952
5953 * blockframe.c (generic_find_dummy_frame): Change return type to
5954 ``struct regcache''.
5955 (struct dummy_frame): Replace field ``registers'' with regcache, a
5956 struct regcache object.
5957 (generic_find_dummy_frame): Update.
5958 (generic_push_dummy_frame): Update. Use regcache_xfree,
5959 regcache_xmalloc and regcache_cpy.
5960 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5961 regcache_xfree.
5962 (deprecated_generic_find_dummy_frame): Update.
5963 (generic_read_register_dummy): Update. Use
5964 regcache_read_as_address.
5965 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5966 (generic_get_saved_register): Update. Use regcache_read.
5967
08c0b5bc
AC
59682002-06-28 Andrew Cagney <ac131313@redhat.com>
5969
5970 * Makefile.in (objfiles_h): Add $(bcache_h).
5971 * objfiles.h: Include "bcache.h".
5972
5973 * Makefile.in (symtab_h): Remove $(bcache_h).
5974 * symtab.h: Do not include "bcache.h".
5975
1f89801a
AC
59762002-06-28 Andrew Cagney <ac131313@redhat.com>
5977
5978 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5979 generic_func_frame_chain_valid.
5980
b9644b58
DB
59812002-06-28 David O'Brien <obrien@FreeBSD.org>
5982
5983 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5984 * config/i386/tm-fbsd.h: Likewise.
5985
dd486634
AC
59862002-06-28 Andrew Cagney <ac131313@redhat.com>
5987
5988 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5989 generic_unwind_get_saved_register.
5990
0b434a00
AC
59912002-06-27 Andrew Cagney <ac131313@redhat.com>
5992
5993 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5994 * regcache.c (supply_register): Add missing argument to
5995 register_buffer call.
5996
f30e5a77
AC
59972002-06-27 Andrew Cagney <ac131313@redhat.com>
5998
5999 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6000 Solaris /bin/grep does not not like it. From Peter Schauer.
6001
9f064c95
TT
60022002-06-26 Tom Tromey <tromey@redhat.com>
6003
6004 * command.h (add_setshow_cmd): Declare.
6005 (add_setshow_cmd_full): Declare.
6006 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6007 returns void. Use add_setshow_cmd_full.
6008 (add_setshow_cmd_full): New function.
6009 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6010 (add_setshow_boolean_cmd): Likewise.
6011
099c7589
JT
60122002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6013
6014 * config/vax/tm-vax.h: Protect from multiple inclusion.
6015 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6016 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6017 * config/vax/tm-vaxbsd.h: ...here. New file.
6018 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6019
1d049c5e
JT
60202002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6021
6022 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6023 (BELIEVE_PCC_PROMOTION): Remove.
6024 (AP_REGNUM): Move to...
6025 * config/vax/nm-vax.h: ...here.
6026 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6027 (vax_breakpoint_from_pc): New function.
6028 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6029 and gdbarch_believe_pcc_promotion.
6030
4791e091
JT
60312002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6032
6033 * Makefile.in (vax_tdep_h): Define.
6034 (vax-tdep.o): Use $(vax_tdep_h).
6035 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6036 (vax_dump_tdep): New function.
6037 (_initialize_vax_tdep): Register vax_dump_tdep.
6038 * vax-tdep.h: Include osabi.h.
6039 (struct gdbarch_tdep): New.
6040
da130f98
AC
60412002-06-26 Andrew Cagney <cagney@redhat.com>
6042
6043 * frame.h (deprecated_generic_find_dummy_frame): Rename
6044 generic_find_dummy_frame.
6045 * blockframe.c (generic_find_dummy_frame): Make static.
6046 (deprecated_generic_find_dummy_frame): New function.
6047 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6048 generic_find_dummy_frame with deprecated_find_dummy_frame.
6049 (sh64_nofp_frame_init_saved_regs): Ditto.
6050 (sh_fp_frame_init_saved_regs): Ditto.
6051 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6052 (s390_frame_chain): Ditto.
6053 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6054
6300c360
GS
60552002-06-26 Grace Sainsbury <graces@redhat.com>
6056
6057 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6058 gdbarch vector are at the top.
6059 (NUM_REGS): Remove.
6060 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6061 (FRAME_ARGS_ADDRESS): Remove.
6062 (FRAME_LOCALS_ADDRESS): Remove.
6063 (FRAME_NUM_ARGS): Remove.
6064 (FRAME_ARGS_SKIP): Remove.
6065 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6066 (m68k_gdbarch_init): Add gdbarch initializations for macros
6067 undefined in tm-m68k.h
6068
1c617db8
GS
60692002-06-26 Grace Sainsbury <graces@redhat.com>
6070
6071 * monitor.h: Add the function regname to monitor_ops
6072 structure. This way NUM_REGS does not have to be a constant.
6073 * monitor.c (monitor_fetch_register): Added support for regname
6074 function. The function is called if the array regnames is NULL.
6075 (monitor_store_register): Same.
da130f98
AC
6076 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6077 regnames array.
1c617db8
GS
6078 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6079 cpu32bug_cmds.regname to point to new function.
6080 * abug-rom.c (abug_regname): Same as above.
6081 (init_abug_cmds): Same.
6082 * dbug-rom.c (dbug_regname): Same as above.
6083 (init_dbug_cmds): Same.
6084 * remote-est.c (est_regname): Same.
6085 (init_est_cmds): Same.
6086 * rom68k-rom.c (rom68k_regname): Same.
6087 (init_rom68k_cmds): Same.
6088
ea9365bb
TT
60892002-06-25 Tom Tromey <tromey@redhat.com>
6090
6091 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6092
72cec141
AC
60932002-06-25 Andrew Cagney <cagney@redhat.com>
6094
6095 * infrun.c (stop_registers): Change variable's type to ``struct
6096 regcache'''.
6097 (xmalloc_inferior_status): Delete function.
6098 (free_inferior_status): Delete function.
6099 (normal_stop): Use regcache_cpy.
6100 (struct inferior_status): Change type of fields ``stop_registers''
6101 and ``registers'' to ``struct regcache''.
6102 (write_inferior_status_register): Use regcache_write.
6103 (save_inferior_status): Instead of calling
6104 xmalloc_inferior_status, allocate the inf_status buffer directly.
6105 Use regcache_dup_no_passthrough and regcache_dup to save the
6106 buffers.
6107 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6108 Replace the stop_registers regcache instead of overriding it. Use
6109 regcache_xfree. Instead of calling free_inferior_status, xfree
6110 the buffer directly.
6111 (discard_inferior_status): Use regcache_xfree. Instead of calling
6112 free_inferior_status, xfree the buffer directly.
6113 (build_infrun): Use regcache_xmalloc.
6114 (_initialize_infrun): Delete redundant call to build_infrun.
6115
6116 * Makefile.in (infcmd.o): Add $(regcache_h).
6117
6118 * infcmd.c: Include "regcache.h".
6119 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6120 obtain the address of `stop_registers' register buffer.
6121 (print_return_value): Ditto.
6122
6123 * inferior.h (struct regcache): Add opaque declaration.
6124 (stop_registers): Change variable's declared type to ``struct
6125 regcache''.
6126
defc6f8c
TT
61272002-06-24 Tom Tromey <tromey@redhat.com>
6128
c0e624e7
TT
6129 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6130 * target.c (initialize_targets): Fixed typo in
6131 trust-readonly-sections `show' documentation.
6132
defc6f8c
TT
6133 * main.c: Marked all strings with _().
6134
2b236d82
DH
61352002-06-24 Don Howard <dhoward@redhat.com>
6136
6137 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6138 that means max CORE_ADDR+1.
6139 (lookup_mem_region): Ditto.
6140 (mem_info_command): Ditto.
6141
942dc0e9
GS
61422002-06-24 Grace Sainsbury <graces@redhat.com>
6143
6144 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6145 (REGISTER_BYTES_OK): Remove.
6146 (REGISTER_BYTES): Remove.
6147 (STORE_STRUCT_RETURN): Remove.
6148 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6149 (STORE_RETURN_VALUE): Remove.
6150 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6151 (FRAME_CHAIN): Remove.
6152 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6153 (FRAME_SAVED_PC): Remove.
6154 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6155 (m68k_store_struct_return): Add.
6156 (m68k_deprecated_extract_return_value): Add.
6157 (m68k_deprecated_extract_struct_value_address): Add.
6158 (m68k_store_return_value): Add.
6159 (m68k_frame_chain): Add.
6160 (m68k_frameless_function_invocation): Add.
6161 (m68k_frame_saved_pc): Add.
6162 (m68k_gdbarch_init): added set_gdbarch calls for new
6163 functions and deleted macros.
6164
03c30d4d
TT
61652002-06-23 Tom Tromey <tromey@redhat.com>
6166
6167 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6168 (ALLDEPFILES): Likewise.
6169 (udiheaders): Removed.
6170 (udip2soc.o): Likewise.
6171 (udi2go32.o): Likewise.
6172 (udr.o): Likewise.
6173 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6174
37e71372
AC
61752002-06-22 Andrew Cagney <ac131313@redhat.com>
6176
06a6ac57
AC
6177 * infrun.c (_initialize_infrun): Delete unnecessary call to
6178 build_infrun.
6179
37e71372
AC
6180 * regcache.h: Update comments describing the regcache_cpy family
6181 of functions.
6182 (regcache_save, regcache_restore): Delete declaration.
6183 (regcache_save_no_passthrough): Delete declaration.
6184 (regcache_restore_no_passthrough): Delete declaration.
6185 * regcache.c (regcache_save): Delete function.
6186 (regcache_save_no_passthrough): Delete function.
6187 (regcache_restore): Delete function.
6188 (regcache_restore_no_passthrough): Delete function.
6189
78f6d055
AC
61902002-06-21 Andrew Cagney <ac131313@redhat.com>
6191
6192 * config/m68k/tm-m68k.h: Fix typo.
6193 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6194 (m68k_frame_init_saved_regs): Declare.
6195
78b119cb
JB
61962002-06-21 Jim Blandy <jimb@redhat.com>
6197
6198 Remove some vestiges of Harris 88k support.
6199 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6200 register numbering quirk.
6201 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6202 odd symbols occurring in Harris 88k ELF targets.
6203
0fbb3da7
TT
62042002-06-21 Tom Tromey <tromey@redhat.com>
6205
6206 * gdb_locale.h: New file.
6207 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6208 (defs_h): Added gdb_locale.h.
6209 * configure, config.in: Rebuilt.
6210 * configure.in (PACKAGE): Define.
6211 * defs.h: Include gdb_locale.h.
6212 * main.c (captured_main): Call setlocale, bindtextdomain,
6213 textdomain.
6214
456f8b9d
DB
62152002-06-21 Dave Brolley <brolley@redhat.com>
6216
6217 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6218 * config/frv/frv.mt: New file.
6219 * config/frv/tm-frv.h: New file.
6220 * configure.tgt: Support frv-*-*.
6221 * Makefile.in (frv-tdep.o): New target.
6222 * frv-tdep.c: New file.
6223 * NEWS: Mention frv.
6224
cdd463f9
DB
62252002-06-21 Dave Brolley <brolley@redhat.com>
6226
6227 * MAINTAINERS: Add self to "Write After Approval" list.
6228
5d3ed2e3
GS
62292002-06-21 Grace Sainsbury <graces@redhat.com>
6230
6231 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6232 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6233 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6234 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6235 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6236
6237 * m68k-tdep.c: Include arch-utils.h
6238 (m68k_register_raw_size): Add.
6239 (m68k_register_virtual_size): Add.
6240 (m68k_register_virtual_type): Add.
6241 (m68k_register_name): Add.
6242 (m68k_stack_align): Add.
6243 (m68k_register_byte): Add.
6244 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6245 tm-m68k.h.
6246
7f8e7424
GS
62472002-06-21 Grace Sainsbury <graces@redhat.com>
6248
a2c6a6d5 6249 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6250 m68k_find_saved_regs.
6251 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6252 references to it with frame->saved_regs.
7f8e7424
GS
6253 (m68k_gdbarch_init): Added function calls to initialize the
6254 gdbarch structure.
a2c6a6d5
GS
6255 (m68k_fix_call_dummy): Add.
6256 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6257 (CALL_DUMMY): Remove.
6258 (CALL_DUMMY_LENGTH): Remove.
6259 (CALL_DUMMY_START_OFFSET): Remove.
6260 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6261 (FIX_CALL_DUMMY): Remove.
6262 (PUSH_DUMMY_FRAME): Remove.
6263 (POP_FRAME): Remove.
7f8e7424 6264
f461f5cf
PM
62652002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6266
6267 * parse.c (parse_fprintf): New function used to avoid calls to
6268 fprintf in bison parser generated debug code.
6269 * parser-defs.h: Declaration of new parse_fprintf function.
6270 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6271 Set YYDEBUG to 1 by default.
6272 Set YYFPRINTF as parse_fprintf.
6273
7f0c12ed
ML
62742002-06-21 Michal Ludvig <mludvig@suse.cz>
6275
6276 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6277 encoding anymore.
6278 (pointer_encoding, enum ptr_encoding): New.
6279 (execute_cfa_program): Take care about pointer encoding.
6280 (dwarf2_build_frame_info): Only call parse_frame_info for
6281 .debug_frame and .eh_frame.
6282 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6283 fixed augmentation handling, added relative addressing,
6284 ignore duplicate FDEs. Added comments.
19d833a2 6285 * dwarf2cfi.c: Reindented.
7f0c12ed 6286
87c4a039
EZ
62872002-06-20 Elena Zannoni <ezannoni@redhat.com>
6288
6289 * event-top.c (command_handler): Don't use space_at_cmd_start
6290 unless there is sbrk() on the host. Assign time and space data
6291 to union fields of the appropriate length.
6292
1cf877ad
ML
62932002-06-20 Michal Ludvig <mludvig@suse.cz>
6294
6295 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6296 x86_64_register_name. Return type changed to 'const char *'.
6297 (x86_64_register_name2nr): Rename to x86_64_register_number.
6298 (x86_64_gdbarch_init): Update to reflect the change.
6299 * x86-64-tdep.h: Ditto.
6300 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6301 (supply_fpregset): Ditto.
6302
3fadccb3
AC
63032002-06-19 Andrew Cagney <cagney@redhat.com>
6304
6305 * regcache.h: Update copyright.
6306 (struct regcache, struct gdbarch): Add opaque declarations.
6307 (current_regcache): Declare global variable.
6308 (regcache_read, regcache_write): Add gdbarch parameter.
6309 (regcache_save, regcache_save_no_passthrough)
6310 (regcache_restore, regcache_restore_no_passthrough)
6311 (regcache_dup, regcache_dup_no_passthrough)
6312 (regcache_cpy, regcache_cpy_no_passthrough)
6313 (deprecated_grub_regcache_for_registers)
6314 (deprecated_grub_regcache_for_register_valid)
6315 (regcache_valid_p): Add function declarations.
6316
6317 * regcache.c: Update copyright.
6318 (regcache_descr_handle): New global variable.
6319 (struct regcache_descr): Define.
6320 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6321 (regcache_descr, xfree_regcache_descr): New functions.
6322 (struct regcache): Define.
6323 (regcache_xmalloc, regcache_xfree): New functions.
6324 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6325 (regcache_dup, regcache_dup_no_passthrough): New functions.
6326 (regcache_valid_p, regcache_read_as_address): New functions.
6327 (deprecated_grub_regcache_for_registers): New function.
6328 (deprecated_grub_regcache_for_register_valid): New function.
6329 (current_regcache): New global variable.
6330 (register_buffer): Add regcache parameter. Update calls.
6331 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6332 (read_register_gen, write_register_gen): Update register_buffer
6333 call. Test for legacy_p instead of gdbarch_register_read_p or
6334 gdbarch_register_write_p.
6335 (regcache_collect): Update register_buffer call.
6336 (build_regcache): Rewrite. Use deprecated grub functions.
6337 (regcache_save, regcache_save_no_passthrough): New functions.
6338 (regcache_restore, regcache_restore_no_passthrough): New
6339 functions.
6340 (_initialize_regcache): Create the regcache_data_handle. Swap
6341 current_regcache global variable.
6342
6343 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6344 parameter to regcache_read and regcache_write calls.
6345 (sh4_register_read): Ditto.
6346 (sh64_pseudo_register_read): Ditto.
6347 (sh64_register_read): Ditto.
6348 (sh_pseudo_register_write): Ditto.
6349 (sh4_register_write): Ditto.
6350 (sh64_pseudo_register_write): Ditto.
6351 (sh64_register_write): Ditto.
6352
6353 * defs.h (XCALLOC): Define.
6354
152d9db6
GS
63552002-06-19 Grace Sainsbury <graces@redhat.com>
6356
6357 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6358 * m68k-tdep.c (m68k_gdbarch_init): Added.
6359 (m68k_dump_tdep): Added.
6360
170911c7
DJ
63612002-06-19 Daniel Jacobowitz <drow@mvista.com>
6362
6363 * ada-lang.c (fill_in_ada_prototype): Update comment.
6364
2e4ebe70
DJ
63652002-06-19 Daniel Jacobowitz <drow@mvista.com>
6366
6367 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6368 MIPS_ABI_LAST.
6369 (mips_abi_string, mips_abi_strings): New.
6370 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6371 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6372 tdep->mips_abi_string. Honor mips_abi_string. Default to
6373 O32 if no ABI is found.
6374 (mips_dump_tdep): Use mips_abi_strings.
6375 (mips_abi_update): New function.
6376 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6377 ``set mips abi'' and ``show mips abi''. Check the size of
6378 mips_abi_strings.
6379
16775908
AC
63802002-06-19 Andrew Cagney <cagney@redhat.com>
6381
6382 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6383 constant.
6384
5051bfa4 63852002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6386
5051bfa4
JB
6387 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6388 current frame using only the first stack size adjustment. All
6389 subsequent size adjustments are not considered to be part of
6390 the "static" part of the current frame.
6391 Compute the address of the saved registers relative to the
6392 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6393 in use in this frame.
6394
56468235
DH
63952002-06-18 Don Howard <dhoward@redhat.com>
6396
6397 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6398 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6399 suggesting this solution.
6400
0b624158
AC
64012002-06-18 Andrew Cagney <ac131313@redhat.com>
6402
6403 * config/romp/xm-rtbsd.h: Delete file.
6404 * config/romp/rtbsd.mh: Delete file.
6405
221ea385
KS
64062002-06-18 Keith Seitz <keiths@redhat.com>
6407
6408 * breakpoint.c (condition_command): Post breakpoint_modify
6409 when a condition is added to an existing breakpoint.
6410 (commands_command): Likewise for commands.
6411 (set_ignore_count): Likewise for ignore counts.
6412 If no tty, do not simply return, still need to send event
6413 notification.
6414 (ignore_command): Only print a newline if the command came
6415 from a tty.
6416 Don't call breakpoints_changed, since this is now properly
6417 handled by set_ignore_count.
6418
5402eed1
AC
64192002-06-18 Andrew Cagney <cagney@redhat.com>
6420
6421 * MAINTAINERS: Note that cris-elf target can be compiled with
6422 -Werror.
6423 * cris-tdep.c (cris_register_name): Make return type constant.
6424 (cris_breakpoint_from_pc): Ditto.
6425
cc22880b
ML
64262002-06-18 Michal Ludvig <mludvig@suse.cz>
6427
6428 * frame.h (struct frame_info): Change type of context to
6429 'struct context'.
6430
fa88f677
AC
64312002-06-17 Andrew Cagney <cagney@redhat.com>
6432
6433 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6434 pointer.
6435 * gdbarch.h, gdbarch.c: Regenerate.
6436 * config/mips/tm-mips.h (mips_register_name): Update.
6437 * i386-tdep.h (i386_register_name): Update.
6438 * mips-tdep.c (mips_register_name): Update
6439 * alpha-tdep.c (alpha_register_name): Update.
6440 * arch-utils.c (legacy_register_name): Update.
6441 * arch-utils.h (legacy_register_name): Update.
6442 * avr-tdep.c (avr_register_name): Update.
6443 * ia64-tdep.c (ia64_register_name): Update.
6444 * i386-tdep.c (i386_register_name): Update.
6445 * sparc-tdep.c (sparc32_register_name): Update.
6446 (sparc64_register_name): Update.
6447 (sparclite_register_name): Update.
6448 (sparclet_register_name): Update.
6449 * sh-tdep.c (sh_generic_register_name): Update.
6450 (sh_sh_register_name): Update.
6451 (sh_sh3_register_name): Update.
6452 (sh_sh3e_register_name): Update.
6453 (sh_sh_dsp_register_name): Update.
6454 (sh_sh3_dsp_register_name): Update.
6455 (sh_sh4_register_name): Update.
6456 (sh_sh64_register_name): Update.
6457 * s390-tdep.c (s390_register_name): Update.
6458 * rs6000-tdep.c (rs6000_register_name): Update.
6459 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6460 (ns32k_register_name_32382): Update.
6461 * d10v-tdep.c (d10v_ts2_register_name): Update.
6462 (d10v_ts3_register_name): Update.
6463 * xstormy16-tdep.c (xstormy16_register_name): Update.
6464 * vax-tdep.c (vax_register_name): Update.
6465 * v850-tdep.c (v850_register_name): Update.
6466 * m68hc11-tdep.c (m68hc11_register_name): Update.
6467 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6468 (am33_register_name): Update.
6469
ea1e7ef6
GS
64702002-06-17 Grace Sainsbury <graces@redhat.com>
6471
6472 * m68k-tdep.c: Reindented.
6473
9b02dd1b
AC
64742002-06-17 Andrew Cagney <ac131313@redhat.com>
6475
6476 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6477 list of predefined types.
6478
8758dec1
MK
64792002-06-16 Mark Kettenis <kettenis@gnu.org>
6480
b6197528
MK
6481 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6482 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6483 REGISTER_CONVERT_TO_RAW): Remove defines.
6484 (i386_register_virtual_type, i386_register_convertible,
6485 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6486 Remove prototypes.
6487 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6488 macros mentioned above.
6489
82b47e62
MK
6490 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6491 (i386lynx_saved_pc_after_call): Remove prototype.
6492 * i386ly-tdep.c: Include "i386-tdep.h".
6493 (i386lynx_saved_pc_after_call): Make static. Use
6494 read_memory_nobpt instead of read_memory. Use
6495 read_memory_unsigned_integer instead of read_memory_integer.
6496 (i386lynx_init_abi): New function.
6497 (i386lynx_coff_osabi_sniffer): New function.
6498 (_initialize_i386bsd_tdep): New function.
6499
8758dec1
MK
6500 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6501 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6502 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6503 (i386_fix_call_dummy): Remove prototype.
6504 * i386-tdep.c (i386_call_dummy_words): New variable.
6505 (i386_gdbarch_init): Adjust for removal of the
6506 macros mentioned above.
6507
e9e68a56
AC
65082002-06-15 Andrew Cagney <ac131313@redhat.com>
6509
6510 * command.h (add_setshow_auto_boolean_cmd): Replace
6511 add_set_auto_boolean_cmd.
6512 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6513 add_set_auto_boolean_cmd.
6514 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6515 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6516 mask-address'' command.
6517 (show_mask_address): Add cmd parameter.
6518 * remote.c (add_packet_config_cmd): Update. Change type of
6519 set_func and show_func to cmd_sfunc_ftype.
6520 (_initialize_remote): Update `set remote Z-packet'
6521 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6522 (show_remote_protocol_e_packet_cmd): Ditto.
6523 (show_remote_protocol_E_packet_cmd): Ditto.
6524 (show_remote_protocol_P_packet_cmd): Ditto.
6525 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6526 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6527 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6528 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6529 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6530 (show_remote_protocol_Z_packet_cmd): Ditto.
6531 (show_remote_protocol_binary_download_cmd): Ditto.
6532 (show_remote_cmd): Pass NULL to all of above.
6533
fc08ec52
MK
65342002-06-15 Mark Kettenis <kettenis@gnu.org>
6535
6536 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6537 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6538 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6539 POP_FRAME): Remove defines.
6540 (i386_push_arguments, i386_store_struct_return,
6541 i386_extract_return_value, i386_store_return_value,
6542 i386_extract_struct_value_address, i386_push_dummy_frame,
6543 i386_pop_frame): Renove prototypes.
6544 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6545 macros mentioned above.
6546
e707bbc2
AC
65472002-06-15 Andrew Cagney <ac131313@redhat.com>
6548
6549 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6550 add_set_boolean_cmd.
6551 (add_setshow_cmd): New function.
6552 * command.h (add_setshow_boolean_cmd): Replace
6553 add_set_boolean_cmd.
6554 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6555 and ``set rdiromatzero''.
6556 * maint.c (_initialize_maint_cmds): Update commented out code.
6557 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6558 * target.c (initialize_targets): Update `set
6559 trust-readonly-sections'.
6560 * remote.c (_initialize_remote): Update `set remotebreak'.
6561
42fdc8df
MK
65622002-06-15 Mark Kettenis <kettenis@gnu.org>
6563
93924b6b
MK
6564 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6565 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6566 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6567 fit into multi-arch framework.
6568 (i386_breakpoint_from_pc): New function.
6569 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6570 above.
6571
42fdc8df
MK
6572 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6573 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6574 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6575 (i386_frameless_function_invocation, i386_frame_num_args,
6576 i386_frame_init_saved_regs): Remove prototypes.
6577 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6578 macros mentioned above.
6579
9773a94b
AC
65802002-06-15 Andrew Cagney <ac131313@redhat.com>
6581
6582 * cli/cli-decode.c (set_cmd_cfunc): Update.
6583 (set_cmd_sfunc): Update.
6584 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6585 (set_cmd_sfunc, set_cmd_cfunc): Update.
6586 * cli/cli-decode.h: Update.
6587
6e157172
MK
65882002-06-15 Mark Kettenis <kettenis@gnu.org>
6589
6590 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6591 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6592
7f19b9a2
AC
65932002-06-15 Andrew Cagney <ac131313@redhat.com>
6594
6595 * defs.h (auto_boolean): Declare enum.
6596 * command.h (cmd_auto_boolean): Delete enum.
6597 * mips-tdep.c (mask_address_var): Update.
6598 (mips_mask_address_p): Update.
6599 (show_mask_address): Update.
6600 * remote.c (struct packet_config): Update.
6601 (update_packet_config): Update.
6602 (show_packet_config_cmd): Update.
6603 (packet_ok): Update.
6604 (add_packet_config_cmd): Update.
6605 (_initialize_remote):
6606 * command.h: Update.
6607 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6608 (do_setshow_command): Update.
6609 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6610 * cli/cli-decode.h: Update.
6611
1cf88de5
MK
66122002-06-15 Mark Kettenis <kettenis@gnu.org>
6613
22ba8cf2
MK
6614 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6615 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6616 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6617 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6618 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6619 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6620
762c5349
MK
6621 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6622 list of DJGPP COFF targets.
6623
091198bb
MK
6624 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6625 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6626 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6627 (FP0_REGNUM): Remove define.
6628 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6629 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6630 (i386_register_virtual_size): Remove protoype.
6631 * i386-tdep.c (i386_register_virtual_size): Removed.
6632 (i386_extract_return_value, i386_store_return_value): Use
6633 FP0_REGNUM instead of NUM_FREGS to determine whether the
6634 floating-point registers are available.
6635 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6636 Adjust for removal of macros mentioned above.
6637
66382002-06-15 Mark Kettenis <kettenis@gnu.org>
6639
fcc9bf01
MK
6640 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6641 comments.
6642 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6643 Remove prototypes.
6644 (supply_gregset, fill_gregset): Remove use of register keyword and
6645 remove declaration for regmap. Use I386_NUM_GREGS instead of
6646 NUM_REGS and NUM_FREGS.
6647 (FPREGSET_FSAVE_OFFSET): Remove.
6648 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6649 NUM_FREGS to determine whether the floating-point registers are
6650 available.
6651
65e78234
MK
6652 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6653 gnu_store_registers): Replace usage of NUM_GREGS with
6654 I386_NUM_GREGS.
6655
98df6387
MK
6656 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6657 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6658 usage of NUM_GREGS with I386_NUM_GREGS.
6659
099a9414
MK
6660 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6661
57976e88
MK
6662 * i386bsd-nat.c: Include "i386-tdep.h".
6663 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6664 I386_NUM_GREGS.
6665
b335f4a6
MK
6666 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6667 and associated comment. They no longer make any sense, since we
6668 don't use this file anymore on Linux.
6669
1cf88de5
MK
6670 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6671 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6672 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6673 elements in these arrays.
6674 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6675 MAX_NUM_REGS.
6676
daa66587
MK
66772002-06-15 Mark Kettenis <kettenis@gnu.org>
6678
6679 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6680 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6681
26e9b323
AC
66822002-06-14 Andrew Cagney <cagney@redhat.com>
6683
6684 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6685 EXTRACT_RETURN_VALUE.
6686 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6687 EXTRACT_STRUCT_VALUE_ADDRESS.
6688 * gdbarch.h, gdbarch.c: Regenerate.
6689
6690 * values.c (value_being_returned): Handle
6691 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6692 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6693
6694 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6695 * arm-tdep.c (arm_gdbarch_init): Update.
6696 * avr-tdep.c (avr_gdbarch_init): Update.
6697 * cris-tdep.c (cris_gdbarch_init): Update.
6698 * d10v-tdep.c (d10v_gdbarch_init): Update.
6699 * ia64-tdep.c (ia64_gdbarch_init): Update.
6700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6701 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6702 * s390-tdep.c (s390_gdbarch_init): Update.
6703 * sh-tdep.c (sh_gdbarch_init): Update.
6704 * s390-tdep.c (s390_gdbarch_init): Update.
6705 * sparc-tdep.c (sparc_gdbarch_init): Update.
6706 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6707 * v850-tdep.c (v850_gdbarch_init): Update.
6708 * vax-tdep.c (vax_gdbarch_init): Update.
6709 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6711
6712 * config/arc/tm-arc.h: Update.
6713 * config/d30v/tm-d30v.h: Update.
6714 * config/fr30/tm-fr30.h: Update.
6715 * config/h8300/tm-h8300.h: Update.
6716 * config/h8500/tm-h8500.h: Update.
6717 * config/i386/tm-i386.h: Update.
6718 * config/i386/tm-ptx.h: Update.
6719 * config/i386/tm-symmetry.h: Update.
6720 * config/i960/tm-i960.h: Update.
6721 * config/m32r/tm-m32r.h: Update.
6722 * config/m68k/tm-delta68.h: Update.
6723 * config/m68k/tm-linux.h: Update.
6724 * config/m68k/tm-m68k.h: Update.
6725 * config/m88k/tm-m88k.h: Update.
6726 * config/mcore/tm-mcore.h: Update.
6727 * config/mips/tm-mips.h: Update.
6728 * config/mn10200/tm-mn10200.h: Update.
6729 * config/pa/tm-hppa.h: Update.
6730 * config/pa/tm-hppa64.h: Update.
6731 * config/sparc/tm-sp64.h: Update.
6732 * config/sparc/tm-sparc.h: Update.
6733 * config/sparc/tm-sparclet.h: Update.
6734 * config/z8k/tm-z8k.h: Update.
6735
5179e78f
AC
67362002-06-14 Andrew Cagney <cagney@redhat.com>
6737
6738 * Makefile.in (i386_linux_tdep_h): Define.
6739 (i386_tdep_h, i387_tdep_h): Define.
6740 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6741 $(i386_tdep_h) and $(i387_tdep_h).
6742 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6743
8201327c
MK
67442002-06-14 Mark Kettenis <kettenis@gnu.org>
6745
edf393ac
MK
6746 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6747 Already covered by the default.
6748
896fb97d
MK
6749 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6750 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6751 (i386_gdbarch_init): Initialize long_double_format and long_double
6752 bit.
6753
8201327c
MK
6754 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6755 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6756 Move these to ...
6757 * config/i386/i386sol2.mh: ... here.
6758 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6759 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6760 (SIGCONTEXT_PC_OFFSET): Remove define.
6761 (IN_SIGTRAMP): Remove define.
6762 * i386-sol2-tdep.c: New file.
6763
6764 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6765 * config/i386/tm-i386nw.h: Removed.
6766
6767 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6768 USE_STRUCT_CONVENTION): Remove defines.
6769 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6770 (get_longjmp_target): Remove prototype.
6771 (IN_SIGTRAMP): Remove define.
6772 (i386bsd_in_sigtramp): Remove prototype.
6773 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6774 function. Update comment accordingly
6775 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6776 (FRAME_SAVED_PC): Remove define.
6777 (i386bsd_frame_saved_pc): Remove prototype.
6778 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6779 GET_LONGJMP_TARGET): Remove defines.
6780 (get_longjmp_target): Remove prototype.
6781 (IN_SIGTRAMP): Remove define.
6782 (i386bsd_in_sigtramp): Remove prototype.
6783 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6784 function. Update comment accordingly
6785 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6786 (FRAME_SAVED_PC): Remove define.
6787 (i386bsd_frame_saved_pc): Remove prototype.
6788 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6789 Remove prototype.
6790 (USE_STRUCT_CONVENTION): Remove prototype.
6791 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6792 declaration.
6793 (_initialize_i386bsd_nat): Revise logic to determine some
6794 constants at compile time when compiling a native GDB. Warn if
6795 things don't match up with what we expect.
6796 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6797 Remove variables.
6798 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6799 to use date stored in `struct gdbarch_tdep'.
6800 (i386bsd_sigcontext_offset): Remove varaible.
6801 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6802 stored in `struct gdbarch_tdep'.
6803 (i386bsd_frame_saved_pc): Make static.
6804 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6805 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6806 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6807 i386fbsd4_sc_pc_offset): New variables.
6808 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6809 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6810 functions.
6811 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6812 functions.
6813 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6814 Modify the value of i386fbsd_sigtramp_start and
6815 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6816 i386fbsd_sigtramp_end.
6817 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6818 function.
6819
6820 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6821 define to i386-linux-tdep.h.
6822 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6823 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6824 defines.
6825 (i386_linux_register_name, i386_linux_register_byte,
6826 i386_linux_register_raw_size): Remove prototypes.
6827 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6828 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6829 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6830 TARGET_WRITE_PC): Remove defines.
6831 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6832 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6833 i386_linux_write_pc): Remove prototypes.
6834 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6835 (get_longjmp_target): Remove prototype.
6836 * i386-linux-tdep.h: New file.
6837 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6838 * i386-linux-tdep.c: Include "i386-tdep.h" and
6839 "i386-linux-tdep.h".
6840 (i386_linux_register_name, i386_linux_register_byte,
6841 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6842 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6843 Make static.
6844 (i386_linux_init_abi): New function.
6845 (_initialize_i386_linux_tdep): New function.
6846
6847 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6848 (i386_saved_pc_after_call): Remove prototype.
6849 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6850 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6851 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6852 (i386_register_name, i386_stab_reg_to_regnum,
6853 i386_dwarf_reg_to_regnum): Remove prototypes.
6854 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6855 SIZEOF_SSE_REGS): Remove defines.
6856 (REGISTER_BYTES): Remove define.
6857 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6858 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6859 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6860 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6861 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6862 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6863 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6864 (get_longjmp_target): Remove prototype.
6865 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6866 (sigtramp_saved_pc): Remove define.
6867 (i386v4_sigtramp_saved_pc): Remove prototype.
6868 * config/i386/tm-go32.h (FRAME_CHAIN,
6869 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6870 (i386go32_frame_saved_pc): Remove prototype.
6871 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6872 (get_longjmp_target): Remove prototype.
6873 * i386-tdep.h: Include "osabi.h".
6874 (enum i386_abi): Removed.
6875 (enum struct_return): New enum.
6876 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6877 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6878 sc_pc_offset members.
6879 (i386_gdbarch_register_os_abi): Remove prototype.
6880 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6881 I386_SSE_NUM_REGS): New defines.
6882 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6883 I386_SSE_SIZEOF_REGS): New defines.
6884 (i386_register_name, i386_register_byte, i386_register_raw_size):
6885 New prototypes.
6886 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6887 (i386bsd_sigtramp_saved_pc): New prototype.
6888 * i386-tdep.c: Don't include "elf-bfd.h".
6889 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6890 i386_frame_chain, i386_saved_pc_after_call): Make static.
6891 (i386_frame_saved_pc): Rewrite to call architecture dependent
6892 function to deal with signal handlers. Make static.
6893 (i386go32_frame_saved_pc): Removed.
6894 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6895 Removed.
6896 (i386_get_longjmp_target): New function.
6897 (default_struct_convention, pcc_struct_convention,
6898 reg_struct_convention, valid_conventions, struct_convention): New
6899 variables.
6900 (i386_use_struct_convention): New function.
6901 (i386v4_sigtramp_saved_pc): Renamed to
6902 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6903 (i386_pc_in_sigtramp): New function.
6904 (i386_abi_names): Removed.
6905 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6906 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6907 Removed.
6908 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6909 i386_gdbarch_register_os_abi): Removed.
6910 (struct i386_abi_handler): Removed.
6911 (i386_abi_handler_list): Removed.
6912 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6913 functions.
6914 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6915 i386_nw_init_abi): New functions.
6916 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6917 Use set_gdbarch_xxx() calls instead of relying on macros for a
6918 number of calls.
6919 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6920 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6921 Register the various architecture variants defined in this file.
6922
ad2f7632
DJ
69232002-06-14 Daniel Jacobowitz <drow@mvista.com>
6924
6925 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6926 (struct main_type): Remove arg_types member. Update comments for
6927 struct field.
6928 (TYPE_ARG_TYPES): Remove.
6929 (TYPE_FN_FIELD_ARGS): Update.
6930 (smash_to_method_type): Update prototype.
6931
6932 * c-typeprint.c (cp_type_print_method_args): Take method type
6933 instead of argument list. Use new argument layout. Simplify.
6934 (c_type_print_args): Use new argument layout. Simplify.
6935 (c_type_print_base): Update call to cp_type_print_method_args.
6936 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6937 argument; use die->type instead. Update call to
6938 smash_to_method_type.
6939 (read_structure_scope): Update call to dwarf2_add_member_fn.
6940 * gdbtypes.c (allocate_stub_method): Update comment.
6941 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6942 Use new argument layout.
6943 (check_stub_method): Use new argument layout. Don't count
6944 void as an argument.
6945 (print_arg_types): Update comments. Use new argument layout.
6946 (recursive_dump_type): Don't print arg_types member.
6947 * hpread.c (hpread_read_struct_type): Use new argument layout.
6948 (fixup_class_method_type): Likewise.
6949 (hpread_type_lookup): Likewise.
6950 * stabsread.c (read_type): Update calls to read_args and
6951 smash_to_method_type.
6952 (read_args): Use new argument layout. Simplify.
6953 * valops.c (typecmp): Use new argument layout. Update parameters
6954 and comments. Simplify.
6955 (hand_function_call): Use new argument layout.
6956 (search_struct_method): Update call to typecmp.
6957 (find_overload_match): Use new argument layout.
6958
6da02953
DJ
69592002-06-13 Daniel Jacobowitz <drow@mvista.com>
6960
6961 * NEWS: Mention multithreaded debug support for gdbserver.
6962
519b2366
DJ
69632002-06-13 Daniel Jacobowitz <drow@mvista.com>
6964
6965 * MAINTAINERS: Mention NEWS.
6966
6c0d6680
DJ
69672002-06-13 Daniel Jacobowitz <drow@mvista.com>
6968
6969 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6970 (struct mips_objfile_private, compare_pdr_entries): New.
6971 (non_heuristic_proc_desc): Read the ".pdr" section if it
6972 is present.
6973
6529d2dd
AC
69742002-06-12 Andrew Cagney <ac131313@redhat.com>
6975
6976 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6977 (arm_debug): New static variable.
6978 (_initialize_arm_tdep): Add ``set debug arm'' command.
6979
26216b98
AC
69802002-06-12 Andrew Cagney <ac131313@redhat.com>
6981
6982 * Makefile.in (sim_arm_h): Define.
6983 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6984 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6985 (arm_register_sim_regno): New function, map an internal REGNUM
6986 onto a simulator register number.
6987 (arm_gdbarch_init): Set register_sim_regno.
6988
814b3ba0
AH
69892002-06-09 Aldy Hernandez <aldyh@redhat.com>
6990
6991 * MAINTAINERS: Add self.
6992
475b0867
JB
69932002-06-11 Jim Blandy <jimb@redhat.com>
6994
919d772c
JB
6995 * source.c (source_info): Mention whether the symtab has
6996 information about preprocessor macros.
6997
475b0867
JB
6998 Call the command `info macro', not `show macro'.
6999 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7000 Fix error message.
7001 (_initialize_macrocmd): Register `info_macro_command' in
7002 `infolist', not `showlist'.
7003
9e364162
DJ
70042002-06-11 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7007 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7008 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7009 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7010 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7011 unconditionally.
7012 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7013 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7014 (_initialize_mips_tdep): Remove dead code.
7015 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7016 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7017 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7018 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7019 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7020 MIPS_LAST_FP_ARG_REGNUM): Remove.
7021
23aa4c72
ML
70222002-06-11 Michal Ludvig <mludvig@suse.cz>
7023
7024 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7025 (unwind_tmp_obstack_free, parse_frame_info)
7026 (update_context, cfi_read_fp, cfi_write_fp)
7027 (cfi_frame_chain, cfi_init_extra_frame_info)
7028 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7029 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7030
70eb15a4
CV
70312002-06-11 Corinna Vinschen <vinschen@redhat.com>
7032
7033 * v850-tdep.c (v850_type_is_scalar): New function.
7034 (v850_use_struct_convention): Match current gcc implementation
7035 as close as possible.
7036 (v850_push_arguments): Fix stack_offset handling. Don't write
7037 struct_addr into register. This is done by v850_store_struct_return.
7038 (v850_extract_return_value): Care for structs.
7039 (v850_store_return_value): Ditto.
7040 (v850_store_struct_return): Actually write address.
7041
482a4d06
ML
70422002-06-11 Michal Ludvig <mludvig@suse.cz>
7043
7044 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7045 without debug information too.
7046
d855c300
AC
70472002-06-10 Andrew Cagney <ac131313@redhat.com>
7048
7049 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7050 Make multi-arch pure.
7051 * gdbarch.h, gdbarch.c: Re-generate.
7052 * arm-tdep.c (arm_print_float_info): Update.
7053 * arch-utils.h (default_print_float_info): Update.
7054 * arch-utils.c (default_print_float_info): Update.
7055 * infcmd.c (float_info): Update call.
7056
dd12a101
AC
70572002-06-10 Andrew Cagney <ac131313@redhat.com>
7058
7059 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7060 the front of the initialize list.
7061
101dcfbe
AC
70622002-06-10 Andrew Cagney <ac131313@redhat.com>
7063
7064 * infrun.c (struct inferior_status): Replace fields
7065 selected_frame_address and selected_level with field
7066 selected_frame_id.
7067 (save_inferior_status): Update. Use get_frame_id.
7068 (struct restore_selected_frame_args): Delete.
7069 (restore_selected_frame): Update. Use frame_find_by_id.
7070 (restore_inferior_status): Update.
7071
7072 * breakpoint.h (struct breakpoint): Change type of
7073 watchpoint_frame to frame_id.
7074 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7075 call to get_current_frame.
7076 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7077 get_current_frame.
7078 (watchpoint_check): Use frame_find_by_id.
7079
7080 * frame.h (record_selected_frame): Delete declaration.
7081 * stack.c (record_selected_frame): Delete function.
7082
7083 * frame.h (struct frame_id): Define.
7084 (get_frame_id): Declare.
7085 (frame_find_by_id): Declare.
7086 * frame.c (frame_find_by_id): New function.
7087 (get_frame_id): New function.
7088
304270b6
AV
70892002-06-10 Andrey Volkov <avolkov@transas.com>
7090
7091 * ser-e7kpc.c: Fix duplicated define and call of
7092 _initialize_ser_e7000pc
7093
2f2cf184
DJ
70942002-06-09 Daniel Jacobowitz <drow@mvista.com>
7095
7096 * signals/signals.c (target_signal_from_host): Fix #ifdef
7097 SIGRTMIN case.
7098 (do_target_signal_to_host): Likewise.
7099
caaa3122
DJ
71002002-06-09 Daniel Jacobowitz <drow@mvista.com>
7101
7102 * mips-tdep.c (mips_find_abi_section): New function.
7103 (mips_gdbarch_init): Call it.
7104
6ac5df3a
MK
71052002-06-09 Mark Kettenis <kettenis@gnu.org>
7106
7107 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7108 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7109 after Andrew's 2002-06-08 gdbarch change.
7110
82ea117a
MK
71112002-06-09 Mark Kettenis <kettenis@gnu.org>
7112
7113 * i386-linux-nat.c (suppy_gregset): Don't supply
7114 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7115 register cache.
7116 (fill_gregset): Don't fetch it under the same circumstances.
7117
3c25f8c7
AC
71182002-06-09 Andrew Cagney <cagney@redhat.com>
7119
7120 * Makefile.in (callback_h): Define.
7121 (remote_sim_h): Update path to remote-sim.h.
7122 (remote-rdp.o): Add $(callback_h).
7123 (remote-sim.o): Use $(callback_h).
7124 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7125 * remote-rdp.c: Include "gdb/callback.h".
7126
1029b7fa
MK
71272002-06-09 Mark Kettenis <kettenis@gnu.org>
7128
7129 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7130 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7131
616675d3
AC
71322002-06-08 Andrew Cagney <ac131313@redhat.com>
7133
a3efda28
AC
7134 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7135 * rdi-share/serpardr.c: Ditto.
7136 * rdi-share/unixcomm.c: Ditto.
7137 * rdi-share/serdrv.c: Ditto.
7138 * rdi-share/hostchan.h: Ditto.
7139 * rdi-share/hostchan.c: Ditto.
7140 * rdi-share/host.h: Ditto.
7141 * rdi-share/devsw.c: Ditto.
7142
c5f10366
AC
7143 * objfiles.h: Change type of obj_private to void pointer.
7144 * pa64solib.c: Update copyright. Don't include "assert.h", use
7145 strcmp instead of STREQ, use LONGEST, do not use PTR
7146 * somsolib.c: Ditto.
7147
616675d3
AC
7148 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7149 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7150 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7151
e4b415d9
AC
71522002-06-08 Andrew Cagney <ac131313@redhat.com>
7153
7154 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7155 (default_get_saved_register): Delete function.
7156 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7157 generic_unwind_get_saved_register.
7158 * gdbarch.h, gdbarch.c: Re-generate.
7159
ca0d0b52
AC
71602002-06-08 Andrew Cagney <ac131313@redhat.com>
7161
7162 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7163 generic_func_frame_chain_valid.
7164 * gdbarch.h, gdbarch.c: Re-generate.
7165 * blockframe.c (generic_func_frame_chain_valid): Only check
7166 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7167 passing FP to PC_IN_CALL_DUMMY.
7168 Fix PR gdb/360.
7169
76860b5f
AC
71702002-06-08 Andrew Cagney <ac131313@redhat.com>
7171
7172 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7173 (register_gdbarch_data): Initialize init_p.
7174 (gdbarch_data): Initialize data pointer using the init function.
7175 (init_gdbarch_data): Delete function.
7176 (gdbarch_update_p): Update.
7177 (initialize_non_multiarch): Update.
7178 (struct gdbarch): Add field initialized_p.
7179 * gdbarch.h, gdbarch.c: Re-generate.
7180
8dda9770
ML
71812002-06-07 Michal Ludvig <mludvig@suse.cz>
7182
7183 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7184 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7185 better do the things actually here.
7186 * x86-64-tdep.c (x86_64_register_name2nr): New.
7187 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7188 (x86_64_gdbarch_init): Respect the above change.
7189 * x86-64-tdep.h (x86_64_register_name2nr)
7190 (x86_64_register_nr2name): Add prototypes.
7191 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7192
3d79a47c
MS
71932002-06-06 Michael Snyder <msnyder@redhat.com>
7194
7bd91a28
MS
7195 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7196 Delete extra braces and re-indent.
7197 (d10v_store_return_value): Char return values
3d79a47c
MS
7198 must be shifted over by one byte in R0.
7199 (d10v_extract_return_value): Delete extra braces, re-indent.
7200
095a4c96
EZ
72012002-06-06 Elena Zannoni <ezannoni@redhat.com>
7202
7203 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7204 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7205 (d10v_integer_to_address): Rewrite.
7206 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7207 the d10v specific functions which take care of converting to the
7208 correct space.
7209
e8a77ca4
EZ
72102002-06-06 Elena Zannoni <ezannoni@redhat.com>
7211
7212 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7213 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7214
4f2e4a4f
AC
72152002-06-02 Andrew Cagney <ac131313@redhat.com>
7216
7217 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7218 includes.
7219 * config/tm-linux.h: Ditto.
7220 * config/alpha/tm-alphalinux.h: Ditto.
7221 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7222 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7223 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7224 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7225 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7226 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7227 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7228 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7229 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7230 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7231 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7232 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7233 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7234 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7235 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7236 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7237 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7238 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7239 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7240 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7241 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7242 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7243 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7244 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7245 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7246 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7247 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7248 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7249 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7250 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7251 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7252 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7253 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7254 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7255 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7256 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7257 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7258
ae2ab2ce
AS
72592002-05-04 Aidan Skinner <aidan@velvet.net>
7260
7261 * ada-exp.tab.c: New file
7262 * ada-exp.y: New file
7263 * ada-lang.c: New file
7264 * ada-lang.h: New file
7265 * ada-lex.c: New file
7266 * ada-lex.l: New file
7267 * ada-tasks.c: New file
7268 * ada-typeprint.c: New file
7269 * ada-valprint.c: New file
7270
0ddd0135
JT
72712002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7272
7273 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7274 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7275
750fbacc
JT
72762002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7277
7278 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7279 insetead of ppc-linux-tdep.o.
7280 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7281 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7282
df94e18a
AC
72832002-06-02 Andrew Cagney <ac131313@redhat.com>
7284
7285 2002-05-07 Christian Groessler <chris@groessler.org>
7286 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7287 bit register contents for little endian hosts.
7288
1a38ab75
AC
72892002-06-01 Andrew Cagney <ac131313@redhat.com>
7290
7291 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7292 any maintainer.
7293
8b1632ac
AC
72942002-06-01 Andrew Cagney <ac131313@redhat.com>
7295
7296 * gdbarch.h: Regenerate.
7297
627054c8
AC
72982002-06-01 Andrew Cagney <ac131313@redhat.com>
7299
7300 * MAINTAINERS: Add everyone to write-after-approval list.
7301
4f460812
AC
73022002-06-01 Andrew Cagney <ac131313@redhat.com>
7303
7304 * stack.c (frame_info): Use frame_register_unwind instead of
7305 saved_regs. Mention when the SP is on the stack or in a register.
7306
7307 * frame.h (frame_register_unwind_ftype): Define. Document.
7308 (struct frame_info): Add field register_unwind and
7309 register_unwind_cache.
7310 (frame_register_unwind): Declare.
7311 (generic_unwind_get_saved_register): Declare.
7312
7313 * frame.c (frame_register_unwind): New function.
7314 (generic_unwind_get_saved_register): New function.
7315
7316 * blockframe.c (generic_call_dummy_register_unwind): New function.
7317 (frame_saved_regs_register_unwind): New function.
7318 (set_unwind_by_pc): New function.
7319 (create_new_frame): New function.
7320 (get_prev_frame): New function.
7321
de888f76
AC
73222002-05-30 Andrew Cagney <ac131313@redhat.com>
7323
7324 * a29k-share/: Delete directory.
7325 * remote-vx29k.c: Delete file.
7326
2f2c3626
JT
73272002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7328
7329 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7330 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7331
9ce5c36a
JT
73322002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7333
7334 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7335 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7336 (sparc64nbsd-nat.o)
7337 (sparcnbsd-nat.o)
7338 (sparcnbsd-tdep.o): New dependency lists.
7339 * NEWS: Note new UltraSPARC NetBSD native configuration.
7340 * configure.host (sparc64-*-netbsd*): New host.
7341 * configure.tgt (sparc-*-netbsdelf*)
7342 (sparc-*-netbsd*): Set gdb_target to nbsd.
7343 (sparc64-*-netbsd*): New target.
7344 * sparc64nbsd-nat.c: New file.
7345 * sparcnbsd-nat.c: New file.
7346 * sparcnbsd-tdep.c: New file.
7347 * sparcnbsd-tdep.h: New file.
7348 * config/sparc/nbsd.mt: New file.
7349 * config/sparc/nbsd64.mh: New file.
7350 * config/sparc/nbsd64.mt: New file.
7351 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7352 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7353 (HOST_IPC): Remove.
7354 * config/sparc/nbsdaout.mt: Remove.
7355 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7356 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7357 (HOST_IPC): Remove.
7358 * config/sparc/nbsdelf.mt: Remove.
7359 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7360 sparc-nat.c compatiblity defines.
7361 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7362 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7363 * config/sparc/tm-nbsd64.h: New file.
7364 * config/sparc/tm-nbsdaout.h: Remove.
7365 * config/sparc/xm-nbsd.h: Remove.
7366
ef3cf062
JT
73672002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7368
7369 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7370 * sparc-tdep.c: Include osabi.h.
7371 (gdbarch_tdep): Add osabi member.
7372 (_initialize_sparc_tdep): Use gdbarch_register.
7373 (sparc_gdbarch_init): Use generic OS ABI framework.
7374 (sparc_dump_tdep): New function.
7375
ee8ff470
KB
73762002-05-30 Kevin Buettner <kevinb@redhat.com>
7377
7378 * corefile.c (do_captured_read_memory_integer): Return non-zero
7379 result.
7380 (safe_read_memory_integer): Copy result of memory read when
7381 status is non-zero. Also, add comments.
7382
7b112f9c
JT
73832002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * Makefile.in (ppc_tdep_h): Define.
7386 (ppc-linux-nat.o)
7387 (ppc-linux-tdep.o)
7388 (rs6000-tdep.o): Use $(ppc_tdep_h).
7389 (ppc-sysv-tdep.o)
7390 (ppcnbsd-nat.o)
7391 (ppcnbsd-tdep.o): New dependency lists.
7392 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7393 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7394 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7395 (ppc_sysv_abi_broken_use_struct_convention)
7396 (ppc_sysv_abi_use_struct_convention)
7397 (ppc_sysv_abi_push_arguments): Move to...
7398 * ppc-sysv-tdep.c: ...here.
7399 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7400 * rs6000-tdep.c (process_note_abi_tag_sections)
7401 (get_elfosabi): Remove.
7402 (rs6000_gdbarch_init): Use generic OS ABI framework.
7403 (rs6000_dump_tdep): New function.
7404 (_initialize_rs6000_tdep): Use gdbarch_register.
7405 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7406 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7407 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7408 of ppc-linux-tdep.o.
7409 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7410 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7411 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7412 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7413 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7414 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7415
480dd42a
JB
74162002-05-29 Jim Blandy <jimb@redhat.com>
7417
7418 * macroscope.c (default_macro_scope): Put `void' in empty argument
7419 list.
7420
4182591f
AC
74212002-05-29 Andrew Cagney <ac131313@redhat.com>
7422
7423 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7424 * arch-utils.c: Include "sim-regno.h".
7425 * gdbarch.sh: Don't include "sim-regno.h".
7426 * gdbarch.h, gdbarch.c: Regenerate.
7427 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7428 here.
7429 * arch-utils.h (legacy_register_sim_regno): To here.
7430 * remote-sim.c (legacy_register_sim_regno): Move function from
7431 here.
7432 * arch-utils.c (legacy_register_sim_regno): To here.
7433
8238d0bf
AC
74342002-05-28 Andrew Cagney <ac131313@redhat.com>
7435
7436 * sim-regno.h: New file.
7437 * Makefile.in (sim_regno_h): Define.
7438 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7439 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7440 (legacy_register_sim_regno): New function.
7441 (one2one_register_sim_regno): New function.
7442 (gdbsim_fetch_register): Rewrite.
7443 (gdbsim_store_register): Only store a register when
7444 REGISTER_SIM_REGNO is valid.
7445 * d10v-tdep.c: Include "sim-regno.h".
7446 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7447 (d10v_ts3_register_sim_regno): Ditto.
7448 * gdbarch.sh: Include "sim-regno.h".
7449 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7450 * gdbarch.h, gdbarch.c: Regenerate.
7451 * arch-utils.h (default_register_sim_regno): Delete declaration.
7452 * arch-utils.c (default_register_sim_regno): Delete function.
7453
485721b1
JT
74542002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7455
7456 * ppcnbsd-nat.c: Rewrite.
7457 * ppcnbsd-tdep.c: New file.
7458 * ppcnbsd-tdep.h: New file.
7459 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7460 solib.o, and solib-svr4.o.
7461 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7462 nbsd-tdep.o, and corelow.o.
7463
697f244d
AC
74642002-05-28 Andrew Cagney <ac131313@redhat.com>
7465
7466 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7467 `tr' and `sed'. Mention that `broken' targets are not expected to
7468 build.
7469
f08caad1 74702002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7471
7472 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7473 Let PC point right after the prologue before looking up symbols.
7474
3139facc
MH
74752002-05-27 Martin M. Hunt <hunt@redhat.com>
7476
7477 * i386-tdep.c (i386_register_virtual_type): Return
7478 builtin_type_vec128i for SSE registers.
7479
7480 * gdbtypes.h (builtin_type_vec128i): Declare.
7481
7482 * gdbtypes.c (build_builtin_type_vec128i): New function.
7483 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7484 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7485 (build_gdbtypes): Initialize new builtin vector types.
7486 (_initialize_gdbtypes): Register new vector types with gdbarch.
7487
6e3ba3b8
JT
74882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7489
7490 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7491 since it has been multi-arch'd.
7492 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7493 Move Alpha and VAX multi-arch news entries to same section
7494 as other multi-arch news.
7495
93d5585d
JT
74962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7497
7498 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7499 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7500 static. Rename some register numbers to put them in ns32k-tdep
7501 private namespace.
7502 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7503 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7504 functions.
7505 (_initialize_ns32k_tdep): Use gdbarch_register.
7506 * ns32k-tdep.h: New file.
7507 * ns32knbsd-tdep.c: New file.
7508 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7509 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7510 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7511 REGISTER_BYTES, REGISTER_BYTE): Remove.
7512 * config/ns32k/tm-ns32k.h: New file.
7513 * config/ns32k/tm-umax.h: Remove.
7514
efb2c70e
JT
75152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7516
7517 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7518 ns32k_store_struct_return, ns32k_extract_return_value,
7519 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7520 functions.
7521 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7522 ns32k_saved_pc_after_call.
7523 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7524 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7525 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7526 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7527 ns32k_extract_struct_value_address.
7528
7bcc927b
JT
75292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7530
7531 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7532 ns32k_fix_call_dummy): New.
7533 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7534 ns32k_call_dummy_words.
7535 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7536 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7537 CALL_DUMMY_NARGS): Remove.
7538 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7539
78f9d765
JT
75402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7541
7542 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7543 ns32k_frame_saved_pc, ns32k_frame_args_address,
7544 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7545 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7546 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7547 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7548 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7549 (BREAKPOINT): Remove..
7550 (FRAME_CHAIN): Define as ns32k_frame_chain.
7551 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7552 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7553 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7554 (FRAME_FIND_SAVED_REGS): Remove.
7555 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7556 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7557 (POP_FRAME): Define as ns32k_pop_frame.
7558
f2c762e0
JT
75592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7560
7561 * ns32k-tdep.c (ns32k_register_byte_32082,
7562 ns32k_register_byte_32382, ns32k_register_raw_size,
7563 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7564 functions.
7565 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7566 ns32k_register_byte_32382.
7567 * config/ns32k/tm-umax.h: Update copyright years.
7568 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7569 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7570 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7571 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7572 (ns32k_get_enter_addr): Fix prototype.
7573
af137673
JT
75742002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7575
7576 * ns32k-tdep.c: Update copyright years.
7577 (ns32k_register_name_32082): New function.
7578 (ns32k_register_name_32382): Ditto.
7579 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7580 (REGISTER_NAME): Define as ns32k_register_name_32382.
7581 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7582 (REGISTER_NAME): Define as ns32k_register_name_32082.
7583
a8bc7b56
JB
75842002-05-24 Jim Blandy <jimb@redhat.com>
7585
7586 * dwarf2read.c (free_line_header): Use xfree, not free.
7587
83a45910
JT
75882002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7589
7590 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7591 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7592
0db71247
AC
75932002-05-23 Andrew Cagney <ac131313@redhat.com>
7594
7595 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7596
b9e5e4dd
AC
75972002-05-23 Andrew Cagney <ac131313@redhat.com>
7598
7599 From Ross Alexander at NEC Europe:
7600 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7601
de530e84
MS
76022002-05-23 Michael Snyder <msnyder@redhat.com>
7603
7604 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7605 for input, rather than parse_and_eval_address.
7606
b91b96f4
AC
76072002-05-23 Andrew Cagney <ac131313@redhat.com>
7608
7609 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7610 * Makefile.in (sim_d10v_h): Update definition.
7611
8b279e7a
AC
76122002-05-24 Andrew Cagney <cagney@redhat.com>
7613
7614 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7615 change `2002-05-22 Michael Snyder' below.
7616 (d10v_push_arguments): Ditto.
7617 (d10v_extract_return_value): Ditto.
7618
0a3d0425
JB
76192002-05-23 Jim Blandy <jimb@redhat.com>
7620
7621 * macrotab.c (check_for_redefinition): Don't complain if the new
7622 definition is the same as the previous one. Take more arguments
7623 to allow the comparison.
7624 (macro_define_object, macro_define_function): Pass more arguments
7625 to check_for_redefinition.
7626
78eac43e
MS
76272002-05-22 Michael Snyder <msnyder@redhat.com>
7628
7629 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7630 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7631 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7632 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7633 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7634 Add a temp variable to save a call (and a memory read).
7635 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7636 if possible (so that PC_IN_CALL_DUMMY will work).
7637
9bc1edb8
CV
76382002-05-22 Corinna Vinschen <vinschen@redhat.com>
7639
7640 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7641
005ef3d2
ML
76422002-05-22 Michal Ludvig <mludvig@suse.cz>
7643
7644 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7645 fde->cie_ptr.
7646 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7647 (dwarf2_build_frame_info): Add offset to fde->initial_location
7648 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7649 (execute_stack_op): Change type of 'result' from ULONGEST to
7650 CORE_ADDR.
005ef3d2 7651
fcf4f891
JT
76522002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7653
7654 * config/alpha/tm-nbsd.h: Include solib.h.
7655
cfef91e4
JT
76562002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7657
7658 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7659 assumptions about the host's byte order.
7660
9964235a
JT
76612002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7662
7663 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7664 to dependency list.
7665 * alphanbsd-tdep.c: Include solib-svr4.h.
7666 * shnbsd-tdep.c: Ditto.
7667
9eeef8ef
JT
76682002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7669
7670 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7671 nbsd-tdep.h to dependency list.
7672 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7673 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7674 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7675 nbsdaout.mh and nbsdelf.mh consistently.
7676 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7677 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7678 nbsdaout.mt and nbsdelf.mh consistently.
7679 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7680 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7681 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7682 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7683 a.out shared library stuff from here...
7684 * config/nm-nbsdaout.h: ...to here.
7685 * config/tm-nbsd.h: Remove.
7686 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7687 * config/arm/nbsd.mh: Remove.
7688 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7689 nbsd-tdep.o.
7690 * config/arm/nbsdaout.mh: New file.
7691 * config/arm/nbsdelf.mh: New file.
7692 * config/arm/nm-nbsdaout.h: New file.
7693 * config/i386/nbsd.mh: Remove.
7694 * config/i386/nbsd.mt: Remove.
7695 * config/i386/nbsdaout.mh: New file.
7696 * config/i386/nbsdaout.mt: New file.
7697 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7698 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7699 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7700 i386_register_u_addr): Remove.
7701 * config/i386/nm-nbsdaout.h: New file.
7702 * config/i386/nm-nbsdelf.h: Remove.
7703 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7704 (USE_STRUCT_CONVENTION): Remove.
7705 * config/i386/tm-nbsdaout.h: New file.
7706 * config/i386/tm-nbsdelf.h: Remove.
7707 * config/m68k/nbsd.mh: Remove.
7708 * config/m68k/nbsd.mt: Remove.
7709 * config/m68k/nbsdaout.mh: New file.
7710 * config/m68k/nbsdaout.mt: New file.
7711 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7712 * config/m68k/nm-nbsdaout.h: New file.
7713 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7714 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7715 * config/ns32k/nbsd.mh: Remove.
7716 * config/ns32k/nbsd.mt: Remove.
7717 * config/ns32k/nbsdaout.mh: New file.
7718 * config/ns32k/nbsdaout.mt: New file.
7719 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7720 * config/ns32k/nm-nbsdaout.h: New file.
7721 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7722 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7723 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7724 (SVR4_SHARED_LIBS): Remove.
7725 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7726 * config/sparc/nbsd.mh: Remove.
7727 * config/sparc/nbsd.mt: Remove.
7728 * config/sparc/nbsdaout.mh: New file.
7729 * config/sparc/nbsdaout.mt: New file.
7730 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7731 * config/sparc/nbsdelf.mt: New file.
7732 * config/sparc/nm-nbsdaout.h: New file.
7733 * config/sparc/nm-nbsdelf.h: Remove.
7734 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7735 * config/sparc/tm-nbsdaout.h: New file.
7736
257ce470
JT
77372002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7738
7739 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7740 mipsnbsd-tdep.c
7741 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7742
76a6d5fe
JT
77432002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7744
7745 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7746 shnbsd-nat.c.
7747 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7748
45888261
JT
77492002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7750
7751 * NEWS: Note new MIPS NetBSD native configuration.
7752 * configure.host (mips*-*-netbsd*): New host.
7753 * configure.tgt (mips*-*-netbsd*): New target.
7754 * mipsnbsd-nat.c: New file.
7755 * mipsnbsd-tdep.c: New file.
7756 * mipsnbsd-tdep.h: New file.
7757 * config/mips/nbsd.mh: New file.
7758 * config/mips/nbsd.mt: New file.
7759 * config/mips/nm-nbsd.h: New file.
7760 * config/mips/tm-nbsd.h: New file.
7761
70f80edf
JT
77622002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7763
7764 * Makefile.in (SFILES): Add osabi.c.
7765 (COMMON_OBS): Add osabi.o.
7766 (osabi.o): New dependency list.
7767 * osabi.c: New file.
7768 * osabi.h: New file.
7769 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7770
7771 * Makefile.in (alpha_tdep_h): Define and use instead of
7772 alpha-tdep.h.
7773 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7774 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7775 Remove.
7776 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7777 * alpha-tdep.h: Include osabi.h.
7778 (alpha_abi): Remove.
7779 (gdbarch_tdep): Use generic OS ABI framework.
7780 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7781 gdbarch_register_osabi.
7782 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7783 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7784 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7785
7786 * Makefile.in (sh_tdep_h): Add osabi.h.
7787 * sh-tdep.h (sh_osabi): Remove.
7788 (gdbarch_tdep): Use generic OS ABI framework.
7789 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7790 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7791 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7792 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7793
7794 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7795 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7796 gdbarch_register_osabi.
7797 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7798 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7799 (get_elfosabi): Rename to...
7800 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7801 ABI framework support routines.
7802 (arm_gdbarch_init): Use generic OS ABI framework.
7803 (arm_dump_tdep): Likewise.
7804 (_initialize_arm_tdep): Likewise.
7805 * arm-tdep.h: Include osabi.h.
7806 (arm_abi): Remove.
7807 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7808 osabi member.
7809 (arm_gdbarch_register_os_abi): Remove prototype.
7810 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7811 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7812
7813 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7814 * mips-tdep.c: Include osabi.h.
7815 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7816 OS ABI framework.
7817
d194345b
KH
78182002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7819
7820 * h8300-tdep.c: Fix formatting.
7821
70c6b0d1
EZ
78222002-05-20 Elena Zannoni <ezannoni@redhat.com>
7823
7824 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7825 printing vector registers.
7826
165b8e33
AC
78272002-05-19 Andrew Cagney <ac131313@redhat.com>
7828
7829 From Fernando Nasser:
7830 * remote.c (remote_async_open_1): Re-throw the exception when the
7831 connection fails.
7832 (remote_cisco_open): Ditto.
7833 (remote_open_1): Ditto.
7834
36918e70
AC
78352002-05-19 Andrew Cagney <ac131313@redhat.com>
7836
7837 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7838 (remote_start_remote): Add uiout parameter. Pass through to
7839 remote_start_remote_dummy.
7840 (remote_open_1): Use catch_exception instead of catch_errors.
7841 (remote_async_open_1): Ditto.
7842 (remote_cisco_open): Ditto.
7843
ae44c0c4
AC
78442002-05-19 Andrew Cagney <ac131313@redhat.com>
7845
7846 * remote.c (remote_start_remote): Replace PTR with void pointer.
7847 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7848 static.
7849
8efe637d
AC
78502002-05-18 Andrew Cagney <ac131313@redhat.com>
7851
7852 * gdb_indent.sh: Allow the script to be run in the sim directory.
7853
2f1b5984
MK
78542002-05-18 Mark Kettenis <kettenis@gnu.org>
7855
f0f625e2
MK
7856 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7857 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7858
2f1b5984
MK
7859 * corelow.c (core_open): Only call set_gdbarch_from_file if
7860 exec_bfd is NULL.
7861
fc974602
AV
78622002-05-17 Andrey Volkov <avolkov@transas.com>
7863
7864 * h8300-tdep.c: Add support of EXR register
7865 * config/h8300/tm-h8300.h: Ditto.
7866
906709f4
AV
78672002-05-17 Andrey Volkov <avolkov@transas.com>
7868
7869 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7870
6e591d68
AV
78712002-05-17 Andrey Volkov <avolkov@transas.com>
7872
7873 * h8300-tdep.c: Change literal regnums to REGNO.
7874
84f0252a
JB
78752002-05-17 Jim Blandy <jimb@redhat.com>
7876
e0e9281e
JB
7877 * NEWS: Note addition of macro support.
7878
84f0252a
JB
7879 Expand preprocessor macros in C expressions.
7880 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7881 (scan_macro_expansion, scanning_macro_expansion,
7882 finished_macro_expansion): New function declarations.
7883 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7884 variable declarations.
7885 * parser-defs.h (expression_context_pc): New declaration.
7886 * parse.c (expression_context_pc): New variable.
7887 (parse_exp_1): Set expression_context_pc, as well as
7888 expression_context_block.
7889 * c-exp.y (yylex): If we're not already reading the result of a
7890 macro expansion, try to macro-expand the next token. When we're
7891 done scanning a macro expansion, switch back to the mainline text.
7892 Commas and `if's in a macro's expansion don't terminate the input.
7893 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7894 (macro_original_text, macro_expanded_text,
7895 expression_macro_lookup_func, expression_macro_lookup_baton): New
7896 variables.
7897 (scan_macro_expansion, scanning_macro_expansion,
7898 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7899 c_preprocess_and_parse): New functions.
7900 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7901 c_preprocess_and_parse, instead of c_parse.
7902 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7903 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7904
1c509ca8
JR
7905Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7906
7907 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7908 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7909 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7910
2250ee0c
CV
79112002-05-17 Corinna Vinschen <vinschen@redhat.com>
7912
7913 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7914
ab3b8126
JT
79152002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7916
7917 * Makefile.in (sh_tdep_h): Define and use.
7918 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7919 register enum): Move to...
7920 * * sh-tdep.h: ...here.
7921 * sh-tdep.c: Include sh-tdep.h.
7922 * sh3-rom.c: Likewise.
7923 * shnbsd-tdep.c: Likewise.
7924
ed9d4749
MS
79252002-05-16 Michael Snyder <msnyder@redhat.com>
7926
7927 * arm-tdep.c: Spelling fix in comment.
7928
2e276125
JB
79292002-05-16 Jim Blandy <jimb@redhat.com>
7930
6821892e
JB
7931 Add commands for manually expanding macros and showing their
7932 definitions.
7933 * macrocmd.c, macroscope.c, macroscope.h: New files.
7934 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7935 (macroscope_h): New variable.
7936 (HFILES_NO_SRCDIR): Add macroscope.h.
7937 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7938 (macroscope.o, macrocmd.o): New rules.
7939
2e276125
JB
7940 Teach the Dwarf 2 reader to read macro information.
7941 * dwarf2read.c: #include "macrotab.h".
7942 (dwarf_macinfo_buffer): New variable.
7943 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7944 dwarf_macinfo_size.
7945 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7946 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7947 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7948 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7949 dwarf2_macro_spaces_in_definition): New complaints.
7950 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7951 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7952 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7953 the partial symbol table.
7954 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7955 from what's recorded in the partial symbol table.
7956 (read_file_scope): If the compilation unit has a
7957 `DW_AT_macro_info' attribute, read its macro information.
7958 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7959
2f53fe6c
DJ
79602002-05-16 Daniel Jacobowitz <drow@mvista.com>
7961
7962 Fix PR gdb/546
7963 * ser-tcp.c: Don't include <netinet/udp.h>.
7964
2be99286
SC
79652002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7966
7967 * MAINTAINERS: Update my email address.
7968
c9af212b 79692002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7970
7971 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7972 include file of the same name.
7973
bf5f1a52
CV
79742002-05-16 Corinna Vinschen <vinschen@redhat.com>
7975
7976 * configure.tgt: Mark v850 as multi-arched.
7977 * config/v850/tm-v850.h: Remove file.
7978 * config/v850/v850.mt: Eliminate TM_FILE.
7979
435e042a
CV
79802002-05-16 Corinna Vinschen <vinschen@redhat.com>
7981
7982 * v850-tdep.c: Full multi-arch.
7983 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7984 Define GDB_MULTI_ARCH to 2.
7985
9819c6c8
PM
79862002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7987
7988 * p-exp.y (current_type): New static variable.
7989 Carries the type of the expression at the position that is parsed.
7990 (push_current_type, pop_current_type): Two new functions. Used
7991 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7992 (search_field): New static variable. Set to one after parsing a point
7993 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7994 (FIELDNAME): New token. After a point only a token belonging to
7995 current_type type definition is allowed.
7996 (all over token rules): reset and change current_type according
7997 to rules.
7998 (exp '[' rule): insert implicit array index field if
7999 exp is a pascal string type.
8000
3a06899a
CV
80012002-05-16 Corinna Vinschen <vinschen@redhat.com>
8002
8003 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8004 frame info. Use frame_info's saved_regs instead of matching member
8005 in extra_frame_info throughout.
8006 (v850_frame_init_saved_regs): New function.
8007 (v850_init_extra_frame_info): Move most functionality into
8008 v850_frame_init_saved_regs().
8009 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8010 (v850_frame_find_saved_regs): Remove declaration.
8011 (FRAME_FIND_SAVED_REGS): Remove definition.
8012 (v850_frame_init_saved_regs): Add declaration.
8013 (FRAME_INIT_SAVED_REGS): Add definition.
8014
6ed14b0e
CV
80152002-05-16 Corinna Vinschen <vinschen@redhat.com>
8016
8017 * v850-tdep.c: Begin multi-arch'ing v850.
8018 (v850_target_architecture_hook): Remove function.
8019 (v850_gdbarch_init): New function. Add code previously in
8020 v850_target_architecture_hook().
8021 (_initialize_v850_tdep): Don't set target_architecture_hook.
8022 Call register_gdbarch_init() instead.
8023
42725910
DJ
80242002-05-16 Daniel Jacobowitz <drow@mvista.com>
8025
8026 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8027 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8028 (fixup_class_method_type): Likewise.
8029
99d9066e
JB
80302002-05-15 Jim Blandy <jimb@redhat.com>
8031
8032 Add macro structures to GDB's symbol tables. Nobody puts anything
8033 in them yet.
8034 * symtab.h (struct symtab): New member: `macro_table'.
8035 * buildsym.h (pending_macros): New global variable.
8036 * buildsym.c: #include "macrotab.h".
8037 (buildsym_init): Initialize `pending_macros'.
8038 (end_symtab): If we found macro information while reading a CU's
8039 debugging info, do build a symtab structure for it. Make the
8040 symtab point to the macro information, and clear the
8041 `pending_macros' pointer which held it while we were reading the
8042 debug info.
8043 (really_free_pendings): Free any pending macro table.
8044 * objfiles.h (struct objfile): New member: `macro_cache'.
8045 * objfiles.c (allocate_objfile): Set allocate and free functions
8046 for the macro cache's objstack.
8047 (free_objfile): Empty the macro cache's obstack.
8048 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8049 set new allocate and free functions for it.
8050 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8051 free functions for the macro cache's objstack. (Why is this
8052 function building its own objfile?)
8053 * symmisc.c (print_objfile_statistics): Print statistics on the
8054 macro bcache.
8055 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8056
c899585b
RE
80572002-05-15 Richard Earnshaw <rearnsha@arm.com>
8058
8059 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8060 (REGISTER_U_ADDR): Delete definition.
8061 (arm_register_u_addr): Delete declaration.
8062
a6cdd8c5
RE
80632002-05-15 Richard Earnshaw <rearnsha@arm.com>
8064
8065 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8066 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8067
c97dcfc7
AC
80682002-05-14 Andrew Cagney <ac131313@redhat.com>
8069
8070 * regcache.c (register_valid): Revise comments refering to "Not
8071 available" and "unavailable".
8072 * frame.c (frame_register_read): Ditto.
8073 * findvar.c (value_of_register): Ditto.
8074
93021b7d
AC
80752002-05-15 Andrew Cagney <cagney@redhat.com>
8076
8077 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8078 (remote-sim.o): Update dependencies.
8079 (d10v-tdep.o): Specify dependencies.
8080 (sim_d10v_h): Define.
8081
a86bc61c
JB
80822002-05-14 Jim Blandy <jimb@redhat.com>
8083
8084 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8085 * macrotab.c (macro_lookup_inclusion, find_definition,
8086 new_macro_table): Same.
8087
8088 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8089 not `! strcmp ()'. This is a dubious improvement.
8090 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8091
8092 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8093 although it's not necessary, to avoid a warning.
8094
2fdde8f8
DJ
80952002-05-14 Daniel Jacobowitz <drow@mvista.com>
8096
8097 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8098 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8099 TYPE_INSTANCE_FLAGS.
8100 (struct main_type): New.
8101 (struct type): Move most members to struct main_type. Change
8102 cv_type and as_type to new type_chain member. Add instance_flags.
8103 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8104 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8105 (finish_cv_type): Remove prototype.
8106 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8107 Set TYPE_CHAIN.
8108 (alloc_type_instance): New function.
8109 (smash_type): New function.
8110 (make_pointer_type, make_reference_type, make_function_type)
8111 (smash_to_member_type, smash_to_method_type): Call smash_type.
8112 (make_qualified_type): New function.
8113 (make_type_with_address_space): Call make_qualified_type.
8114 (make_cv_type): Likewise.
8115 (finish_cv_type): Remove unnecessary function.
8116 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8117 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8118 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8119 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8120 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8121 * hpread.c (hpread_read_struct_type): Likewise.
8122 * stabsread.c (read_struct_type): Likewise.
8123
843fedf4
EZ
81242002-05-14 Elena Zannoni <ezannoni@redhat.com>
8125
8126 * configure.tgt: Add a catch all sh* target, for cases like
8127 sh[2,3,4]-elf and sh-hms.
8128
05a6c72c
KS
81292002-05-14 Keith Seitz <keiths@redhat.com>
8130
8131 * event-loop.c (create_file_handler): Don't do anything but
8132 update data when we are given a fd which we are already
8133 monitoring.
8134
5d085aaf
ML
81352002-05-14 Michal Ludvig <mludvig@suse.cz>
8136
8137 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8138 (update_context): Use __func__ in warnings.
8139
9db8d71f
DJ
81402002-05-14 Daniel Jacobowitz <drow@mvista.com>
8141
8142 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8143 and tcp_close to net_open and net_close.
8144 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8145 using UDP if requested. Don't try to disable Nagle on UDP
8146 sockets.
8147 * remote.c (remote_serial_open): New function. Warn about UDP.
8148 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8149
5dbc6baa
EZ
81502002-05-13 Elena Zannoni <ezannoni@redhat.com>
8151
8152 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8153
cc3023f7
EZ
81542002-05-13 Elena Zannoni <ezannoni@redhat.com>
8155
8156 * configure.tgt: Remove sh-hms target.
8157 * MAINTAINERS: Don't list sh-hms as a separate target.
8158
ec2bcbe7
JB
81592002-05-13 Jim Blandy <jimb@redhat.com>
8160
8161 Add first preprocessor macro-expansion files.
8162 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8163 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8164 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8165 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8166 (COMMON_OBS): Add macrotab.o, macroexp.o.
8167 (macroexp.o, macrotab.o): New rules.
8168
6d531722
AC
81692002-05-13 Andrew Cagney <ac131313@redhat.com>
8170
8171 * config/m88k/tm-m88k.h: Update copyright.
8172 (m88k_target_write_pc): Declare
8173 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8174 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8175 (SHIFT_INST_REGS): Update definition.
8176 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8177 using old definition of TARGET_WRITE_PC.
8178 * regcache.c (generic_target_write_pc): Delete code handling
8179 NNPC_REGNUM.
8180 * gdbarch.sh (NNPC_REGNUM): Delete.
8181 * gdbarch.h, gdbarch.c: Regenerate.
8182
3e3f2739
RE
81832002-05-13 Richard Earnshaw <rearnsha@arm.com>
8184
8185 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8186 builtin reg number.
8187
0004e5a2
DJ
81882002-05-13 Daniel Jacobowitz <drow@mvista.com>
8189
8190 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8191 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8192 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8193 access macros.
8194 * c-typeprint.c (cp_type_print_method_args): Likewise.
8195 (c_type_print_args): Likewise.
8196 * d10v-tdep.c (d10v_push_arguments): Likewise.
8197 (d10v_extract_return_value): Likewise.
8198 * expprint.c (print_subexp): Likewise.
8199 * gdbtypes.c (lookup_primitive_typename): Likewise.
8200 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8201 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8202 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8203 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8204 (TYPE_VECTOR): Likewise.
8205 * hpread.c (hpread_read_struct_type)
8206 (fix_static_member_physnames, fixup_class_method_type)
8207 (hpread_type_lookup): Likewise.
8208 * mdebugread.c (parse_symbol, parse_type): Likewise.
8209 * p-lang.c (is_pascal_string_type): Likewise.
8210 * valops.c (hand_function_call): Likewise.
8211 * x86-64-tdep.c (classify_argument): Likewise.
8212
8213 * hpread.c (hpread_read_function_type)
8214 (hpread_read_doc_function_type): Call replace_type.
8215 * dstread.c (create_new_type): Delete.
8216 (decode_dst_structure, process_dst_function): Call alloc_type.
8217 Use type access macros.
8218
dff95cc7
MK
82192002-05-12 Mark Kettenis <kettenis@gnu.org>
8220
8221 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8222 the're not supported by the current architecture.
8223 (i387_fill_fxsave): Likewise.
8224
bbcd32ad
FF
82252002-05-12 Fred Fish <fnf@redhat.com>
8226
8227 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8228 sect_index_xxx members to index the first slot in section_offsets
8229 if all of the section_offsets are zero.
8230
89cf4787
MK
82312002-05-12 Mark Kettenis <kettenis@gnu.org>
8232
8233 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8234 checked in with last change.
8235
1f77ffc5
MK
82362002-05-12 Mark Kettenis <kettenis@gnu.org>
8237
8238 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8239 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8240 config.sub.
8241
89b8b4a9
DJ
82422002-05-12 Daniel Jacobowitz <drow@mvista.com>
8243
8244 * Makefile.in: Update dependencies.
8245
14a5e767
AC
82462002-05-11 Andrew Cagney <ac131313@redhat.com>
8247
8248 * language.c (local_hex_string_custom): Simplify. Do not depend
8249 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8250
8251 * memattr.c (mem_info_command): Replace calls to
8252 longest_local_hex_string and longest_local_hex_string_custom.
8253 * buildsym.c (make_blockvector): Ditto.
8254 * solib.c (info_sharedlibrary_command): Ditto.
8255 * tracepoint.c (tracepoints_info): Ditto.
8256 * symtab.c (print_msymbol_info): Ditto.
8257
8258 * language.c (local_hex_string): Delete.
8259 (local_hex_string_custom): Delete.
8260 (longest_local_hex_string): Rename to local_hex_string.
8261 (longest_local_hex_string_custom): Rename to
8262 local_hex_string_custom.
8263 * language.h (local_hex_string): Change parameter type to LONGEST.
8264 (local_hex_string_custom): Ditto.
8265 (longest_local_hex_string): Delete declaration.
8266 (longest_local_hex_string_custom): Ditto.
8267
8268 * solib.c: Update copyright.
8269 * memattr.c: Update copyright.
8270
13d01224
AC
82712002-05-11 Andrew Cagney <ac131313@redhat.com>
8272
8273 * arch-utils.h (legacy_register_to_value): Declare.
8274 (legacy_value_to_register): Declare.
8275 (legacy_convert_register_p): Declare.
8276 * arch-utils.c (legacy_register_to_value): New function.
8277 (legacy_value_to_register): New function.
8278 (legacy_convert_register_p): New function.
8279
8280 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8281 (VALUE_TO_REGISTER): Define.
8282 (CONVERT_REGISTER_P): Define.
8283 * gdbarch.h, gdbarch.c: Regenerate.
8284
8285 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8286 VALUE_TO_REGISTER.
8287 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8288 CONVERT_REGISTER_P.
8289
4a1970e4
DJ
82902005-05-11 Daniel Jacobowitz <drow@mvista.com>
8291 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8292
8293 * Makefile.in: Update dependencies for valops.c.
8294 * valops.c: Include "gdb_assert.h".
8295 (typecmp): Skip THIS parameter to methods.
8296 (find_method_list): Remove static_memfuncp argument,
8297 update callers. Check for stub methods.
8298 (find_value_oload_method_list): Don't set *static_memfuncp.
8299 (find_overload_match): Don't check for stub methods. Assert
8300 that methods are not stubbed. Handle static methods.
8301 (value_find_oload_method_list): Remove static_memfuncp argument.
8302 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8303 to the argument list for static stub methods.
8304 * value.h (value_find_oload_method_list): Update prototype.
8305
b2e75d78
AC
83062002-05-11 Andrew Cagney <ac131313@redhat.com>
8307
8308 * arch-utils.h (generic_register_size): Declare.
8309 (generic_register_raw_size, generic_register_virtual_size): Delete
8310 declarations.
8311 * arch-utils.c (generic_register_raw_size): Delete.
8312 (generic_register_size): New function.
8313 (generic_register_virtual_size): Delete.
8314
8315 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8316 default generic_register_size.
8317 * gdbarch.h, gdbarch.c: Re-generate.
8318
8319 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8320 register_virtual_size.
8321 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8322 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8323
451fbdda
AC
83242002-05-11 Andrew Cagney <ac131313@redhat.com>
8325
8326 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8327 * gdbarch.h, gdbarch.c: Regenerate.
8328 * gnu-v3-abi.c: Update copyright.
8329 (vtable_address_point_offset): Update.
8330 (gnuv3_rtti_type): Update.
8331 (gnuv3_baseclass_offset): Update.
8332 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8333 (init_fetch_link_map_offsets): Update.
8334 * remote.c (get_remote_state): Update.
8335
6d2f5cea
DJ
83362002-05-11 Daniel Jacobowitz <drow@mvista.com>
8337
8338 * TODO: Remove value_headof/value_from_vtable_info comment.
8339 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8340 * values.c (value_headof, value_from_vtable_info): Delete.
8341 * value.h (value_from_vtable_info): Delete prototype.
8342
d2324da4
AC
83432002-05-11 Andrew Cagney <ac131313@redhat.com>
8344
8345 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8346 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8347 $(gdb_regex_h).
8348 (gdb_assert_h): Define.
8349 (gdb_wait_h): Define.
8350 (gdb_regex_h): Define.
8351
5c717440
DJ
83522002-05-11 Daniel Jacobowitz <drow@mvista.com>
8353
8354 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8355 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8356
6c7861b3
JT
83572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8358
8359 * nbsd-tdep.c: Fix comment.
8360
ea5bc2a6
JT
83612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8362
8363 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8364 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8365 (nbsd-tdep.o): New dependency list.
8366 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8367 nbsd-tdep.h.
8368 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8369 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8370 * nbsd-tdep.c: New file.
8371 * nbsd-tdep.h: New file.
8372 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8373 nbsd-tdep.h.
8374 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8375 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8376 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8377 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8378
b28da865
JT
83792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8380
8381 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8382 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8383 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8384 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8385 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8386 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8387
4b8ff1fa
JT
83882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8389
8390 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8391 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8392 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8393 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8394 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8395 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8396 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8397
dfe6eb1f
JT
83982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8399
8400 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8401 fetch_elfcore_registers to...
8402 * i386nbsd-tdep.c: ...here.
8403 (i386nbsd_use_struct_convention): Rename to...
8404 (i386nbsd_aout_use_struct_convention): ...this.
8405 (i386nbsd_supply_reg): New function.
8406 (i386nbsd_fill_reg): New function.
8407 (fetch_core_registers): Use i386nbsd_supply_reg.
8408 (fetch_elfcore_registers): Likewise.
8409 (_initialize_i386nbsd_tdep): New function.
8410 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8411 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8412 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8413 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8414 (i386nbsd_aout_use_struct_convention): ...this.
8415
20cb8cda
JT
84162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8417
8418 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8419 (store_inferior_registers): Use shnbsd_fill_reg.
8420 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8421 sh_nbsd_supply_register): Collapse into...
8422 (shnbsd_supply_reg): ...this.
8423 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8424 (shnbsd_fill_reg): ...this.
8425 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8426 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8427 (fetch_core_registers): Use shnbsd_supply_reg.
8428 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8429 (sh_nbsd_core_fns): Rename to...
8430 (shnbsd_core_fns): ...this.
8431 (sh_nbsd_elfcore_fns): Rename to...
8432 (shnbsd_elfcore_fns): ...this.
8433 (sh_nbsd_init_abi): Rename to...
8434 (shnbsd_init_abi): ...this.
8435 (_initialize_sh_nbsd_tdep): Rename to...
8436 (_initialize_shnbsd_tdep): ...this.
8437 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8438 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8439 sh_nbsd_fill_register): Remove prototypes.
8440 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8441
e750d25e
JT
84422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8443
8444 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8445 (i387-nat.o): Delete dependency list.
8446 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8447 (x86-64-linux-nat.o): Likewise.
8448 * i387-nat.c: Delete file, moving contents to...
8449 * i387-tdep.c: ...here.
8450 * i387-nat.h: Rename...
8451 * i387-tdep.h: ...to this.
8452 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8453 * i386-linux-nat.c: Likewise.
8454 * i386bsd-nat.c: Likewise.
8455 * i386gnu-nat.c: Likewise.
8456 * i386nbsd-nat.c: Likewise.
8457 * i386v4-nat.c: Likewise.
8458 * x86-64-linux-nat.c: Likewise.
8459 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8460 * config/i386/go32.mh (NATDEPFILES): Likewise.
8461 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8462 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8463 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8464 * config/i386/linux.mh (NATDEPFILES): Likewise.
8465 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8466 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8467 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8468 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8469
1aee598a
JT
84702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8471
8472 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8473 (alphanbsd-nat.o): Remove dependency list.
8474 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8475 * alphanbsd-nat.c: Delete. Contents moved to...
8476 * alphanbsd-tdep.c: ...here.
8477 (_initialize_alphanbsd_tdep): Register core functions.
8478 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8479
12bcb0fe
JT
84802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8481
8482 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8483 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8484 (alphanbsd-nat.o): Likewise.
8485 (alphabsd-tdep.o): New dependency list.
8486 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8487 (fill_gregset): Use alphabsd_fill_reg.
8488 (supply_fpregset): Use alphabsd_supply_fpreg.
8489 (fill_fpregset): Use alphabsd_fill_fpreg.
8490 (fetch_inferior_registers): Use struct reg and struct fpreg
8491 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8492 and alphabsd_supply_fpreg.
8493 (store_inferior_registers): Use struct reg and struct fpreg
8494 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8495 and alphabsd_fill_fpreg.
8496 * alphabsd-tdep.c: New file.
8497 * alphabsd-tdep.h: New file.
8498 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8499 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8500 alphabsd_supply_fpreg.
8501 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8502 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8503
361d1df0
EC
85042002-05-11 Eric Christopher <echristo@redhat.com>
8505
8506 * mips-tdep.c (mips_double_register_type): Fix thinko.
8507 (mips_single_register_type): Ditto.
8508 * MAINTAINERS: Add self.
8509
92dd7cee
MK
85102002-05-11 Mark Kettenis <kettenis@gnu.org>
8511
8512 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8513 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8514 right thing on architectures with different endianness and/or
8515 integer sizes.
8516
e27da16d
JT
85172002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8518
8519 From Christian Limpach <chris@Pin.LU>
8520 * configure.in: Change sed expression which comments out
8521 NATDEPFILES to also comment out continuation lines.
8522 * configure: Regenerate.
8523
ddde02bd
EZ
85242002-05-10 Elena Zannoni <ezannoni@redhat.com>
8525
8526 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8527 big patch.
8528
1c922164
EZ
85292002-05-10 Elena Zannoni <ezannoni@redhat.com>
8530
8531 * sh-tdep.c: Include correct file.
8532
283150cd
EZ
85332002-05-10 Elena Zannoni <ezannoni@redhat.com>
8534
8535 New support for sh64-elf (sh5) target.
8536
8537 * configure.tgt: For sh64-elf target, default to sh-elf.
8538
8539 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8540 (struct gdbarch_tdep): Add new fields for new registers and ABI
8541 info.
361d1df0 8542
283150cd
EZ
8543 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8544 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8545 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8546 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8547 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8548 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8549 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8550 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8551 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8552 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8553 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8554 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8555 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8556 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8557 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8558 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8559 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8560 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8561 sign_extend, sh64_nofp_frame_init_saved_regs,
8562 sh64_init_extra_frame_info, sh64_get_saved_register,
8563 sh64_extract_struct_value_address, sh64_pop_frame,
8564 sh64_push_arguments, sh64_extract_return_value,
8565 sh64_store_return_value, sh64_show_media_regs,
8566 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8567 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8568 sh_sh64_register_virtual_type,
8569 sh_sh64_register_convert_to_virtual,
8570 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8571 sh64_register_read, sh64_pseudo_register_write,
8572 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8573 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8574 sh64_do_pseudo_register, sh_compact_do_registers_info,
8575 sh64_do_registers_info, sh_gdbarch_init): New functions.
8576
3117ed25
EZ
85772002-05-10 Elena Zannoni <ezannoni@redhat.com>
8578
8579 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8580
2654e6d4
DJ
85812002-05-10 Daniel Jacobowitz <drow@mvista.com>
8582
8583 * linespec.c (decode_line_1): Check for a double quote after
8584 a filename correctly.
8585
9ab3e532
JB
85862002-05-10 Jim Blandy <jimb@redhat.com>
8587
8588 Properly track the size of the current objfile's .debug_line section.
8589 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8590 (DWARF_LINE_SIZE): New macro.
8591 (dwarf2_build_psymtabs_hard): Record the line section's size in
8592 the partial symbol table.
8593 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8594 symbol table.
8595
126fa72d
PS
85962002-05-10 Petr Sorfa <petrs@caldera.com>
8597
8598 * ia64-tdep.c: Handle breakpoints on L instruction type
8599 in MLX instruction bundle by moving the breakpoint to
8600 the third slot (X instruction type) as L holds only data.
8601
1f077a3e
KB
86022002-05-10 Kevin Buettner <kevinb@redhat.com>
8603
8604 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8605 (process_one_symbol): Complain about discarding local symbols
8606 due to a misplaced N_LBRAC entry.
8607
8120c9d5 86082002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8609
8610 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8611 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8612 decrease the depth we are at, in the case of templates.
361d1df0 8613
67b2c998
DJ
86142002-05-09 Daniel Jacobowitz <drow@mvista.com>
8615
8616 * mips-tdep.c (mips_float_register_type): New function.
8617 (mips_double_register_type): New function.
8618 (mips_print_register): Use them.
8619 (do_fp_register_row): Likewise.
8620
fd326606
DJ
86212002-05-09 Daniel Jacobowitz <drow@mvista.com>
8622
6609d9af 8623 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8624 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8625 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8626
bef35864
MS
86272002-05-09 Michael Snyder <msnyder@redhat.com>
8628
8629 * remote-rdp.c (remote_rdp_can_run): Remove.
8630
c55a3f73
TT
86312002-05-09 Tom Tromey <tromey@redhat.com>
8632
8633 * jv-valprint.c (java_val_print): Handle `char' as a special case
8634 of TYPE_CODE_INT.
8635
b8d5e71d
MS
86362002-05-09 Michael Snyder <msnyder@redhat.com>
8637
8638 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8639 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8640 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8641 str r(0123),[sp,#nn].
361d1df0 8642 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8643 order-independent by placing it in a loop.
8644
e2cd42dd
MS
86452002-05-06 Michael Snyder <msnyder@redhat.com>
8646
8647 * stabsread.c (read_type): Add recognition for new attribute:
8648 "@V;" means that an array type is actually a vector.
8649 This is analogous to the vector flag that's been added to dwarf2.
8650
3ce1502b
MK
86512002-05-09 Mark Kettenis <kettenis@gnu.org>
8652
8653 * i386-tdep.h (i386_abi): New enum.
8654 (struct gdbarch_tdep): Replace os_ident member with abi.
8655 (i386_gdbarch_register_os_abi): New prototype.
8656 * i386-tdep.c (i386_abi_names): New array.
8657 (process_note_abi_tag_sections): Removed.
8658 (process_note_sections): New function.
8659 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8660 (struct i386_abi_handler): New struct.
8661 (i386_abi_handler_list): New variable.
8662 (i386_gdbarch_register_os_abi): New function.
8663 (i386_gdbarch_init): Adapt for the changes given above.
8664
084c156a
DJ
86652002-05-08 Daniel Jacobowitz <drow@mvista.com>
8666
8667 * gregset.h: Say "GNU/Linux".
8668
6599f021
EZ
86692002-05-08 Elena Zannoni <ezannoni@redhat.com>
8670
8671 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8672 (build_gdbtypes): Build builtin_type_v2_float.
8673 (_initialize_gdbtypes): Register new builtin type.
8674
40af4b0c
AC
86752002-05-08 Andrew Cagney <ac131313@redhat.com>
8676
8677 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8678 (clear_gdbarch_swap): New function.
8679 (initialize_non_multiarch): Call.
8680 (gdbarch_update_p): Before calling init(), swap out and clear the
8681 existing architecture.
8682 * gdbarch.c: Regenerate.
8683
4fe84f46
JT
86842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8685
8686 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8687 alphanbsd-tdep.c.
8688
4015edd1
JT
86892002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8690
8691 * sh-nbsd-nat.c: Rename to...
8692 * shnbsd-nat.c: ...this.
8693 * sh-nbsd-tdep.c: Rename to...
8694 * shnbsd-tdep.c: ...this.
8695 * sh-nbsd-tdep.h: Rename to...
8696 * shnbsd-tdep.h: ...this.
8697 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8698 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8699
0e2bd219
RE
87002002-05-08 Richard Earnshaw <rearnsha@arm.com>
8701
8702 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8703 concatenation for command help messages.
8704
13a38d45
JT
87052002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8706
8707 * NEWS: Note new sh*-*-netbsdelf* configuration.
8708 * configure.host: Set gdb_host_cpu to sh for all sh*.
8709 (sh*-*-netbsdelf*): New host.
8710 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8711 (sh*-*-netbsdelf*): New target.
8712 * sh-nbsd-nat.c: New file.
8713 * sh-nbsd-tdep.c: New file.
8714 * sh-nbsd-tdep.h: New file.
8715 * config/sh/nbsd.mh: New file.
8716 * config/sh/nbsd.mt: New file.
8717 * config/sh/nm-nbsd.h: New file.
8718 * config/sh/tm-nbsd.h: New file.
8719
d658f924
JT
87202002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8721
8722 * sh-tdep.c (sh_osabi_names): Declare.
8723 (process_note_abi_tag_sections): New function.
8724 (get_elfosabi): Ditto.
8725 (sh_gdbarch_register_os_abi): Ditto.
8726 (sh_dump_tdep): Ditto.
8727 _initialize_sh_tdep): Use gdbarch_register to register
8728 sh_gdbarch_init and sh_dump_tdep.
8729 * config/sh/tm-sh.h (sh_osabi): Declare.
8730 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8731
848cfffb
AC
87322002-05-07 Andrew Cagney <ac131313@redhat.com>
8733
8734 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8735 (thumb_scan_prologue): Ditto.
8736 (arm_find_callers_reg): Ditto.
8737 (arm_frame_chain): Ditto.
8738 (arm_init_extra_frame_info): Ditto.
8739 (arm_frame_saved_pc): Ditto.
8740 (arm_pop_frame): Ditto.
8741 (arm_push_return_address): New function.
8742 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8743 call_dummy_location, call_dummy_breakpoint_offset_p,
8744 call_dummy_breakpoint_offset, call_dummy_p,
8745 call_dummy_stack_adjust_p, call_dummy_words,
8746 sizeof_call_dummy_words, call_dummy_start_offset,
8747 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8748 call_dummy_address, push_return_address and push_dummy_frame for
8749 generic dummy frames.
8750
e7d717c0
JT
87512002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8752
8753 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8754 size computation for alloca.
8755 (sh_fp_frame_init_saved_regs): Likewise.
8756
7bbcf283
RE
87572002-05-07 Richard Earnshaw <rearnsha@arm.com>
8758
8759 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8760 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8761 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8762 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8763 * remote-rdp.c (remote_rdp_fetch_register): Use
8764 ARM_MAX_REGISTER_RAW_SIZE.
8765 (remote_rdp_store_register): Likewise.
8766
4657573b
ML
87672002-05-07 Michal Ludvig <mludvig@suse.cz>
8768
361d1df0 8769 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8770 added default labels to switch {} statements.
8771 * x86-64-tdep.c: Ditto.
8772 * x86-64-linux-nat.c: Ditto.
8773
010f3b2f
JT
87742002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8775
8776 * solib.h: Protect against multiple inclusion.
8777
debd256d
JB
87782002-05-06 Jim Blandy <jimb@redhat.com>
8779
9ab3e532
JB
8780 Add first preprocessor macro-expansion files.
8781 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8782 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8783 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8784 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8785 (COMMON_OBS): Add macrotab.o, macroexp.o.
8786 (macroexp.o, macrotab.o): New rules.
8787
debd256d
JB
8788 Separate the job of reading the line number info statement program
8789 header (...expialidocious) out into its own function.
8790 * dwarf2read.c (struct line_head, struct filenames, struct
8791 directories): Replace with...
8792 (struct line_header): New structure, containing the full
8793 contents of the statement program header, including the
8794 include directory and file name tables.
8795 (read_file_scope): If we have line number info, instead of just
8796 calling dwarf_decode_lines to do all the work, call
8797 dwarf_decode_line_header first to get a `struct line_header'
8798 containing the data in the statement program header, and then
8799 pass that to dwarf_decode_lines, which will pick up where that
8800 left off. Be sure to clean up the `struct line_header' object.
8801 (dwarf_decode_line_header, free_line_header, add_include_dir,
8802 add_file_name): New functions.
8803 (dwarf_decode_lines): Move all the code to read the statement
8804 program header into dwarf_decode_line_header. Take the line
8805 header it built as the first argument, instead of the offset to
8806 the compilation unit's line number info. Use the new `struct
8807 line_header' type instead of the old structures. No need to do
8808 cleanups here now, since we don't allocate anything.
8809 (dwarf2_statement_list_fits_in_line_number_section,
8810 dwarf2_line_header_too_long): New complaints.
8811
ac3aafc7
EZ
88122002-05-06 Elena Zannoni <ezannoni@redhat.com>
8813
8814 * gdbtypes.c (init_vector_type): New function.
8815 (build_builtin_type_vec128): Simplify the representation of SIMD
8816 registers.
8817 (build_gdbtypes): Initialize new builtin vector types.
8818 (_initialize_gdbtypes): Register new vector types with gdbarch.
8819 (builtin_type_v4_float, builtin_type_v4_int32,
8820 builtin_type_v8_int16, builtin_type_v16_int8,
8821 builtin_type_v2_int32, builtin_type_v4_int16,
8822 builtin_type_v8_int8): New (renamed) SIMD types.
8823
13e49980
MK
88242002-05-06 Mark Kettenis <kettenis@gnu.org>
8825
8826 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8827 (i387_fill_fxsave): Likewise.
8828
997b20b8
AO
88292002-05-05 Alexandre Oliva <aoliva@redhat.com>
8830
8831 * alpha-tdep.c (alpha_extract_return_value): Don't use
8832 non-constant array size in prototype.
8833
535c96ce
AC
88342002-05-04 Andrew Cagney <ac131313@redhat.com>
8835
8836 From Brian Taylor <briant at model dot com>:
8837 * ui-out.c (ui_out_field_core_addr): Use the function
8838 longest_local_hex_string_custom'to format addresses > 32 bits
8839 wide.
8840
8841 * ui-out.c (ui_out_field_core_addr): Update comment.
8842
bedfa57b
AC
88432002-05-04 Andrew Cagney <ac131313@redhat.com>
8844
8845 * stack.c (select_and_print_frame): Make static. Delete the
8846 parameter `level'.
8847 (func_command): Update call.
8848 (select_frame_command): Delete code computing the frame level.
8849 * frame.h (select_and_print_frame): Delete declaration.
8850
f621c63e
AC
88512002-05-04 Andrew Cagney <ac131313@redhat.com>
8852
8853 * sparc-tdep.c (sparc_get_saved_register): Comment why
8854 get_prev_frame call is safe.
8855
0f7d239c
AC
88562002-05-04 Andrew Cagney <ac131313@redhat.com>
8857
8858 * frame.h (select_frame): Delete level parameter.
8859 * stack.c (select_frame): Update. Use frame_relative_level to
8860 obtain the frame's level.
8861 (select_and_print_frame): Update call.
8862 (select_frame_command): Ditto.
8863 (up_silently_base): Ditto.
8864 (down_silently_base): Ditto.
8865 * ocd.c (ocd_start_remote): Ditto.
8866 * remote-rdp.c (remote_rdp_open): Ditto.
8867 * remote-mips.c (mips_initialize): Ditto.
8868 (common_open): Ditto.
8869 * remote-e7000.c (e7000_start_remote): Ditto.
8870 * m3-nat.c (select_thread): Ditto.
8871 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8872 (child_get_current_exception_event): Ditto.
8873 * varobj.c (varobj_create): Ditto.
8874 (varobj_update): Ditto.
8875 (c_value_of_root): Ditto.
8876 * tracepoint.c (finish_tfind_command): Ditto.
8877 * corelow.c (core_open): Ditto.
8878 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8879 * thread.c (info_threads_command): Ditto.
8880 (switch_to_thread): Ditto.
8881 * infrun.c (normal_stop): Ditto.
8882 (restore_selected_frame): Ditto.
8883 (restore_inferior_status): Ditto.
8884 * breakpoint.c (insert_breakpoints): Ditto.
8885 (watchpoint_check): Ditto.
8886 (bpstat_stop_status): Ditto.
8887 (do_enable_breakpoint): Ditto.
8888 * blockframe.c (flush_cached_frames): Ditto.
8889 (reinit_frame_cache): Ditto.
8890
71d6c7b1
AC
88912002-05-04 Andrew Cagney <ac131313@redhat.com>
8892
8893 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8894 maintainer.
8895
cda6c68a
JB
88962002-05-04 Jim Blandy <jimb@redhat.com>
8897
8898 * gdbtypes.c (replace_type): Doc fix.
8899
5c1c87f0
AC
89002002-05-04 Andrew Cagney <ac131313@redhat.com>
8901
8902 * valprint.c (strcat_longest): Delete commented out function.
8903 Update copyright.
8904
cd9bfe15
AC
89052002-05-04 Andrew Cagney <ac131313@redhat.com>
8906
8907 * MAINTAINERS: Mark a29k as deleted.
8908 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8909 Move new configurations to the top.
8910 * configure.tgt: Remove a29k.
8911 * config/a29k/tm-vx29k.h: Delete.
8912 * config/a29k/vx29k.mt: Delete.
8913 * config/a29k/tm-a29k.h: Delete.
8914 * config/a29k/a29k-udi.mt: Delete.
8915 * config/a29k/a29k.mt: Delete.
8916 * a29k-tdep.c: Delete.
8917 * remote-udi.c: Delete.
8918 * remote-mm.c: Delete.
8919 * remote-eb.c: Delete.
8920 * remote-adapt.c: Delete.
8921 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8922 * config/s390/s390x.mt: Ditto.
8923 * config/s390/s390.mt: Ditto.
8924 * config/sparc/sparclynx.mh: Ditto.
8925 * config/sparc/linux.mh: Ditto.
8926 * config/pa/hppaosf.mh: Ditto.
8927 * config/pa/hppabsd.mh: Ditto.
8928 * config/ns32k/nbsd.mt: Ditto.
8929 * config/mips/vr5000.mt: Ditto.
8930 * config/m68k/sun3os4.mh: Ditto.
8931 * config/m68k/nbsd.mt: Ditto.
8932 * config/m68k/m68klynx.mh: Ditto.
8933 * config/m32r/m32r.mt: Ditto.
8934 * config/i386/x86-64linux.mt: Ditto.
8935 * config/i386/nbsdelf.mt: Ditto.
8936 * config/i386/nbsd.mt: Ditto.
8937 * config/i386/i386lynx.mh: Ditto.
8938
bf0c5130
AC
89392002-05-04 Andrew Cagney <ac131313@redhat.com>
8940
8941 * target.c (debug_print_register): New function. Handle oversize
8942 registers.
8943 (debug_to_fetch_registers): Call.
8944 (debug_to_store_registers): Call.
8945
2ae1c2d2
JB
89462002-05-03 Jim Blandy <jimb@redhat.com>
8947
13a393b0
JB
8948 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8949 (read_type): Doc fix.
8950 * gdbtypes.c (replace_type): Doc fix.
8951
2ae1c2d2
JB
8952 * stabsread.c (multiply_defined_struct): New complaint.
8953 (read_struct_type): If the type we were passed isn't empty, or
8954 incomplete, don't read the new struct type into it; complain,
8955 and return the original type unchanged. Take a new `type_code'
8956 argument, which is the type code for the new type.
8957 (read_type): Rather than storing the type's type code here, pass
8958 it as an argument to read_struct_type, and let that take care of
8959 storing it. That way, we don't overwrite the original type code,
8960 so read_struct_type can use it to decide whether we're overwriting
8961 something we shouldn't.
8962 (complain_about_struct_wipeout): New function.
8963
8de9bdc4
AC
89642002-05-03 Andrew Cagney <ac131313@redhat.com>
8965
8966 * gdbarch.sh: Assert that gdbarch is non-NULL.
8967 * gdbarch.c: Regenerate.
8968
f773fdbb
JM
89692002-05-03 Jason Merrill <jason@redhat.com>
8970
8971 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8972 and return NULL.
8973
0e04a514
ML
89742002-05-03 Michal Ludvig <mludvig@suse.cz>
8975
8976 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8977 (x86_64_dwarf2gdb_regno_map_length),
8978 (x86_64_dwarf2_reg_to_regnum): Added.
8979 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8980 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8981 (_initialize_x86_64_tdep): Synced with the change above.
8982 (x86_64_skip_prologue): Reformulated message.
8983
065432a8
PM
89842002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8985
8986 * f-exp.y: Also use new prev_lexptr variable
8987 to improve error reporting. Based on Michael Snyder
8988 2002-04-24 dated patch to c-exp.y.
8989 * jv-exp.y: Likewise.
8990 * m2-exp.y: Likewise.
8991
a3162708
EZ
89922002-05-02 Elena Zannoni <ezannoni@redhat.com>
8993
8994 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8995 we are dealing with vectors.
8996
03620c38
PM
89972002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8998
8999 * config/m68k/tm-nbsd.h: Obvious fix,
9000 correct machine name.
9001
6604db2e
PM
90022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9003
9004 * p-typeprint.c (pascal_type_print_base): Add support
9005 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9006
0906b739
PM
90072002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9008
9009 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9010 for fondamental pascal 'char' type.
9011
e2625b33
PM
90122002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9013
9014 * p-lang.h (is_pascal_string_type): Declaration changed,
9015 new sixth argument of type char ** added.
361d1df0 9016 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9017 changed. Args length_pos, length_size, string_pos, char_size
9018 can now be NULL. New argument arrayname set to the field
9019 name of the char array. Return value set to char array
9020 field index plus one.
361d1df0 9021 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9022 is_pascal_string_type function.
9023
cf17c188
AC
90242002-05-02 Andrew Cagney <cagney@redhat.com>
9025
9026 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9027 <cagney@redhat.com> change.
9028 * gdbarch.c: Regenerate.
9029
52bca491
AC
90302002-05-02 Andrew Cagney <cagney@redhat.com>
9031
9032 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9033 before probing for a new one. Detect errorenous gdbarch_init
9034 functions.
9035 * gdbarch.c: Regenerate.
9036
d5e72505
AC
90372002-05-01 Andrew Cagney <cagney@redhat.com>
9038
9039 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9040 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9041 * config/v850/tm-v850.h: Ditto. Update copyright.
9042
af566d9f
AC
90432002-04-30 Andrew Cagney <ac131313@redhat.com>
9044
9045 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9046 current_gdbarch.
9047
880d85fa
MS
90482002-04-30 Michael Snyder <msnyder@redhat.com>
9049
94c30b78
MS
9050 * arm-tdep.c: Whitespace clean-ups.
9051 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9052 should have been removed as part of 4/24 change.
9053
6f5987a6
KB
90542002-04-30 Kevin Buettner <kevinb@redhat.com>
9055
9056 * rs6000-tdep.c: Added comment describing how fpscr register
9057 numbers were chosen.
9058
1a113c93
MS
90592002-04-30 Michael Snyder <msnyder@redhat.com>
9060
9061 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9062
9a6f53fe
EZ
90632002-04-29 Elena Zannoni <ezannoni@redhat.com>
9064
9065 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9066 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9067 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9068
11ed25ac
KB
90692002-04-29 Kevin Buettner <kevinb@redhat.com>
9070
9071 From Louis Hamilton <hamilton@redhat.com>:
9072 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9073 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9074 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9075 not bfd-private xcoff data, to determine wordsize.
9076 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9077
ae232405
AC
90782002-04-29 Andrew Cagney <ac131313@redhat.com>
9079
9080 GDB 5.2 released from 5.2 branch.
9081
91fd20f7
ML
90822002-04-29 Michal Ludvig <mludvig@suse.cz>
9083
9084 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9085 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9086 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9087
2dc5091b
EZ
90882002-04-29 Elena Zannoni <ezannoni@redhat.com>
9089
9090 * rs6000-tdep.c (rs6000_extract_return_value,
9091 rs6000_store_return_value): Handle returning vectors.
9092 (rs6000_gdbarch_init): Use
9093 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9094 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9095 New function.
9096 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9097 vectors.
9098 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9099 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9100
2b9848d8
PM
91012002-04-24 Pierre Muller <ics.u-strasbg.fr>
9102
9103 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9104 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9105 with fprintf_unfiltered (gdb_stderr,...).
9106
f8d17dc5
PM
91072002-04-24 Pierre Muller <ics.u-strasbg.fr>
9108
9109 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9110 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9111 Replace fprintf (stderr,...
9112 with fprintf_unfiltered (gdb_stderr,....
9113 * remote-es.c: Likewise.
9114 * remote-os9k.c: Likewise.
9115 * remote-st.c: Likewise.
9116
2f2f1ad1
AS
91172002-04-28 Andreas Schwab <schwab@suse.de>
9118
9119 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9120 linux-proc.o and gcore.o.
9121
b6779aa2
AC
91222002-04-26 Michal Ludvig <mludvig@suse.cz>
9123
9124 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9125 code without frame pointers.
9126
7e57f5f4
AC
91272002-04-26 Andrew Cagney <ac131313@redhat.com>
9128
9129 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9130 ON_STACK is needed.
9131
2ceb85d0
BE
91322002-04-26 Ben Elliston <bje@redhat.com>
9133
9134 * target.c (do_xfer_memory): Correct reference to the new option
9135 "trust-readonly-sections".
9136
f5f8a009
EZ
91372002-04-26 Elena Zannoni <ezannoni@redhat.com>
9138
9139 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9140 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9141 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9142 vectors.
9143 (read_array_type): Record the fact that this array type is really a
9144 vector (i.e. are passed in by value).
9145
5868c862
JT
91462002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9147
9148 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9149 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9150 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9151 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9152 * alpha-linux-tdep.c: Include frame.h.
9153 (alpha_linux_sigcontext_addr): New function.
9154 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9155 alpha_linux_sigcontext_addr.
9156 * alpha-osf1-tdep.c: Include gdbcore.h.
9157 (alpha_osf1_sigcontext_addr): New function.
9158 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9159 alpha_osf1_sigcontext_addr.
9160 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9161 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9162
bfb01f37
AC
91632002-04-26 Andrew Cagney <ac131313@redhat.com>
9164
361d1df0 9165 * stack.c (selected_frame_level):
bfb01f37
AC
9166 (select_frame): Do not set selected_frame_level.
9167 * frame.h (selected_frame_level): Delete declaration.
9168
15813d3f
AC
91692002-04-26 Andrew Cagney <ac131313@redhat.com>
9170
9171 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9172 convert_from_func_ptr-addr when AIX / PowerOpen.
9173
6096c27a
AC
91742002-04-25 Andrew Cagney <ac131313@redhat.com>
9175
9176 * valops.c (hand_function_call): Call
9177 generic_save_call_dummy_addr.
9178 * frame.h (generic_save_call_dummy_addr): Declare.
9179 * blockframe.c (struct dummy_frame): Add fields call_lo and
9180 call_hi.
9181 (generic_find_dummy_frame): Check for PC in range call_lo to
9182 call_hi instead of entry_point_address.
9183 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9184 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9185 (generic_save_call_dummy_addr): New function.
9186
f510d44e
DM
91872002-04-24 David S. Miller <davem@redhat.com>
9188
9189 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9190 sparc_skip_prologue.
9191 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9192 information to find prologue when possible.
9193 (sparc_prologue_frameless_p): Call examine_prologue directly.
9194 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9195 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9196 second argument.
9197 (SKIP_PROLOGUE): Likewise.
9198
15d72a92
JT
91992002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9200
9201 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9202 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9203 indicate that the condition it was testing is always true.
9204 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9205 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9206 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9207
accc6d1f
JT
92082002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9209
9210 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9211 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9212 tdep->jb_pc and tdep->jb_elt_size.
9213 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9214 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9215 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9216 * alpha-nat.c (get_longjmp_target): Remove.
9217 (JB_ELEMENT_SIZE): Ditto.
9218 (JB_PC): Ditto.
9219 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9220 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9221 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9222 to alpha_get_longjmp_target.
9223 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9224 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9225 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9226
1bfdc549
AC
92272002-04-25 Andrew Cagney <ac131313@redhat.com>
9228
9229 * README: Update to GDB 5.2.
9230
1bd316f0
AC
92312002-04-25 Andrew Cagney <ac131313@redhat.com>
9232
9233 * gdbarch.sh (LC_ALL): Set to `c'.
9234
2e5ff58c
TR
92352002-04-25 Theodore A. Roth <troth@verinet.com>
9236
9237 * avr-tdep.c: Ran through gdb_indent.sh.
9238
e33ce519
TR
92392002-04-25 Theodore A. Roth <troth@verinet.com>
9240
9241 * MAINTAINERS: Add myself as AVR maintainer.
9242 * NEWS: Note new target avr.
9243
8818c391
TR
92442002-04-25 Theodore A. Roth <troth@verinet.com>
9245
9246 * Makefile.in: Add support for AVR target.
9247 * configure.tgt: Add support for AVR target.
9248 * avr-tdep.c: New file
9249 * config/avr/avr.mt: New file.
9250
79509c2d
TR
92512002-04-25 Theodore A. Roth <troth@verinet.com>
9252
9253 * MAINTAINERS: Add myself to write-after-approval.
9254
dac8068e
PM
92552002-04-24 Pierre Muller <ics.u-strasbg.fr>
9256
9257 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9258 with fprintf_unfiltered (gdb_stderr,....
9259
25bf3106
PM
92602002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9261
9262 Fix PR gdb/508.
9263 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9264
24467a86
PM
92652002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9266
9267 * p-exp.y: Also use new prev_lexptr variable
9268 to improve error reporting. Based on Michael Snyder
9269 2002-04-24 dated patch to c-exp.y.
9270
95b80706
JT
92712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9272
9273 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9274 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9275 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9276 to 0.
9277 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9278 and struct value.
9279 (FUNCTION_START_OFFSET): Remove.
9280 (BREAKPOINT): Ditto.
9281
e90cc612
JT
92822002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9283
9284 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9285 * NEWS: Ditto.
9286
6c72f9f9
JT
92872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9288
9289 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9290 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9291 alpha_linux_pc_in_sigtramp.
9292 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9293 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9294 alpha_osf1_pc_in_sigtramp.
9295 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9296 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9297 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9298 alphafbsd_pc_in_sigtramp.
9299 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9300 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9301 alphanbsd_pc_in_sigtramp.
9302 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9303 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9304
5e4f3379
JT
93052002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9306
9307 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9308
da8ca43d
JT
93092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9312 alphanbsd-tdep.c.
9313 (alphanbsd-nat.o): New dependency list.
9314 (alphanbsd-tdep.o): Ditto.
9315 * NEWS: Note new native NetBSD/alpha configuration.
9316 * alphanbsd-nat.c: New file.
9317 * alphanbsd-tdep.c: Ditto.
9318 * configure.host (alpha*-*-netbsd*): New host.
9319 * configure.tgt (alpha*-*-netbsd*): New target.
9320 * config/alpha/nbsd.mh: New file.
9321 * config/alpha/nbsd.mt: Ditto.
9322 * config/alpha/nm-nbsd.h: Ditto.
9323 * config/alpha/tm-nbsd.h: Ditto.
9324
36a6271d
JT
93252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9326
9327 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9328 (alpha-osf1-tdep.o): New dependency list.
9329 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9330 and skip_sigtramp_frame members.
9331 * alpha-linux-tdep.c: Include gdbcore.h.
9332 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9333 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9334 * alpha-osf1-tdep.c: New file.
9335 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9336 alpha-osf1-dep.c.
9337 (alpha_frame_past_sigtramp_frame): New function.
9338 (alpha_dynamic_sigtramp_offset): Ditto.
9339 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9340 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9341 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9342 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9343 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9344 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9345 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9346 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9347 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9348 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9349 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9350 to find_solib_trampoline_target.
9351 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9352 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9353 (SKIP_TRAMPOLINE_CODE): Remove.
9354 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9355 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9356 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9357 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9358 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9359 (PROC_SIGTRAMP_MAGIC): Ditto.
9360 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9361 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9362 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9363 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9364 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9365
2f4bc57b
JT
93662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9367
9368 * NEWS: Note that Alpha targets are now multi-arch.
9369
665132f9
MS
93702002-04-24 Michael Snyder <msnyder@redhat.com>
9371
9372 * parser-defs.h (prev_lexptr): New external variable.
9373 * parse.c (parse_exp_1): Set prev_lexptr to null before
9374 calling the language-specific parser.
9375 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9376 (yyerror): Use prev_lexptr in error reporting.
9377
32872fa7
DJ
93782002-04-24 Daniel Jacobowitz <drow@mvista.com>
9379
9380 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9381 * gregset.h: If FILL_FPXREGSET is defined, provide
9382 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9383 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9384 is defined, call fill_fpxregset.
9385
57e76fac
MS
93862002-04-24 Roland McGrath <roland@frob.com>
9387
9388 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9389 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9390 (supply_gregset, supply_fpregset): New functions.
9391
9392 * gnu-nat.c (gnu_find_memory_regions): New function.
9393 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9394 (gnu_xfer_memory): Add a cast.
9395
f43845b3
MS
93962002-04-24 Michael Snyder <msnyder@redhat.com>
9397
361d1df0 9398 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9399 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9400 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9401 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9402 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9403 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9404
a0abec03
AC
9405Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9406
9407 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9408 NUM_PSEUDO_REGS can be used.
9409
d7bd68ca
AC
94102002-04-24 Andrew Cagney <ac131313@redhat.com>
9411
9412 * arch-utils.h: Update copyright.
9413
9414 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9415 * gdbarch.h, gdbarch.c: Re-generate.
9416
9417 * inferior.h (IN_SIGTRAMP): Delete definition.
9418 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9419 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9420
9421 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9422 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9423 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9424 (find_proc_framesize): Ditto.
9425 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9426 (alpha_init_extra_frame_info): Ditto.
9427 * infrun.c (handle_inferior_event): Ditto.
9428 (handle_inferior_event): Ditto.
9429 (check_sigtramp2): Ditto.
9430 * blockframe.c (create_new_frame): Ditto.
9431 (get_prev_frame): Ditto.
9432 * ppc-linux-tdep.c: Update comments.
9433 * i386-linux-tdep.c: Update comments.
9434 * breakpoint.c (bpstat_what): Update comment.
9435
4867e41e
DM
94362002-04-24 David S. Miller <davem@redhat.com>
9437
21d83aa5
DM
9438 * i960-tdep.c (register_in_window_p): New function.
9439 (i960_find_saved_register): Use it instead of
9440 REGISTER_IN_WINDOW_P.
9441 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9442
4867e41e
DM
9443 * symtab.h (find_stab_function_addr): Kill extern.
9444 * minsyms.c (find_stab_function_addr): Remove from here...
9445 * dbxread.c: ... to here, and mark it static.
9446
69cdf6a2
DM
94472002-04-20 David S. Miller <davem@redhat.com>
9448
9449 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9450 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9451
5a595886
DM
94522002-04-21 David S. Miller <davem@redhat.com>
9453
9454 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9455 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9456 (vx_write_register): Likewise.
9457
1da1a192
JB
94582002-04-23 J. Brobecker <brobecker@gnat.com>
9459
9460 * source.c (is_regular_file): New function.
9461 (openp): Check wether file to open is a regular file
9462 to avoid opening directories.
9463
baa6f10b
JT
94642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9465
9466 * findvar.c (extract_signed_integer): Cast printf argument
9467 to suppress format warning.
9468 (extract_unsigned_integer): Likewise.
9469 * infcmd.c (registers_info): Likewise.
9470 * top.c (get_prompt_1): Likewise.
9471 * valops.c (value_assign): Likewise.
9472 * valprint.c (print_decimal): Likewise.
9473
b2c4da81
L
94742002-04-22 H.J. Lu (hjl@gnu.org)
9475
9476 * c-exp.y (typebase): Support
361d1df0 9477
b2c4da81
L
9478 [long|long long|short] [signed|unsigned] [int|]
9479
9480 and
9481
9482 signed [long|long long|short] int
9483
f267bd6a
JT
94842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9485
9486 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9487 and vax-tdep.h.
9488 * vax-tdep.h: New file.
9489 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9490 Make several routines static.
9491 (vax_get_saved_register): New function.
9492 (vax_gdbarch_init): New function.
9493 (_initialize_vax_tdep): Register vax_gdbarch_init.
9494 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9495 Remove macros now under the control of gdbarch.
9496
da3c6d4a
MS
94972002-04-22 Michael Snyder <msnyder@redhat.com>
9498
11d3b27d
MS
9499 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9500 Some whitespace and coding standards tweaks.
da3c6d4a 9501
a33f7558
JT
95022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9503
9504 * vax-tdep.c: Include regcache.h.
9505 (vax_call_dummy_words): New.
9506 (sizeof_vax_call_dummy_words): New.
9507 (vax_fix_call_dummy): New function.
9508 (vax_saved_pc_after_call): Ditto.
9509 * config/vax/tm-vax.h: Don't include regcache.h.
9510 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9511 (CALL_DUMMY): Remove.
9512 (CALL_DUMMY_WORDS): Define.
9513 (SIZEOF_CALL_DUMMY_WORDS): Define.
9514 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9515
47a73475
MS
95162002-04-18 Michael Snyder <msnyder@redhat.com>
9517
9518 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9519
52efde73
JT
95202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9521
9522 * vax-tdep.c (vax_frame_chain): New function.
9523 (vax_push_dummy_frame): Ditto.
9524 (vax_pop_frame): Ditto.
9525 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9526 (FRAMELESS_FUNCTION_INVOCATION): Use
9527 generic_frameless_function_invocation_not.
9528 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9529 (POP_FRAME): Use vax_pop_frame.
9530
ea74468c
JT
95312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9532
9533 * vax-tdep.c (vax_store_struct_return): New function.
9534 (vax_extract_return_value): Ditto.
9535 (vax_store_return_value): Ditto.
9536 (vax_extract_struct_value_address): Ditto.
9537 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9538 vax_store_struct_return.
9539 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9540 (STORE_RETURN_VALUE): Use vax_store_return_value.
9541 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9542
5516aa92
JT
95432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9544
9545 * vax-tdep.c (vax_frame_saved_pc): New function.
9546 (vax_frame_args_address_correct): Ditto.
9547 (vax_frame_args_address): Ditto.
9548 (vax_frame_locals_address): Ditto.
9549 (vax_frame_num_args): Move code to be in proximity to
9550 other frame-related functions.
9551 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9552 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9553 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9554 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9555 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9556
36af0b35
L
95572002-04-22 H.J. Lu (hjl@gnu.org)
9558
9559 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9560 includedir.
9561
ab62c900
JT
95622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9563
9564 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9565 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9566 (FRAME_INIT_SAVED_REGS): New macro.
9567
7232b100
JT
95682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9569
9570 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9571
b70d2aee
JT
95722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9573
9574 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9575 where needed.
9576 (fetch_osf_core_registers): Likewise.
9577 (supply_gregset): Likewise.
9578
a0e8a2d1 95792002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9580
a0e8a2d1
JB
9581 * symfile.h (get_section_index): Define.
9582 * symfile.c (get_section_index): New function.
9583 * mdebugread.c (SC_IS_SBSS): New macro.
9584 (SC_IS_BSS): Return true for the scBss storage class only, as
9585 the scSBss storage class refers to the .sbss section.
9586 (parse_partial_symbols): Discard the symbols which associated
9587 section does not exist.
9588 Make sure to use the .sbss section index for symbols which
9589 storage class is scBss, rather than using the .bss section index.
9590
51eb8b08
JT
95912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9592
9593 * vax-tdep.c: Update copyright years.
9594 (vax_register_name): New function.
9595 (vax_register_byte): Ditto.
9596 (vax_register_raw_size): Ditto.
9597 (vax_register_virtual_size): Ditto.
9598 (vax_register_virtual_type): Ditto.
9599 * config/vax/tm-vax.h: Update copyright years.
9600 (REGISTER_NAMES): Remove.
9601 (REGISTER_NAME): Define.
9602 (REGISTER_BYTE): Use vax_register_byte.
9603 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9604 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9605 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9606
6cc1c0a8
AC
96072002-04-21 Andrew Cagney <ac131313@redhat.com>
9608
9609 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9610 declaration
9611 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9612
9319a2fe
DM
96132002-04-21 David S. Miller <davem@redhat.com>
9614
9615 * arch-utils.c (generic_prologue_frameless_p): Kill
9616 SKIP_PROLOGUE_FRAMELESS_P code.
9617 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9618 references.
9619 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9620 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9621 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9622 references.
9623 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9624 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9625 (sparc_gdbarch_init): Pass it to
9626 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9627
e9ed6d01
JT
96282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9629
9630 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9631 (alphabsd-nat.o): New dependency list.
9632
36012033
JT
96332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9634
9635 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9636 alphafbsd-tdep.c.
9637 (alpha-linux-tdep.o): New dependency list.
9638 (alphafbsd-tdep.o): Likewise.
9639
3379287a
JT
96402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9641
9642 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9643 to here...
9644 * alpha-tdep.c: ...from here.
9645 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9646
4bcbd6cb
JT
96472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9648
9649 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9650 prototype from here...
9651 * alpha-tdep.h: ...to here.
9652
b31da25e
AC
96532002-04-21 Andrew Cagney <ac131313@redhat.com>
9654
9655 * frame.h (selected_frame_level): Document as deprecated.
9656 (frame_relative_level): Declare.
9657 * stack.c (frame_relative_level): New function.
9658 (selected_frame_level): Document as deprecated.
9659 (select_frame): Do not set the selected_frame_level.
9660
9661 * stack.c (frame_info, record_selected_frame): Update.
9662 (frame_command, current_frame_command): Update.
9663 (up_silently_base, up_command, down_silently_base): Update.
9664 (down_command): Update.
9665 * inflow.c (kill_command): Update.
9666 * tracepoint.c (finish_tfind_command): Update.
9667 * corelow.c (core_open): Update.
9668 * thread.c (info_threads_command): Update.
9669 (do_captured_thread_select): Update.
9670 * infcmd.c (finish_command): Update.
9671 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9672
9c1d6fe5
JT
96732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9674
9675 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9676
ab89facf
AC
96772002-04-21 Andrew Cagney <ac131313@redhat.com>
9678
9679 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9680 type const.
9681
82a4efa1
JT
96822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9683
9684 * alphafbsd-tdep.c: Update copyright years. Include
9685 alpha-tdep.h.
9686 (alphafbsd_use_struct_convention): Make static.
9687 (alphafbsd_init_abi): New function.
9688 (_initialize_alphafbsd_tdep): New function.
9689 * config/alpha/tm-fbsd.h: Update copyright years.
9690 (USE_STRUCT_CONVENTION): Remove.
9691
44dffaac
JT
96922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9693
9694 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9695 an Alpha ABI variant.
9696 (alpha_abi_handler_list): Declare.
9697 (alpha_gdbarch_register_os_abi): New function.
9698 (alpha_gdbarch_init): Give registered ABI variant handlers a
9699 chance to tweak the gdbarch once we have set up defaults.
9700 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9701
65585be4
JT
97022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9703
9704 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9705 to standard_coerce_float_to_double.
9706 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9707
d9b023cc
JT
97082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9709
9710 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9711 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9712 from gdbarch_tdep rather than a constant.
9713 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9714 the default text address for all Alpha Unix ABIs.
9715 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9716 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9717
dc129d82
JT
97182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9719
9720 * alpha-tdep.h: New file. Includes several Alpha target constants
9721 taken from...
9722 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9723 let gdbarch deal with.
9724 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9725 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9726 to dependency list.
9727 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9728 Alpha target register names.
9729 * alphabsd-nat.c: Likewise.
9730 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9731 Alpha target register names. Make serveral routines static.
9732 (alpha_get_saved_register): New function.
9733 (alpha_abi_names): New.
9734 (process_note_abi_tag_sections): New function.
9735 (get_elfosabi): New function.
9736 (alpha_gdbarch_init): New function.
9737 (alpha_dump_tdep): New function.
9738 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9739
d49d1e0a
AC
97402002-04-21 Andrew Cagney <ac131313@redhat.com>
9741
9742 * frame.c (find_saved_register): Delete #ifdef
9743 HAVE_REGISTER_WINDOWS code.
9744 * config/sparc/tm-sparc.h: Update comments.
9745 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9746
92e8c9ed
AC
97472002-04-21 Andrew Cagney <ac131313@redhat.com>
9748
9749 * i960-tdep.c (i960_find_saved_register): New function.
9750 (i960_get_saved_register): New function.
9751 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9752 (i960_get_saved_register): Declare.
9753 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9754
e1925118
DM
97552002-04-20 David S. Miller <davem@redhat.com>
9756
9757 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9758
29673b29
AC
97592002-04-20 Andrew Cagney <ac131313@redhat.com>
9760
9761 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9762 instead of NUM_PSEUDO_REGS.
9763
6c86dcd5
DM
97642002-04-20 David S. Miller <davem@redhat.com>
9765
9766 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9767 GDB_MULTI_ARCH_PARTIAL
9768 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9769 define, let tm-sp64.h do it.
9770
aa40ec90
JT
97712002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9772
9773 * frame.c (find_saved_register): Avoid a NULL pointer
9774 dereference and actually walk the frame list.
9775
0f79675b
AC
97762002-04-20 Andrew Cagney <ac131313@redhat.com>
9777
9778 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9779 sorted in most most-recent-used order. Document.
9780 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9781
f91305dd 97822002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9783
9784 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9785 instead of ->prev.
9786 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9787 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9788 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9789 instead of ->prev.
9790
73d322b1
EZ
97912002-04-19 Elena Zannoni <ezannoni@redhat.com>
9792
9793 Fix PR gdb/471.
9794 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9795 (build_builtin_type_vec128): Ditto.
9796 (append_composite_type_field): Fix calculation of type length in
9797 union case.
9798
ccd9a834
EZ
97992002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9800
9801 * config/djgpp/README: Update.
9802
9803 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9804 compiler warnings.
9805
a57f9e49
JT
98062002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9807
9808 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9809 (alpha_setup_arbitrary_frame): ...to this.
9810 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9811 for alpha_setup_arbitrary_frame.
9812
f4f9705a
AC
98132002-04-18 Andrew Cagney <cagney@redhat.com>
9814
9815 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9816 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9817
f4f9705a
AC
9818 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9819 * target.h (memory_breakpoint_from_pc): Update declaration.
9820 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9821
9822 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9823 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9824 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9825 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9826 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9827 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9828 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9829 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9830 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9831 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9832 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9833 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9834
9835 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9836 const pointer.
9837 * monitor.c (monitor_insert_breakpoint): Ditto.
9838 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9839
9840 * config/mcore/tm-mcore.h: Update copyright.
9841 * mem-break.c: Ditto.
9842 * xstormy16-tdep.c: Ditto.
9843
29f319b8
PM
98442002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9845
9846 * p-exp.y: Add precedence rule for '^' token.
9847 This removes the shift/reduce conflicts.
9848 Remove the comment concerning these shift/reduce conflicts.
9849
ebeac11a
EZ
98502002-04-18 Elena Zannoni <ezannoni@redhat.com>
9851
9852 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9853 (registers_powerpc_nofp): New register set for processors
9854 without floating point unit.
9855
27c31547
DM
98562002-04-18 David S. Miller <davem@redhat.com>
9857
9858 * MAINTAINERS: Add myself to write-after-approval.
9859
47a73475
MS
98602002-04-17 Michael Snyder <msnyder@redhat.com>
9861
9862 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9863
953836b2
AC
98642002-04-17 Andrew Cagney <ac131313@redhat.com>
9865
9866 * rs6000-tdep.c (frame_initial_stack_address): Use
9867 frame_register_read to read the alloca_reg.
9868
8b0d4340
AC
98692002-04-17 Andrew Cagney <ac131313@redhat.com>
9870
9871 * frame.c (find_saved_register): Find saved registers in the next
9872 not prev frame.
9873 Fix PR gdb/365.
9874
d8864532
AC
98752002-04-17 Andrew Cagney <ac131313@redhat.com>
9876
9877 * gdbarch.sh (LANG): Set to ``c''.
9878
36cc83a3 98792002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9880
36cc83a3 9881 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9882
2f4150cc 98832002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9884
9885 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9886 Update copyright.
9887
628703c6 9888 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9889 Also fix PR gdb/391.
361d1df0 9890
56157b4a
AC
98912002-04-14 Andrew Cagney <ac131313@redhat.com>
9892
9893 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9894 * aclocal.m4, configure: Re-generate.
9895 Fix PR gdb/391.
361d1df0 9896
6d1e3329
EZ
98972002-04-14 Elena Zannoni <ezannoni@redhat.com>
9898
9899 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9900 instead of tm_print_insn.
9901
cb06fa07
EZ
99022002-04-14 Elena Zannoni <ezannoni@redhat.com>
9903
9904 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9905
f208ba17
AC
99062002-04-14 Andrew Cagney <ac131313@redhat.com>
9907
9908 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9909 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9910 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9911
20f01a46
DH
99122002-04-12 Don Howard <dhoward@redhat.com>
9913
9914 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9915 max_user_call_depth.
9916 (init_cmd_lists): Initialize the new value;
9917 * cli/cli-script.c (execute_user_command): Limit the call depth of
9918 user defined commands. This avoids a core-dump when user commands
9919 are infinitly recursive.
9920
a88376a3
KB
99212002-04-12 Kevin Buettner <kevinb@redhat.com>
9922
9923 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9924 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9925 from tdep struct instead of DEFAULT_LR_SAVE.
9926 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9927 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9928 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9929
f2172603
MS
99302002-04-12 Michael Snyder <msnyder@redhat.com>
9931
694f61fb 9932 * Remote.c: Spelling fix.
20fe79c8
MS
9933 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9934 If no symbol found for "sbrk", try "_sbrk".
9935 (make_output_phdrs): Use bfd_section_name.
9936 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9937 * eval.c: Indentation fix-ups.
169a7369
MS
9938 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9939 in case it gets applied to an address that is already
9940 in the instruction space.
de74f71f
MS
9941 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9942 * symfile.c: Fix indentation, long lines.
f2172603
MS
9943 * source.c: White space fix-up.
9944
cda5a58a
AC
99452002-04-12 Andrew Cagney <cagney@redhat.com>
9946
9947 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9948 * frame.c (frame_register_read): New function. Return non-zero on
9949 success.
9950 (read_relative_register_raw_bytes_for_frame): Delete.
9951 (read_relative_register_raw_bytes): Delete.
9952 * frame.h (frame_register_read): Declare.
9953 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9954 * sh-tdep.c: Ditto.
9955 * infcmd.c (do_registers_info): Ditto.
9956 * hppa-tdep.c: Ditto.
9957 * rs6000-tdep.c: Ditto.
9958 * h8500-tdep.c: Ditto.
9959 * mips-tdep.c: Ditto.
9960 * h8300-tdep.c: Ditto.
9961 * z8k-tdep.c: Ditto.
9962
2ea5f656
KB
99632002-04-12 Kevin Buettner <kevinb@redhat.com>
9964
9965 From Jimi X <jimix@watson.ibm.com>:
9966 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9967 64-bit SysV ABI.
9968
27b15785
KB
99692002-04-12 Kevin Buettner <kevinb@redhat.com>
9970
9971 From Jimi X <jimix@watson.ibm.com>:
9972 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9973 bfd info.
9974
5d57ee30
KB
99752002-04-12 Kevin Buettner <kevinb@redhat.com>
9976
9977 From Jimi X <jimix@watson.ibm.com>:
9978 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9979 register sets for these processor variants.
9980
bc1e36ca
DJ
99812002-04-11 Daniel Jacobowitz <drow@mvista.com>
9982
bc1e36ca
DJ
9983 * regformats/reg-ppc.dat: Support FPSCR.
9984
e3f36dbd
KB
99852002-04-11 Kevin Buettner <kevinb@redhat.com>
9986
9987 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9988 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9989 Add fpscr as an invalid/unfetchable register.
9990 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9991 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9992 (fill_fpregset): Add support for register fpscr.
9993 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9994 (fill_gregset): Account for the fact that register ``mq'' might
9995 not exist.
9996 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9997 (registers_power): Add fpscr to register set at slot 71.
9998 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9999 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10000
943c9c25
MS
100012002-04-11 Michael Snyder <msnyder@redhat.com>
10002
10003 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10004 * configure: Regenerate.
10005 * config.in: Regenerate.
10006 * acconfig.h: Add define for _SYSCALL32.
10007 * core-sol2.c: Remove #define _SYSCALL32.
10008 * solib-legacy.c: Remove #define _SYSCALL32.
10009
d8c0a2e7
AC
100102002-04-10 Andrew Cagney <ac131313@redhat.com>
10011
10012 * stack.c (select_frame): Cleanup internal error message, do not
10013 use %p.
10014
7cc19214
AC
100152002-04-10 Andrew Cagney <ac131313@redhat.com>
10016
10017 * stack.c (select_frame): Check that selected_frame and the
10018 specified level are as expected.
10019 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10020 Update copyright.
10021 * frame.h (struct frame_info): Add field `level'. Update
10022 copyright.
10023 Work-in-progress PR gdb/464.
10024
67a2b77e
AC
100252002-04-10 Andrew Cagney <ac131313@redhat.com>
10026
10027 * maint.c (maint_print_section_info): Rename print_section_info.
10028 (print_bfd_section_info, print_objfile_section_info): Update.
10029 * inferior.h (struct gdbarch): Add opaque declaration.
10030 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10031 * gdbarch.h: Regenerate.
10032
8cfda98c
ML
100332002-04-10 Michal Ludvig <mludvig@suse.cz>
10034
10035 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10036 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10037 (kernel_u_size): Added.
10038 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10039 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10040
ca439ad2 100412002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10042
ca439ad2
JI
10043 * valarith.c (find_size_for_pointer_math): New function, either returns
10044 the size for a pointer's target, returns 1 for void *, or errors for
10045 incomplete types.
10046 (value_add, value_sub): use find_size_for_pointer_math.
10047
2f2893d9
DJ
100482002-04-09 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * linux-low.c (linux_look_up_symbols): New hook.
10051 (linux_target_ops): Add linux_look_up_symbols.
10052 * remote-utils.c (decode_address): New function.
10053 (look_up_one_symbol): New function.
10054 * server.c (handle_query): Call target look_up_symbols hook.
10055 * server.h (look_up_one_symbol): Add prototype.
10056 * target.h (struct target_ops): Add look_up_symbols hook.
10057
96cb11df
AC
100582002-04-09 Andrew Cagney <ac131313@redhat.com>
10059
10060 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10061 override FP_REGNUM with frame->fp. Update copyright.
10062 * parse.c (num_std_regs, std_regs): Delete.
10063 (target_map_name_to_register): Do not search std_regs. Update
10064 function description.
10065 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10066 declarations. Update copyright.
10067 Fix PR gdb/251.
361d1df0 10068
97658e92
DJ
100692002-04-09 Daniel Jacobowitz <drow@mvista.com>
10070
10071 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10072 after the last symbol in a block.
10073
6044e3eb
PM
100742002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10075
10076 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10077 is non zero as a found symbol.
10078
0406ec40
AC
100792002-04-08 Andrew Cagney <ac131313@redhat.com>
10080
10081 * findvar.c: Include "builtin-regs.h".
10082 (value_of_register): Call value_of_builtin_reg when applicable.
10083 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10084 (target_map_name_to_register): Call
10085 builtin_reg_map_name_to_regnum.
10086 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10087 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10088 (builtin_regs_h): Define.
10089 (builtin-regs.o): New target.
10090 (findvar.o): Add $(builtin_regs_h).
10091 * builtin-regs.c, builtin-regs.h: New files.
10092 * std-regs.c: New file.
10093 Partial fix for PR gdb/251.
10094
56a6dfb9
KB
100952002-04-08 Kevin Buettner <kevinb@redhat.com>
10096
10097 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10098 it's no longer required.
10099
3a808432
AC
101002002-04-08 Andrew Cagney <ac131313@redhat.com>
10101
10102 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10103
7c40d541
KB
101042002-04-08 Kevin Buettner <kevinb@redhat.com>
10105
10106 From Jimi X <jimix@watson.ibm.com>:
10107 * rs6000-tdep.c (rs6000_software_single_step): Use
10108 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10109 and size. Use target_insert_breakpoint() and
10110 target_remove_breakpoint() to insert and remove breakpoints
10111 instead of explicit memory reads and writes.
10112
cc9836a8
KB
101132002-04-08 Kevin Buettner <kevinb@redhat.com>
10114
10115 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10116 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10117 ELF_OBJECT_FORMAT ifdef.
10118
7495d1dc
KB
101192002-04-08 Kevin Buettner <kevinb@redhat.com>
10120
10121 From Jimi X <jimix@watson.ibm.com>:
10122 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10123
4288e836
KB
101242002-04-08 Kevin Buettner <kevinb@redhat.com>
10125
10126 From Jimi X <jimix@watson.ibm.com>:
10127 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10128 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10129
a4e4e501
MK
101302002-04-07 Mark Kettenis <kettenis@gnu.org>
10131
10132 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10133 s/asprintf/xasprintf/.
10134 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10135
006defba
AC
101362002-04-07 Andrew Cagney <ac131313@redhat.com>
10137
10138 I believe Jeff Law denies responsability for this one:
10139 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10140 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10141 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10142 Work-around for PR gdb/366.
10143
7aa83cac
EZ
101442002-04-07 Elena Zannoni <ezannoni@redhat.com>
10145
10146 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10147 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10148 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10149
cf1fcca1
EZ
101502002-04-07 Elena Zannoni <ezannoni@redhat.com>
10151
10152 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10153 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10154 information.
10155
3f289e6f
AC
101562002-04-07 Andrew Cagney <ac131313@redhat.com>
10157
10158 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10159 maintainer.
10160
129188f6
AC
101612002-04-07 Andrew Cagney <ac131313@redhat.com>
10162
10163 * README (Reporting Bugs in GDB): Document the bug web page as the
10164 prefered way of submitting bugs.
10165 Fix PR gdb/402.
10166
1200cd6e
AC
101672002-04-06 Andrew Cagney <ac131313@redhat.com>
10168
10169 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10170 -1. Update comment.
10171 * gdbarch.h, gdbarch.c: Re-generate.
10172
2853c33c
AS
101732002-04-07 Andreas Schwab <schwab@suse.de>
10174
10175 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10176 buffer to regcache_collect.
10177
c2169756
AC
101782002-04-06 Andrew Cagney <ac131313@redhat.com>
10179
10180 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10181 * gdbarch.c, gdbarch.h: Re-generate.
10182
25f1b008
AC
101832002-04-06 Andrew Cagney <ac131313@redhat.com>
10184
10185 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10186 declaration. Fix -Werror.
10187
59263426
DJ
101882002-04-05 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10191 * gdbarch.c: Regenerate.
10192
f5db4da3
MS
101932002-04-05 Michael Snyder <msnyder@redhat.com>
10194
80f8a6eb
MS
10195 * breakpoint.c (clear_command): Rewrite middle section to
10196 combine two loops with identical control conditions.
10197 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10198 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10199
ad3dcc5c
L
102002002-04-05 H.J. Lu (hjl@gnu.org)
10201
10202 * solib-svr4.c (bkpt_names): Add "__start".
10203
f32e7a74
AC
102042002-04-04 Andrew Cagney <ac131313@redhat.com>
10205
10206 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10207 as test for 64 bit target.
10208
8227c0ff
AC
102092002-04-05 Andrew Cagney <ac131313@redhat.com>
10210
10211 * h8500-tdep.c (h8500_write_fp): Delete function.
10212 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10213 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10214 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10215 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10216 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10217 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10218 (s390_write_fp):
10219 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10220 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10221 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10222 (d10v_write_fp): Delete function.
10223 * inferior.h (write_fp, generic_target_write_fp): Delete
10224 declarations.
10225 * regcache.c (generic_target_write_fp): Delete function.
10226 (write_fp): Delete function.
10227 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10228 * gdbarch.h, gdbarch.c: Regenerate.
10229 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10230 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10231 (sparc64_write_fp): Delete declaration.
10232 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10233 (h8500_write_fp): Delete declaration.
10234
2757dd86
AC
102352002-04-04 Andrew Cagney <ac131313@redhat.com>
10236
10237 * sparc-tdep.c (sparc64_write_fp): Delete.
10238 (sparc_push_dummy_frame): Replace write_fp call with code to store
10239 the FP directly.
10240 (sparc_gdbarch_init): Do not initialize write_fp.
10241
c69255e1
KB
102422002-04-05 Kevin Buettner <kevinb@redhat.com>
10243
10244 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10245 clause.
10246
ae767bfb
JB
102472002-03-29 Jim Blandy <jimb@redhat.com>
10248
10249 * stack.c (get_selected_block): Add new argument `addr_in_block',
10250 used to return the exact code address we used to select the block,
10251 not just the block.
10252 * blockframe.c (get_frame_block, get_current_block): Same.
10253 * frame.h (get_frame_block, get_current_block,
10254 get_selected_block): Update declarations.
10255 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10256 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10257
84d2ac95
MS
102582002-04-05 Michael Snyder <msnyder@redhat.com>
10259
10260 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10261 warning message.
10262
596aa3bf
JB
102632002-04-05 J. Brobecker <brobecker@gnat.com>
10264
10265 * utils.c (xfullpath): New function.
10266 * defs.h (xfullpath): Add declaration.
10267 * source.c (openp): Use xfullpath in place of gdb_realpath to
10268 avoid resolving the basename part of filenames when the
10269 associated file is a symbolic link. This fixes a potential
10270 inconsistency between the filenames known to GDB and the
10271 filenames it prints in the annotations.
10272 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10273 to be able to match a filename with either the real filename, or
10274 the name of any symbolic link to this file.
10275 (lookup_partial_symtab): Ditto.
10276
c02f5703
MS
102772002-04-04 Michael Snyder <msnyder@redhat.com>
10278
10279 * breakpoint.c: Add support for hardware breakpoints in overlays.
10280 (overlay_events_enabled): New state variable.
10281 (insert_breakpoints): Use overlay_events_enabled to decide
10282 whether to attempt to set a breakpoint at the overlay load addr.
10283 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10284 (remove_breakpoint): Use overlay_events_enabled to decide
10285 whether breakpoints need to be removed from overlay load addr.
10286 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10287 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10288 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10289 disable_overlay_breakpoints): Update overlay_events_enabled.
10290
5fb290d7
DJ
102912002-04-04 Daniel Jacobowitz <drow@mvista.com>
10292
10293 * dwarf2read.c (struct function_range): New.
10294 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10295 (check_cu_functions): New.
10296 (read_file_scope): Initialize global function lists.
10297 Call dwarf_decode_line after processing children.
10298 (read_func_scope): Add to global function list.
10299 (dwarf_decode_lines): Call check_cu_functions everywhere
10300 record_line is called. Call record_line with a linenumber
10301 of 0 to mark sequence ends.
10302
7b3fabf0
ML
103032002-04-04 Michal Ludvig <mludvig@suse.cz>
10304
361d1df0 10305 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10306 change sync with glibc.
10307
bce58c09
JB
103082002-04-03 Jim Blandy <jimb@redhat.com>
10309
10310 * configure.in: Call AC_C_INLINE.
10311 * configure: Regenerated.
361d1df0 10312
2fccf04a
DJ
103132002-04-01 Daniel Jacobowitz <drow@mvista.com>
10314
10315 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10316 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10317
2d1bfe2e
MK
103182002-03-31 Mark Kettenis <kettenis@gnu.org>
10319
a5941fbf
MK
10320 * NEWS: Mention gcore support on FreeBSD/i386.
10321
a90cd31d
MK
10322 * fbsd-proc.c: New file.
10323 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10324 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10325
2d1bfe2e
MK
10326 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10327 while statement.
10328
9eb6e5a1
JB
103292002-03-29 Jim Blandy <jimb@redhat.com>
10330
10331 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10332 unescaped newlines in string literals, but newer ones don't. So
10333 escape them.
10334
f02df580
MS
103352002-03-26 Michael Snyder <msnyder@redhat.com>
10336 Andrew Cagney <cagney@redhat.com>
10337
361d1df0 10338 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10339 restore file to memory.
10340 * cli/cli-dump.h: New file.
10341 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10342 * NEWS: Mention new commands.
f02df580 10343
109f874e
MS
103442002-03-28 Michael Snyder <msnyder@redhat.com>
10345
10346 * symfile.c (symbol_file_add): Move test for null symbols to later.
10347
520f6ade
AC
103482002-03-27 Andrew Cagney <ac131313@redhat.com>
10349
10350 From veksler at il.ibm.com:
10351 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10352 the xstrduped original path.
10353 Fix PR gdb/417.
10354
d4654627
MS
103552002-03-27 Michael Snyder <msnyder@redhat.com>
10356
10357 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10358 * infcmd.c (_initialize_infcmd): Ditto.
10359 * language.c (_initialize_language): Ditto.
10360 * symfile.c (_initialize_symfile): Ditto.
10361 * top.c (_init_main): Ditto.
10362 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10363
6be8bc0c
EZ
103642002-03-27 Elena Zannoni <ezannoni@redhat.com>
10365
10366 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10367 vector registers handling.
10368 (skip_prologue): Handle new AltiVec instructions. Fill in new
10369 fields of frame data.
10370 (frame_get_saved_regs): Fill in information for AltiVec registers.
10371
12af6855
JB
103722002-03-27 Jim Blandy <jimb@redhat.com>
10373
10374 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10375 a function; leave this macro here to invoke that function.
10376 (symbol_init_mangled_name): Declaration for that function.
10377 * symtab.c (symbol_init_mangled_name): New function.
10378
dc672865
AC
103792002-03-27 Andrew Cagney <ac131313@redhat.com>
10380
10381 * valarith.c: Replace strerror with safe_strerror.
10382 * tracepoint.c: Ditto.
10383 * lin-lwp.c: Ditto.
10384 * go32-nat.c: Ditto.
10385 * inflow.c: Ditto.
10386 * gnu-nat.c: Ditto.
10387
d96429cd
AS
103882002-03-27 Andreas Schwab <schwab@suse.de>
10389
10390 * event-top.c (command_line_handler): Remove useless if.
10391
7e336ba1
AJ
103922002-03-27 Andreas Jaeger <aj@suse.de>
10393
10394 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10395 comment.
10396
de220d0f
ML
103972002-03-27 Michal Ludvig <mludvig@suse.cz>
10398
10399 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10400 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10401 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10402 (x86_64_linux_dr_get_status, supply_gregset),
10403 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10404 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10405 (x86_64_register_info_table): Add.
10406 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10407 (x86_64_register_raw_size, x86_64_register_virtual_type),
10408 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10409 general x86_64_register_info_table.
10410 (i386_gdbarch_init): gdbarch_register_bytes is now set
10411 dynamicaly during initialization.
10412 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10413 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10414
0e98d0a7
DJ
104152002-03-27 Daniel Jacobowitz <drow@mvista.com>
10416
10417 * gdbserver/server.c (main): Call target_signal_to_host_p
10418 and target_signal_to_host on signals received from the remote.
10419 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10420 target_signal_from_host on signals sent to the remote.
10421 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10422 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10423
3130066b
DJ
104242002-03-27 Daniel Jacobowitz <drow@mvista.com>
10425
10426 * signals/signals.c: Include "server.h" in gdbserver build.
10427 (target_signal_from_name): Don't use STREQ.
10428 (_initialize_signals): Likewise. Don't include function in
10429 gdbserver build.
10430
9aedf4f4
DJ
104312002-03-27 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * signals.c: Moved to...
10434 * signals/signals.c: Here.
7e336ba1 10435 * Makefile (signals.o): Update.
9aedf4f4 10436
3fa41cdb
JL
104372002-03-26 Jeff Law (law@redhat.com)
10438
10439 * somread.c (som_symtab_read): Remove some commented out code and
10440 updated related comments. Do not set the minimal symbol table to
10441 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10442 in a dynamic executable.
10443 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10444 where we are unable to find the minimal symbol for the given
10445 PC value.
10446
ee677e8d
MS
104472002-03-25 Jeff Law (law@redhat.com)
10448
10449 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10450
e76e1718
ML
104512002-03-25 Michal Ludvig <mludvig@suse.cz>
10452
10453 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10454
18a642a1
AC
104552002-03-23 Andrew Cagney <ac131313@redhat.com>
10456
10457 * command.h: Update copyright.
10458 (struct cmd_list_element): Replace definition with opaque
10459 declaration.
10460 (enum cmd_types): Document that it will eventually be moved to
10461 cli/cli-decode.h
10462 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10463 (MALLOCED_REPLACEMENT): Delete macro.
10464 * Makefile.in (cli_decode_h): Add $(command_h).
10465 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10466 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10467 * completer.c: Include "cli/cli-decode.h".
10468 * maint.c: Include "cli/cli-decode.h".
10469 * cli/cli-decode.h: Include "command.h".
10470 (enum command_class): Delete.
10471 (enum cmd_types): Comment out.
10472 (enum cmd_auto_boolean): Delete.
10473 (enum var_types): Delete.
10474
b2875cc0
AC
104752002-03-23 Andrew Cagney <ac131313@redhat.com>
10476
10477 * cli/cli-decode.c: Include "gdb_assert.h".
10478 (add_set_or_show_cmd): New static function.
10479 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10480 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10481 all fields, such as func, from the set command.
10482
3b45974e
AC
104832002-03-23 Andrew Cagney <ac131313@redhat.com>
10484
10485 * MAINTAINERS (sh-elf): Change warning flag to -w.
10486
823ca731
AC
104872002-03-23 Andrew Cagney <cagney@redhat.com>
10488
10489 * defs.h (error): Add printf format attribute.
10490 * thread-db.c (thread_from_lwp): Fix error format string.
10491 * stack.c (parse_frame_specification): Ditto.
10492 * cli/cli-decode.c (undef_cmd_error): Ditto.
10493 * scm-lang.c (scm_lookup_name): Ditto.
10494 * tracepoint.c (trace_error): Ditto.
10495 * remote-utils.c (usage): Ditto.
10496 * remote.c (compare_sections_command): Ditto.
10497 Fix PR gdb/328.
10498
0e101458
AC
104992002-03-22 Andrew Cagney <ac131313@redhat.com>
10500
10501 * gdbtypes.c (append_composite_type_field): New function.
10502 (init_composite_type): New function.
10503 * gdbtypes.h (append_composite_type_field): Declare.
10504 (init_composite_type): Ditto.
10505
8e0662df
EZ
105062002-03-22 Elena Zannoni <ezannoni@redhat.com>
10507
10508 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10509 function.
8e0662df
EZ
10510 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10511 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10512 structure returning convention for SYSV ABI case, but not
10513 for GNU/Linux, FreeBSD, or NetBSD.
10514
3121eff0
DJ
105152002-03-22 Daniel Jacobowitz <drow@mvista.com>
10516
10517 * symtab.h (lookup_block_symbol): Add mangled_name argument
10518 to prototype.
10519
10520 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10521 with new mangled_name argument.
10522 * linespec.c (decode_line_1): Likewise.
10523 * valops (value_of_this): Likewise.
10524 * symtab.c (lookup_transparent_type): Likewise.
10525 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10526 (lookup_symbol): If we are given a mangled name, pass it down
10527 to lookup_symbol_aux.
10528 (lookup_block_symbol): If we are given a mangled name to check
10529 against, only return symbols which match it.
10530
349b409f
CF
105312002-03-22 Christopher Faylor <cgf@redhat.com>
10532
10533 * win32-nat.c (child_create_inferior): Check for proper shell to use
10534 here, in case the user changes it on the fly.
10535 (_initialize_inftarg): Remove shell path considerations.
10536
2a873819
EZ
105372002-03-21 Elena Zannoni <ezannoni@redhat.com>
10538
10539 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10540 for gdbarch_max_register_raw_size and max_register_virtual_size.
10541 Adjust copyright year.
10542
a1b9830c
DJ
105432002-03-21 Daniel Jacobowitz <drow@mvista.com>
10544
10545 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10546 in a function to cover the entire beginning of the function
10547 as well if it does not already.
10548
8b5790f2
TR
105492002-03-21 Tom Rix <trix@redhat.com>
10550
10551 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10552 (rs6000_ptrace64): Renamed from ptrace64.
10553
bdbe5747
MH
105542002-03-20 Martin M. Hunt <hunt@redhat.com>
10555
10556 * gdbserver/remote-utils.c (remote_open): Don't call
10557 getprotobyname, we're all using TCP here so just use
10558 IPPROTO_TCP.
7e336ba1 10559 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10560
105612002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10562
bdbe5747
MH
10563 * regcache.c (_initialize_regcache): No need to call
10564 build_regcache() at this time; it gets called whenever
10565 the gdbarch changes.
10566
7781cd62
DB
105672002-03-20 David O'Brien <obrien@FreeBSD.org>
10568
10569 * sparc-nat.c: Include sys/param.h where possible.
10570
f65ca430
DJ
105712002-03-20 Daniel Jacobowitz <drow@mvista.com>
10572
10573 Fix PR gdb/422.
10574 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10575 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10576 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10577 complex types.
10578 * stabsread.c (rs6000_builtin_type): Likewise.
10579 (read_sun_floating_type): Likewise.
10580
0c867556
PS
105812002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10582
10583 * stabsread.c (read_member_functions): Remove skip code for duplicate
10584 constructor/destructor methods. Use standard parsing for these
10585 methods and just do not chain them to the list of methods after
10586 parsing.
10587
12b9c64f
AO
105882002-03-19 Alexandre Oliva <aoliva@redhat.com>
10589
10590 * coffread.c: Remove redundant static declarations. Replace
10591 occurrences of `PTR' with `void *'.
10592 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10593 * top.h (quit_cover): Likewise.
10594 * defs.h (catch_errors): Likewise.
10595
349c5d5f
AC
105962002-03-18 Andrew Cagney <ac131313@redhat.com>
10597
10598 * defs.h (XMALLOC): Define.
10599 * gdb-events.sh (XMALLOC): Delete macro.
10600 * gdb-events.c, gdb-events.h: Regenerate.
10601 * gdbarch.sh (XMALLOC): Delete macro.
10602 * gdbarch.c: Regenerate.
10603 * serial.c (XMALLOC): Delete macro.
10604 * ui-file.c (XMALLOC): Ditto.
10605 * ser-unix.h (XMALLOC): Ditto.
10606 * sh-tdep.c (XMALLOC): Ditto.
10607 * ui-out.c (XMALLOC): Ditto.
10608 * utils.c (XMALLOC): Ditto.
10609 * i386-tdep.c (XMALLOC): Ditto.
10610 * gdb-events.c (XMALLOC): Ditto.
10611 * d10v-tdep.c (XMALLOC): Ditto.
10612 * cli-out.c (XMALLOC): Ditto.
10613
10614 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10615 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10616 * ui-file.c, ui-out.c: Ditto.
10617
7d0766f3
AC
106182002-03-18 Andrew Cagney <ac131313@redhat.com>
10619
10620 * command.h (struct cmd_list_element): Add field context.
10621 (set_cmd_context, get_cmd_context): Declare.
10622 * cli/cli-decode.h: Ditto.
10623 * cli/cli-decode.c (get_cmd_context): New function.
10624 (set_cmd_context): New function.
10625 (add_cmd): Initialize context.
10626 Part of fixing PR gdb/145 and PR gdb/146.
10627
5913bcb0
AC
106282002-03-17 Andrew Cagney <ac131313@redhat.com>
10629
1868c04e
AC
10630 * cli/cli-decode.c (cmd_type): New function.
10631 * command.h (cmd_type): Declare.
10632 * infrun.c (set_schedlock_func): Call function cmd_type.
10633 * kod.c (kod_set_os): Call cmd_type.
10634 * cris-tdep.c (cris_version_update): Use function cmd_type.
10635 (cris_mode_update, cris_abi_update): Ditto.
10636
5913bcb0
AC
10637 * command.h: (execute_cmd_post_hook): Declare.
10638 (execute_cmd_pre_hook): Declare.
10639 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10640 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10641 functions. Execute pre/post hook while ensuring that afterwords
10642 hook_in is cleared.
10643 * top.c (execute_command): Use execute_cmd_post_hook, and
10644 execute_cmd_pre_hook to execute pre/post commands.
10645 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10646 hook_stop_stub.
10647 (hook_stop_stub): Call execute_cmd_pre_hook.
10648
b51450c9
AC
106492002-03-17 Andrew Cagney <ac131313@redhat.com>
10650
10651 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10652 set'' and this leads to a core dump. Move xstrdup of
10653 operating_system to after check that it is not NULL.
10654
f66c9f11
AC
106552002-03-17 Andrew Cagney <ac131313@redhat.com>
10656
8e694ecf
AC
10657 * kod.c (kod_set_os): Remove unnecessary check that
10658 ``command->type'' is set_cmd.
10659
f66c9f11
AC
10660 * valprint.c (set_input_radix): Use input_radix.
10661 (set_output_radix): Use output_radix.
10662 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10663 isn't reverted.
10664
9d01611c
AC
106652002-03-16 Andrew Cagney <ac131313@redhat.com>
10666
10667 * value.h (struct value): Delete field ``substring_addr''. Change
10668 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10669 force_core_addr_align and force_pointer_aligh.
10670
10671 * value.h (struct value): Fix typo in above change.
9d01611c 10672
4156bb53
PS
106732002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10674
10675 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10676 to fix internal_error from ``maintenance print architecture''.
10677
0e5e3ea6
PS
106782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10679
10680 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10681 for gcc versions after gcc-2.8.1.
10682
9b013045
PS
106832002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10684
10685 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10686 for method resolution. Restore adjustment of ``this'' pointer after
10687 calling value_struct_elt, which was accidentally removed during the
10688 HP merge.
10689
376c9600
AC
106902002-03-15 Andrew Cagney <ac131313@redhat.com>
10691
10692 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10693 value_of_register.
10694 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10695 get_saved_register.
10696 * value.h (value_of_register): Update.
10697
a4db0f07
RH
106982002-03-14 Richard Henderson <rth@redhat.com>
10699
10700 * configure.in: Detect declaration for canonicalize_file_name.
10701 * utils.c (canonicalize_file_name): Declare, if needed.
10702 (gdb_realpath): Prefer realpath if available and usable.
10703 * config.in, configure: Rebuild.
10704
96383835
RH
107052002-03-14 Richard Henderson <rth@redhat.com>
10706
10707 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10708 a constant array bound.
10709
10710 * MAINTAINERS: Add myself to write-after-approval.
10711
75245b24
MS
107122002-03-14 Michael Snyder <msnyder@redhat.com>
10713
10714 * symfile.c (syms_from_objfile): Return immediately if no syms.
10715 (symbol_file_add): Return immediately if no syms.
10716 (find_sym_fns): Return immediately if no syms.
10717
e641a1ca
ML
107182002-03-13 Michal Ludvig <mludvig@suse.cz>
10719
10720 * gdbserver/remote-util.c (remote_open): Print remote-side's
10721 IP address when remote debugging over the network.
7e336ba1 10722
df08bfec
DB
107232002-03-12 David O'Brien <obrien@FreeBSD.org>
10724
10725 * config/sparc/fbsd.mh: Fix copyright.
10726 * config/sparc/fbsd.mt: Likewise.
10727
9a57864f
RE
107282002-03-11 Richard Earnshaw <rearnsha@arm.com>
10729
10730 * MAINTAINERS: Fix typo in name of gdb warnings option.
10731 (x86-64): Fix formating so that this can be parsed by awk.
10732
dd7bf85e
DJ
107332002-03-10 Daniel Jacobowitz <drow@mvista.com>
10734
10735 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10736 * defs.h: Include "gdb/signals.h".
10737 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10738
33a0a2ac
ML
107392002-03-10 Michal Ludvig <mludvig@suse.cz>
10740
10741 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10742 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10743 from x86-64-tdep.h
10744
dd824b04
DJ
107452002-03-10 Daniel Jacobowitz <drow@mvista.com>
10746 Don Howard <dhoward@redhat.com>
10747
10748 * mips-tdep.c (ST0_FR): Define.
10749 (mips2_fp_compat): New function, temporarily disabled.
10750 (mips_read_fp_register_single): New function.
10751 (mips_read_fp_register_double): New function.
10752 (mips_print_register): Use them.
10753 (do_fp_register_row): Likewise.
10754
6a41ff59
AC
107552002-03-09 Andrew Cagney <ac131313@redhat.com>
10756
10757 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10758 approval''.
10759
4ea09c10
PS
107602002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10761
10762 * stabsread.c (read_member_functions): Fix is_stub test for
10763 static member functions, improve comment.
10764
6ccc741d
RE
107652002-03-07 Richard Earnshaw <rearnsha@arm.com>
10766
10767 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10768 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10769 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10770 commands that set boolean values.
10771 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10772 (arm_rdi_resume): Always initialize PC.
10773 (arm_rdi_open): Don't use rslt as a boolean.
10774 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10775 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10776 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10777 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10778
438013df
AO
107792002-03-06 Alexandre Oliva <aoliva@redhat.com>
10780
10781 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10782 * configure: Rebuilt.
10783
70ed8774
SC
107842002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10785
10786 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10787 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10788
5ba2abeb
AC
107892002-03-06 Andrew Cagney <ac131313@redhat.com>
10790
10791 * cli/cli-decode.c (set_cmd_completer): New function.
10792 * command.h (set_cmd_completer): Declare.
10793 * cli/cli-decode.h (set_cmd_completer): Ditto.
10794
10795 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10796 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10797 * win32-nat.c (_initialize_inftarg): Ditto.
10798 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10799 * proc-api.c (_initialize_proc_api): Ditto.
10800 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10801 * source.c (_initialize_source): Ditto.
10802 * exec.c (_initialize_exec): Ditto.
10803 * solib.c (_initialize_solib): Ditto.
10804 * top.c (init_main): Ditto.
10805 * tracepoint.c (_initialize_tracepoint): Ditto.
10806 * symfile.c (_initialize_symfile): Ditto.
10807 * printcmd.c (_initialize_printcmd): Ditto.
10808 * infcmd.c (_initialize_infcmd): Ditto.
10809 * corefile.c (_initialize_core): Ditto.
10810
f779ca99
AC
108112002-03-05 Andrew Cagney <ac131313@redhat.com>
10812
10813 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10814
01a3934b
AC
108152002-03-05 Andrew Cagney <ac131313@redhat.com>
10816
10817 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10818
37057839
AC
108192002-03-05 Andrew Cagney <ac131313@redhat.com>
10820
10821 * NEWS: Update headings, 5.2 has branched.
10822
c6ecbae5
DJ
108232002-03-04 Daniel Jacobowitz <drow@mvista.com>
10824
10825 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10826 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10827 (register_addr, REGISTER_RAW_SIZE): Likewise.
10828 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10829 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10830
e9f30c21
ML
108312002-03-03 Michal Ludvig <mludvig@suse.cz>
10832
10833 * MAINTAINERS (x86-64): Add myself.
10834 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10835 changed value_ptr -> struct value *
10836
54394ac3
DB
108372002-03-01 David O'Brien <obrien@FreeBSD.org>
10838
10839 * configure.host (sparc64-*-freebsd): Add.
10840 * configure.tgt: Likewise.
10841 * config/sparc/fbsd.mh: New file.
10842 * config/sparc/fbsd.mt: Likewise.
10843 * config/sparc/nm-fbsd.h: Likewise.
10844 * config/sparc/tm-fbsd.h: Likewise.
10845
bfe95955
DJ
108462002-03-01 Daniel Jacobowitz <drow@mvista.com>
10847
10848 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10849 regformats/reg-s390x.dat.
10850
f33c6cbf
AC
108512002-03-01 Andrew Cagney <ac131313@redhat.com>
10852
10853 * utils.c: Add FIXME explaining true/false problem.
10854
5ecaa7dd
AC
108552002-02-28 Andrew Cagney <ac131313@redhat.com>
10856
10857 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10858
2a251cc2
MC
108592002-02-28 Michael Chastain <mec@shout.net>
10860
10861 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10862
6a8031a3 108632002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10864
10865 * gdbserver/linux-s390-low.c: New file.
10866 * regformats/reg-s390.dat: New file.
10867 * regformats/reg-s390x.dat: New file.
10868 * gdbserver/configure.srv: Add S/390.
10869 * gdbserver/Makefile.in: Add S/390.
10870 * configure.tgt: Enable gdbserver for S/390.
10871
ac469903
EZ
108722002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10873
10874 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10875 first line of the doc string for "info dos", except at the end of
10876 the sentence, since the short help stops at the first period.
10877
985cb1a3
JM
108782002-02-28 Jason Merrill <jason@redhat.com>
10879
10880 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10881
c570663e
FF
108822002-02-27 Fred Fish <fnf@redhat.com>
10883
10884 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10885 comment (dumy -> dummy).
10886
43630227
PS
108872002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10888
10889 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10890
b84911e8
RB
108912002-02-27 Rodney Brown <rbrown64@csc.com.au>
10892
10893 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10894
58caa3dc
DJ
108952002-02-27 Daniel Jacobowitz <drow@mvista.com>
10896
10897 * gdbserver/acconfig.h: New file.
10898 * gdbserver/i387-fp.c: New file.
10899 * gdbserver/i387-fp.h: New file.
10900 * gdbserver/linux-x86-64.c: New file.
10901 * regformats/reg-x86-64.dat: New file.
10902 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10903 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10904 * gdbserver/configure.in: Add support for regsets.
10905 * gdbserver/config.in: Regenerate.
10906 * gdbserver/configure: Regenerate.
10907 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10908 * gdbserver/linux-low.h: New file.
10909 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10910 for regsets.
10911 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10912 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10913 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10914 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10915 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10916 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10917 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10918 "i387-fp.h". Add PTRACE_GETREGS and friends.
10919 * gdbserver/regcache.c (supply_register): New function.
10920 (supply_register_by_name): New function.
10921 (collect_register): New function.
10922 (collect_register_by_name): New function.
10923
93652174
DJ
109242002-02-27 Daniel Jacobowitz <drow@mvista.com>
10925
10926 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10927 (config.status): Add configure.srv dependency.
10928 (server_h): Add config.h dependency.
10929
a02e4a61
DJ
109302002-02-27 Daniel Jacobowitz <drow@mvista.com>
10931
10932 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10933 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10934 * gdbserver/configure.srv: Change i386-*-linux* to use
10935 reg-i386-linux.o.
10936
ce0eebec
AC
109372002-02-26 Andrew Cagney <ac131313@redhat.com>
10938
10939 * x86-64-tdep.c: Re-indent. Update copyright date.
10940
82dbc5f7
AC
109412002-02-26 Andrew Cagney <ac131313@redhat.com>
10942
10943 From Michal Ludvig <mludvig@suse.cz>:
10944 * x86-64-tdep.c (value.h): Delete.
10945 (gdb_assert.h): Include.
10946 (x86_64_register_convert_to_virtual,
10947 x86_64_register_convert_to_raw ): Add check which lets only
10948 floating-point values to be converted.
10949 (value_push): Delete.
10950 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10951 (i386_gdbarch_init): Number of register_bytes fixed.
10952
e4621584
AC
109532002-02-26 Andrew Cagney <ac131313@redhat.com>
10954
10955 * MAINTAINERS: Add x86-64 target.
10956
81a9a963
AC
109572002-02-26 Andrew Cagney <ac131313@redhat.com>
10958
10959 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10960 * osfsolib.c (solib_map_sections): Ditto.
10961 * irix5-nat.c (solib_map_sections): Ditto.
10962 * corelow.c (gdb_check_format): Ditto.
10963 * symfile.c (symfile_bfd_open): Ditto.
10964 * solib.c (solib_map_sections): Ditto.
10965 Fix PR gdb/354.
7e336ba1 10966
0f017ab9
AC
109672002-02-26 Andrew Cagney <ac131313@redhat.com>
10968
10969 * remote.c (_initialize_remote): By default, disable ``e'' and
10970 ``E'' step out-of-range packets.
10971
75738c29
AS
109722002-02-26 Andreas Schwab <schwab@suse.de>
10973
10974 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10975 m68k_linux_frame_saved_pc.
10976 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10977 in_sigtramp.
10978 (SIGCONTEXT_PC_OFFSET): Remove.
10979 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10980 m68k_linux_sigtramp_saved_pc): New functions.
10981 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10982 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10983 (UCONTEXT_PC_OFFSET): Define.
10984 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10985 non-RT and RT signal trampolines.
10986
7e8ed687
RE
109872002-02-26 Richard Earnshaw <rearnsha@arm.com>
10988
10989 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10990 (TARGET_NBPG, STACK_END_ADDR): Delete
10991 (VARIABLES_INSIDE_BLOCK): Delete.
10992
6972bc8b
AC
109932002-02-25 Andrew Cagney <ac131313@redhat.com>
10994
10995 * utils.c (perror_with_name): Make string parameter constant.
10996 (print_sys_errmsg): Ditto.
10997 (query): Ditto.
10998 * defs.h (perror_with_name): Update.
10999 (print_sys_errmsg): Update.
11000 (query): Update.
11001
aa32f823
DJ
110022002-02-25 Daniel Jacobowitz <drow@mvista.com>
11003
11004 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11005 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11006
19caaa45
PS
110072002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11008
11009 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11010 if it already matches the current architecture from the exec file.
11011 Include arch-utils.h for gdbarch_info_init prototype.
11012 * Makefile.in (rs6000-nat.o): Update dependencies.
11013
d951901f
EZ
110142002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11015
11016 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11017 list of exported variables.
11018
7ea81414
DJ
110192002-02-24 Daniel Jacobowitz <drow@mvista.com>
11020
11021 * gdbserver/configure.srv: New file.
11022 * gdbserver/configure.in: Use configure.srv instead
11023 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11024 from it.
11025 * gdbserver/configure: Regenerated.
11026 * gdbserver/terminal.h: New file.
11027 * gdbserver/Makefile.in: Update for configure changes. Remove
11028 more unneeded include paths.
11029
080fe24b
AC
110302002-02-24 Andrew Cagney <ac131313@redhat.com>
11031
11032 From wiz at danbala:
11033 * config/sparc/tm-sp64.h: Fix grammar and typos.
11034 Fix PR gdb/287.
11035
8605d56e
AC
110362002-02-24 Andrew Cagney <ac131313@redhat.com>
11037
11038 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11039 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11040 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11041 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11042 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11043 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11044 * s390-tdep.c: Ditto.
92362027
AC
11045 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11046 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11047 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11048 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11049 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11050 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11051 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11052 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11053 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11054 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11055 Fix PR gdb/378.
7e336ba1 11056
8ed32cc0
AC
110572002-02-23 Andrew Cagney <ac131313@redhat.com>
11058
a3007b6f
AC
11059 * lin-thread.c: Delete file.
11060 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11061 to gdb_proc_service.h.
11062 * configure: Re-generate.
11063
50a9e2f1
AC
11064 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11065 * serial.c (serial_open): Delete check for "ocd".
11066 Fix PR gdb/349.
11067
8b6e7932
AC
11068 * Makefile.in (linux-thread.o): Delete target.
11069 * linux-thread.c: Delete file.
11070
d155c46b
AC
11071 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11072 renamed SH files to be consistent.
11073
8ed32cc0
AC
11074 * symtab.c (sort_search_symbols): Use xfree.
11075
0e18d038
RE
110762002-02-23 Richard Earnshaw <rearnsha@arm.com>
11077
11078 * arm-linux-tdep.c (arm_linux_init_abi): Register
11079 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11080 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11081 definition with undef, since we don't want the sysvr4 definition.
11082 (SKIP_TRAMPOLINE_CODE): Likewise.
11083
27aac7ff
AC
110842002-02-23 Andrew Cagney <ac131313@redhat.com>
11085
11086 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11087
11088 * configure.in: (AC_CHECK_FUNCS) Added test for
11089 canonicalize_file_name Regenerated.
11090 * config.in, configure: Regenerated.
11091 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11092 defined use canonicalize_file_name.
7e336ba1 11093
65a6e0ee
MC
110942002-02-23 Michael Chastain <mec@shout.net>
11095
11096 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11097
47b95330
AC
110982002-02-23 Andrew Cagney <ac131313@redhat.com>
11099
11100 * README: Remove references to cygnus.com.
11101 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11102 dot com'' form. Remove references to cygnus.com and sourceware.
11103
696f451b
AC
111042002-02-23 Andrew Cagney <ac131313@redhat.com>
11105
11106 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11107 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11108 1003.1-2001 no longer allows "head -1".
11109 * gdb/Makefile.in (version.c): Likewise.
11110 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11111 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11112 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11113
bbaca940
AC
111142002-02-23 Andrew Cagney <ac131313@redhat.com>
11115
11116 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11117 * command.h (cmd_cfunc_eq): Declare.
11118 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11119
11120 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11121 ``struct cmd_list_element *''.
11122 * cli/cli-cmds.c (is_complete_command): Update. Use
11123 cmd_cfunc_eq.
11124 * top.c (execute_command): Pass the command to
11125 is_complete_command.
11126 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11127
b8b8b047
AC
111282002-02-23 Andrew Cagney <ac131313@redhat.com>
11129
11130 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11131 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11132 architecture defines.
11133 * s390-tdep.c (s390_gdbarch_init): Likewise.
11134
19d3fc80
RE
111352002-02-23 Richard Earnshaw <rearnsha@arm.com>
11136
11137 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11138 (arm_linux_push_arguments): Likewise.
11139 (arm_linux_init_abi): Register them. Also register linux-specific
11140 call_dummy_words.
11141 (find_minsym_and_objfile): Use strcmp, not STREQ.
11142 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11143 (arm_linux_call_dummy_words): Delete declaration.
11144 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11145 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11146 declarations.
11147 (LOWEST_PC): Delete.
11148
3ab13650
PS
111492002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11150
11151 * maint.c (print_section_info): Do not prepend `0x' to filepos
11152 output, it will be handled by local_hex_string_custom.
11153
19d3fc80 111542002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11155
11156 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11157 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11158 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11159
d85a5daf
JB
111602002-02-22 Jim Blandy <jimb@redhat.com>
11161
11162 Indicate that the bcache functions don't change the strings
11163 they're passed.
11164 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11165 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11166
eeb25b8a
PM
111672002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11168
11169 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11170
6badb179
CF
111712002-02-21 Christopher Faylor <cgf@redhat.com>
11172
11173 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11174 find the complete path to a loaded DLL.
11175
e8717518
FF
111762002-02-21 Fred Fish <fnf@redhat.com>
11177
11178 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11179 that marks the end of the range of a function, enter a line number
11180 entry that has a line number of zero and a PC offset that matches
11181 the end of the function. This starts a range of PC's for which no
11182 line number information is known.
11183 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11184 PC's for which no line number info is found (line number is zero)
11185 then we didn't find any valid line information.
11186 * symtab.h: Document use of zero line number entry.
11187
9abe5450
EZ
111882002-02-21 Elena Zannoni <ezannoni@redhat.com>
11189
11190 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11191 (have_ptrace_getvrregs): Define for run time checks.
11192 (gdb_vrregset_t): New type for Altivec register handling.
11193 (fetch_register, store_register): Fetch/store altivec register
11194 when needed.
11195 (fetch_altivec_register, store_altivec_register): New functions.
11196 (supply_vrregset, fill_vrregset): New functions.
11197 (fetch_altivec_registers, store_altivec_registers): New functions.
11198 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11199 registers as well.
11200
aaa38bb5
AJ
112012002-02-21 Jiri Smid <smid@suse.cz>
11202
11203 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11204
b34db576
RE
112052002-02-21 Richard Earnshaw <rearnsha@arm.com>
11206
11207 * Makefile.in (armnbsd-nat.o): Update dependencies.
11208 * armnbsd-nat.c (supply_gregset): New function. Common code to
11209 supply the integer register set.
11210 (supply_fparegset): New function. Similar for FPA registers.
11211 (fetch_regs, fetch_fp_regs): Use them.
11212 (fetch_core_registers): Likewise.
11213 (fetch_elfcore_registers): New function.
11214 (arm_netbsd_elfcore_fns): New core-file type specification.
11215 (_initialize_arm_netbsd_nat): Register it.
11216
3e56fc4b
RE
112172002-02-21 Richard Earnshaw <rearnsha@arm.com>
11218
11219 * armnbsd-nat.c: Include gdbcore.h.
11220 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11221 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11222 'void' to declaration, to shut up ARI.
11223 (fetch_core_registers): Make static. Rewrite using supply_register.
11224 (arm_netbsd_core_fns): New core-file type specification.
11225 (_initialize_arm_netbsd_nat): New function.
11226
097f6b0b
CF
112272002-02-21 Christopher Faylor <cgf@redhat.com>
11228
11229 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11230 value.
11231
c914e0cc
CF
112322002-02-20 Christopher Faylor <cgf@redhat.com>
11233
11234 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11235 fails.
11236
385fa495
DJ
112372002-02-20 Daniel Jacobowitz <drow@mvista.com>
11238
11239 * jv-exp.y (parse_number): Change type of implicit longs
11240 to builtin_type_uint64.
11241
e5f1222d
DJ
112422002-02-20 Daniel Jacobowitz <drow@mvista.com>
11243
11244 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11245 to be an integer instead of a `union wait'.
11246
75c9abc6
DJ
112472002-02-20 Daniel Jacobowitz <drow@mvista.com>
11248
11249 * mips-linux-nat.c: Call the operating system GNU/Linux.
11250 * mips-linux-tdep.c: Likewise.
11251 * mips-tdep.c: Likewise.
11252
551792a5
DJ
112532002-02-20 Daniel Jacobowitz <drow@mvista.com>
11254
11255 Fix PR gdb/265.
11256 * jv-exp.y (parse_number): Handle 64-bit integers.
11257
ee6e2b82
DJ
112582002-02-20 Daniel Jacobowitz <drow@mvista.com>
11259
11260 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11261 AC_STDC_HEADERS to AC_HEADER_STDC.
11262 * gdbserver/configure: Regenerated.
11263
a48442a0
RE
112642002-02-20 Richard Earnshaw <rearnsha@arm.com>
11265
11266 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11267 is defined.
11268 * sparc-tdep.c (get_longjmp_target): Likewise.
11269
fe419ffc
RE
112702002-02-20 Richard Earnshaw <rearnsha@arm.com>
11271
11272 * News: Add news about ARM and Multi-arch. Mention the new target
11273 arm*-*-netbsd*.
11274
5832ed7e
JB
112752002-02-19 Jim Blandy <jimb@redhat.com>
11276
11277 * stabsread.c (error_type_complaint): Improve error message.
11278
84563040
DJ
112792002-02-19 Daniel Jacobowitz <drow@mvista.com>
11280
11281 * gdbserver/README: Update documentation.
11282 * gdbserver/configure.in: Update configury to match documentation.
11283 * gdbserver/Makefile.in: Likewise.
11284 * gdbserver/configure: Regenerated.
11285 * gdbserver/aclocal.m4: New file, generated by aclocal.
11286 * gdbserver/config.in: New file, generated by autoheader.
11287
375fd65b
RE
112882002-02-19 Richard Earnshaw <rearnsha@arm.com>
11289
11290 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11291 armnbsd-nat.c.
11292
08216dd7
RE
112932002-02-19 Richard Earnshaw <rearnsha@arm.com>
11294
11295 * arm-tdep.h (enum arm_float_model): New enum.
11296 (struct gdbarch_tdep): Add fp_model.
11297 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11298 up floating-point conversions until we know the floating-point model
11299 in use by the inferior. Don't complain about being unable to
11300 determine the ABI of the inferior when we don't have one.
11301 (arm_extract_return_value): Support different floating-point models.
11302 (arm_store_return_value): Likewise.
aaa38bb5 11303 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11304 ARM_FLOAT_SOFT.
11305 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11306
65d6d66a
PS
113072002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11308
11309 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11310 of ``current_gdbarch''.
11311
47221191
RE
113122002-02-19 Richard Earnshaw <rearnsha@arm.com>
11313
11314 * armnbsd-nat.c : ANSIfy all function declarations.
11315 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11316 (fetch_inferior_registers): Re-implement in terms of above.
11317 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11318 (store_inferior_registers): Re-implement in terms of above.
11319
fdf39c9a
RE
113202002-02-19 Richard Earnshaw <rearnsha@arm.com>
11321
aaa38bb5 11322 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11323 kernel.
11324 * arm-linux-tdep.c: Likewise.
11325 * config/arm/tm-linux.h: Likewise.
11326
93247f88
RE
113272002-02-19 Richard Earnshaw <rearnsha@arm.com>
11328
11329 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11330 * config/arm/nbsd.mt (TM_FILE): Delete.
11331 * config/arm/tm-nbsd.h: Delete.
11332
d7b486e7
RE
113332002-02-19 Richard Earnshaw <rearnsha@arm.com>
11334
11335 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11336 Initialize CALL_DUMMY_LENGTH.
11337
41d39a95
RE
113382002-02-19 Richard Earnshaw <rearnsha@arm.com>
11339
11340 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11341 function.
11342 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11343 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11344 defines one thing and that is incorrect for this port.
11345 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11346
e1195560
PM
113472002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11348
11349 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11350
c1748f97
PM
113512002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11352
11353 * win32-nat.c (display_selector): New function. Displays information
11354 about the information returned by GetThreadSelectorEntry API function.
11355 (display_selectors): New function. Displays the infomation of
11356 the selector given as argument, or of CS, DS ans FS selectors
11357 if no argument is given.
11358 ( _initialize_inftarg): Add "w32" as info prefix command.
11359 Add "info w32 selector" as command calling display_selectors.
11360
e41e6bbf
PM
113612002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11362
11363 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11364 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11365 if not defined.
11366
0d3a9f48
RE
113672002-02-18 Richard Earnshaw <rearnsha@arm.com>
11368
11369 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11370
3fb4b924
RE
113712002-02-18 Richard Earnshaw <rearnsha@arm.com>
11372
11373 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11374 (arm_fix_call_dummy): Call it.
11375 (arm_call_dummy_breakpoint_offset): Delete.
11376 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11377 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11378
7f55af32
AC
113792002-02-18 Andrew Cagney <ac131313@redhat.com>
11380
11381 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11382 Default to func_frame_chain_valid.
11383 * gdbarch.h, gdbarch.c: Re-generate.
11384 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11385
05f13b9c
EZ
113862002-02-18 Elena Zannoni <ezannoni@redhat.com>
11387
11388 * ppc-linux-nat.c: Update copyright.
11389 (fetch_register, store_register): Add tid parameter, don't compute
11390 tid here.
11391 (fetch_ppc_registers, store_ppc_registers): Add tid
11392 parameter. Pass it along to callees.
11393 (fetch_inferior_registers, store_inferior_registers): Compute tid
11394 here, and pass it to calleed functions.
11395 (fill_gregset, supply_fpregset): Clean up formatting.
11396
d7afb4c9
RE
113972002-02-18 Richard Earnshaw <rearnsha@arm.com>
11398
11399 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11400 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11401
9df628e0
RE
114022002-02-18 Richard Earnshaw <rearnsha@arm.com>
11403
11404 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11405 * gdbarch.c gdbarch.h: Regenerate.
11406 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11407 function.
11408 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11409 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11410 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11411
11412 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11413 * arm-tdep.c (arm_get_longjmp_target): New function.
11414 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11415 this to a positive value register arm_get_longjmp_target as the
11416 longjmp handler.
11417 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11418 (arm_linux_init_abi): Set up longjmp description in tdep.
11419 * armnbsd-nat.c (get_longjmp_target): Delete.
11420 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11421 description in tdep.
11422 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11423 (get_longjmp_target): Delete declaration.
11424 (GET_LONGJMP_TARGET): Delete.
11425 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11426 (GET_LONGJMP_TARGET): Delete.
11427
57bc8964
KB
114282002-02-17 Kevin Buettner <kevinb@redhat.com>
11429
11430 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11431 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11432 of ``current_gdbarch''.
11433
83d31a92
TT
114342002-02-17 Tom Tromey <tromey@redhat.com>
11435
11436 * cli/cli-cmds.c (compare_strings): New function.
11437 (complete_command): Only print each unique item once.
11438 * completer.h (complete_line): Declare.
11439 * completer.c (complete_line): New function.
11440 (line_completion_function): Use it.
11441
17ef5d92
AC
114422002-02-16 Andrew Cagney <ac131313@redhat.com>
11443
11444 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11445 * gdbarch.h, gdbarch.c: Re-generate.
11446
491b8946
DJ
114472002-02-16 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11450
114512002-02-16 Daniel Jacobowitz <drow@mvista.com>
11452
11453 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11454 * valops.c (value_arg_coerce): Don't take the address of a reference
11455 to convert an argument to a reference.
11456
dfe7f3ac
CF
114572002-02-15 Christopher Faylor <cgf@redhat.com>
11458
11459 * win32-nat.c (get_image_name): New function.
11460 (handle_load_dll): Use get_image_name function.
11461 (get_child_debug_event): Avoid registering debug events until possibly
11462 execed process is started.
11463 (child_create_inferior): Allow invocation via shell so that command
11464 line redirection, etc. works ok.
11465 (_initialize_inftarg): Add new command: "set shell" to control whether
11466 a shell is used to start a process.
11467
1d33e73a
DJ
114682002-02-15 Daniel Jacobowitz <drow@mvista.com>
11469
11470 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11471 instead of find_register_by_number.
11472 (cannot_store_register): Likewise.
11473
48cd0caa
PM
114742002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11475
aaa38bb5 11476 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11477 fprintf_unfiltered (gdb_stderr, ...).
11478
8656e7d8
DJ
114792002-02-15 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * gdbserver/gdbserver.1: Document --attach.
11482
66e810cd
RE
114832002-02-15 Richard Earnshaw <rearnsha@arm.com>
11484
11485 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11486 descriptions.
11487 * arm-tdep.c (arm_default_arm_le_breakpoint)
11488 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11489 (arm_default_thumb_be_breakpoint): New. Initialize them from
11490 traditional breakpoint defines.
11491 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11492 (arm_gdbarch_init): Initialize new breakpoint variables.
11493 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11494 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11495 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11496 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11497 code out to ...
11498 (arm_netbsd_init_abi_common): ... here; new function.
11499 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11500 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11501 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11502 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11503
97e03143
RE
115042002-02-15 Richard Earnshaw <rearnsha@arm.com>
11505
11506 * arm-tdep.h (enum arm_abi): New enum.
11507 (struct gdbarch_tdep): New structure.
11508 (LOWEST_PC): Provide a default.
11509 (arm_gdbarch_register_os_abi): Declare new function.
11510 * arm-tdep.c (arm_abi_names): New array.
11511 (process_note_abi_tag_sections): New function.
11512 (get_elfosabi): New function.
11513 (arm_gdbarch_register_os_abi): New function.
11514 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11515 support for that ABI has been built in, then call the appropriate
11516 configuration routine. Use gdbarch_num_regs() to get the number
11517 of registers.
11518 (arm_dump_tdep): New function.
11519 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11520 place-holder functions.
11521 (_initialize_arm_tdep): Register them.
11522 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11523
11524 * armnbsd-tdep.c: New file.
11525 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11526 * config/arm/nbsd.mt (TDEPFILES): Add it.
11527 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11528
11529 * armnbsd-nat.c: Include regcache.h.
11530 * Makefile.in (armnbsd-nat.o): Update dependency list.
11531
11532 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11533
ad68be46
DJ
115342002-02-14 Daniel Jacobowitz <drow@mvista.com>
11535
11536 * gdbserver/Makefile.in: Fix typos in target rules.
11537
003d6d1d
DJ
115382002-02-14 Daniel Jacobowitz <drow@mvista.com>
11539
aaa38bb5 11540 Fix part of PR gdb/267.
003d6d1d
DJ
11541 * linespec.c (find_methods): Handle constructors specially for now.
11542
6b230f1b
CV
115432002-02-14 Corinna Vinschen <vinschen@redhat.com>
11544
11545 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11546 handling.
11547 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11548 standard_coerce_float_to_double().
11549
1ea98d12
CF
115502002-02-14 Christopher Faylor <cgf@redhat.com>
11551
11552 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11553 GDBINIT_FILENAME.
11554
dd47e6fd
EZ
115552002-02-14 Elena Zannoni <ezannoni@redhat.com>
11556
11557 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11558 find_variant_by_name, because it confuses the multiarch
11559 framework. Return NULL if there isn't an architecture with the
11560 user supplied name, instead of forcing a different one without
11561 recording the change with the multiarch machinery.
11562 (find_variant_by_name): Delete.
11563
d7e39b9e
PS
115642002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11565
11566 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11567 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11568
76e42a4f
MH
115692002-02-13 Martin M. Hunt <hunt@redhat.com>
11570
aaa38bb5 11571 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11572 print_frame_info_listing_hook, set current_source_symtab.
11573
0a30fbc4
DJ
115742002-02-14 Daniel Jacobowitz <drow@mvista.com>
11575
11576 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11577 and remove unused $(INCLUDE_DIR).
11578 Add regcache.c to OBS.
11579 Add generated register protocol files to clean target.
11580 Update dependencies for new objects, obsolete old target code.
11581
11582 * gdbserver/linux-low.c: Remove all platform-specific code to
11583 new files. Remove various dead code. Update to use regcache
11584 functionality.
11585 * gdbserver/remote-utils.c (fromhex): Add return statement
11586 to quiet warning.
11587 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11588 constant.
11589 (input_interrupt): Add integer parameter to match prototype
11590 of a signal handler.
11591 (outreg): Use register_data ().
11592 (prepare_resume_reply): Use gdbserver_expedite_regs.
11593 * gdbserver/server.c (main): Dynamically allocate own_buf because
11594 PBUFSIZ is no longer constant. Use registers_to_string () and
11595 registers_from_string ().
11596 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11597 for error (), fatal (), and warning (). Update definition of
11598 PBUFSIZ to use regcache functionality. Add include guard.
11599 * gdbserver/utils.c (fatal): Add missing ``const''.
11600 (warning): New function.
11601
11602 * regformats/regdat.sh: Include "regcache.h" in generated files.
11603 Provide init_registers () function.
11604 * regformats/regdef.h: Add prototype for set_register_cache ().
11605 Add include guard.
11606
11607 * gdbserver/linux-arm-low.c: New file.
11608 * gdbserver/linux-i386-low.c: New file.
11609 * gdbserver/linux-ia64-low.c: New file.
11610 * gdbserver/linux-m68k-low.c: New file.
11611 * gdbserver/linux-mips-low.c: New file.
11612 * gdbserver/linux-ppc-low.c: New file.
11613 * gdbserver/linux-sh-low.c: New file.
11614
11615 * gdbserver/regcache.c: New file.
11616 * gdbserver/regcache.h: New file.
11617
11618 * gdbserver/low-linux.c: Removed obsolete file.
11619
4cc841d0
DJ
116202002-02-14 Daniel Jacobowitz <drow@mvista.com>
11621
11622 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11623 * config/i386/linux.mt: Likewise.
11624 * config/ia64/linux.mt: Likewise.
11625 * config/m68k/linux.mh: Likewise.
11626 * config/powerpc/linux.mh: Likewise.
11627 * config/mips/linux.mt: Likewise.
11628
11629 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11630
11631 * config/i386/i386lynx.mh: Mark gdbserver variables
11632 as (currently) obsolete for this target.
11633 * config/i386/nbsd.mt: Likewise.
11634 * config/i386/nbsdelf.mt: Likewise.
11635 * config/m32r/m32r.mt: Likewise.
11636 * config/m68k/m68klynx.mh: Likewise.
11637 * config/m68k/nbsd.mt: Likewise.
11638 * config/m68k/sun3os4.mh: Likewise.
11639 * config/mips/vr5000.mt: Likewise.
11640 * config/ns32k/nbsd.mt: Likewise.
11641 * config/pa/hppabsd.mh: Likewise.
11642 * config/pa/hppaosf.mh: Likewise.
11643 * config/powerpc/nbsd.mt: Likewise.
11644 * config/rs6000/rs6000lynx.mh: Likewise.
11645 * config/s390/s390.mt: Likewise.
11646 * config/s390/s390x.mt: Likewise.
11647 * config/sparc/sparclynx.mh: Likewise.
11648 * config/sparc/sun4os4.mh: Likewise.
11649 * config/i386/x86-64linux.mt: Likewise.
11650 * config/sparc/linux.mh: Likewise.
11651
a85f51e7
DJ
116522002-02-14 Daniel Jacobowitz <drow@mvista.com>
11653
11654 * configure.tgt: Configure gdbserver only for known working
11655 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11656 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11657 SUBDIRS if it is configured. Update comment for ${nativefile}.
11658 * configure: Regenerated.
11659
65554fef
MS
116602002-02-13 Michael Snyder <msnyder@redhat.com>
11661
670a52db
MS
11662 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11663
6dbdc4a3
MS
11664 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11665 (default_gcore_mach): Just return 0, work around a problem in bfd.
11666 (default_gcore_target): OK to return NULL if exec_bfd is null.
11667 (make_mem_sec): Use a cast, avoid a warning.
11668
11669 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11670 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11671 sizeof (host pointer) != sizeof (target pointer)).
11672 (procfs_make_note_section): Avoid overflow in psargs string.
11673
aaa38bb5 11674 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11675 implementation return an error.
11676
116772002-02-13 Rodney Brown <rbrown64@csc.com.au>
11678
11679 * procfs.c (procfs_make_note_section): Provide a default definition
11680 (for alpha-dec-osf4.0f). Fix typos.
11681
1e4d76e7
EZ
116822002-02-13 Elena Zannoni <ezannoni@redhat.com>
11683
11684 * linux-proc.c: Add include of regcache.h.
11685 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11686
b6d1a1d5
AC
116872002-02-13 Andrew Cagney <ac131313@redhat.com>
11688
11689 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11690 * memattr.c (create_mem_region): Disallow useless empty region.
11691 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11692 non-overlapping.
b6d1a1d5 11693
6c6ea35e
MC
116942002-02-13 Michael Chastain <mec@shout.net>
11695
11696 * defs.h: Kill CONST_PTR.
11697 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11698 * c-lang.c (c_builtin_types): Likewise.
11699 * ch-lang.c (ch_builtin_types): Likewise.
11700 * f-lang.c (f_builtin_types): Likewise.
11701 * language.c (unknown_builtin_types): Likewise.
11702 * m2-lang.c (m2_builtin_types): Likewise.
11703 * p-lang.c (pascal_builtin_types): Likewise.
11704 * scm-lang.c (c_builtin_types): Likewise.
11705
3e0b0f48
KS
117062002-02-13 Keith Seitz <keiths@redhat.com>
11707
11708 * arm-tdep.h (arm_get_next_pc): Add declaration.
11709
67255d04
RE
117102002-02-13 Richard Earnshaw <rearnsha@arm.com>
11711
11712 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11713 with other related struct-returning functions.
11714 (arm_extract_struct_value_address): New function.
11715 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11716 initialize float_format, double_format and long_double_format as
11717 appropriate to the endianness of the target.
11718 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11719 (arm_use_struct_convention): Delete declaration.
11720 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11721
079777f6
KS
117222002-02-13 Keith Seitz <keiths@redhat.com>
11723
11724 * defs.h (core_addr_to_string_nz): New function.
11725
34588f23
MK
117262002-02-13 Mark Kettenis <kettenis@gnu.org>
11727
11728 Apply missing bits of 2002-01-15 patch.
11729 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11730 (fill_fpregset): Use i387_fill_fsave.
11731
49b563f9
KS
117322002-02-12 Keith Seitz <keiths@redhat.com>
11733
49b563f9
KS
11734 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11735 (core_addr_to_string_nz): New function.
11736
aeb98c60
RE
117372002-02-11 Richard Earnshaw <rearnsha@arm.com>
11738
11739 * arm-linux-nat.c: Really include arm-tdep.h.
11740 * config/arm/tm-linux.h (struct type, struct value): Declare.
11741
65554fef
MS
117422002-02-11 Michael Snyder <msnyder@redhat.com>
11743
11744 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11745 (gcore section): Ifdef for Solaris and Unixware only.
11746 (procfs_do_thread_registers): Unixware needs one lwpstatus
11747 per thread (not one prstatus or pstatus).
11748 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11749 not over all gdb threads. For unixware, call elfcore_write_pstatus
11750 once before iterating over threads.
11751
34e8f22d
RE
117522002-02-11 Richard Earnshaw <rearnsha@arm.com>
11753
11754 * arm-tdep.h: New file.
11755 * arm-tdep.c: Include arm-tdep.h.
11756 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11757 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11758 (arm_print_float_info, arm_register_type, convert_to_extended)
11759 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11760 (arm_extract_return_value, arm_register_name): Make static.
11761 (arm_software_single_step): Similarly. Fix types in declaration.
11762 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11763 (arm_store_return_value, arm_store_struct_return): New functions.
11764 (arm_gdbarch_init): Register the above functions. Also register
11765 call_dummy_start_offset, sizeof_call_dummy_words,
11766 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11767 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11768 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11769 prologue_cache.saved_regs here, rather than ...
11770 (_initialize_arm_tdep): ... here.
11771 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11772 declarations.
11773 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11774 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11775 (arm_print_float_info, arm_register_type, convert_to_extended)
11776 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11777 (arm_extract_return_value, arm_register_name): Delete declarations.
11778 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11779 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11780 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11781 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11782 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11783 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11784 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11785 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11786 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11787 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11788 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11789 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11790 interface.
11791 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11792 * remote-rdi.c remote-rdp.c: Likewise.
11793 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11794 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11795 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11796 definition.
11797
11798 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11799 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11800 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11801 from non-ARM_ prefixed definitions.
11802 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11803 all uses of above.
11804 * remote-rdi.c remote-rdp.c: Likewise.
11805 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11806
148754e5
RE
118072002-02-11 Richard Earnshaw <rearnsha@arm.com>
11808
11809 * arm-tdep.c (arm_frameless_function_invocation)
11810 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11811 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11812 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11813 (arm_pop_frame, arm_get_next_pc): Make static.
11814 (arm_gdbarch_init): Register above in gdbarch structure.
11815 (arm_read_fp): Renamed from arm_target_read_fp.
11816 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11817 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11818 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11819 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11820 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11821 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11822 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11823 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11824 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11825 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11826 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11827
434d2d4f
DJ
118282002-02-10 Daniel Jacobowitz <drow@mvista.com>
11829
11830 * symtab.c (compare_search_syms): New function.
11831 (sort_search_symbols): New function.
11832 (search_symbols): Sort symbols after searching rather than
11833 before.
11834
55241689
AC
118352002-02-10 Andrew Cagney <ac131313@redhat.com>
11836
11837 * NEWS: Linux -> GNU/Linux.
11838
028c194b
AC
118392002-02-10 Andrew Cagney <ac131313@redhat.com>
11840
11841 * gdbarch.sh: For for level one methods, disallow a definition
11842 when partially multi-arched. Add comments explaining rationale.
11843 * gdbarch.h: Re-generate.
11844
6acf50cd
AC
118452002-02-10 Andrew Cagney <ac131313@redhat.com>
11846
11847 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11848 multi-arch partial.
aaa38bb5 11849
50248794
AC
118502002-02-10 Andrew Cagney <ac131313@redhat.com>
11851
11852 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11853 field. Use diff -u.
11854 * gdbarch.c: Re-generate.
11855
c30e0066
AC
118562002-02-10 Andrew Cagney <ac131313@redhat.com>
11857
9b56c5f3 11858 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11859 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11860 partial.
11861
6e6d6484
AC
118622002-02-10 Andrew Cagney <ac131313@redhat.com>
11863
11864 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11865 multi-arch partial.
11866 (PUSH_ARGUMENTS): Switch to using predefault.
11867 * gdbarch.c: Regenerate.
11868
c203844d
AC
118692002-02-10 Andrew Cagney <ac131313@redhat.com>
11870
11871 * valops.c (PUSH_ARGUMENTS): Delete definition.
11872 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11873 partial. Default to default_push_arguments.
11874 * gdbarch.h, gdbarch.c: Regenerate.
11875
b5a2688f
AC
118762002-02-09 Andrew Cagney <ac131313@redhat.com>
11877
11878 * defs.h (throw_exception): Rename return_to_top_level. Update
11879 comments.
11880 * utils.c (error_stream, internal_verror, quit): Ditto.
11881 * top.c (throw_exception, catcher): Ditto.
11882 * sparclet-rom.c (sparclet_load): Ditto.
11883 * remote.c (interrupt_query, minitelnet): Ditto.
11884 * remote-sds.c (interrupt_query): Ditto.
11885 * remote-mips.c (mips_error, mips_kill): Ditto.
11886 * ocd.c (interrupt_query): Ditto.
11887 * monitor.c (monitor_interrupt_query): Ditto.
11888 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11889 * target.h: Update comment.
aaa38bb5 11890
b5a2688f 11891 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11892
2fa5c1e0
AC
118932002-02-09 Andrew Cagney <ac131313@redhat.com>
11894
11895 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11896 default_double_format.
11897 * gdbarch.h, gdbarch.c: Re-generate.
11898 * findvar.c (floatformat_unknown): Delete variable definition.
11899 * doublest.h (floatformat_unknown): Delete variable declaration.
11900
da966255
JB
119012002-02-09 Jim Blandy <jimb@redhat.com>
11902
11903 * stabsread.c (read_type): Add code to parse Sun's syntax for
11904 prototyped function types.
11905
123a4891
AC
119062002-02-09 Andrew Cagney <ac131313@redhat.com>
11907
11908 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11909 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11910
fb39c8f3
PS
119112002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11912
11913 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11914 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11915 now _initialize_xcoffsolib gets called again and overrides the
11916 commands from solib.c in a native configuration.
11917
0b87a11d
MK
119182002-02-09 Mark Kettenis <kettenis@gnu.org>
11919
11920 * doublest.c (store_typed_floating): Don't try to return a value.
11921 Fixes PR gdb/290.
11922
bdc2fc72
JB
119232002-02-08 Jim Blandy <jimb@redhat.com>
11924
11925 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11926 is prototyped and has no arguments, print its argument list as
11927 `(void)'.
11928
da69bbcf
CD
119292002-02-08 Chris Demetriou <cgd@broadcom.com>
11930
11931 * MAINTAINERS (write-after-approval): Add myself.
11932 (paper-trail): I've escaped!
aaa38bb5 11933
b69571f5
CF
119342002-02-08 Christopher Faylor <cgf@redhat.com>
11935
11936 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11937 changes.
11938 (_initialize_check_for_gdb_ini): Ditto.
11939
f6871398
MH
119402002-02-08 Martin M. Hunt <hunt@redhat.com>
11941
11942 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11943 xaprintf -> xasprintf.
11944
4e52d31c
PM
119452002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11946
11947 * win32-nat.c: Remove use of printf and sprintf functions.
11948
39bbf761
RE
119492002-02-08 Richard Earnshaw <rearnsha@arm.com>
11950
11951 * arm-tdep.c (arm_frame_chain_valid): Make static.
11952 (arm_push_arguments): Likewise.
11953 (arm_gdbarch_init): New function.
11954 (_initialize_arm_tdep): Call it.
11955 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11956 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11957 (FRAME_CHAIN_VALID): Delete.
11958 (arm_frame_chain_valid): Delete declaration.
11959 (PUSH_ARGUMENTS): Delete.
11960 (arm_push_arguments): Delete declaration.
11961 (CALL_DUMMY_P): Delete.
11962
9c9532c9
CV
119632002-02-08 Andrew Cagney <ac131313@redhat.com>
11964 Corinna Vinschen <vinschen@redhat.com>
11965
11966 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11967 on builtin float types.
11968
4e8f7a8b
DJ
119692002-02-08 Daniel Jacobowitz <drow@mvista.com>
11970
11971 * utils.c: Include <curses.h> before "bfd.h".
11972 * tui/tui-hooks.c: Likewise.
11973 * tui/tui.c: Likewise.
11974 * tui/tuiCommand.c: Likewise.
11975 * tui/tuiData.c: Likewise.
11976 * tui/tuiDataWin.c: Likewise.
11977 * tui/tuiDisassem.c: Likewise.
11978 * tui/tuiGeneralWin.c: Likewise.
11979 * tui/tuiIO.c: Likewise.
11980 * tui/tuiLayout.c: Likewise.
11981 * tui/tuiRegs.c: Likewise.
11982 * tui/tuiSource.c: Likewise.
11983 * tui/tuiSourceWin.c: Likewise.
11984 * tui/tuiStack.c: Likewise.
11985 * tui/tuiWin.c: Likewise.
11986
cd4bffcf
EZ
119872002-02-07 Elena Zannoni <ezannoni@redhat.com>
11988
11989 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11990 to include space for pseudoregs as well. Update loops accordingly.
11991 (sh_fp_frame_init_saved_regs): Ditto.
11992 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11993
26806ce2
AC
119942002-02-07 Andrew Cagney <ac131313@redhat.com>
11995
11996 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11997 Add Richard Earnshaw to Arm maintainers.
11998
97fdab62
AC
119992002-02-07 Andrew Cagney <ac131313@redhat.com>
12000
a6b98203
AC
12001 * defs.h (warning_begin): Delete declaration.
12002
97fdab62
AC
12003 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12004 Delete macro.
12005
78b29b40
MS
120062002-02-07 Michael Snyder <msnyder@redhat.com>
12007
aaa38bb5 12008 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12009 Logic bug, remove misplaced else.
12010
d8849953
KD
120112002-02-07 Klee Dienes <klee@apple.com>
12012
12013 * fork-inferior.c (fork_inferior): Add '!' to the list of
12014 characters that need to be quoted when building a string for the
12015 shell. Quote '!' specifically with a backslash, since CSH chokes
12016 when trying to evaluate "str!str".
aaa38bb5 12017
095778a0
NC
120182002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12019
12020 * rdi-share/host.h: Only provide a typedef for bool if it is not
12021 defined.
12022
1900040c
MS
120232002-02-04 Michael Snyder <msnyder@redhat.com>
12024
12025 * breakpoint.h (enum bptype): Add new overlay event bp type.
12026 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12027
1900040c
MS
12028 * breakpoint.c (create_internal_breakpoint): New function.
12029 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12030 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12031 (create_thread_event_breakpoint): Ditto.
12032 (create_solib_event_breakpoint): Ditto.
12033 (create_overlay_event_breakpoint): New function.
12034 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12035 (update_breakpoints_after_exec): Delete and re-initialize
12036 overlay event breakpoints after an exec. Add FIXME comment
12037 about longjmp breakpoint.
12038 (print_it_typical): Ignore overlay event breakpoints.
12039 (print_one_breakpoint): Ditto.
12040 (mention): Ditto.
12041 (bpstat_what): Do not stop for overlay event breakpoints.
12042 (delete_breakpoint): Don't delete overlay event breakpoints.
12043 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12044 (breakpoint_re_set): Re-create overlay event breakpoint.
12045
12046 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12047 (overlay_manual_command): Disable overlay breakpoints.
12048 (overlay_off_command): Disable overlay breakpoints.
12049
082fc60d
RE
120502002-02-06 Richard Earnshaw <rearnsha@arm.com>
12051
12052 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12053 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12054 to here from config/tm-arm.h.
12055 (coff_sym_is_thumb): Make static.
12056 (arm_elf_make_msymbol_special): New function.
12057 (arm_coff_make_msymbol_special): New function.
12058 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12059 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12060 (coff_sym_is_thumb): Delete declaration.
12061 (arm_elf_make_msymbol_special): Declare.
12062 (arm_coff_make_msymbol_special): Declare.
12063 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12064 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12065
039c5766
RE
120662002-02-06 Richard Earnshaw <rearnsha@arm.com>
12067
12068 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12069
120702002-02-06 Richard Earnshaw <rearnsha@arm.com>
12071
12072 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12073 * gdbarch.c gdbarch.h: Regenerate.
12074 * arch-utils.c (default_print_float_info): New function.
12075 * arch-utils.h (default_print_float_info): Prototype it.
12076 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12077 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12078 (PRINT_FLOAT_INFO): Document it.
12079
12080 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12081 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12082 (PRINT_FLOAT_INFO): Define.
12083
58fa08f0
PM
120842002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12085
aaa38bb5 12086 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12087 Add typecast to sprintf argument to suppress a warning.
12088
7393af7c
PM
120892002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12090
58fa08f0 12091 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12092 to allow easier handling of pass state.
12093 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12094 that gives exception name and address.
12095 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12096 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12097 exceptions added.
aaa38bb5
AJ
12098 (child_continue): Correctly report continue_status.
12099 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12100 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12101 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12102 the exception should be passed to debuggee or not.
12103
6af4589c
MS
121042002-02-05 Michael Snyder <msnyder@redhat.com>
12105
12106 * regcache.c (fetch_register): Call target_fetch_register
12107 only if we don't call FETCH_PSEUDO_REGISTER.
12108 (store_register): Call target_store_register only if we
12109 don't call STORE_PSEUDO_REGISTER.
12110
a2cf933a
EZ
121112002-02-05 Elena Zannoni <ezannoni@redhat.com>
12112
12113 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12114 ELF_MAKE_MSYMBOL_SPECIAL.
12115 * gdbarch.c, gdbarch.h: Regenerate.
12116 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12117 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12118 * elfread.c (elf_symtab_read): Compile use of
12119 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12120 multiarched.
12121 * coffread.c (coff_symtab_read): Ditto, for
12122 COFF_MAKE_MSYMBOL_SPECIAL.
12123
6bb7be43
JB
121242002-02-05 Jim Blandy <jimb@redhat.com>
12125
12126 * solib-svr4.c (svr4_truncate_ptr): New function.
12127 (svr4_relocate_section_addresses): Do the address arithmetic with
12128 the appropriate truncation for target addresses, even when
12129 CORE_ADDR is larger than a target address.
12130
e18651ec
DJ
121312002-02-05 Daniel Jacobowitz <drow@mvista.com>
12132
12133 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12134 to (int *).
12135
6b2725be
DJ
121362002-02-05 Daniel Jacobowitz <drow@mvista.com>
12137
12138 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12139 code.
12140
fca9e603
DJ
121412002-02-05 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12144
6c537a52
DJ
121452002-02-05 Daniel Jacobowitz <drow@mvista.com>
12146
12147 * gdbserver/linux-low.c: Remove unused include files.
12148
d844cde6
DJ
121492002-02-05 Daniel Jacobowitz <drow@mvista.com>
12150
12151 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12152 (read_inferior_memory): Use it.
12153 (write_inferior_memory): Likewise.
12154
d07c63e7
DJ
121552002-02-05 Daniel Jacobowitz <drow@mvista.com>
12156
12157 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12158 grubbing through sys_errlist.
12159
da6d8c04
DJ
121602002-02-05 Daniel Jacobowitz <drow@mvista.com>
12161
12162 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12163
5b421780
PM
121642002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12165 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12166
9f60d481
AC
121672002-02-04 Andrew Cagney <ac131313@redhat.com>
12168
12169 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12170 (do_sfunc, set_cmd_sfunc): New functions.
12171
12172 * command.h (struct cmd_list_element): Add field func.
12173 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12174 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12175 * cli/cli-decode.h: Ditto.
12176
12177 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12178 (help_all, help_cmd_list): Ditto.
12179 (find_cmd, complete_on_cmdlist): Ditto.
12180 * top.c (execute_command): Ditto.
12181
12182 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12183 function.sfunc.
12184
12185 * infcmd.c (notice_args_read): Fix function signature.
12186
12187 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12188 * cli/cli-decode.c (add_set_cmd): Ditto.
12189 * utils.c (initialize_utils): Ditto.
12190 * maint.c (_initialize_maint_cmds): Ditto.
12191 * infrun.c (_initialize_infrun): Ditto.
12192 * demangle.c (_initialize_demangler): Ditto.
12193 * remote.c (add_packet_config_cmd): Ditto.
12194 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12195 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12196 * proc-api.c (_initialize_proc_api): Ditto.
12197 * kod.c (_initialize_kod): Ditto.
12198 * valprint.c (_initialize_valprint): Ditto.
12199 * top.c (init_main): Ditto.
12200 * infcmd.c (_initialize_infcmd): Ditto.
12201 * corefile.c (_initialize_core): Ditto.
12202 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12203 * arch-utils.c (initialize_current_architecture): Ditto.
12204 (_initialize_gdbarch_utils): Ditto.
12205 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12206
12207 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12208 * wince.c (_initialize_inftarg): Ditto.
12209 * symfile.c (_initialize_symfile): Ditto.
12210 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12211 * language.c (_initialize_language): Ditto.
12212 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12213
f9ba0717
MS
122142002-02-04 Michael Snyder <msnyder@redhat.com>
12215
12216 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12217
0c74b2a7
DJ
122182002-02-04 Daniel Jacobowitz <drow@mvista.com>
12219
12220 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12221 Add rules for building the register data files.
12222
c638789f
DJ
122232002-02-04 Daniel Jacobowitz <drow@mvista.com>
12224
12225 * regformats/regdat.sh: Add braces to the definition of
12226 expedite_regs_${arch}.
12227
db253027
DJ
122282002-02-04 Daniel Jacobowitz <drow@mvista.com>
12229
12230 * regformats/regdef.h (struct reg): Add comment describing the
12231 requirements for offset and size fields.
12232
206be19c
AS
122332002-02-04 Andreas Schwab <schwab@suse.de>
12234
12235 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12236 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12237
181c1381
RE
122382002-02-04 Richard Earnshaw <rearnsha@arm.com>
12239
12240 * gdbarch.sh (copyright): Update years in generated header.
12241 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12242 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12243 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12244 * dbxread.c: Likewise.
12245 * dwarfread.c: Likewise.
12246 * elfread.c: Likewise.
12247 * somread.c: Likewise.
12248
12249 * arm-tdep.c (arm_smash_text_address): New function.
12250 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12251
fa4ba8da
PM
122522002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12253
12254 Add support for hardware watchpoints on win32 native.
aaa38bb5 12255 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12256 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12257 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12258 of debug registers.
12259 (debug_registers_changed): New variable. Reflects when debug registers
12260 are changed and need to be written to inferior.
aaa38bb5 12261 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12262 was set, used when new threads are created.
12263 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12264 i386-nat code.
12265 (thread_rec): Set dr array if id is the thread of current_event .
12266 (child_continue, child_resume): Change the debug registers for all
12267 threads if debug_registers_changed.
12268 (child_add_thread): Change the debug registers if debug_registers_used.
12269 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12270 Link nm.h to new nm-cygwin.h file.
12271 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12272 of hardware registers.
12273
a73c86fb
AC
122742002-02-03 Andrew Cagney <ac131313@redhat.com>
12275
12276 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12277 Restore behavour broken by 2002-01-20 Andrew Cagney
12278 <ac131313@redhat.com> IEEE_FLOAT removal.
12279
acf5ed49
DJ
122802002-02-03 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * c-valprint.c (c_val_print): Pass a proper valaddr to
12283 cp_print_class_method.
12284 * valops.c (search_struct_method): If there is only one method
12285 and args is NULL, return that method.
12286
493d28d5
DJ
122872002-02-03 Daniel Jacobowitz <drow@mvista.com>
12288
12289 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12290 accessing tag_name directly.
12291
7495dfdb
DJ
122922002-02-03 Daniel Jacobowitz <drow@mvista.com>
12293
12294 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12295 of accessing tag_name directly.
12296
dd6bda65
DJ
122972002-02-03 Daniel Jacobowitz <drow@mvista.com>
12298
12299 PR gdb/280
12300 * gdbtypes.c (replace_type): New function.
12301 * gdbtypes.h (replace_type): Add prototype.
12302 * stabsread.c (read_type): Use replace_type.
12303
88fe217c
RE
123042002-02-03 Richard Earnshaw <rearnsha@arm.com>
12305
12306 * Makefile.in (memattr.o): Add missing dependencies rule.
12307
e5d66720
PS
123082002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12309
12310 * breakpoint.c (break_at_finish_command): Really export.
12311 (break_at_finish_at_depth_command): Ditto.
12312 (tbreak_at_finish_command): Ditto.
12313 * hppa-tdep.c: Include completer.h.
12314 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12315 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12316
fffee0be
AC
123172002-02-01 Andrew Cagney <ac131313@redhat.com>
12318
12319 * utils.c (do_write): New function.
12320 (error_stream): Rewrite combining the code from error_begin and
12321 verror.
12322 (verror): Rewrite using error_stream.
12323 (error_begin): Delete function.
12324
255e7dbf
AC
123252002-02-01 Andrew Cagney <ac131313@redhat.com>
12326
12327 * utils.c (error_begin): Make static.
12328 * defs.h (error_begin): Delete declaration.
12329
12330 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12331 (decode_line_1): Use cplusplus_error instead of error_begin,
12332 cplusplus_hint and return_to_top_level.
12333 * coffread.c (coff_symfile_read): Use error instead of error_begin
12334 and return_to_top_level.
12335 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12336
ddfe3c15
AC
123372002-02-01 Andrew Cagney <ac131313@redhat.com>
12338
12339 * language.h (type_error, range_error): Make string parameter
12340 constant.
12341 * language.c (warning_pre_print): Delete extern declaration.
12342 * dwarfread.c (warning_pre_print): Ditto.
12343 * language.c (type_error, range_error): Rewrite to use verror and
12344 vwarning instead of warning_begin.
12345
03ac34d5
MS
123462002-02-01 Michael Snyder <msnyder@redhat.com>
12347
261c4ca2
MS
12348 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12349 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12350
e00d1dc8
AC
123512002-02-01 Andrew Cagney <ac131313@redhat.com>
12352
12353 * command.h (NO_FUNCTION): Delete macro.
12354 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12355 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12356 * tracepoint.c (_initialize_tracepoint): Ditto.
12357 * cli/cli-decode.c (add_set_cmd): Ditto.
12358 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12359
76b79d6e
DJ
123602002-02-01 Daniel Jacobowitz <drow@mvista.com>
12361
12362 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12363 Update ``this'' pointer when calling virtual functions.
12364
799f9e91
MS
123652002-02-01 Michael Snyder <msnyder@redhat.com>
12366
c7bd442c 12367 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12368 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12369
3cf384d4
DJ
123702002-02-01 Daniel Jacobowitz <drow@mvista.com>
12371
12372 * regformats/reg-arm.dat: New file.
12373 * regformats/reg-i386.dat: New file.
12374 * regformats/reg-ia64.dat: New file.
12375 * regformats/reg-m68k.dat: New file.
12376 * regformats/reg-mips.dat: New file.
12377 * regformats/reg-ppc.dat: New file.
12378 * regformats/reg-sh.dat: New file.
12379 * regformats/regdef.h: New file.
12380 * regformats/regdat.sh: New file.
12381
0defa245
RE
123822002-02-01 Richard Earnshaw <reanrsha@arm.com>
12383
12384 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12385 (arm_frame_args_address, arm_frame_locals_address): New functions.
12386 (arm_frame_num_args): New function.
12387 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12388 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12389 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12390
405f26e6
MS
123912002-01-31 Michael Snyder <msnyder@redhat.com>
12392
502fd408
MS
12393 * breakpoint.c (break_at_finish_command): Export.
12394 (break_at_finish_at_depth_command): Export.
12395 (tbreak_at_finish_command): Export.
d6020d45 12396 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12397 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12398 "txbreak" commands, which are HPPA specific.
502fd408 12399
7d35e135
MS
12400 * printcmd.c (disassemble_command): Remove an ancient
12401 artifact of an old merge.
12402
aaa38bb5 12403 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12404 Define enum constant values for overlay mode.
12405 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12406 (overlay_is_mapped, overlay_auto_command,
12407 overlay_manual_command): Ditto.
d874f1e2 12408
aaa38bb5
AJ
12409 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12410 breakpoint_here_p, breakpoint_inserted_here_p,
12411 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12412 describe_other_breakpoints, check_duplicates, clear_command):
12413 Coding standard fixes.
12414
8add0441 12415 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12416 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12417 code: check bfd SEC_READONLY flag for section.
12418
e351066e
AC
124192002-01-31 Andrew Cagney <ac131313@redhat.com>
12420
7d35e135 12421 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12422
8a48e967
DJ
124232002-01-30 Daniel Jacobowitz <drow@mvista.com>
12424
12425 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12426 data symbols, since we search based on textlow and texthigh.
12427 (find_pc_sect_symtab): Likewise.
12428
f5a96129
AC
124292002-01-30 Andrew Cagney <ac131313@redhat.com>
12430
12431 * defs.h (vwarning): Declare.
f5a96129
AC
12432 * utils.c (vwarning): New function.
12433 (warning): Call vwarning.
12434 (warning_begin): Delete function.
12435
12436 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12437 the warning message.
12438 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12439 warning_begin.
12440
cefd4ef5
MS
124412002-01-30 Michael Snyder <msnyder@redhat.com>
12442
1a703748
MS
12443 * NEWS: Mention "set trust-readonly-sections" command.
12444 Mention generate-core-file command.
cefd4ef5 12445
3a11626d
MS
124462002-01-15 Michael Snyder <msnyder@redhat.com>
12447
12448 * target.c: New command, "set trust-readonly-sections on".
12449 (do_xfer_memory): Honor the suggestion to trust readonly sections
12450 by reading them from the object file instead of from the target.
12451 (initialize_targets): Register command "set trust-readonly-sections".
12452
d1c7e53b
AC
124532002-01-29 Andrew Cagney <ac131313@redhat.com>
12454
12455 * parse.c (target_map_name_to_register): Simplify, search regs and
12456 pseudo-regs using a single loop.
12457
e2c9a72c
AC
124582002-01-30 Andrew Cagney <ac131313@redhat.com>
12459
12460 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12461
69824b4e
MK
124622002-01-15 Rodney Brown <rbrown64@csc.com.au>
12463
12464 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12465 * config/i386/i386v42mp.mh: Add i387-nat.o .
12466 * i386v4-nat.c: Include i387-nat.h.
12467 (supply_fpregset): Use i387_supply_fsave.
12468 (fill_fpregset): Use i387_fill_fsave.
12469
6eb69eab
RE
124702002-01-30 Richard Earnshaw <rearnsha@arm.com>
12471
12472 * arm-tdep.c (arm_call_dummy_words): Define.
12473 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12474 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12475 (CALL_DUMMY_WORDS): Define.
12476 (arm_call_dummy_words): Declare.
12477 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12478 (arm_linux_call_dummy_words): Declare.
12479
9852326a
AS
124802002-01-30 Andreas Schwab <schwab@suse.de>
12481
12482 * m68klinux-nat.c: Fix last change to use regcache_collect
12483 instead of referencing registers[] directly.
12484
977a3030
AC
124852002-01-29 Andrew Cagney <ac131313@redhat.com>
12486
12487 * parse.c (target_map_name_to_register): Delete code wrapped in
12488 #ifdef REGISTER_NAME_ALIAS_HOOK.
12489
2076c72b
MS
124902002-01-28 Michael Snyder <msnyder@redhat.com>
12491
12492 * regcache.c (legacy_read_register_gen): Need to be able to
12493 read pseudo-register as well as real register.
12494 (legacy_write_register_gen): Ditto.
12495
8fcc723b
AC
124962002-01-28 Andrew Cagney <ac131313@redhat.com>
12497
12498 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12499 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12500 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12501 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12502 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12503 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12504 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12505 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12506 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12507 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12508 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12509 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12510 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12511 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12512 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12513 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12514 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12515 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12516 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12517 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12518
afe64c1a
AC
125192002-01-28 Andrew Cagney <ac131313@redhat.com>
12520
12521 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12522 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12523 (initialize_current_architecture): Update target_byte_order using
12524 information from BFD.
aaa38bb5 12525 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12526 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12527
75bc7ddf
AC
125282002-01-28 Andrew Cagney <ac131313@redhat.com>
12529
12530 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12531 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12532
12533 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12534 #ifdef INVALID_FLOAT.
12535 * infcmd.c (do_registers_info): Ditto.
12536 * values.c (unpack_double): Ditto. Add comment.
12537
12538 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12539 already commented out.
12540
0280a90a
AS
125412002-01-26 Andreas Schwab <schwab@suse.de>
12542
12543 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12544 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12545 registers and add support for PTRACE_GETREGS.
12546
7072a954
AC
125472002-01-24 Andrew Cagney <ac131313@redhat.com>
12548
12549 GDB 5.1.1 released from 5.1 branch.
12550 * NEWS: Add 5.1.1 news.
12551 * README: Sync with 5.1 branch.
12552
86f902e0
FF
125532002-01-23 Fred Fish <fnf@redhat.com>
12554
12555 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12556 stabstring on initial malloc. Reallocing will copy it for us,
12557 if necessary.
12558
8af51c36
EZ
125592002-01-23 Elena Zannoni <ezannoni@redhat.com>
12560
aaa38bb5 12561 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12562 (HFILES_NO_SRCDIR): Remove hpread.h.
12563 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12564 (hpread.o): Update dependencies.
12565 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12566
12567 * hp-psymtab-read.c: Remove file.
12568 * hp-symtab-read.c: Remove file.
12569 * hpread.h: Remove file.
12570
12571 * hpread.c: Merge all contents of hp-psymtab-read.c,
12572 hp-symtab-read.c and hpread.h into this file, as it was prior to
12573 January 1999.
12574
12575 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12576 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12577 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12578 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12579
dc5cfeb6
EZ
125802002-01-23 Elena Zannoni <ezannoni@redhat.com>
12581
12582 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12583 fill_gregset): Call gdbarch_tdep() just once, assign result to
12584 variable and use that, instead of calling the function several
12585 times.
12586
ea87b71b
AO
125872002-01-24 Alexandre Oliva <aoliva@redhat.com>
12588
12589 * configure.host: Accept sparcv9 as alias for sparc64.
12590 * configure.tgt: Likewise.
12591
13fc0c2f
KB
125922002-01-22 Kevin Buettner <kevinb@redhat.com>
12593
12594 * solib-aix5.c (build_so_list_from_mapfile)
12595 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12596 arguments is not reversed.
12597 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12598 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12599
7bd872fe
EZ
126002002-01-22 Elena Zannoni <ezannoni@redhat.com>
12601
12602 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12603 modified version of obsolete sh_fetch_pseudo_register.
12604 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12605 (sh4_register_read): New function.
12606 (sh_pseudo_register_write): New function. Renamed and modified
12607 version of obsolete sh_store_pseudo_register.
12608 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12609 (sh4_register_write): New function.
12610 (sh_gdbarch_init): Remove setting of gdbarch function
12611 fetch_pseudo_register and store_pseudo_register. Remove setting of
12612 register_convert_to_raw, register_convert_to_virtual,
12613 register_convertible.
12614 (sh_sh4_register_convertible): Delete. No longer needed. All is
12615 taken care by architecture specific functions
12616 register_read/register_write.
12617 (sh_sh4_register_convert_to_virtual): Make static.
12618 (sh_sh4_register_convert_to_raw): Ditto.
12619
069e84fd
AC
126202002-01-22 Andrew Cagney <ac131313@redhat.com>
12621
12622 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12623 (floatformat_is_nan, floatformat_mantissa): Ditto.
12624
12625 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12626 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12627 builtin_type_ieee_double_little,
12628 builtin_type_ieee_double_littlebyte_bigword,
12629 builtin_type_m68881_ext, builtin_type_i960_ext,
12630 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12631 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12632 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12633 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12634
211a4f69
CV
126352002-01-22 Corinna Vinschen <vinschen@redhat.com>
12636
12637 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12638 parameter. Set frameless flag if it exists and depended of
12639 whether the scanned function is frameless or not.
12640 (xstormy16_skip_prologue): If function is frameless, return
12641 result of xstormy16_scan_prologue().
12642 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12643 call.
12644
f81353e4
EZ
126452002-01-21 Elena Zannoni <ezannoni@redhat.com>
12646
12647 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12648 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12649 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12650 sh_sh4_register_byte, sh_sh4_register_raw_size,
12651 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12652 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12653 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12654 sh_store_pseudo_register, sh_do_pseudo_register): Call
12655 gdbarch_tdep() just once, assign result to variable and use that,
12656 instead of calling the function several times.
12657
63c73a17
MK
126582002-01-20 Mark Kettenis <kettenis@gnu.org>
12659
12660 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12661 macros instead of LAST_FPU_CTRL_REGNUM.
12662 (store_register): Likewise.
12663
39ad761d
JB
126642002-01-21 Jim Blandy <jimb@redhat.com>
12665
12666 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12667 is up-to-date before running the program, not just when a program
12668 exits.
12669
3d74b771
FF
126702002-01-21 Fred Fish <fnf@redhat.com>
12671
12672 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12673 when we have found all instructions we are looking for.
12674
966fbf70
RE
126752002-01-21 Richard Earnshaw <rearnsha@arm.com>
12676
12677 * arm-tdep.c (arm_register_name): New function.
12678 (arm_registers_names): Make static.
12679 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12680 (arm_register_name): Declare.
12681 (REGISTER_NAME): Use it.
12682
c3b4394c
RE
126832002-01-21 Richard Earnshaw <rearnsha@arm.com>
12684 Kevin Buettner <kevinb@redhat.com>
12685
12686 Convert arm targets to new FRAME interface.
12687 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12688 (arm_frame_find_save_regs): Delete.
12689 (arm_frame_init_saved_regs): New.
12690 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12691 Allocate extra_info as required. Convert all uses of fsr.regs
12692 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12693 to use extra_info.
12694 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12695 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12696 (check_prologue_cache, save_prologue_cache): Likewise.
12697 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12698 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12699 (FRAME_FIND_SAVED_REGS): Delete.
12700 (arm_frame_find_saved_regs): Delete prototype.
12701 (arm_frame_init_saved_regs): New prototype.
12702 (FRAME_INIT_SAVED_REGS): Define.
12703
61d99182
AC
127042002-01-20 Andrew Cagney <ac131313@redhat.com>
12705
12706 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12707
6aaea291
AC
127082002-01-20 Andrew Cagney <ac131313@redhat.com>
12709
12710 From Jeff Law <law@redhat.com>:
12711 * infttrace.c: Include <sys/pstat.h>.
12712 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12713 exec file if the ttrace equivalent fails.
12714
15f698d2
AC
127152002-01-20 Andrew Cagney <ac131313@redhat.com>
12716
12717 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12718 (closeLogFile): Ditto.
12719
f86ddd7c
MC
127202002-01-20 Michael Chastain <mec@shout.net>
12721
12722 * top.c (print_gdb_version): Bump copyright year to 2002.
12723
904507ce
AC
127242002-01-20 Andrew Cagney <ac131313@redhat.com>
12725
12726 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12727 Zannoni and Eli Zaretskii.
12728
d7f0b9ce
DJ
127292002-01-20 Daniel Jacobowitz <drow@mvista.com>
12730
12731 * buildsym.c: Update copyright years.
12732 * c-typeprint.c: Likewise.
12733 * dwarf2read.c: Likewise.
12734 * f-typeprint.c: Likewise.
12735 * gdbtypes.c: Likewise.
12736 * gdbtypes.h: Likewise.
12737 * hp-symtab-read.c: Likewise.
12738 * hpread.c: Likewise.
12739 * mdebugread.c: Likewise.
12740 * p-typeprint.c: Likewise.
12741
3fd3d7d2
AC
127422002-01-20 Andrew Cagney <ac131313@redhat.com>
12743
12744 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12745 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12746 byte-order selectable.
12747 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12748 * arch-utils.c: Ditto.
12749 (set_endian): Ditto.
12750 (set_endian_from_file): Ditto.
12751 * gdbserver/low-sim.c (create_inferior): Ditto.
12752 * gdbarch.sh: Ditto.
12753 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12754 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12755 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12756 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12757 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12758 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12759 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12760 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12761 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12762 macro definition.
12763 * config/mips/tm-wince.h: Remove #undef of macro
12764 TARGET_BYTE_ORDER_SELECTABLE.
12765 * config/sh/tm-wince.h: Ditto.
12766
b02dede2
DJ
127672002-01-20 Daniel Jacobowitz <drow@mvista.com>
12768
12769 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12770 member function fields. Add accessor macro
12771 TYPE_FN_FIELD_ARTIFICIAL.
12772 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12773 * c-typeprint.c (c_type_print_base): Skip artificial member
12774 functions.
12775
c3643761
DJ
127762002-01-20 Daniel Jacobowitz <drow@mvista.com>
12777
12778 * f-typeprint.c: Delete unused function f_type_print_args.
12779 * p-typeprint.c: Delete unused function pascal_type_print_args.
12780
8176bb6d
DJ
127812002-01-20 Daniel Jacobowitz <drow@mvista.com>
12782
12783 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12784 comment. Add ``artificial'' to ``union field_location''.
12785
12786 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12787
12788 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12789 * mdebugread.c (parse_symbol): Likewise.
12790 * stabsread.c (define_symbol): Likewise.
12791 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12792 initializing TYPE_FIELD_BITPOS to n (obsolete).
12793 (hpread_doc_function_type): Likewise.
12794 * hpread.c (hpread_function_type): Likewise.
12795
7fd60527
AC
127962002-01-20 Andrew Cagney <ac131313@redhat.com>
12797
12798 * configure.in (host_makefile_frag): Only require a host makefile
12799 fragment when a native build.
12800 * configure: Re-generate.
12801
c2f05ac9
AC
128022002-01-20 Andrew Cagney <ac131313@redhat.com>
12803
12804 * doublest.h (floatformat_from_type): Declare.
12805 * doublest.c (floatformat_from_type): New function.
12806 (convert_typed_floating): Use.
12807
12808 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12809 call to function floatformat_from_type.
12810
12811 * gdbarch.sh (IEEE_FLOAT): Delete.
12812 * gdbarch.h, gdbarch.c: Re-generate.
12813 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12814 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12815 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12816 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12817 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12818 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12819 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12820 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12821 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12822 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12823 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12824 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12825
12826 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12827 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12828 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12829 * sh-tdep.c (sh_gdbarch_init): Ditto.
12830 * mips-tdep.c (mips_gdbarch_init): Ditto.
12831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12832 * cris-tdep.c (cris_gdbarch_init): Ditto.
12833
abf22e64
AJ
128342002-01-20 Jiri Smid <smid@suse.cz>
12835
12836 * configure.host, configure.tgt: Support x86-64.
12837 * NEWS: Note new target x86-64.
12838
b7c4cbf8
AJ
12839 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12840 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12841 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12842 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12843 x86-64-linux-nat.o): Fix dependencies.
12844
82600034
AC
128452002-01-19 Andrew Cagney <ac131313@redhat.com>
12846
12847 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12848 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12849 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12850 * config/sparc/xm-sun4os4.h: Delete file.
12851 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12852
bbe5c628
AC
128532002-01-19 Andrew Cagney <ac131313@redhat.com>
12854
12855 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12856 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12857 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12858 * config/i386/i386lynx.mh (XM_FILE): Delete.
12859 * config/rs6000/xm-rs6000ly.h: Delete file.
12860 * config/sparc/xm-sparclynx.h: Delete file.
12861 * config/m68k/xm-m68klynx.h: Delete file.
12862 * config/i386/xm-i386lynx.h: Delete file.
12863 * config/xm-lynx.h: Delete file.
12864 * config/djgpp/fnchange.lst: Update.
12865
f8453e34
JT
128662002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12867
12868 * alpha-tdep.c (alpha_register_byte): New function.
12869 (alpha_register_raw_size): Ditto.
12870 (alpha_register_virtual_size): Ditto.
12871 (alpha_skip_prologue_internal): Renamed from
12872 alpha_skip_prologue.
12873 (alpha_skip_prologue): New version that calls
12874 alpha_skip_prologue_internal.
12875 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12876 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12877 second argument from alpha_skip_prologue.
12878 (REGISTER_BYTE): Use alpha_register_byte.
12879 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12880 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12881 (FRAMELESS_FUNCTION_INVOCATION): Use
12882 generic_frameless_function_invocation_not.
12883 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12884 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12885
52d9e613
AC
128862002-01-19 Andrew Cagney <ac131313@redhat.com>
12887
12888 * config/mips/xm-news-mips.h: Delete file.
12889 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12890
12891 * config/m88k/xm-m88k.h: Delete file.
12892 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12893 * config/m88k/xm-delta88v4.h: Ditto.
12894 * config/m88k/xm-delta88.h: Ditto.
12895
12896 * config/alpha/xm-fbsd.h: Delete file.
12897 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12898
12899 * config/sparc/xm-sparc.h: Delete file.
12900 * Makefile.in (xm-sun4os4.h): Delete dependency.
12901 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12902 * config/sparc/xm-sun4os4.h: Ditto.
12903 * config/sparc/xm-linux.h: Ditto.
12904
12905 * config/i386/xm-windows.h: Delete file.
12906
2d1b2124
AC
129072002-01-19 Andrew Cagney <ac131313@redhat.com>
12908
12909 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12910 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12911
ee1f65f0
JT
129122002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12913
12914 * alpha-tdep.c (alpha_call_dummy_words): New.
12915 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12916 (CALL_DUMMY_P): Define.
12917 (CALL_DUMMY_WORDS): Define.
12918 (SIZEOF_CALL_DUMMY_WORDS): Define.
12919
98081e55
PB
129202002-01-19 Per Bothner <per@bothner.com>
12921
12922 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12923 isn't NULL, which can happen with some gcj-3.x-produced code.
12924
0d056799
JT
129252002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12926
12927 * alpha-tdep.c (alpha_register_virtual_type): New function.
12928 (alpha_init_frame_pc_first): Ditto.
12929 (alpha_fix_call_dummy): Ditto.
12930 (alpha_store_struct_return): Ditto.
12931 (alpha_extract_struct_value_address): Ditto.
12932 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12933 alpha_register_virtual_type.
12934 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12935 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12936 alpha_extract_struct_value_address.
12937 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12938 (INIT_FRAME_PC): Use init_frame_pc_noop.
12939 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12940
4604bcad
MK
129412002-01-19 Mark Kettenis <kettenis@gnu.org>
12942
12943 * i386gnu-nat.c: Include "i386-tdep.h".
12944 (fetch_fpregs): Simplify code dealing with uninitialized floating
12945 point states such that it doesn't require FP7_REGNUM.
12946
140f9984
JT
129472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12948
abf22e64
AJ
12949 * alpha-tdep.c (frame_extra_info): New.
12950 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12951 frame->extra_info.
12952 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12953 (alpha_frame_saved_pc): Use frame->extra_info.
12954 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12955 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12956 (init_extra_frame_info): Rename to...
12957 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12958 (alpha_print_extra_frame_info): New function.
140f9984
JT
12959 (alpha_frame_locals_address): Ditto.
12960 (alpha_frame_args_address): Ditto.
abf22e64 12961 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12962 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12963 alpha_frame_args_address.
abf22e64 12964 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12965 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12966 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12967 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12968 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12969 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12970
d734c450
JT
129712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12972
12973 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12974 (alpha_cannot_fetch_register): Ditto.
12975 (alpha_cannot_store_register): Ditto.
12976 (alpha_register_convertible): Ditto.
12977 (alpha_use_struct_convention): Ditto.
12978 * config/alpha/tm-alpha.h: Update copyright years.
12979 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12980 (INNER_THAN): Use core_addr_lessthan.
12981 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12982 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12983 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12984 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12985 (FRAME_CHAIN): Remove unnecessary cast.
12986
b4ceaee6
AC
129872002-01-18 Andrew Cagney <ac131313@redhat.com>
12988
12989 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12990 obsolete.
12991
0a65a603
AC
129922002-01-18 Andrew Cagney <ac131313@redhat.com>
12993
12994 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12995 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12996 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12997 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12998 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12999 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13000 * x86-64-linux-nat.c: Ditto.
13001
636a6dfc
JT
130022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13003
abf22e64 13004 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13005 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13006 (REGISTER_NAME): Define.
13007
acceddb6
JT
130082002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13009
13010 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13011
ec32e4be
JT
130122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13013
13014 * alpha-tdep.c: Update copyright years.
13015 (alpha_next_pc): New function.
13016 (alpha_software_single_step): Ditto.
13017 * config/alpha/tm-alpha.h: Add prototype for
13018 alpha_software_single_step.
13019
e771a871
JT
130202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13021
13022 * alphabsd-nat.c: Update copyright years.
13023 (fill_gregset): Use regcache_collect.
13024 (fill_fpregset): Likewise.
13025 (fetch_inferior_registers): Only fetch integer registers
13026 if requested to do so.
13027 (store_inferior_registers): Only store integer registers
13028 if requested to do so.
13029
7708fa01
AC
130302002-01-17 Andrew Cagney <ac131313@redhat.com>
13031
13032 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13033 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13034 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13035 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13036 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13037 * config/arm/linux.mh (XDEPFILES): Delete.
13038 * config/arm/nbsd.mh (XDEPFILES): Delete.
13039 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13040 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13041 * config/i386/i386m3.mh (XDEPFILES): Delete.
13042 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13043 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13044 * config/i386/fbsd.mh (XDEPFILES): Delete.
13045 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13046 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13047 * config/i386/i386v4.mh (XDEPFILES): Delete.
13048 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13049 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13050 * config/i386/i386aix.mh (XDEPFILES): Delete.
13051 * config/i386/go32.mh (XDEPFILES): Delete.
13052 * config/i386/cygwin.mh (XDEPFILES): Delete.
13053 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13054 * config/i386/i386mach.mh (XDEPFILES): Delete.
13055 * config/i386/i386v32.mh (XDEPFILES): Delete.
13056 * config/i386/linux.mh (XDEPFILES): Delete.
13057 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13058 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13059 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13060 * config/i386/i386sco.mh (XDEPFILES): Delete.
13061 * config/i386/i386v.mh (XDEPFILES): Delete.
13062 * config/i386/nbsd.mh (XDEPFILES): Delete.
13063 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13064 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13065 * config/i386/symmetry.mh (XDEPFILES): Delete.
13066 * config/i386/obsd.mh (XDEPFILES): Delete.
13067 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13068 * config/ia64/linux.mh (XDEPFILES): Delete.
13069 * config/ia64/aix.mh (XDEPFILES): Delete.
13070 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13071 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13072 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13073 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13074 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13075 * config/m68k/linux.mh (XDEPFILES): Delete.
13076 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13077 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13078 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13079 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13080 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13081 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13082 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13083 * config/m88k/delta88.mh (XDEPFILES): Delete.
13084 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13085 * config/m88k/m88k.mh (XDEPFILES): Delete.
13086 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13087 * config/mips/linux.mh (XDEPFILES): Delete.
13088 * config/mips/irix6.mh (XDEPFILES): Delete.
13089 * config/mips/irix5.mh (XDEPFILES): Delete.
13090 * config/mips/irix4.mh (XDEPFILES): Delete.
13091 * config/mips/irix3.mh (XDEPFILES): Delete.
13092 * config/mips/decstation.mh (XDEPFILES): Delete.
13093 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13094 (NATDEPFILES): Move core-aout.o to here.
13095 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13096 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13097 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13098 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13099 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13100 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13101 * config/pa/hpux11.mh (XDEPFILES): Delete.
13102 * config/powerpc/aix.mh (XDEPFILES): Delete.
13103 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13104 * config/powerpc/linux.mh (XDEPFILES): Delete.
13105 * config/romp/rtbsd.mh: Rename XDEPFILES.
13106 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13107 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13108 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13109 * config/s390/s390.mh (XDEPFILES): Delete.
13110 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13111 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13112 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13113 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13114 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13115 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13116 * config/sparc/linux.mh (XDEPFILES): Delete.
13117 * config/vax/vaxult.mh (XDEPFILES): Delete.
13118 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13119 * Makefile.in (DEPFILES): Remove XDEPFILES.
13120
375fc983
AC
131212002-01-17 Andrew Cagney <ac131313@redhat.com>
13122
13123 * utils.c (internal_verror): Fix comments, default is yes not no.
13124 Update queries to match. Default to quit and dump core.
13125
8926118c
AC
131262002-01-17 Andrew Cagney <ac131313@redhat.com>
13127
13128 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13129 copyright.
13130 * defs.h, event-top.c, gdbcmd.h: Ditto.
13131 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13132 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13133 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13134 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13135 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13136 * mi/mi-main.c:Ditto.
13137
13138 * stack.c, symfile.c: Update copyright.
13139
45b7b345
DJ
131402002-01-17 Daniel Jacobowitz <drow@mvista.com>
13141
db728ff7
DJ
13142 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13143 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13144 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13145 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13146
db728ff7
DJ
131472002-01-17 Daniel Jacobowitz <drow@mvista.com>
13148
13149 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13150 * gdbserver/low-lynx.c (myattach): Likewise.
13151 * gdbserver/low-nbsd.c (myattach): Likewise.
13152 * gdbserver/low-sim.c (myattach): Likewise.
13153 * gdbserver/low-sparc.c (myattach): Likewise.
13154 * gdbserver/low-sun3.c (myattach): Likewise.
13155
13156 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13157
db728ff7 13158 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13159 (main): Handle "--attach".
13160
8de3c354
AC
131612002-01-16 Andrew Cagney <ac131313@redhat.com>
13162
13163 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13164 maintainer.
13165
b0129042
DJ
131662002-01-15 Daniel Jacobowitz <drow@mvista.com>
13167
13168 * c-typeprint.c (is_type_conversion_operator): Add additional
13169 check for non-conversion operators.
13170
ba8679fb 131712002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13172
13173 * linux-proc.c: Add "info proc" command, a la procfs.c.
13174 (read_mapping): New function, abstract and re-use code.
13175 (linux_find_memory_regions): Use new func read_mapping.
13176 (linux_info_proc_cmd): New function, implement "info proc".
13177 (_initialize_linux_proc): Add new command "info proc".
13178
e4f9b4d5
MS
131792002-01-15 Michael Snyder <msnyder@redhat.com>
13180
13181 * symfile.c (generic_load): Use bfd_map_over_sections method
13182 instead of manipulating bfd structure members directly.
13183 (add_section_size_callback): New function, bfd sections callback
13184 used by generic_load.
13185 (load_sections_callback): New function, bfd sections callback
13186 used by generic_load.
13187
08cf96df
EZ
131882002-01-15 Elena Zannoni <ezannoni@redhat.com>
13189
abf22e64 13190 [Based on work by Jim Blandy]
08cf96df
EZ
13191 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13192 (builtin_type_vec128): Export.
13193 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13194 types.
13195 (builtin_type_vec128): New builtin type for 128 bit vector
13196 registers.
13197 (build_gdbtypes): Initialize builtin_type_v16qi and
13198 builtin_type_v8hi. Create the vec128 register builtin type
13199 structure.
13200 (build_builtin_type_vec128): New function.
abf22e64 13201 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13202 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13203 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13204 AltiVec register to new builtin type.
13205
d7242108
DJ
132062001-01-15 Daniel Jacobowitz <drow@mvista.com>
13207
13208 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13209 to make_cv_type.
13210
4ee3352d
AC
132112002-01-14 Andrew Cagney <ac131313@redhat.com>
13212
13213 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13214 CLEAN_UP_REGISTER_VALUE.
13215 * regcache.c (supply_register): Update only call.
13216
f015b2e7
AC
132172002-01-14 Andrew Cagney <ac131313@redhat.com>
13218
13219 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13220 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13221 a29k-*-vxworks* targets as obsolete.
13222
356ae49d
MS
132232002-01-14 Michael Snyder <msnyder@redhat.com>
13224
13225 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13226 until we can resolve portability issues.
13227 * gregset.h: Remove references to fpxregs.
13228 * gcore.c (gcore_command): Initialize note_sec to NULL.
13229
ade8f45e
AC
132302002-01-13 Andrew Cagney <ac131313@redhat.com>
13231
13232 * signals.c (target_signal_to_name): Rewrite. Only use
13233 signals[].name when in bounds and non-NULL.
abf22e64 13234
89c49e7a
AC
132352002-01-13 Andrew Cagney <ac131313@redhat.com>
13236
13237 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13238 * signals.c (target_signal_to_name): Verify that SIG is within the
13239 bounds of the signals array.
13240
4daa9f9f
AC
132412002-01-13 Andrew Cagney <ac131313@redhat.com>
13242
13243 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13244
ba4bbdcb
KS
132452002-01-13 Keith Seitz <keiths@redhat.com>
13246
13247 * stack.c (print_frame_info_base): Print the frame's pc
13248 only if when print_frame_info_listing_hook is not defined.
13249
575bbeb6
KS
132502002-01-13 Keith Seitz <keiths@redhat.com>
13251
13252 * varobj.c (varobj_set_value): Make sure that there were no
13253 errors evaluating the object before attempting to set its
13254 value.
13255 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13256 so this offset adjustment is no longer necessary.
13257 (create_child): Don't set the error flag if the child is
13258 a CPLUS_FAKE_CHILD.
13259 (value_of_child): If value_fetch_lazy fails, return NULL
13260 so that callers will be notified that an error occurred.
13261 (c_value_of_variable): Delay check of variable's validity
13262 until later. We actually want all structs and unions to have
13263 the value "{...}".
13264 Do not return "???" for variables which could not be evaluated.
13265 This error condition must be returned to the caller so that it
13266 can get the error condition from gdb.
13267 (cplus_name_of_child): Adjust index for vptr before figuring
13268 out the name of the child.
13269 (cplus_value_of_child): If a child's (real) parent is not valid,
13270 don't even bother trying to give a value for it. Just return
13271 an error. Change all instances in this function.
13272 (cplus_type_of_child): If our parent is one of the "fake"
13273 parents, we need to get at the type of the real parent, and
13274 derive the child's true type using this information.
13275
b76898ab
AC
132762002-01-13 Andrew Cagney <ac131313@redhat.com>
13277
13278 From 2002-01-09 John Marshall <johnm@falch.net>:
13279 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13280 sources.redhat.com, and tweak some related URLs which had
13281 suffered from linkrot.
13282
b6649e88
AC
132832002-01-13 Andrew Cagney <ac131313@redhat.com>
13284
13285 From Jeff law:
13286 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13287 structures passed in registers.
13288
82cc5033
EZ
132892002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13290
13291 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13292 white space which prevented compilation. Reported by DSK
13293 <dsk@student.unsw.edu.au>.
13294
ba5f2f8a
MS
132952002-01-11 Michael Snyder <msnyder@redhat.com>
13296
fbd35540
MS
13297 * symfile.c (build_section_addr_info_from_section_tab):
13298 Use bfd access method instead of manipulating bfd directly.
13299 (syms_from_objfile): Ditto.
13300 (simple_overlay_update_1): Ditto.
13301 (simple_overlay_update): Ditto.
13302 (generic_load): Ditto.
13303 (overlay_unmapped_address): FIXME comment, bfd access methods.
13304 (sections_overlap): FIXME comment, bfd access methods.
13305 (pc_in_mapped_range): FIXME comment, bfd access methods.
13306 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13307 (section_is_mapped): FIXME comment, bfd access methods.
13308 (section_is_overlay): FIXME comment, bfd access methods.
13309
ba5f2f8a
MS
13310 * symfile.c (generic_load): Whitespace and long line cleanups.
13311 Remove duplicate variable, change several local variables to
13312 more appropriate data types.
13313 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13314
17df2af6
AC
133152002-01-12 Andrew Cagney <ac131313@redhat.com>
13316
13317 From Peter Schauer:
13318 * language.c (longest_local_hex_string_custom): Use phex_nz to
13319 convert NUM to a hex string.
13320
ec920329
EZ
133212002-01-12 Elena Zannoni <ezannoni@redhat.com>
13322
13323 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13324 the function.
538a76d6 13325 Update Copyright year.
ec920329 13326
3abd2e01
AC
133272002-01-12 Andrew Cagney <ac131313@redhat.com>
13328
13329 * language.c (longest_raw_hex_string): Delete unused function.
13330
b21b22e0
PS
133312002-01-11 Petr Sorfa <petrs@caldera.com>
13332
13333 * MAINTAINERS (write-after-approval): Add myself.
13334 * dwarf2read.c (read_tag_string_type): Handling of
13335 DW_AT_byte_size.
13336 (read_tag_string_type): FORTRAN fix to prevent propagation of
13337 first string size.
13338 (set_cu_language): Handling of DW_LANG_Fortran95
13339
747fe712
RE
133402002-01-11 Richard Earnshaw <rearnsha@arm.com>
13341
13342 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13343 GETPID(inferior_ptid).
13344 (store_inferior_registers): Likewise.
13345
f1bea926
JM
133462002-01-10 Jason Merrill <jason@redhat.com>
13347
13348 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13349 Fix DW_OP_minus.
13350
ae940673
AC
133512002-01-10 Andrew Cagney <ac131313@redhat.com>
13352
13353 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13354 and bfd/elf32-sh-nbsd.c.
13355
00546b04
MS
133562002-01-10 Michael Snyder <msnyder@redhat.com>
13357
352ed7b4
MS
13358 * NEWS: Mention --pid and corefile/proc-id behavior change.
13359
c18be923
MS
13360 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13361 * gcore.c: Include cli/cli-decode.h instead of command.h.
13362
00546b04
MS
13363 * main.c (captured_main): Add new command line option "--pid".
13364 If the second command line argument (following the symbol-file)
13365 begins with a digit, try to attach to it before trying to open
13366 it as a corefile.
13367 (print_gdb_help): Document the "--pid" argument.
13368
db60ec62
EZ
133692002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13370
13371 * completer.c (command_completer): New function.
13372
13373 * completer.h <command_completer>: Add prototype.
13374
13375 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13376 completer for the "help" command.
13377
39c22d1a
JM
133782002-01-09 Jason Merrill <jason@redhat.com>
13379
13380 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13381
c564377f
MS
133822002-01-09 Michael Snyder <msnyder@redhat.com>
13383
975aec09
MS
13384 * i386-linux-nat.c (fill_fpxregset): Make global.
13385 (store_fpxregset): Ditto.
13386
db4a10fa
MS
13387 * gregset.h (gdb_fpxregset_t): Define.
13388 (supply_fpxregset): Prototype.
13389 (fill_fpxregset): Prototype.
13390
c564377f
MS
13391 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13392
c3d45d70
RE
133932002-01-09 Richard Earnshaw <rearnsha@arm.com>
13394
13395 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13396 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13397 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13398
fcc87af1
AC
133992002-01-09 Andrew Cagney <ac131313@redhat.com>
13400
13401 * MAINTAINERS: Update target maintainer rules so that any
13402 Maintainer can approve a tested patch for a maintenance-only
13403 target.
13404
dd96c05b
RE
134052002-01-09 Richard Earnshaw <rearnsha@arm.com>
13406
d4297db9 13407 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13408
d4297db9 13409 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13410 IN_SIGTRAMP.
13411
145fdc6e
MS
134122002-01-08 Michael Snyder <msnyder@redhat.com>
13413
13414 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13415 real name of the executable, rather than the /proc name.
13416
be4d1333
MS
134172002-01-03 Michael Snyder <msnyder@redhat.com>
13418
13419 Implement a "generate-core-file" command in gdb, save target state.
13420 * gcore.c: New file. Implement new command 'generate-core-file'.
13421 Save a corefile image of the current state of the inferior.
13422 * linux-proc.c: Add linux-specific code for saving corefiles.
13423 * target.h (struct target_ops): Add new target vectors for saving
13424 corefiles; to_find_memory_regions and to_make_corefile_notes.
13425 (target_find_memory_regions): New macro.
13426 (target_make_corefile_notes): New macro.
13427 * target.c (update_current_target): Inherit new target methods.
13428 (dummy_find_memory_regions): New place-holder method.
13429 (dummy_make_corefile_notes): New place-holder method.
13430 (init_dummy_target): Initialize new dummy target vectors.
13431 * exec.c (exec_set_find_memory_regions): New function.
13432 Allow the exec_ops vector for memory regions to be taken over.
13433 (exec_make_note_section): New function, target vector method.
13434 * defs.h (exec_set_find_memory_regions): Export prototype.
13435 * procfs.c (proc_find_memory_regions): New function, corefile method.
13436 (procfs_make_note_section): New function, corefile method.
13437 (init_procfs_ops): Set new target vector pointers.
13438 (find_memory_regions_callback): New function.
13439 (procfs_do_thread_registers): New function.
13440 (procfs_corefile_thread_callback): New function.
13441 * sol-thread.c (sol_find_memory_regions): New function.
13442 (sol_make_note_section): New function.
13443 (init_sol_thread_ops): Initialize new target vectors.
13444 * inftarg.c (inftarg_set_find_memory_regions): New function.
13445 Allow to_find_memory_regions vector to be taken over.
13446 (inftarg_set_make_corefile_notes): New function.
13447 Allow to_make_corefile_notes vector to be taken over.
13448 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13449 interface layer if not target_has_execution (may be a corefile).
13450 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13451 * config/sparc/sun4sol2.mh: Ditto.
13452 * config/alpha/alpha-linux.mh: Ditto.
13453 * config/arm/linux.mh: Ditto.
13454 * config/i386/x86-64linux.mh: Ditto.
13455 * config/ia64/linux.mh: Ditto.
13456 * config/m68k/linux.mh: Ditto.
13457 * config/mips/linux.mh: Ditto.
13458 * config/powerpc/linux.mh: Ditto.
13459 * config/sparc/linux.mh: Ditto.
13460
c6b92abd
MS
134612002-01-07 Michael Snyder <msnyder@redhat.com>
13462
13463 * arm-linux-nat.c: Remove references to regcache.c internal data
13464 (registers[] and register_valid[]).
13465
4b09dc8c
MS
134662002-01-07 Michael Snyder <msnyder@redhat.com>
13467
abf22e64
AJ
13468 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13469 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13470 symbol file and shlibs.
13471 * Makefile.in: Add rule for linux-proc.o.
13472 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13473 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13474 * config/arm/linux.mh: Ditto.
13475 * config/i386/linux.mh: Ditto.
13476 * config/i386/x86-64linux.mh: Ditto.
13477 * config/ia64/linux.mh: Ditto.
13478 * config/m68k/linux.mh: Ditto.
13479 * config/mips/linux.mh: Ditto.
13480 * config/powerpc/linux.mh: Ditto.
13481 * config/sparc/linux.mh: Ditto.
13482
c25b74ac
PM
134832002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13484
13485 * win32-nat.c: Add i386-tdep.h dependency.
13486
94cd915f
MS
134872002-01-07 Michael Snyder <msnyder@redhat.com>
13488
c7cccb76
MS
13489 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13490 instead of bfd_get_arch_size. Don't bail out just because
13491 there's no exec_bfd.
abf22e64 13492
34c0bd93
MS
13493 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13494 * p-valprint.c (pascal_object_print_value): Ditto.
13495 * somread.c (som_symtab_read): Ditto.
13496 * symfile.c (simple_free_overlay_region_table): Ditto.
13497 * valops.c (value_assign): Ditto.
13498
21c1c920
MS
13499 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13500 use tilde_expand and strerror for opening save-tracepoints file.
13501
5bbd998e
MS
13502 * thread-db.c (thread_db_new_objfile): Indendation fix.
13503
94cd915f
MS
13504 * infptrace.c (GDB_MAX_ALLOCA): New define.
13505 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13506 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13507 can be overridden with whatever value is appropriate to the host).
13508 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13509 alloca to allocate potentially large buffer.
13510 * rs6000-nat.c (child_xfer_memory): Ditto.
13511 * symm-nat.c (child_xfer_memory): Ditto.
13512 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13513
494e8a93
JSC
135142002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13515
13516 From Nick Clifton <nickc@redhat.com>
13517 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13518
d0e1d48e
MS
135192002-01-07 Michael Snyder <msnyder@redhat.com>
13520
abf22e64 13521 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13522 Don't use exec_bfd if it's NULL.
13523
290b2c7a
MK
135242002-01-06 Mark Kettenis <kettenis@gnu.org>
13525
abf22e64 13526 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13527
aef21287
AC
135282002-01-06 Andrew Cagney <ac131313@redhat.com>
13529
13530 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13531 * gnu-nat.c: Ditto.
13532
30efa627
AC
135332002-01-06 Andrew Cagney <ac131313@redhat.com>
13534
13535 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13536 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13537 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13538 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13539 z8k-coff have not been multi-arched. Update z8k-coff build
13540 status.
13541
9b4ff276
AC
135422002-01-06 Andrew Cagney <ac131313@redhat.com>
13543
13544 * MAINTAINERS: Mark a29k target as obsolete.
13545 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13546 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13547 comments.
13548 * NEWS: Note that a29k targets are obsolete.
13549 * a29k-tdep.c: Mark as obsolete.
13550 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13551 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13552 a29k-*-vxworks* targets as obsolete.
13553 * remote-adapt.c: Obsolete.
13554 * remote-eb.c: Obsolete.
13555 * remote-mm.c: Obsolete.
13556 * remote-udi.c: Obsolete.
13557 * config/a29k/a29k-udi.mt: Obsolete.
13558 * config/a29k/a29k.mt: Obsolete.
13559 * config/a29k/tm-a29k.h: Obsolete.
13560 * config/a29k/tm-vx29k.h: Obsolete.
13561 * config/a29k/vx29k.mt: Obsolete.
13562
a9011d31
AC
135632002-01-05 Andrew Cagney <ac131313@redhat.com>
13564
13565 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13566 with BFD_ENDIAN_BIG.
13567
9299404e
AC
135682002-01-05 Andrew Cagney <ac131313@redhat.com>
13569
13570 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13571 * configure, config.in: Re-generate.
13572 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13573 * defs.h: Do not include <endian.h>.
13574
7e89e357
JT
135752002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13576
13577 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13578 * config.in: Regenerate.
13579 * configure.in: Update copyright years.
13580 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13581 * configure: Regenerate.
13582 * i386bsd-nat.c: Update copyright years.
13583 (fill_gregset): Use regcache_collect.
13584 (fetch_inferior_registers): Only fetch integer registers
13585 if requested to do so. Add support for XMM registers
13586 using PT_GETXMMREGS.
13587 (store_inferior_registers): Only store integer registers
13588 if requested to do so. Add support for XMM registers
13589 using PT_SETXMMREGS.
13590 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13591 (store_inferior_registers): Remove.
13592 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13593 (fetch_elfcore_registers): New function.
13594 (i386nbsd_elfcore_fns): New.
13595 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13596 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13597 i386bsd-nat.o.
13598 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13599 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13600 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13601 * config/i386/tm-nbsd.h: Update copyright years.
13602 (HAVE_SSE_REGS): Define.
13603 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13604 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13605 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13606 (SIGCONTEXT_PC_OFFSET): Remove.
13607 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13608
a752853e
AC
136092002-01-05 Andrew Cagney <ac131313@redhat.com>
13610
13611 * configure.tgt: Remove powerpc-*-macos* target.
13612 * config/m68k/xm-mpw.h: Delete file.
13613 * config/xm-mpw.h: Delete file.
13614 * ser-mac.c: Delete file.
13615 * mpw-make.sed: Delete file.
13616 * mpw-config.in: Delete file.
13617 * mac-xdep.c: Delete file.
13618 * mac-gdb.r: Delete file.
13619 * mac-defs.h: Delete file.
13620 * mac-nat.c: Delete file.
13621 * config/powerpc/macos.mh: Delete file.
13622 * config/powerpc/macos.mt: Delete file.
13623 * config/powerpc/nm-macos.h: Delete file.
13624 * config/powerpc/tm-macos.h: Delete file.
13625 * source.c (openp, open_source_file): Remove obsolete code.
13626 * top.c (gdb_readline): Ditto.
13627 * utils.c (query): Ditto.
13628 * event-top.c (display_gdb_prompt): Ditto.
13629 * Makefile.in (ser-mac.o): Delete obsolete target.
13630 * NEWS: Update.
13631
d7449b42
AC
136322002-01-04 Andrew Cagney <ac131313@redhat.com>
13633
13634 * defs.h (BIG_ENDIAN): Delete macro definition.
13635 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13636 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13637 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13638 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13639 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13640 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13641 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13642 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13643 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13644 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13645 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13646 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13647 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13648 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13649 * gdbarch.c: Re-generate.
13650
356374e8
DJ
136512002-01-04 Daniel Jacobowitz <drow@mvista.com>
13652
13653 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13654 for core files.
13655
a2b8f8f8
JT
136562002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13657
13658 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13659
12466af9
AC
136602002-01-04 Andrew Cagney <ac131313@redhat.com>
13661
13662 * value.h (value_ptr): Delete typedef.
13663
3549ab40
JT
136642002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13665
13666 * i386nbsd-nat.c: Update copyright years.
13667 Include i386-tdep.h.
13668
fedbd091
EZ
136692002-01-04 Elena Zannoni <ezannoni@redhat.com>
13670
13671 * stabsread.c: Update copyright years.
13672
13673 From Debashis Mahata <debashis.mahata@wipro.com>:
13674 (read_struct_fields): Deal with Sun C compiler erroneous stab
13675 output for structs and unions.
fec8b34f 13676 Fix PR gdb/269.
fedbd091 13677
eb43544b
DJ
136782002-01-04 Daniel Jacobowitz <drow@mvista.com>
13679
13680 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13681 prototype.
13682
1514d34e
DJ
136832002-01-04 Daniel Jacobowitz <drow@mvista.com>
13684
13685 * cp-abi.c: Fix whitespace.
13686 (baseclass_offset): New wrapper function.
13687 * cp-abi.h (baseclass_offset): Add prototype.
13688 (struct cp_abi_ops): Add baseclass_offset pointer.
13689
13690 * valops.c (vb_match): Move to...
13691 * gnu-v2-abi.c (vb_match): here.
13692 * valops.c (baseclass_offset): Move to...
13693 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13694
13695 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13696
13697 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13698 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13699 * hpacc-abi.c (init_hpacc_ops): Likewise.
13700
7f8c9282
DJ
137012002-01-04 Daniel Jacobowitz <drow@mvista.com>
13702
13703 * valops.c (find_overload_match): Accept obj as a
13704 reference parameter. Update it before returning.
13705 * value.h (find_overload_match): Update prototype.
13706 * eval.c (evaluate_subexp_standard): Pass object to
13707 find_overload_match by reference.
13708
f23631e4
AC
137092002-01-03 Andrew Cagney <ac131313@redhat.com>
13710
13711 * valarith.c: Replace value_ptr with struct value pointer. Remove
13712 register attribute from value declarations.
13713 * valops.c: Ditto.
13714 * value.h: Ditto.
13715 * scm-lang.c (scm_lookup_name): Ditto.
13716
79e10fab 137172002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13718
79e10fab
AC
13719 Abstract the functionality of iterating over mapped memory
13720 regions into a general purpose iterator function.
abf22e64 13721 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13722 iterator for memory sections.
13723 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13724 (solib_mappings_callback): New function, callback for above.
13725 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13726 (info_mappings_callback): New function, callback for above.
13727
13728 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13729
c5ad026a
MK
137302002-01-01 Mark Kettenis <kettenis@gnu.org>
13731
d2a7c97a
MK
13732 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13733 * i386-tdep.c: Include "elf-bfd.h".
13734 (process_note_abi_tag_sections): New function.
13735 (i386_gdbarch_init): Add code to recognize various OS/ABI
13736 combinations.
13737
c5ad026a
MK
13738 * maint.c (_initialize_maint_cmds): Add missing \ in
13739 string-literal.
13740
a1a5b71e 13741For older changes see ChangeLog-2001
c906108c
SS
13742\f
13743Local Variables:
13744mode: change-log
13745left-margin: 8
13746fill-column: 74
13747version-control: never
13748End:
This page took 0.955957 seconds and 4 git commands to generate.