]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* gdb/objc-lang.c (objc_printstr): Add width arg to match
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
36e53c63
AF
12002-12-02 Adam Fedor <fedor@gnu.org>
2 Klee Dienes <kdienes@apple.com>
3
4 * objc-lang.c (objc_printstr): Add width arg to match
5 printstr prototype.
6 (compare_selectors): Add 'const' to arg types.
7 (compare_classes): Likewise.
8 (find_imps): Cast msym pointer to avoid compiler warning.
9 (print_object_command): Validate the address before
10 passing it to the print routine.
11 (find_objc_msgcall_submethod): Change function argument to
12 return an int.
13 * objc-lang.h: Add 'extern' to all function declarations.
14 (value_nsstring): Add declaration.
15
504d5c7e
JB
162002-12-02 J. Brobecker <brobecker@gnat.com>
17
18 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
19 Fixes a build failure on HP/UX.
20
21 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
22 failure on HP/UX.
23 (hpread_has_name): Advance declaration to avoid a compilation warning.
24 (pst_syms_count): Add missing variable type. By change, the compiler
25 was defaulting to int, which seems a good choice. Fixes a compilation
26 warning.
27 (pst_syms_size): Likewise.
28
59623e27
JB
292002-12-02 J. Brobecker <brobecker@gnat.com>
30
31 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
32 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
33 later to set the proper gdbarch methods depending on the osabi.
34 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
35
a09a320d
JB
362002-12-02 J. Brobecker <brobecker@gnat.com>
37
38 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
39 * osabi.c (gdb_osabi_name): Add strings images for the two new
40 enum values.
41 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
42
8a81a99e
AC
432002-12-02 Andrew Cagney <ac131313@redhat.com>
44
45 * MAINTAINERS (Java): Global maintainers are responible for Java.
46 (Past Maintainers): Mention both Anthony Green and Per Bothner as
47 part Java maintainers.
48
7af35dad
JB
492002-12-02 J. Brobecker <brobecker@gnat.com>
50
51 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
52 Fixes a compilation failure on AiX.
53
f4ede9bc
JB
542002-12-02 J. Brobecker <brobecker@gnat.com>
55
56 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
57 why aix-thread.o is not listed.
58
ae45cd16
AC
592002-12-01 Andrew Cagney <ac131313@redhat.com>
60
61 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
62 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
63 * gdbarch.h, gdbarch.c: Re-generate.
64 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
65 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
66 * config/pa/tm-hppa.h, frame.h: Update.
67 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
68 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
69 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
70 * cris-tdep.c, alpha-tdep.c: Update.
71 * frame.c (set_unwind_by_pc, create_new_frame): Use either
72 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
73 (get_prev_frame): Ditto.
74
020cc13c
AC
752002-11-30 Andrew Cagney <cagney@redhat.com>
76
77 * exec.c (xfer_memory): Replace boolean with int.
78 * p-exp.y: Use 0 instead of false.
79 * corelow.c (gdb_check_format): Change return type to int from
80 boolean.
81 * utils.c: Don't include <curses.h> or <term.h> first.
82
1d9b2aa8
SC
832002-11-29 Stephane Carrez <stcarrez@nerim.fr>
84
85 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
86 (m68hc11_register_byte): Remove.
87 (m68hc11_gdbarch_init): Don't set the above.
88
a193e397
AC
892002-11-29 Andrew Cagney <cagney@redhat.com>
90
91 * remote-mips.c (mips_initialize): Force a selected frame rebuild
92 by calling get_selected_frame.
93 * ocd.c (ocd_start_remote): Use get_selected frame instead of
94 set_current_frame, create_new_frame, select_frame and
95 get_current_frame.
96 * remote-e7000.c (e7000_start_remote): Ditto.
97 * remote-mips.c (common_open): Ditto
98 * remote-rdp.c (remote_rdp_open): Ditto.
99
b5fc49aa
AS
1002002-11-29 Andreas Schwab <schwab@suse.de>
101
102 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
103 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
104 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
105 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
106 read_memory_unsigned_integer instead of read_memory_integer when
107 dealing with addresses and instruction opcodes.
108 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
109 (m68k_linux_frame_saved_pc): Likewise.
110
6e7f8b9c
AC
1112002-11-29 Andrew Cagney <ac131313@redhat.com>
112
113 * stack.c (selected_frame, select_frame): Move from here ...
114 * frame.c (selected_frame, select_frame): ... to here. Include
115 "language.h".
116 * Makefile.in (frame.o): Update dependencies.
117 * frame.c (get_selected_frame): New function.
118 * frame.h (get_selected_frame): Declare.
119 (deprecated_selected_frame): Rename selected_frame.
120 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
121 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
122 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
123 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
124 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
125 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
126 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
127 * z8k-tdep.c, cli/cli-cmds.c: Update.
128
805e2818
AC
1292002-11-29 Andrew Cagney <ac131313@redhat.com>
130
131 * frame.h (get_selected_block): Add comments.
132
1058bca7
AC
1332002-11-28 Andrew Cagney <ac131313@redhat.com>
134
135 * frame.c (pc_notcurrent): New function.
136 (find_frame_sal): New function.
137 * frame.h (find_frame_sal): Declare.
138 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
139 * stack.c (print_frame_info_base): Use find_frame_sal instead of
140 find_pc_line.
1058bca7
AC
141 (frame_info): Ditto.
142 * ada-lang.c (find_printable_frame): Ditto.
143
d92419e5
JB
1442002-11-28 J. Brobecker <brobecker@gnat.com>
145
146 * configure.in: Check that the pthdebug library is recent enough
147 before enabling thread support on native AiX.
148 * configure: Regenerate.
149
150 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
151 from the list of object files as it is now appended by configure
152 if thread support is enabled.
153 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
154 if thread support is enabled.
155
8c69fc49
AC
1562002-11-28 Andrew Cagney <cagney@redhat.com>
157
158 * stack.c (get_selected_block): In-line get_current_block.
159 * frame.h (get_current_block): Delete declaration.
160 * blockframe.c (get_current_block): Delete function.
161
07555a72
AC
1622002-11-28 Andrew Cagney <ac131313@redhat.com>
163
164 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
165 USE_GENERIC_DUMMY_FRAMES.
166 * gdbarch.h, gdbarch.c: Regenerate.
167 * valops.c, frame.c: Update.
168 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
169 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
170 * config/pa/tm-hppa.h, blockframe.c: Update.
171 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
172 * m68k-tdep.c, alpha-tdep.c: Ditto.
173
174 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
175 * mips-tdep.c: Ditto.
176
b99fa2d2
AC
1772002-11-27 Andrew Cagney <ac131313@redhat.com>
178
179 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
180 (USE_GENERIC_DUMMY_FRAMES): Default to true.
181 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
182 * gdbarch.c, gdbarch.h: Re-generate.
183 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
184 (CALL_DUMMY_LOCATION): Delete macro definition.
185 (PC_IN_CALL_DUMMY): Delete macro definitions.
186
187 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
188 default is already generic_pc_in_call_dummy.
189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
190 * v850-tdep.c (v850_gdbarch_init): Ditto.
191 * sh-tdep.c (sh_gdbarch_init): Ditto.
192 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
193 * mips-tdep.c (mips_gdbarch_init): Ditto.
194 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
196 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
197 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
198 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
199 * avr-tdep.c (avr_gdbarch_init): Ditto.
200
201 * arm-tdep.c (arm_gdbarch_init): Do not set
202 use_generic_dummy_frames, default is already 1.
203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
204 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
205 * v850-tdep.c (v850_gdbarch_init): Ditto.
206 * sh-tdep.c (sh_gdbarch_init): Ditto.
207 * s390-tdep.c (s390_gdbarch_init): Ditto.
208 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
209 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
210 * mips-tdep.c (mips_gdbarch_init): Ditto.
211 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
213 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
214 * i386-tdep.c (i386_gdbarch_init): Ditto.
215 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
216 * frv-tdep.c (frv_gdbarch_init): Ditto.
217 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
218 * cris-tdep.c (cris_gdbarch_init): Ditto.
219 * avr-tdep.c (avr_gdbarch_init): Ditto.
220
221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
222 call_dummy_location, default is already AT_ENTRY_POINT.
223 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
224 * v850-tdep.c (v850_gdbarch_init): Ditto.
225 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
226 * sh-tdep.c (sh_gdbarch_init): Ditto.
227 * s390-tdep.c (s390_gdbarch_init): Ditto.
228 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
230 * mips-tdep.c (mips_gdbarch_init): Ditto.
231 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
234 * i386-tdep.c (i386_gdbarch_init): Ditto.
235 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
236 * frv-tdep.c (frv_gdbarch_init): Ditto.
237 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
238 * cris-tdep.c (cris_gdbarch_init): Ditto.
239 * avr-tdep.c (avr_gdbarch_init): Ditto.
240 * arm-tdep.c (arm_gdbarch_init): Ditto.
241 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
242
abc0af47
AC
2432002-11-28 Andrew Cagney <cagney@redhat.com>
244
245 * frame.h: Update comments on set_current_frame, create_new_frame,
246 flush_cached_frames, reinit_frame_cache, select_frame and
247 selected_frame.
248
ed5cedc5
AC
2492002-11-27 Andrew Cagney <cagney@redhat.com>
250
251 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
252 deprecated pc_in_call_dummy function.
253 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
254 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
255 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
256 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
257 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
258
b2a1bd4f
MH
2592002-11-26 Martin M. Hunt <hunt@redhat.com>
260
261 * Makefile.in: Remove Tix dependencies.
262 * acinclude.m4: Ditto.
263 * aclocal.m4: Ditto.
264 * configure.in: Ditto.
265 * configure: Regenerated.
266
f09cffaa
AC
2672002-11-26 Andrew Cagney <ac131313@redhat.com>
268
269 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
270 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
271 * gdbarch.c: Re-generate.
272
e92b0cc9
AC
2732002-11-26 Andrew Cagney <ac131313@redhat.com>
274
275 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
276 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
277 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
278 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
279 pc_in_call_dummy_at_entry_point.
280 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
281 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
282 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
283 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
284 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
285 pc_in_call_dummy_on_stack.
286 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
287 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
288 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
289 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
290 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
291
b4b88177
AC
2922002-11-26 Andrew Cagney <ac131313@redhat.com>
293
294 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
295 pc_in_call_dummy_before_text_end
296 (deprecated_pc_in_call_dummy_after_text_end): Rename
297 pc_in_call_dummy_after_text_end.
298 (deprecated_pc_in_call_dummy_on_stack): Rename
299 pc_in_call_dummy_on_stack.
300 (deprecated_pc_in_call_dummy_at_entry_point): Rename
301 pc_in_call_dummy_at_entry_point.
302 * m68k-tdep.c (m68k_gdbarch_init): Update.
303 * s390-tdep.c (s390_gdbarch_init): Update.
304 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
305 * vax-tdep.c (vax_gdbarch_init): Update.
306 * sparc-tdep.c (sparc_gdbarch_init): Update.
307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
309 * i386-tdep.c (i386_gdbarch_init): Update.
310 * frv-tdep.c (frv_gdbarch_init): Update.
311 * cris-tdep.c (cris_gdbarch_init): Update.
312 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
313 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
314 (deprecated_pc_in_call_dummy_after_text_end)
315 (deprecated_pc_in_call_dummy_on_stack)
316 (deprecated_pc_in_call_dummy_at_entry_point): Update.
317 * alpha-tdep.c (alpha_gdbarch_init): Update.
318
eb784848
DJ
3192002-11-25 Daniel Jacobowitz <drow@mvista.com>
320
321 * acconfig.h (HAVE_PREAD64): Add.
322 * configure.in: Check for pread64.
323 * config.in: Regenerated.
324 * configure: Regenerated.
325 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
326 * linux-proc.c (linux_proc_xfer_memory): New function.
327 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
328
933c6fe4
DC
3292002-11-25 David Carlton <carlton@math.stanford.edu>
330
331 * dwarf2read.c (scan_partial_symbols): Descend into namespace
332 pdi's with no name.
333
158a8022
AC
3342002-11-25 Andrew Cagney <ac131313@redhat.com>
335
336 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
337 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
338
481d0f41
JB
3392002-11-25 Jim Blandy <jimb@redhat.com>
340
e8289572
JB
341 * symfile.c (init_objfile_sect_indices): New function.
342 (default_symfile_offsets): Move the section-index-initializing
343 stuff into init_objfile_sect_indices, and call that.
344
b29c9944
JB
345 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
346 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
347
13de58df
JB
348 * symfile.c (syms_from_objfile): Adjust indentation.
349
481d0f41
JB
350 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
351 || info_verbose isn't true.
352
7d6a26a7
AC
3532002-11-24 Andrew Cagney <ac131313@redhat.com>
354
355 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
356 default to get_frame_base.
357 * gdbarch.h, gdbarch.c: Regenerate.
358 * arch-utils.c (default_frame_address): Delete function.
359 * arch-utils.h (default_frame_address): Delete declaration
360
6abe1021
PM
3612002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
362
363 * varobj.c (find_frame_addr_in_frame_chain):
364 Use get_frame_base instead of FRAME_FP,
365 obvious fix.
366
c193f6ac
AC
3672002-11-19 Andrew Cagney <ac131313@redhat.com>
368
369 * frame.h (FRAME_FP): Delete macro.
370 (get_frame_base): New function declaration.
371 * frame.c (get_frame_base): New function.
372 (get_frame_id): Use ->frame.
373 (frame_find_by_id): Rewrite to use get_frame_id.
374 * blockframe.c: Use get_frame_base instead of FRAME_FP.
375 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
376 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
377 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
378 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
379 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
380 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
381
e5d2af14
AC
3822002-11-24 Andrew Cagney <ac131313@redhat.com>
383
384 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
385
931d12c6
AC
3862002-11-24 Andrew Cagney <ac131313@redhat.com>
387
388 * frame.c (set_unwind_by_pc): Revert change below, use
389 PC_IN_CALL_DUMMY.
390 (get_prev_frame): Ditto.
391
5e0f933e
AC
3922002-11-24 Andrew Cagney <ac131313@redhat.com>
393
394 * dummy-frame.c (pc_in_dummy_frame): New function.
395 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
396 (find_dummy_frame): Update comment.
397 (generic_pop_current_frame): Use get_frame_type.
398 * dummy-frame.h (pc_in_dummy_frame): Declare.
399 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
400 (create_new_frame): Use pc_in_dummy_frame.
401 (get_prev_frame): Use pc_in_dummy_frame.
402 (frame_saved_regs_register_unwind): Use get_prev_frame.
403 (deprecated_generic_get_saved_register): Use get_prev_frame.
404
7d8547c9
AC
4052002-11-23 Andrew Cagney <ac131313@redhat.com>
406
407 * blockframe.c (find_frame_addr_in_frame_chain): Move function
408 from here ...
409 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
410 (varobj_create): Note that frame ID should be used.
411 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
412
0225421b
AC
4132002-11-23 Andrew Cagney <ac131313@redhat.com>
414
415 * breakpoint.c: Include "gdb_assert.h".
416 (deprecated_frame_in_dummy): Assert that generic dummy frames are
417 not being used.
418 * Makefile.in (breakpoint.o): Update dependencies.
419 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
420 deprecated_frame_in_dummy.
421 * stack.c (print_frame_info_base): Ditto.
422 (frame_info): Ditto.
423 (print_frame_info_base): Ditto. Delete dead code.
424
32eeb91a
AS
4252002-11-23 Andreas Schwab <schwab@suse.de>
426
427 * Makefile.in (m68k_tdep_h): Define.
428 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
429 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
430 * m68k-tdep.c: Move register number enum ...
431 * m68k-tdep.h: ... to this new file and rename the constants from
432 E_* to M68K_*. All uses changed.
433 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
434 * abug-rom.c: Include "m68k-tdep.h". Use
435 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
436 * cpu32bug-rom.c: Likewise.
437 * dbug-rom.c: Likewise.
438 * m68k-tdep.c: Likewise.
439 * m68klinux-nat.c: Likewise.
440 * remote-est.c: Likewise.
441 * rom68k-rom.c: Likewise.
442 * config/m68k/tm-linux.h: Likewise.
443
9648bac8
AC
4442002-11-23 Andrew Cagney <ac131313@redhat.com>
445
446 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
447 dummy frame initialization code.
448 * mips-tdep.c (mips_gdbarch_init): Ditto.
449
91a175b3
CF
4502002-11-22 Christopher Faylor <cgf@redhat.com>
451
452 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
453 attach will hang.
454
f4ded5b1
AC
4552002-11-22 Andrew Cagney <ac131313@redhat.com>
456
457 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
458 to default_frame_address.
459 * gdbarch.h, gdbarch.c: Re-generate.
460
461 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
462 or frame_locals_address to default_frame_address.
463 * m68k-tdep.c (m68k_gdbarch_init): Update.
464 * i386-tdep.c (i386_gdbarch_init): Update.
465 * frv-tdep.c (frv_gdbarch_init): Update.
466 * sh-tdep.c (sh_gdbarch_init): Update.
467 * v850-tdep.c (v850_gdbarch_init): Update.
468 * sparc-tdep.c (sparc_gdbarch_init): Update.
469 * mips-tdep.c (mips_gdbarch_init): Update.
470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
471 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
472 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
473
474 * cris-tdep.c (cris_frame_args_address): Delete function.
475 (cris_frame_locals_address): Delete function.
476 (cris_gdbarch_init): Do not set frame_args_address or
477 frame_locals_address.
478
f7c1e0f3
MS
4792002-11-22 Michael Snyder <msnyder@redhat.com>
480
481 * thread-db.c (thread_db_load): Tell the user what's going on
482 if dlopen fails on libthread_db.
483
03dac896
AS
4842002-11-23 Andreas Schwab <schwab@suse.de>
485
486 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
487 invariant return values.
488
7a67d0fe
AS
4892002-11-22 Andreas Schwab <schwab@suse.de>
490
491 * valops.c (value_slice): Move declaration of `offset' to avoid
492 warning.
493
5633f842
CF
4942002-11-22 Christopher Faylor <cgf@redhat.com>
495
496 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
497 (struct so_stuff): Add end_addr field.
498 (register_loaded_dll): Calculate and store end address of loaded dll.
499 (solib_address): New function.
500 (child_solib_loaded_library_pathname): Pass carefully constructed
501 section info to safe_symbol_file_add rather than ignoring it.
502 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
503 DLL is loaded.
504 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
505 (child_create_inferior): Fix a compiler warning.
506 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
507 (solib_address): Declare new function.
508
d85fe7f7
AS
5092002-11-22 Andreas Schwab <schwab@suse.de>
510
511 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
512 and FPS registers.
513
8308e54c
DJ
5142002-11-21 Daniel Jacobowitz <drow@mvista.com>
515
516 * maint.c (_initialize_maint_cmds): Fix typo. From
517 Francesco Potorti` <pot@gnu.org>.
518
8997bd5e
AC
5192002-11-21 Andrew Cagney <cagney@redhat.com>
520
521 * mips-tdep.c (mips_dump_tdep): Delete references to
522 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
523 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
524 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
525 * printcmd.c (build_address_symbolic): Delete calls to
526 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
527 (address_info): Ditto.
528 Fix PR gdb/773.
529
4e87b832
KD
5302002-11-19 Klee Dienes <kdienes@apple.com>
531 Adam Fedor <fedor@gnu.org>
532
533 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
534 the ability to explicitly specify the quote characters and word
535 break characters; if NULL is specified for either, use the old
536 behavior of using the characters used by the completer.
537 (skip_chars): New function. Convenience wrapper around
538 skip_quoted_chars to provide the original skip_chars behavior.
539 * completer.h (skip_quoted_chars): Add prototype.
540
9ba8d803
AC
5412002-11-19 Andrew Cagney <ac131313@redhat.com>
542
543 Problems reported by Paul Eggert.
544 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
545
0a595803
AS
5462002-11-19 Andreas Schwab <schwab@suse.de>
547
548 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
549 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
550 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
551 (m68k_linux_frame_saved_pc): Move to ...
552 * m68klinux-tdep.c: ... here. New file.
553 * Makefile.in (m68klinux-tdep.o): Add dependencies.
554 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
555
e8afa4d7
AF
5562002-11-19 Adam Fedor <fedor@gnu.org>
557
558 * objc-exp.y: Revert to old skip_quoted usage.
559
a76c9d72
AF
5602002-11-19 Adam Fedor <fedor@gnu.org>
561
562 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
563 (objc_lang_h): Define.
564 (YYFILES): Add objc-exp.tab.c.
565 (local-maintainer-clean): Remove objc-exp.tab.c.
566 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
567
fd0e9d45
PM
5682002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
569
570 * p-exp.y (typecast rule): Add automatic dereference of
571 pascal classes if needed.
572 (THIS): Set current_type.
573 Automatically dereference pascal classes.
574 (typebase rule): Add ^typebase recognition.
575
82eeeb94
AF
5762002-11-18 Adam Fedor <fedor@gnu.org>
577
578 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
579 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
580 (op_name): Handle OP_OBJC_SELF.
581 * Makefile.in (expprint.o): Add additional depends.
582
646df18d
AF
5832002-11-18 Adam Fedor <fedor@gnu.org>
584
585 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
586 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
587 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
588 * objc-exp.y: Likewise.
589
379b85df
AF
5902002-11-18 Adam Fedor <fedor@gnu.org>
591
592 * gdb/parser-defs.h: (struct objc_class_str): New structure
593 for parsing ObjC classes.
594
85cf597a
AC
5952002-11-18 Andrew Cagney <ac131313@redhat.com>
596
597 * stack.c (frame_relative_level): Copy function from here ...
598 * frame.c (frame_relative_level): ...to here.
599
5a203e44
AC
6002002-11-18 Andrew Cagney <ac131313@redhat.com>
601
602 * frame.h (enum frame_type): Define.
603 (get_frame_type): Declare.
604 (struct frame_info): Add field `type'. Delete field
605 signal_handler_caller.
606 (deprecated_set_frame_signal_handler_caller): Declare.
607 * frame.c (get_frame_type): New function.
608 (deprecated_set_frame_type): New function.
609 (create_new_frame): Set the frame's type.
610 (get_prev_frame): Similar.
611 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
612 * s390-tdep.c: Ditto.
613 * m68klinux-nat.c: Ditto.
614 * ns32k-tdep.c: Ditto.
615 * x86-64-linux-tdep.c: Ditto.
616 * vax-tdep.c: Ditto.
617 * rs6000-tdep.c: Ditto.
618 * ppc-linux-tdep.c: Ditto.
619 * i386-interix-tdep.c: Ditto.
620 * mips-tdep.c: Ditto.
621 * m68k-tdep.c: Ditto.
622 * hppa-tdep.c: Ditto.
623 * ia64-tdep.c: Ditto.
624 * cris-tdep.c: Ditto.
625 * arm-tdep.c: Ditto.
626 * alpha-tdep.c: Ditto.
627 * i386-tdep.c: Ditto.
628 * stack.c: Ditto.
629 * ada-lang.c: Ditto.
630 * blockframe.c: Update.
631 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
632 deprecated_set_frame_type instead of signal_handler_caller.
633 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
634 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
635 * breakpoint.h: Delete FIXME suggesting get_frame_type.
636
bf4ae8b2
KD
6372002-11-18 Klee Dienes <kdienes@apple.com>
638
639 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
640
a672ef13
KD
6412002-11-18 Klee Dienes <kdienes@apple.com>
642
643 * buildsym.c (pop_context): Add comment.
644
0c5e171a
KD
6452002-11-18 Klee Dienes <kdienes@apple.com>
646
647 * buildsym.h (pop_context): Convert to function, defined in
648 buildsym.c.
649 * buildsym.c: Include gdb_assert.h.
650 (pop_context): Implement as C function. Add check for stack
651 underflow.
652 * dbxread.c (process_one_symbol): Complain and stop processing
653 that symbol if we are already at the top of the context stack for
654 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
655 when processing N_RBRAC.
656
8a1f4c4c
DJ
6572002-11-16 Daniel Jacobowitz <drow@mvista.com>
658
659 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
660 define.
661 (struct target_waitstatus): Add opaque definition.
662 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
663 * exec.c (init_exec_ops): Likewise.
664 * fork-child.c (clone_and_follow_inferior): Remove.
665 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
666 * inferior.h (clone_and_follow_inferior): Remove prototype.
667 * infrun.c (follow_fork_mode_both): Remove.
668 (follow_fork_mode_kind_names): Remove commented out "both".
669 (follow_inferior_fork): Remove follow_fork_mode_both support.
670 * inftarg.c (child_clone_and_follow_inferior): Remove.
671 (child_post_follow_inferior_by_clone): Remove.
672 (init_child_ops): Don't set to_clone_and_follow_inferior
673 or to_post_follow_inferior_by_clone.
674 * target.c (default_clone_and_follow_inferior): Remove.
675 (cleanup_target): Don't set to_clone_and_follow_inferior
676 or to_post_follow_inferior_by_clone.
677 (find_default_clone_and_follow_inferior): Remove.
678 (init_dummy_target): Don't set to_clone_and_follow_inferior.
679 (debug_to_clone_and_follow_inferior): Remove.
680 (debug_to_post_follow_inferior_by_clone): Remove.
681 (setup_target_debug): Don't set to_clone_and_follow_inferior
682 or to_post_follow_inferior_by_clone.
683 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
684 and to_post_follow_inferior_by_clone.
685 (child_clone_and_follow_inferior): Remove prototype.
686 (child_post_follow_inferior_by_clone): Remove prototype.
687 (target_clone_and_follow_inferior): Remove macro.
688 (target_post_follow_inferior_by_clone): Remove macro.
689 (find_default_clone_and_follow_inferior): Remove prototype.
690
47932f85
DJ
6912002-11-16 Daniel Jacobowitz <drow@mvista.com>
692
693 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
694 inferior_has_vforked, and inferior_has_execd instead of
695 target_has_forked, target_has_vforked, and target_has_execd.
696 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
697 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
698 (CHILD_WAIT): Define.
699 (child_wait): Add prototype.
700 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
701 Add prototype.
702 (hpux_has_vforked): Likewise, from child_has_vforked.
703 (hpux_has_execd): Likewise, from child_has_execd.
704 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
705 (not_same_real_pid, child_wait): New, copied from inftarg.c.
706 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
707 and hpux_has_syscall_event instead of the target hooks.
708 * infrun.c (inferior_has_forked, inferior_has_vforked)
709 (inferior_has_execd): New functions.
710 * inftarg.c (not_same_real_pid): Remove.
711 (child_wait): Remove references to not_same_real_pid,
712 target_has_forked, target_has_vforked, target_has_execd,
713 and target_has_syscall_event.
714 (child_has_forked, child_has_vforked, child_has_execd)
715 (child_has_syscall_event): Remove.
716 (init_child_ops): Remove references to child_has_forked,
717 child_has_vforked, child_has_execd, and child_has_syscall_event.
718 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
719 (hpux_has_vforked): Likewise, from child_has_vforked.
720 (hpux_has_execd): Likewise, from child_has_execd.
721 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
722 * target.c (cleanup_target): Remove references to
723 to_has_forked, to_has_vforked, to_has_execd, and
724 to_has_syscall_event.
725 (update_current_target): Likewise.
726 (setup_target_debug): Likewise.
727 (debug_to_has_forked): Remove.
728 (debug_to_has_vforked): Remove.
729 (debug_to_has_execd): Remove.
730 (debug_to_has_syscall_event): Remove.
731 * target.h (struct target_ops): Remove to_has_forked.
732 to_has_vforked, to_has_execd, and to_has_syscall_event.
733 (child_has_forked, child_has_vforked, child_has_execd)
734 (child_has_syscall_event): Remove prototypes.
735 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
736 prototypes.
737 (target_has_forked, target_has_vforked, target_has_execd)
738 (target_has_syscall_event): Remove macros.
739
4088142a
DJ
7402002-11-16 Daniel Jacobowitz <drow@mvista.com>
741
742 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
743 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
744 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
745 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
746 * target.c (cleanup_target): Remove reference to
747 to_can_follow_vfork_prior_to_exec.
748 (update_current_target): Likewise.
749 (debug_to_can_follow_vfork_prior_to_exec): Remove.
750 (setup_target_debug): Remove reference to
751 to_can_follow_vfork_prior_to_exec.
752 * target.h (struct target_ops): Remove
753 to_can_follow_vfork_prior_to_exec.
754 (child_can_follow_vfork_prior_to_exec): Remove prototype.
755 (target_can_follow_vfork_prior_to_exec): Remove definition.
756 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
757 define.
758 * infrun.c (follow_vfork_when_exec): Remove.
759 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
760 (follow_exec): Likewise.
761 (handle_inferior_event): Likewise.
762 (keep_going): Likewise.
763
18cde8d5
AC
7642002-11-15 Andrew Cagney <cagney@redhat.com>
765
766 * frame.c (generic_unwind_get_saved_register): Make static.
767 * frame.h (generic_unwind_get_saved_register): Delete declaration.
768 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
769 defaults to generic_unwind_get_saved_register.
770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
771 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
772 * frv-tdep.c (frv_gdbarch_init): Ditto.
773 * i386-tdep.c (i386_gdbarch_init): Ditto.
774 * s390-tdep.c (s390_gdbarch_init): Ditto.
775 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
776 * v850-tdep.c (v850_gdbarch_init): Ditto.
777 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
778 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
779 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
780
a6b063af
AC
7812002-11-15 Andrew Cagney <cagney@redhat.com>
782
783 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
784 i386-tdep.c.
785
f407986f
AC
7862002-11-15 Andrew Cagney <cagney@redhat.com>
787
788 * frame.h (sigtramp_saved_pc): Delete declaration.
789 * blockframe.c (sigtramp_saved_pc): Delete function.
790 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
791 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
792 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
793 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
794
f18c5a73
AC
7952002-11-15 Andrew Cagney <ac131313@redhat.com>
796
797 * frame.c (frame_pc_unwind): New function.
798 (frame_saved_regs_pc_unwind): New function.
799 (frame_register_unwind): Pass unwind_cache instead of
800 register_unwind_cache.
801 (set_unwind_by_pc): Add unwind_pc parameter, set.
802 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
803 (get_prev_frame): Ditto.
804 * frame.h (frame_pc_unwind_ftype): Declare.
805 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
806 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
807 (frame_pc_unwind): Declare.
808 * dummy-frame.c (dummy_frame_pc_unwind): New function.
809 (struct dummy_frame): Add comment mentioning that values are for
810 previous frame.
811 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
812 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
813 (generic_file_frame_chain_valid): Ditto.
814 * stack.c (frame_info): Ditto.
815
d9285969 8162002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
817
818 * linespec.c (locate_first_half): New function.
819 (decode_line_1): Move code into locate_first_half.
820
d741b867
AC
8212002-11-15 Andrew Cagney <ac131313@redhat.com>
822
823 * complaints.h: Add comment explaining how to eliminate a
824 deprecated_complain call.
24382c5c 825 * complaints.h: Fix spelling errors.
d741b867 826
82d03c99
DC
8272002-11-15 David Carlton <carlton@math.stanford.edu>
828
829 * printcmd.c: Remove #include "disasm.h".
830
c97eb5d9
AC
8312002-11-14 Andrew Cagney <ac131313@redhat.com>
832
833 * frame.h: Move the most relevant interface functions to the start
834 of the file.
835
524d7c18
AC
8362002-11-14 Andrew Cagney <ac131313@redhat.com>
837
838 * regcache.h (deprecated_registers): Rename registers.
839 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
840 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
841 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
842 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
843 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
844 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
845 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
846 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
847 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
848 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
849 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
850 * v850ice.c: Update.
851
6411e720
AC
852Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
853
854 * utils.c (gdb_realpath): Add comment mentioning realpath with a
855 NULL buffer.
856
73937e03
AC
8572002-11-13 Andrew Cagney <cagney@redhat.com>
858
859 * regcache.h (deprecated_read_register_bytes): Rename
860 read_register_bytes.
861 (deprecated_write_register_bytes): Rename write_register_bytes.
862 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
863 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
864 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
865 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
866 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
867 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
868 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
869 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
870 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
871 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
872 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
873 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
874 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
875 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
876
fb0cd46e
JB
8772002-11-13 Jim Blandy <jimb@redhat.com>
878
879 * findvar.c (read_var_value): Doc fix.
880
2d28509a
AC
8812002-11-13 Andrew Cagney <cagney@redhat.com>
882
883 * regcache.c (struct regcache): Replace passthough_p with
884 readonly_p.
885 (regcache_xmalloc): Initialize readonly_p.
886 (build_regcache): Initialize readonly_p.
887 (regcache_save): New function.
888 (regcache_restore): New function.
889 (regcache_cpy): Re-implement using regcache_save and
890 regcache_restore.
891 (regcache_raw_read): Update.
892 (regcache_cooked_read): When a read-only cache, checked for cached
893 pseudo register values.
894 (regcache_raw_write): Assert that the cache is not read-only.
895 Remove code handling a non-passthrough cache.
896 * regcache.h (regcache_save): Declare.
897 (regcache_restore): Declare.
898
067df2e5
AC
8992002-11-13 Andrew Cagney <cagney@redhat.com>
900
901 * regcache.c (struct regcache_descr): Add fields
902 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
903 (init_legacy_regcache_descr): Compute the size of a cooked
904 register cache and then assign that to sizeof_raw_registers. Set
905 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
906 (init_legacy_regcache_descr): Ditto.
907
51b1fe4e
AC
9082002-11-13 Andrew Cagney <cagney@redhat.com>
909
910 * regcache.c (register_buffer): Move to near start of file, update
911 description.
912 (regcache_raw_read): Use.
913 (regcache_raw_write): Use.
914 (struct regcache): Rename raw_registers to registers and
915 raw_register_valid_p to register_valid_p.
916 (regcache_xmalloc): Update.
917 (regcache_xfree): Update.
918 (register_buffer): Update.
919 (regcache_cpy): Update.
920 (regcache_cpy_no_passthrough): Update.
921 (regcache_valid_p): Update.
922 (deprecated_grub_regcache_for_registers): Update.
923 (deprecated_grub_regcache_for_register_valid): Update.
924 (set_register_cached): Update.
925 (regcache_raw_write): Update.
926
80b4c677
PM
9272002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
928
929 * p-exp.y (name_not_typename): Use copy_name to
930 set current_type variable for fields of THIS.
931
0f3fafde
DJ
9322002-11-12 Daniel Jacobowitz <drow@mvista.com>
933
934 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
935 * monitor.c (init_base_monitor_ops): Likewise.
936 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
937 * remote-array.c (init_array_ops): Likewise.
938 * remote-e7000.c (init_e7000_ops): Likewise.
939 * remote-es.c (init_es1800_ops): Likewise.
940 (init_es1800_child_ops): Likewise.
941 * remote-rdp.c (init_remote_rdp_ops): Likewise.
942 * remote-sim.c (init_gdbsim_ops): Likewise.
943 * remote-st.c (init_st2000_ops): Likewise.
944 * sol-thread.c (init_sol_core_ops): Likewise.
945 (init_sol_thread_ops): Likewise.
946 * v850ice.c (init_850ice_ops): Likewise.
947 * win32-nat.c (init_child_ops): Likewise.
948 * wince.c (init_child_ops): Likewise.
949
82c0260e
AC
9502002-11-12 Andrew Cagney <ac131313@redhat.com>
951
952 * utils.c (gdb_realpath): Make rp a constant pointer.
953
70d35819
AC
9542002-11-12 Andrew Cagney <ac131313@redhat.com>
955
956 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
957 a constant buffer; cannonicalize_file_name(); realpath() with a
958 pathconf() defined buffer, xstrdup().
959
9835a8b0
AC
9602002-11-12 Andrew Cagney <ac131313@redhat.com>
961
962 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
963 to hang2.C; hang3.c to hang3.C.
964
3f47be5c
EZ
9652002-11-11 Elena Zannoni <ezannoni@redhat.com>
966
967 * findvar.c (read_var_value): Reenable TLS code.
968
9692002-11-11 Elena Zannoni <ezannoni@redhat.com>
970 Jim Blandy <jimb@redhat.com>
971
972 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
973 * target.c (update_current_target): Add
974 to_get_thread_local_address.
975 * target.h (to_get_thread_local_address): Export.
976 (target_get_thread_local_address): Define.
977 (target_get_thread_local_address_p): Define.
978 * thread-db.c: Include solib-svr4.h.
979 (td_thr_tls_get_addr_p): Define.
980 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
981 (thread_db_get_thread_local_address): New function.
982 (init_thread_db_ops): Initialize to_get_thread_local_address.
983 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
984 * configure: Regenerate.
985 * config.in: Regenerate.
986
636b1a6d
DC
9872002-11-11 David Carlton <carlton@math.stanford.edu>
988
989 * linespec.c (set_flags): New function.
990 (decode_line_1): Move code into set_flags.
991
44fe14ab
DC
9922002-11-11 David Carlton <carlton@math.stanford.edu>
993
994 * linespec.c (decode_line_1): Move chunks of code to separate
995 functions.
996 (initialize_defaults): New function.
997 (decode_indirect): New function.
998
e6f181f5
AC
9992002-11-11 Andrew Cagney <ac131313@redhat.com>
1000
8971b011
AC
1001 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1002 instead of void_code_ptr.
1003 (sigtramp_saved_pc): Ditto.
1004
e6f181f5
AC
1005 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1006 i386_fp_regnum_p.
1007
01ad7f36
DJ
10082002-11-10 Daniel Jacobowitz <drow@mvista.com>
1009
1010 * gdbtypes.h (struct main_type): Move artificial flag out of
1011 loc. New member of ``struct field'' named static_kind. Reduce
1012 overloaded meaning of bitsize.
1013 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1014 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1015 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1016
1017 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1018 new fields.
1019 (template_to_fixed_record_type, template_to_static_fixed_type)
1020 (to_record_with_fixed_variant_part): Likewise.
1021 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1022 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1023 * dwarfread.c (struct_type, enum_type): Likewise.
1024 * hpread.c (hpread_read_enum_type)
1025 (hpread_read_function_type, hpread_read_doc_function_type)
1026 (hpread_read_struct_type): Likewise.
1027 * mdebugread.c (parse_symbol): Likewise.
1028
bf1e52be
AC
10292002-11-10 Andrew Cagney <ac131313@redhat.com>
1030
1031 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1032 * stack.c (print_frame_info_base): Update.
1033 (print_frame_info_base, frame_info): Update.
1034 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1035 (sparc_frame_saved_pc): Update.
1036 * ada-lang.c (find_printable_frame): Update.
1037 * breakpoint.c (deprecated_frame_in_dummy): Update.
1038
ce556f85
MK
10392002-11-09 Mark Kettenis <kettenis@gnu.org>
1040
1041 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1042 defined.
1043 (regmap): Extend to cover all registers.
1044 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1045 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1046 definitions.
1047 (fetch_register, sore_register): Simplify.
1048 (old_fetch_inferior_registers, old_store_inferior_registers):
1049 Remove functions.
1050 (cannot_fetch_register, cannot_store_register): Change
1051 implementation to use regmap array to decide which registers
1052 cannot be fetched/stored. This removes $orig_eax from the
1053 registers that cannot be fetched/stored.
1054 (fetch_inferior_registers): Call fetch_register directly instead
1055 of calling old_fetch_inferior_registers.
1056 (store_inferior_registers): Call store_register directly instead
1057 of calling old_store_inferior_registers.
1058 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1059 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1060 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1061
932bb524
KD
10622002-11-09 Klee Dienes <kdienes@apple.com>
1063
1064 * i387-tdep.c (i387_supply_register): When called with NULL as a
1065 buffer, mark the register as not provided (to mirror the behavior
1066 of supply_register).
1067 (i387_supply_fxsave): Ditto.
1068 (i387_supply_fsave): Ditto (inherits the behavior from
1069 i387_supply_register).
1070
ebe68b27
KD
10712002-11-09 Klee Dienes <kdienes@apple.com>
1072
1073 * blockframe.c (sigtramp_saved_pc): Use
1074 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1075 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1076 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1077
15220c65
AC
10782002-11-09 Andrew Cagney <ac131313@redhat.com>
1079
1080 * frame.c (get_prev_frame): Test prev_p to identify a previously
1081 unwound frame. Initialize prev_p.
1082 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1083 comment.
1084
95adb866
AC
10852002-11-09 Andrew Cagney <ac131313@redhat.com>
1086
1087 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1088 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1089 more comments. Zap dead code.
1090
e71ecd70
MK
10912002-11-09 Mark Kettenis <kettenis@gnu.org>
1092
1093 * infcmd.c (print_vector_info, print_float_info): Move code that
1094 checks whether the target has any registers and whether there is a
1095 selected frame up, such that it is also used if a target provides
1096 multi-arch definitions of these functions.
1097
c525330d
AC
10982002-11-08 Andrew Cagney <ac131313@redhat.com>
1099
72bdd927
AC
1100 * Makefile.in (DESTDIR): Define.
1101 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1102 prefix.
1103
c525330d
AC
1104 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1105 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1106
38c968cf
AC
11072002-11-08 Andrew Cagney <ac131313@redhat.com>
1108
1109 * i386-linux-tdep.c: Include "reggroups.h".
1110 (i386_linux_register_reggroup_p): New function.
1111 (i386_linux_init_abi): Set register_reggroup_p to
1112 i386_linux_register_reggroup_p.
1113 * i386-tdep.h (i386_register_reggroup_p): Declare.
1114 * i386-tdep.c: Include "reggroups.h".
1115 (i386_init_reggroups): New function.
1116 (i386_add_reggroups): New function.
1117 (i386_register_reggroup_p): New function.
1118 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1119 (_initialize_i386_tdep): Call i386_init_reggroups.
1120 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1121 specific reggroups.
1122
19e33363
MK
11232002-11-09 Mark Kettenis <kettenis@gnu.org>
1124
371a6e84
MK
1125 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1126 request that's available in *BSD.
1127
94ba925a
MK
1128 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1129
19e33363
MK
1130 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1131 FDOFF_REGNUM.
1132
8779790c
AC
11332002-11-08 Andrew Cagney <ac131313@redhat.com>
1134
1135 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1136 * dummy-frame.c (find_dummy_frame): Rename
1137 generic_find_dummy_frame, make static. Return the dummy frame
1138 instead of the regcache.
1139 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1140 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1141 (dummy_frame_register_unwind): Rename
1142 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1143 * dummy-frame.h (dummy_frame_register_unwind): Rename
1144 generic_call_dummy_register_unwind.
1145
8674b74f
MK
11462002-11-08 Mark Kettenis <kettenis@gnu.org>
1147
1148 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1149 except the inclusion of "i386/tm-i386.h", to...
1150 * config/i386/nm-i386v42mp.h: ...here.
1151 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1152
4c1e7e9d
AC
11532002-11-08 Andrew Cagney <ac131313@redhat.com>
1154
1155 * Makefile.in (frame.o): Update dependencies.
1156 * blockframe.c (current_frame, frame_obstack_alloc)
1157 (frame_saved_regs_zalloc, get_current_frame)
1158 (set_current_frame, create_new_frame)
1159 (set_unwind_by_pc, get_next_frame)
1160 (flush_cached_frames, reinit_frame_cache)
1161 (frame_saved_regs_register_unwind)
1162 (deprecated_generic_get_saved_register)
1163 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1164 (_initialize_blockframe): Move frame code from here...
1165 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1166 "annotate.h" and "dummy-frame.h".
1167 (_initialize_frame): New function.
1168
921e78cf
JB
11692002-11-08 Jim Blandy <jimb@redhat.com>
1170
1171 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1172 when we finish a function a context.
1173 * buildsym.h (outermost_context_p): New macro.
1174 (Bug analyzed by David Edelsohn.)
1175
9c1412c1
AC
11762002-11-08 Andrew Cagney <ac131313@redhat.com>
1177
1178 * blockframe.c: Include "dummy-frame.h".
1179 (struct dummy_frame, dummy_frame_stack)
1180 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1181 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1182 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1183 (generic_save_call_dummy_addr, generic_pop_current_frame)
1184 (generic_pop_dummy_frame, generic_fix_call_dummy)
1185 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1186 dummy frame code from here...
1187 * dummy-frame.c: ...to here. New file.
1188 * dummy-frame.h: New file.
1189 (generic_call_dummy_register_unwind): Declare.
1190 (generic_find_dummy_frame): Declare.
1191 * Makefile.in (SFILES): Add dummy-frame.c.
1192 (dummy-frame.o): Specify dependencies.
1193 (dummy_frame_h): Define.
1194 (COMMON_OBS): Add dummy-frame.o.
1195 (blockframe.o): Update dependencies.
1196
208d8187
JB
11972002-11-08 Jim Blandy <jimb@redhat.com>
1198
1199 * dwarf2read.c (read_func_scope): Restore local_symbols and
1200 param_symbols after we finish the function context. (Based on a
1201 patch from David Edelsohn.)
1202
413dad4d
DC
12032002-11-08 David Carlton <carlton@math.stanford.edu>
1204
1205 * linespec.c (symbol_found): New function.
1206 (minsym_found): New function.
1207 (decode_line_1): Separate out some code into separate functions.
1208
5512c44a
JB
12092002-11-08 Joel Brobecker <brobecker@gnat.com>
1210
1211 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1212 the benefit of the interix target.
1213 * i386-tdep.h (i386_frameless_signal_p): Declare.
1214
1b33ef47
AC
12152002-11-08 Andrew Cagney <ac131313@redhat.com>
1216
1217 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1218 declaration that snuck in from change below.
1219
23a34459
AC
12202002-11-06 Andrew Cagney <cagney@redhat.com>
1221
1222 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1223 all callers.
1224 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1225 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1226 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1227 (i386_mxcsr_regnum_p): new function. Use instead of
1228 MXCSR_REGNUM_P.
1229 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1230 (i386_sse_regnum_p): Declare.
1231 (i386_mxcsr_regnum_p): Declare.
1232 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1233 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1234 (IS_FP_REGNUM): Update definition.
1235 (IS_FPU_CTRL_REGNUM): Update definition..
1236 (IS_SSE_REGNUM): Update definition..
1237 * i386v-nat.c (register_u_addr): Update.
1238 * go32-nat.c (fetch_register): Update.
1239 (store_register): Update.
1240
d709c020
JB
12412002-11-07 Joel Brobecker <brobecker@gnat.com>
1242
1243 Preparation work to convert the hppa targets to multiarch partial.
1244
1245 * hppa-tdep.c: Add new functions replacing macro bodies from
1246 config/pa/tm-hppa.h. These function will be used to initialize
1247 the gdbarch structure. Import some comments from tm-hppa.h,
1248 and place them where appropriate, to avoid loosing them when
1249 we cleanup this file.
1250 (hppa_reg_struct_has_addr): New function.
1251 (hppa_inner_than): New function.
1252 (hppa_stack_align): New function.
1253 (hppa_pc_requires_run_before_use): New function.
1254 (hppa_instruction_nullified): New function.
1255 (hppa_register_byte): New function.
1256 (hppa_register_virtual_type): New function.
1257 (hppa_store_struct_return): New function.
1258 (hppa_cannot_store_register): New function.
1259 (hppa_frame_args_address): New function.
1260 (hppa_frame_locals_address): New function.
1261 (hppa_smash_text_address): New function.
1262 (hppa_coerce_float_to_double): New function. Requires the inclusion
1263 of "language.h".
1264
1265 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1266
1267 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1268 gdbarch-eligible macro to a call to the new associated function
1269 created in hppa-tdep.c.
1270 (INNER_THAN): Likewise.
1271 (STACK_ALIGN): Likewise.
1272 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1273 (INSTRUCTION_NULLIFIED): Likewise.
1274 (REGISTER_BYTE): Likewise.
1275 (REGISTER_VIRTUAL_TYPE): Likewise.
1276 (STORE_STRUCT_RETURN): Likewise.
1277 (CANNOT_STORE_REGISTER): Likewise.
1278 (FRAME_ARGS_ADDRESS): Likewise.
1279 (FRAME_LOCALS_ADDRESS): Likewise.
1280 (SMASH_TEXT_ADDRESS): Likewise.
1281 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1282 (ABOUT_TO_RETURN): Delete, as no longer used.
1283
83c31e7d
FN
12842002-11-07 Fernando Nasser <fnasser@redhat.com>
1285
1286 * printcmd.c (disassemble_command): Remove obsolete function.
1287 (_initialize_printcmd): Do not create disassemble command here.
1288 * cli/cli-cmds.c (disassemble_command): New function. Implements
1289 disassemble command.
1290 (init_cli_cmds): Create disassemble command here instead.
1291
0ec30a36
AC
12922002-11-07 Andrew Cagney <ac131313@redhat.com>
1293
1294 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1295
e600bd34
AC
12962002-11-07 Andrew Cagney <ac131313@redhat.com>
1297
1298 * regcache.h (regcache_cooked_read_using_offset_hack)
1299 (regcache_cooked_write_using_offset_hack): Delete declarations.
1300 (register_changed): Delete declaration.
1301 * regcache.c (regcache_cooked_read_using_offset_hack)
1302 (regcache_cooked_write_using_offset_hack): Delete functions.
1303 (cooked_xfer_using_offset_hack): Delete function.
1304 (register_changed): Delete function.
1305
568f8739
JB
13062002-11-07 Jim Blandy <jimb@redhat.com>
1307
1308 * macroscope.c: #include "complaints.h".
1309 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1310 but not in the macro table.
1311 * Makefile.in (macroscope.o): Record dependency.
1312
b0718b7b
JB
13132002-11-07 Joel Brobecker <brobecker@gnat.com>
1314
1315 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1316
2b9e5f3f
AC
13172002-11-07 Andrew Cagney <ac131313@redhat.com>
1318
1319 * regcache.c (deprecated_registers_fetched): Update.
1320 * regcache.h (deprecated_registers_fetched): Rename
1321 registers_fetched.
1322 * remote-vxsparc.c (vx_read_register): Update.
1323 * remote-vxmips.c (vx_read_register): Update.
1324 * remote-vx68.c (vx_read_register): Update.
1325 * irix5-nat.c (fetch_core_registers): Update.
1326 * mipsm3-nat.c (fetch_inferior_registers): Update.
1327 * sun3-nat.c (fetch_inferior_registers): Update.
1328 * symm-nat.c (fetch_inferior_registers): Update.
1329 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1330 (fetch_core_registers): Update.
1331 (fetch_kcore_registers): Update.
1332 * mips-nat.c (fetch_inferior_registers): Update.
1333 * corelow.c (get_core_registers): Update.
1334 * a68v-nat.c (fetch_inferior_registers): Update.
1335
e6e68f1f
JB
13362002-11-06 Joel Brobecker <brobecker@gnat.com>
1337
1338 Put in place the framework necessary for multiarching the hppa targets.
1339 * hppa-tdep.c (hppa_gdbarch_init): New function.
1340 (hppa_dump_tdep): New function.
1341 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1342 tdep structure dumper.
1343 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1344 until the multi-arching conversion has partially been completed.
1345
492254e9
AC
13462002-11-06 Andrew Cagney <ac131313@redhat.com>
1347
1348 * valops.c (value_assign): Merge lval_register case into
1349 lval_reg_frame_relative. Use frame_register and
1350 regcache_cooked_write instead of get_saved_register and
1351 write_register_bytes. After flushing the register cache, try to
1352 re-select the selected frame.
1353
8262ee23
AC
13542002-11-06 Andrew Cagney <ac131313@redhat.com>
1355
1356 * regcache.h (deprecated_register_valid): Rename register_valid.
1357 * regcache.c: Update.
1358 * ia64-aix-nat.c: Update.
1359 * i386gnu-nat.c: Update.
1360 * alpha-nat.c: Update.
1361 * sparc-nat.c: Update.
1362 * lynx-nat.c: Update.
1363 * remote-mips.c: Update.
1364
4facf7e8
JB
13652002-11-06 Joel Brobecker <brobecker@gnat.com>
1366
1367 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1368 to end of file, to be more consistent with the pratice followed
1369 by other targets.
1370
f9418c0f
AC
13712002-11-06 Andrew Cagney <ac131313@redhat.com>
1372
1373 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1374 (print_float_info): Print registers in float_reggroup.
1375 (print_vector_info): Print registers in vector_reggroup.
1376 (default_print_registers_info): When all, print registers in
1377 all_reggroup. Otherwize, print registers in general_reggroup.
1378 (registers_info): Rewrite. Add support for register groups.
1379 Eliminate a goto.
1380
3fe235a7
EZ
13812002-11-06 Elena Zannoni <ezannoni@redhat.com>
1382
1383 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1384 ages.
1385 (symtab_symbol_info): Remove eons old ifdeffed out code.
1386 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1387 command.
1388
ef944135
TR
13892002-11-06 Theodore A. Roth <troth@openavr.org>
1390
1391 * c-exp.y: Add missing semi-colons.
1392 * f-exp.y: Add missing semi-colons.
1393 * m2-exp.y: Add missing semi-colons.
1394 * p-exp.y: Add missing semi-colons.
1395 Add empty action to start rule to avoid a type clash error when
1396 building with bison >= 1.50.
1397
f8302a57
JB
13982002-11-06 Jim Blandy <jimb@redhat.com>
1399
1400 * macrotab.h (struct macro_source_file): Doc fix.
1401
6e382aa3
JJ
14022002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1403
1404 * varobj.c (child_exists, cplus_number_of_children): Change
1405 STREQ macro references to strcmp.
1406 (cplus_name_of_child): Change code to handle the fact that
1407 fields are not necessarily contiguous with regards to their
1408 access control. This is a fix for PR gdb/792.
1409
a216a322
AC
14102002-11-05 Andrew Cagney <ac131313@redhat.com>
1411
1412 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1413 * gdbarch.h, gdbarch.c: Regnerate.
1414 * frame.h (frame_register): Declare.
1415 * frame.c (frame_register): New function.
1416 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1417 GET_SAVED_REGISTER, otherwize call
1418 generic_unwind_get_saved_register.
1419 (frame_register_read): Use frame_register instead of
1420 get_saved_register.
1421
7d5b6fdd
EZ
14222002-11-05 Elena Zannoni <ezannoni@redhat.com>
1423
1424 From Jim Ingham <jingham@apple.com>:
1425 * event-top.c (gdb_disable_readline): New function.
1426 (_initialize_event_loop): Move comment.
1427
b7c64260
EZ
14282002-11-05 Elena Zannoni <ezannoni@redhat.com>
1429
1430 * event-loop.c (start_event_loop): Add comment.
1431 Update copyright.
1432
c2e1b8f2
AC
14332002-11-05 Andrew Cagney <ac131313@redhat.com>
1434
1435 * infcmd.c (default_print_registers_info): Do not call
1436 PRINT_REGISTER_HOOK.
1437
87647bb0
AC
14382002-11-05 Andrew Cagney <ac131313@redhat.com>
1439
1440 * sparc-tdep.c (sparc_print_register_hook): Make static.
1441 (sparc_print_registers_info): New function.
1442 (sparc_do_registers_info): New function.
1443 (sparclet_print_registers_info): New function.
1444 (sparclet_do_registers_info): New function.
1445 (do_sparc_print_registers_info): New function.
1446 (sparc_print_registers): New static function, clone of infcmd.c's
1447 default_print_registers_info.
1448 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1449 (sparclet_do_registers_info): Declare.
1450 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1451 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1452 Re-define.
1453 (sparc_do_registers_info): Declare.
1454 (PRINT_REGISTER_HOOK): Delete macro.
1455 (sparc_print_register_hook): Delete declaration.
1456
8155455b
DC
14572002-11-05 David Carlton <carlton@math.stanford.edu>
1458
1459 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1460 functions.
1461 (lookup_symbol_aux_local): New function.
1462 (lookup_symbol_aux_symtabs): New function.
1463 (lookup_symbol_aux_psymtabs): New function.
1464
29924310
DC
14652002-11-05 David Carlton <carlton@math.stanford.edu>
1466
1467 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1468 previous values of 'objfile' and 'block'.
1469
cc303028
PM
14702002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1471
1472 * values.c (value_change_enclosing_type): Set
1473 enclosing_type field correctly also for the case where
1474 more memory needs to be allocated.
1475
1d70089a
MK
14762002-11-03 Mark Kettenis <kettenis@gnu.org>
1477
f16a25ae
MK
1478 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1479 of puts_filtered.
1480
1d70089a
MK
1481 * i387-tdep.c (i387_print_float_info): Replace calls to
1482 register_read and deprecated_read_register_gen with calls to
1483 frame_register_read, and make the necessary adjustments to the
1484 surrounding code.
1485
7e20f3fb
AC
14862002-11-02 Andrew Cagney <ac131313@redhat.com>
1487
1488 * gdbarch.sh (register_reggroup_p): Allow default value.
1489 * gdbarch.h, gdbarch.c: Regenerate.
1490
192dbe33
AC
14912002-11-02 Andrew Cagney <ac131313@redhat.com>
1492
1493 * regcache.h: Add coment indicating replacements for deprecated
1494 functions.
1495
b59ff9d5
AC
14962002-11-02 Andrew Cagney <cagney@redhat.com>
1497
1498 * reggroups.h, reggroups.c: New files.
1499 * regcache.c: Include "reggroups.h".
1500 (enum regcache_dump_what): Add `regcache_dump_groups'.
1501 (regcache_dump): Contract size of the "Type" column. When
1502 specified, dump the register's groups.
1503 (maintenance_print_register_groups): New function.
1504 (_initialize_regcache): Add command `maint print register-groups'.
1505 * Makefile.in (COMMON_OBS): Add reggroups.o
1506 (SFILES): Add reggroups.c.
1507 (reggroups_h): Define.
1508 (regcache.o, gdbarch.o): Update dependencies.
1509 (reggroups.o): Specify dependencies.
1510 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1511 Add opaque declaration for `struct reggroup' in generated .h file.
1512 Include "reggroups.h" in generated .c file.
1513 gdbarch.h, gdbarch.c: Re-generate.
1514
4caf0990
AC
15152002-11-02 Andrew Cagney <cagney@redhat.com>
1516
1517 * regcache.h (deprecated_read_register_gen): Rename
1518 read_register_gen.
1519 (deprecated_write_register_gen): Rename write_register_gen.
1520 * i387-tdep.c: Update.
1521 * x86-64-linux-nat.c: Update
1522 * wince.c: Update.
1523 * thread-db.c: Update.
1524 * win32-nat.c: Update.
1525 * mips-tdep.c: Update.
1526 * d10v-tdep.c: Update.
1527 * cris-tdep.c: Update.
1528 * remote-sim.c: Update.
1529 * remote-rdi.c: Update.
1530 * remote-rdp.c: Update.
1531 * frame.c: Update.
1532 * target.c: Update.
1533 * blockframe.c: Update.
1534 * x86-64-tdep.c: Update.
1535 * xstormy16-tdep.c: Update.
1536 * sh-tdep.c: Update.
1537 * s390-tdep.c: Update.
1538 * rs6000-tdep.c: Update.
1539 * sparc-tdep.c: Update.
1540 * i386-tdep.c: Update.
1541 * dwarf2cfi.c: Update.
1542 * regcache.c: Update.
1543
7a7adcdf
JB
15442002-11-01 Joel Brobecker <brobecker@gnat.com>
1545
1546 New interix-specific files:
1547 * config/i386/nm-interix.h: New file.
1548 * config/i386/interix.mh: New file.
1549 * config/i386/interix.mt: New file.
1550 * i386-interix-nat.c: New file.
1551 * i386-interix-tdep.c: New file.
1552
bdcdd535
AC
15532002-11-01 Andrew Cagney <cagney@redhat.com>
1554
1555 * frame.h (deprecated_generic_get_saved_register): Rename
1556 generic_get_saved_register.
1557 * blockframe.c (deprecated_generic_get_saved_register): Update.
1558 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1559 (xstormy16_frame_saved_register): Update.
1560 * sh-tdep.c (sh_gdbarch_init): Update.
1561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1562 * ia64-tdep.c (ia64_get_saved_register): Update.
1563 * cris-tdep.c (cris_gdbarch_init): Update.
1564 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1565 * arm-tdep.c (arm_gdbarch_init): Update.
1566
2a4b7c45
DJ
15672002-10-31 Daniel Jacobowitz <drow@mvista.com>
1568
1569 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1570
ef17e74b
DJ
15712002-10-31 Daniel Jacobowitz <drow@mvista.com>
1572
1573 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1574 trampolines in sigaction.
1575
4904ba5b
AC
15762002-10-31 Andrew Cagney <cagney@redhat.com>
1577
1578 * h8300-tdep.c: Include "gdb_assert.h".
1579 (h8300_print_register): Add gdbarch, file and frame parameters.
1580 Use frame_read_unsigned_register to read the register's value.
1581 Use fprintf_filtered to display output.
1582 (h8300_print_registers_info): Replace h8300_do_registers_info.
1583 (h8300_gdbarch_init): Set print_registers_info.
1584
f908a0eb
AC
15852002-10-31 Andrew Cagney <cagney@redhat.com>
1586
1587 * frame.c (frame_read_unsigned_register): New function.
1588 (frame_read_signed_register): New function.
1589 * frame.h (frame_read_unsigned_register): Declare.
1590 (frame_read_signed_register): Declare.
1591
c5646e11
AC
15922002-10-31 Andrew Cagney <cagney@redhat.com>
1593
1594 * h8500-tdep.c (h8500_print_registers_info): New static function,
1595 clone of infcmd.c's default_print_registers_info.
1596 (h8500_do_registers_info): New funtion.
1597 (h8500_print_register_hook): Rename print_register_hook, make
1598 static.
1599
1600 * config/h8500/tm-h8500.h: Update copyright.
1601 (DEPRECATED_DO_REGISTERS_INFO): Define.
1602 (h8500_do_registers_info: Declare.
1603 (PRINT_REGISTER_HOOK): Delete macro.
1604 (print_register_hook): Delete function.
1605
0bdd672b
AC
16062002-10-31 Andrew Cagney <cagney@redhat.com>
1607
1608 * z8k-tdep.c (z8k_print_register_hook): Make static.
1609 (z8k_print_registers_info): New static function, clone of
1610 infcmd.c's default_print_registers_info.
1611 (z8k_do_registers_info): New function. Wrap
1612 z8k_print_registers_info.
1613 * config/z8k/tm-z8k.h: Update copyright.
1614 (PRINT_REGISTER_HOOK): Delete macro.
1615 (z8k_print_register_hook): Delete declaration.
1616 (DEPRECATED_DO_REGISTERS_INFO): Define.
1617 (z8k_do_registers_info): Declare.
1618
bf9c25dc
JB
16192002-10-30 Joel Brobecker <brobecker@gnat.com>
1620
1621 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1622 as this is already provided by value.h, and was actually causing
1623 a compilation error because of a conflict in parameter type
1624 declaration due to a missing const keyword.
1625 (low_text_segment_addres): Fix a compilation warning.
1626
2c665b51
DJ
16272002-10-29 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1630 registers without a name.
1631 (mips_linux_cannot_store_register): Don't store registers without
1632 a name.
1633
e70ea697
DC
16342002-10-28 David Carlton <carlton@math.stanford.edu>
1635
1636 * symtab.c (find_addr_symbol): Delete. (It was already commented
1637 out.)
1638 * symtab.h: Delete prototype for find_addr_symbol.
1639
903ad3a6
AC
16402002-10-26 Andrew Cagney <cagney@redhat.com>
1641
1642 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1643 DO_REGISTERS_INFO.
1644 gdbarch.h, gdbarch.c: Re-generate.
1645 * infcmd.c (default_print_registers_info): Update reference.
1646 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1647 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1648 * sh-tdep.c (sh_gdbarch_init): Ditto.
1649 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1650 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1651
ab91194c
MK
16522002-10-26 Mark Kettenis <kettenis@gnu.org>
1653
e3033f15
MK
1654 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1655 cfi_init_extra_frame_info.
1656 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1657 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1658
b83b026c
MK
1659 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1660 target where necessary. Add more comments and remove the ones
1661 that don't provide any useful information.
1662
267bf4bb
MK
1663 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1664 deprecated_read_register_dummy with
1665 frame_unwind_unsigned_register.
1666
751f1375
MK
1667 * i386-tdep.c (i386_extract_struct_value_address): Use
1668 regcache_raw_read_unsigned instead of
1669 regcache_cooked_read_unsigned since we know that the register
1670 we're reading isn't a pseudo register. Rename variable 'val' into
1671 the more descriptive 'addr'.
1672
26abbdc4
MK
1673 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1674 (x86_64_push_return_address): Add comment.
1675 (x86_64_pop_frame): Make static.
1676 (examine_argument): Clarify comment.
1677 (x86_64_skip_prologue): Make prolog_expact variable static.
1678
9f1549cc
MK
1679 * dwarf2cfi.c: Fix some formatting problems.
1680 (context_cpy, read_encoded_pointer): Clarify comments.
1681
ab91194c
MK
1682 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1683 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1684 i386 target back into x86_64_gdbarch_init. Add some comments and
1685 remove meaningless ones.
1686
72367fb4
AC
16872002-10-25 Andrew Cagney <cagney@redhat.com>
1688
1689 * complaints.h (struct deprecated_complaint): Rename `struct
1690 complaint'.
1691 * complaints.c (complain): Update.
1692 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1693 incorrect comment indicating that "symfile.h" was being included
1694 for the `struct complaint' definition.
1695 * remote-vx.c: Update.
1696 * objc-lang.c: Update.
1697 * xcoffread.c: Update.
1698 * hpread.c: Update.
1699 * mdebugread.c: Update.
1700 * stabsread.c: Update.
1701 * dwarf2read.c: Update.
1702 * dwarfread.c: Update.
1703 * elfread.c: Update.
1704 * coffread.c: Update.
1705 * stabsread.h: Update.
1706 * dbxread.c: Update.
1707 * buildsym.c: Update.
1708 * gdbtypes.c: Update.
1709 * macrotab.c: Update.
1710
1f2baacc
MK
17112002-10-25 Mark Kettenis <kettenis@gnu.org>
1712
0c1a73d6
MK
1713 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1714 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1715 (x86_64_init_abi): ...new function.
1716
6aee4d54 1717 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1718 * i386v-nat.c: Include "i386-tdep.h".
1719
8f9cbe01
AC
17202002-10-25 Andrew Cagney <cagney@redhat.com>
1721
5f11f355
AC
1722 * gdbtypes.c (address_space_name_to_int): Update.
1723 (address_space_int_to_name): Update.
1724 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1725 multi-arch predicate.
1726 (address_class_name_to_type_flags): Ditto.
1727 * gdbarch.h, gdbarch.c: Re-generate.
1728
8f9cbe01
AC
1729 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1730
e8d96a5d
MH
17312002-10-24 Martin M. Hunt <hunt@redhat.com>
1732
1733 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1734
fe39c653
EZ
17352002-10-24 Elena Zannoni <ezannoni@redhat.com>
1736
1737 * symtab.h (INIT_SAL): Delete macro.
1738 (init_sal): Export.
1739 * symtab.c (init_sal): New function.
1740
1741 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1742 to init_sal function call.
1743 (find_sal_from_funcs_and_line): Ditto.
1744 (all_sals_for_line): Ditto.
1745 * breakpoint.c (create_internal_breakpoint): Ditto.
1746 (create_fork_vfork_event_catchpoint): Ditto.
1747 (create_exec_event_catchpoint): Ditto.
1748 (parse_breakpoint_sals): Ditto.
1749 (watch_command_1): Ditto.
1750 (handle_gnu_4_16_catch_command): Ditto.
1751 (clear_command): Ditto.
1752 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1753 * infcmd.c (run_stack_dummy): Ditto.
1754 * infrun.c (process_event_stop_test): Ditto.
1755 (check_sigtramp2): Ditto.
1756 (step_over_function): Ditto.
1757 * linespec.c (decode_line_2): Ditto.
1758 (decode_line_1): Ditto.
1759 * source.c (line_info): Ditto.
1760 * symtab.c (find_pc_sect_line): Ditto.
1761
baed091b
ML
17622002-10-24 Michal Ludvig <mludvig@suse.cz>
1763
1764 * dwarf2cfi.c (struct context)
1765 (struct context_reg): Moved to dwarf2cfi.h
1766 (context_alloc, frame_state_alloc, context_cpy):
1767 Made extern instead of static, removed prototypes.
1768 * dwarf2cfi.h (struct context)
1769 (struct context_reg): New, moved from dwarf2cfi.c
1770 (context_alloc, frame_state_alloc, context_cpy):
1771 New prototypes.
1772 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1773 Changed from static to extern.
1774 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1775 (LINUX_SIGCONTEXT_FP_OFFSET)
1776 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1777 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1778 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1779 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1780 set_gdbarch_*() calls now use x86-64 specific functions
1781 instead of DWARF2 CFI ones.
1782 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1783 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1784 (x86_64_init_extra_frame_info): New prototypes.
1785
c38da1af
DC
17862002-10-23 David Carlton <carlton@math.stanford.edu>
1787
1788 * linespec.c: #include "parser-defs.h".
1789 Delete prototype for find_template_name_end.
1790 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1791
fb9b6b35
JJ
17922002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1793
1794 * NEWS: add recent mi fixes.
1795 * varobj.c (struct varobj): Add new "updated" flag.
1796 (new_variable): Default "updated" flag to 0.
1797 (varobj_set_value): Set "updated" flag to 1 if value
1798 changes.
1799 (varobj_update): Check varobj "updated" flag before
1800 comparing old and refreshed values. Fix for
1801 PR gdb/702.
1802
8da065d5
DC
18032002-10-23 David Carlton <carlton@math.stanford.edu>
1804
1805 * parse.c (parse_exp_1): Use BLOCK_START.
1806 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1807 SYMBOL_BLOCK_VALUE.
1808 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1809
87f2f08c
DC
18102002-10-23 David Carlton <carlton@math.stanford.edu>
1811
1812 * symtab.c: Delete cplusplus_hint.
1813 Delete prototype for find_template_name_end.
1814
88cda038
EZ
18152002-10-23 Elena Zannoni <ezannoni@redhat.com>
1816
1817 * symtab.h: Update comment.
1818
2625d86c
MS
18192002-10-23 Michael Snyder <msnyder@redhat.com>
1820
1821 * printcmd.c (address_info): Restore quotes in output.
1822 * valops.c (value_of_local): Restore quotes in error message.
1823
9cc0d196
EZ
18242002-10-23 Elena Zannoni <ezannoni@redhat.com>
1825
1826 * symtab.c (symbol_demangled_name): New function.
1827 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1828 turning most of it into a function.
1829 (symbol_demangled_name): Export.
1830
19de93d0
MS
18312002-10-23 Michael Snyder <msnyder@redhat.com>
1832
1833 * valops.c (value_of_local): Restore quotes in error message.
1834
89aad1f9
EZ
18352002-10-23 Elena Zannoni <ezannoni@redhat.com>
1836
1837 * symtab.c (symbol_init_language_specific): New function.
1838 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1839 turning most of it into a function.
1840 (symbol_init_language_specific): Export.
1841
d9fa45fe
DC
18422002-10-23 David Carlton <carlton@math.stanford.edu>
1843
1844 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1845 (dwarf_attr_name): Ditto.
1846 (dwarf_type_encoding_name): Ditto.
1847 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1848 (process_die): Handle DW_TAG_namespace,
1849 DW_TAG_imported_declaration, DW_TAG_imported_module.
1850 (read_namespace): New function.
1851
1045b512
JB
18522002-10-22 Joel Brobecker <brobecker@gnat.com>
1853
1854 * configure.in: Define NEW_PROC_API on Interix too.
1855 * configure: Regenerate.
1856
18572002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1858
1859 * configure: Regenerate using the proper version of autoconf.
1860
3987b9d4
EZ
18612002-10-21 Elena Zannoni <ezannoni@redhat.com>
1862
1863 * findvar.c (read_var_value): Temporarily disable TLS code, until
1864 complete TLS support is added.
1865
9d774e44
EZ
18662002-10-21 Jim Blandy <jimb@redhat.com>
1867 Elena Zannoni <ezannoni@redhat.com>
1868
1869 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1870 for thread local storage locations.
1871 (struct symbol): Add objfile field.
1872 (SYMBOL_OBJFILE): Define.
1873 * dwarf2read.c (is_thread_local): New static variable.
1874 (new_symbol): If variable is in thread local fill in address class
1875 and objfile appropriately.
1876 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1877 stack operation.
1878 * printcmd.c (address_info): Print the information for thread
1879 local storage variable.
1880 * findvar.c (read_var_value): In case of thread local variable,
1881 defer to the target vector code to compute address.
1882
bc4a16ae
EZ
18832002-10-21 Elena Zannoni <ezannoni@redhat.com>
1884
1885 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1886 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1887
407caf07
EZ
18882002-10-21 Elena Zannoni <ezannoni@redhat.com>
1889
1890 * symtab.h (address_class): Rename
1891 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1892 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1893 * printcmd.c (address_info): Ditto.
1894 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1895
005328e3
MK
18962002-10-20 Mark Kettenis <kettenis@gnu.org>
1897
afdb036a
MK
1898 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1899 DBREG_DRX macro to acces debug registers.
1900
ca02e098
MK
1901 * Makefile.in (i386obsd-tdep.o): New target.
1902
03cc47f7
MK
1903 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1904 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1905
005328e3
MK
1906 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1907 * config/i386/obsd.mt: New file.
1908 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1909 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1910 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1911 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1912 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1913 * i386obsd-tdep.c: New file.
1914
9c96f9f2
AF
19152002-10-19 Adam Fedor <fedor@gnu.org>
1916
1917 * objc-exp.y (name_not_typename): Fix invalid comment.
1918
ce1ed485
MK
19192002-10-20 Mark Kettenis <kettenis@gnu.org>
1920
1921 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1922 to allocate partial syms and macro byte caches.
1923
1efc7aaa
DC
19242002-10-18 David Carlton <carlton@math.stanford.edu>
1925
1926 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1927
7e1d63ec
AF
19282002-10-18 Adam Fedor <fedor@gnu.org>
1929
1930 * stabsread.c (find_name_end): New function.
1931 (define_symbol): Use it.
1932
6e8d29a9
DJ
19332002-10-18 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1936 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1937 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1938 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1939
1efc7aaa 19402002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1941
1942 * symfile.h: Add opaque declaration for struct obstack.
1943 Declare obsavestring to take a const char *.
1944 * symfile.c (obsavestring): Make first argument a const char *.
1945
1aeae86e
AF
19462002-10-16 Adam Fedor <fedor@gnu.org>
1947
1948 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1949 names when matching breakpoints in current file.
1950
8b2dbe47
KB
19512002-10-16 Kevin Buettner <kevinb@redhat.com>
1952
1953 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1954 (read_tag_pointer_type): Add address class support.
1955 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1956 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1957 New methods.
1958 * gdbarch.h, gdbarch.c: Regenerate.
1959 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1960 (make_type_with_address_space, recursive_type_dump): Add address
1961 class support.
1962 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1963 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1964 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1965
74451869
KD
19662002-10-16 Klee Dienes <kdienes@apple.com>
1967
1968 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1969 to get the last character of a char[] buffer, not
1970 name[sizeof(vptr_name)-1].
1971
ff4cb3e8
AF
19722002-10-14 Adam Fedor <fedor@gnu.org>
1973
1974 * symtab.h: New objc_specific struct.
1975 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1976 (SYMBOL_DEMANGLED_NAME): Likewise.
1977
da2cf7e0
AF
19782002-10-14 Adam Fedor <fedor@gnu.org>
1979
1980 * symfile.c (init_filename_language_table): Add ObjC file extension.
1981
4a351cef
AF
19822002-10-14 Adam Fedor <fedor@gnu.org>
1983
1984 * utils.c (puts_filtered_tabular): New function.
1985 (fprintf_symbol_filtered): Get ObjC demangled name.
1986 * defs.h (puts_filtered_tabular): Declared.
1987
9750e763
KB
19882002-10-14 Kevin Buettner <kevinb@redhat.com>
1989
1990 * c-lang.h (c_type_print_varspec_prefix): Delete.
1991 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1992 ``need_post_space'' parameter. Adjust all callers.
1993
eee771c1
DJ
19942002-10-14 Daniel Jacobowitz <drow@mvista.com>
1995
1996 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1997 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1998 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1999 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2000
46c82446
AF
20012002-10-13 Adam Fedor <fedor@gnu.org>
2002
2003 * source.c (print_source_lines): Update comments.
2004
d069f99d
AF
20052002-10-13 Adam Fedor <fedor@gnu.org>
2006
2007 * valops.c (value_of_local): New function.
2008 (value_of_this): Use it.
2009 * value.h (value_of_local): Declared.
2010
53c551b7
AF
20112002-10-13 Adam Fedor <fedor@gnu.org>
2012
2013 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2014 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2015
eb392fbf
AF
20162002-10-12 Adam Fedor <fedor@gnu.org>
2017
2018 * language.c (binop_result_type): Add language_objc to case.
2019 (integral_type): Likewise.
2020 (character_type): Likewise.
2021 (string_type): Likewise.
2022 (boolean_type): Likewise.
2023 (structured_type): Likewise.
2024 (binop_type_check): Likewise.
2025
e2b23ee9
AF
20262002-10-11 Adam Fedor <fedor@gnu.org>
2027
2028 * printcmd.c (address_info): Print 'self' for ObjC.
2029
b01ab485
AF
20302002-10-11 Adam Fedor <fedor@gnu.org>
2031
2032 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2033 OP_SELF.
2034
806e6073
AF
20352002-10-11 Adam Fedor <fedor@gnu.org>
2036
2037 * language.h (CAST_IS_CONVERSION): Add language_objc.
2038
50f85cdf
AF
20392002-10-11 Adam Fedor <fedor@gnu.org>
2040
2041 * defs.h (enum language): Add language_objc.
2042
0d540cdf
KD
20432002-10-11 Klee Dienes <kdienes@apple.com>
2044
69266111 2045 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2046 * gdbcore.h (read_memory_typed_address): Add prototype.
2047 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2048 to read a value destined for a CORE_ADDR, not read_memory_integer.
2049 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2050 (f77_get_dynamic_lowerbound): Ditto.
2051
d5dc7960
MH
20522002-10-11 Martin M. Hunt <hunt@redhat.com>
2053
2054 * utils.c (string_to_core_addr): After turning string into
2055 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2056 which will do necessary sign-extension, etc.
2057
8343f86c
DJ
20582002-10-11 Daniel Jacobowitz <drow@mvista.com>
2059
2060 * c-exp.y (THIS): Delete token and grammar rule.
2061 (yylex): Don't return THIS.
2062 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2063 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2064 * demangle.c (cplus_markers): Update comment. Put '$'
2065 first. Remove CPLUS_MARKER.
2066 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2067 * jv-exp.y (THIS): Delete token and grammar rule.
2068 (yylex): Don't return THIS.
2069 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2070 * objc-exp.y (THIS): Delete token and grammar rule.
2071 (yylex): Don't return THIS.
2072 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2073 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2074 (read_member_functions): Likewise for opname.
2075 (read_tilde_fields): Use is_cplus_marker.
2076
2077 * defs.h (CPLUS_MARKER): Don't define.
2078 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2079 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2080 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2081 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2082 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2083
2084 * config/i386/tm-i386v4.h: Delete file.
2085 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2086 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2087 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2088 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2089 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2090 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2091 * config/i386/i386v4.mt (TM_FILE): Likewise.
2092 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2093
967c0d83
MM
20942002-10-10 Marko Mlinar <markom@opencores.org>
2095
2096 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2097 accidentially not commited 2002-10-09
2098 * gdbarch.h, gdbarch.c: Re-generate.
2099
f74fa174
MM
21002002-10-09 Marko Mlinar <markom@opencores.org>
2101
2102 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2103 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2104 * gdbarch.h, gdbarch.c: Re-generate.
2105
57349743
JB
21062002-10-08 Petr Sorfa <petrs@caldera.com>
2107
2108 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2109
2110 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2111 so we can work on more than one compilation unit at a time. This
2112 helps prepare GDB to handle inter-CU die references.
2113 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2114 the code to be defined before struct comp_unit_head.
2115 (comp_unit_head): Added new members - offset, cu_head,
2116 begin_die, next and dwarf2_abbrevs.
2117 (dwarf2_abbrevs): Removed single static var; now member of
2118 struct comp_unit_head.
2119 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2120 members.
2121 (psymtab_to_symtab_1): Changed to work with the new
2122 struct comp_unit_head.
2123 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2124 constructs the dwarf2_abbrevs[] inside the cu_header.
2125 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2126 dwarf2_abbrev table to clean up.
2127 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2128 handling of dwarf2_abbrevs inside the cu_header.
2129 (read_partial_die): Now supports the call to the new
2130 dwarf2_lookup_abbrev.
2131 (read_full_die): Now supports the call to the new
2132 dwarf2_lookup_abbrev.
2133
4092aadb
CF
21342002-10-06 Christopher Faylor <cgf@redhat.com>
2135
2136 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2137 insure that shell variables, such as "transformed_name" are propagated
2138 to later shell statements in rule.
2139
af0b2512
MK
21402002-10-06 Mark Kettenis <kettenis@gnu.org>
2141
2142 * config/i386/nm-i386sco.h: Add protection against
2143 multiple-inclusion. Include "i386/nm-i386v.h".
2144 (REGISTER_U_ADDR): Remove define.
2145 (i386_register_u_addr): Remove prototype.
2146
d6020d45
MS
21472002-10-04 Michael Snyder <msnyder@redhat.com>
2148
2149 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2150 before treating it as a single-step event.
2151
7248f48e
AF
21522002-10-03 Adam Fedor <fedor@gnu.org>
2153
2154 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2155 (objc_demangle): Remove assignment in if statements, Replace
2156 free with xfree.
2157 (add_msglist): Likewise.
2158 (end_msglist): Likewise.
2159 (complare_selectors): Likewise.
2160 (selectors_info): Likewise.
2161 (compare_classes): Likewise.
2162 (classes_info): Likewise.
2163 (print_object_command): Likewise.
2164 (find_objc_msgcall_submethod): Replace PTR with void *.
2165 * objc-lang.h: Remove check for __STDC__.
2166
52c6a6ac
JJ
21672002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2168
2169 * ui-out.h (ui_out_field_fmt_int): New prototype.
2170 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2171 of field width and alignment.
2172 * stack.c (print_frame_info_base): When printing frame level, use
2173 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2174 PR gdb/192
2175
7e3cec17
JJ
21762002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2177
2178 * MAINTAINERS: Add self to Write After Approval list.
2179
a58dd373
EZ
21802002-10-02 Elena Zannoni <ezannoni@redhat.com>
2181
2182 * infcmd.c (interrupt_target_command_wrapper): Delete.
2183 (interrupt_target_command): Make non static.
2184 (nofp_registers_info): Make static.
2185 * stack.c (return_command_wrapper): Delete.
2186 (return_command): Make non static.
2187
cee6ddeb
EZ
21882002-10-02 Elena Zannoni <ezannoni@redhat.com>
2189
2190 * event-top.c (gdb_setup_readline): New function. Code moved from
2191 _initialize_event_loop().
2192 (_initialize_event_loop): Call gdb_setup_readline().
2193
c4ed33b9
AC
21942002-10-02 Andrew Cagney <ac131313@redhat.com>
2195
2196 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2197 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2198 * gdbarch.h, gdbarch.c: Re-generate.
2199
cef4f5dd
DJ
22002002-10-02 Daniel Jacobowitz <drow@mvista.com>
2201
2202 Fix PR gdb/778
2203 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2204 before recursing.
2205 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2206 of fill_in_vptr_fieldno.
2207
36dc181b 22082002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2209
36dc181b
EZ
2210 * inferior.h (registers_info, stepi_command, nexti_command,
2211 continue_command, interrupt_target_command): Export from infcmd.c.
2212 * frame.h (args_info, selected_frame_level_changed_hook,
2213 return_command): Export from stack.c.
2214 * v850ice.c (stepi_command, nexti_command, continue_command): use
2215 prototypes from inferior.h.
2216 * tracepoint.c (registers_info, args_info, locals_info): Use
2217 prototypes from frame.h and inferior.h.
2218 * Makefile.in (mi-main.o): Add dependency on frame.h.
2219
6f99cb26
AC
22202002-10-02 Andrew Cagney <ac131313@redhat.com>
2221
da3eff49
AC
2222 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2223 value in register 3 adjusted by ppc_gp0_regnum.
2224
6f99cb26
AC
2225 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2226
da615bee
MM
22272002-10-02 Marko Mlinar <markom@opencores.org>
2228
2229 * MAINTAINERS: Add myself to the Write After Approval list.
2230
d154bee2
AO
22312002-10-01 Alexandre Oliva <aoliva@redhat.com>
2232
62a49b2c
AO
2233 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2234 of the section for the N64 ABI, fixed.
2235
d154bee2
AO
2236 * config/mips/tm-irix6.h: Include solib.h.
2237
ed348acc
EZ
22382002-10-01 Elena Zannoni <ezannoni@redhat.com>
2239
2240 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2241 GNU operators.
2242
da0f9dcd
AC
22432002-10-01 Andrew Cagney <ac131313@redhat.com>
2244
2245 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2246 and that "mi0" syntax has been removed.
2247
bdf64bac
DC
22482002-09-30 David Carlton <carlton@math.stanford.edu>
2249
2250 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2251 * ppc-sysv-tdep.c: #include "gdb_string.h".
2252 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2253 pacify GCC.
2254
54c2a1e6
AC
22552002-10-01 Andrew Cagney <ac131313@redhat.com>
2256
2257 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2258 "vrsave"'s register number.
2259
cedea778
AC
22602002-09-30 Andrew Cagney <ac131313@redhat.com>
2261
2262 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2263 use frame_unwind_signed_register to obtain the PC.
2264 (mips_frame_chain): Handle a generic dummy frame.
2265 (mips_init_extra_frame_info): When a generic dummy frame, don't
2266 re-compute the frame base.
2267 (mips_pop_frame): Handle generic dummy frames.
2268 (mips_gdbarch_init): When generic dummy frames, set
2269 use_generic_dummy_frames, push_dummy_frame to
2270 generic_push_dummy_frame, pc_in_call_dummy to
2271 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2272 generic_save_dummy_frame_tos.
2273
68315eb8
AC
22742002-09-30 Andrew Cagney <ac131313@redhat.com>
2275
2276 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2277 against TOP when TOP was explictly set.
2278 (generic_push_dummy_frame): Set TOP to zero.
2279
3b8630c3
EZ
22802002-09-30 Elena Zannoni <ezannoni@redhat.com>
2281
2282 * event-loop.c (start_event_loop): Rename variable 'result' to
2283 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2284
28ee05e9
KS
22852002-09-30 Keith Seitz <keiths@redhat.com>
2286
2287 * gdb-events.sh (selected_thread_changed): New event.
2288 * gdb-events.c: Regenerated.
2289 * gdb-events.h: Regenerated.
2290
6eecb1c8
HPN
22912002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2292
2293 * MAINTAINERS: Add self to Write After Approval list.
2294
92df71f0
FN
22952002-09-30 Fernando Nasser <fnasser@redhat.com>
2296
3b8630c3
EZ
2297 * disasm.c: New file.
2298 * disasm.h: New file.
92df71f0
FN
2299 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2300 (compare_lines): Ditto.
2301 (dump_insns): Ditto.
3b8630c3
EZ
2302 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2303 argument.
92df71f0 2304 (do_assembly_only): Ditto.
3b8630c3
EZ
2305 (do_disassembly): Renamed to gdb_disassembly and moved to
2306 disasm.c. Sdded uiout argument.
2307 * Makefile.in: Add new files. Reorder SFILES list. Update
2308 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2309
0c22854d
AC
23102002-09-29 Andrew Cagney <ac131313@redhat.com>
2311
2312 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2313 bfd/elf64-alpha-fbsd.c.
2314
e67f2023
AC
23152002-09-29 Andrew Cagney <ac131313@redhat.com>
2316
2317 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2318 i386gnu-tdep.c.
2319
89396210
AC
23202002-09-29 Andrew Cagney <ac131313@redhat.com>
2321
2322 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2323 __FUNCTION__.
2324 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2325 function name.
2326 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2327 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2328 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2329 (S_msg_sig_post_reply): Ditto.
2330
7079c36c
CV
23312002-09-28 Corinna Vinschen <vinschen@redhat.com>
2332
89396210
AC
2333 * sh-tdep.c (sh_use_struct_convention): Use definition according
2334 to ABI.
7079c36c
CV
2335 (sh_push_arguments): Store in register with correct endianess.
2336 (sh_default_store_return_value): Ditto.
2337 (sh_gdbarch_init): Set sizeof long double to 8.
2338
975ac915
MK
23392002-09-27 Mark Kettenis <kettenis@gnu.org>
2340
2341 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2342 Fix some whitespace problems.
2343
9bbe19fb
DC
23442002-09-27 David Carlton <carlton@math.stanford.edu>
2345
2346 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2347 (mcore-tdep.o): Ditto.
2348 (ns32k-tdep.o): Ditto.
2349 (ns32knbsd-tdep.o): Ditto.
2350 (sh3-rom.o): Ditto.
2351 (vax-tdep.o): Ditto.
2352 * cris-tdep.c: #include "gdb_string.h"
2353 * mcore-tdep.c: Ditto.
2354 * ns32k-tdep.c: Ditto.
2355 * ns32knbsd-tdep.c: Ditto.
2356 * sh3-rom.c: Ditto.
2357 * vax-tdep.c: Ditto.
2358
43b2fdc7
DC
23592002-09-27 David Carlton <carlton@math.stanford.edu>
2360
2361 * config/djgpp/fnchange.lst: Add entries for
2362 gdb/testsuite/gdb.c++/m-static files.
2363
e8cfbbd9
JW
23642002-09-27 Jim Wilson <wilson@redhat.com>
2365
2366 * MAINTAINERS: Add myself to the Write After Approval list.
2367
43b2fdc7 23682002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2369
2370 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2371
2372
9f3b7f07
AC
23732002-09-26 Andrew Cagney <ac131313@redhat.com>
2374
2375 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2376 frame.
2377
11269d7e
AC
23782002-09-26 Andrew Cagney <ac131313@redhat.com>
2379
2380 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2381 (rs6000_struct_return_address): Delete variable.
2382 (rs6000_store_struct_return): Update.
2383 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2384 deprecated_extract_struct_value_address.
2385 (rs6000_frame_align): New function.
2386 (rs6000_gdbarch_init): Set frame_align.
2387
f15ab4a7
AC
23882002-09-26 Andrew Cagney <ac131313@redhat.com>
2389
2390 From Grace Sainsbury <graces@redhat.com>:
2391 * Makefile.in (gdbtk-main.o): New target.
2392 (gdb.o): New target.
2393 (main_h): Define.
2394 (main.o): Update dependencies.
2395 (gdb$(EXEEXT)): Add gdb.o.
2396 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2397 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2398 (SUBDIR_GDBTK_CLEAN): Set.
2399 (install-gdbtk): Install the insight binary.
2400 (uninstall-gdbtk): New target.
2401 (all-gdbtk, clean-gdbtk): New rule.
2402 * top.c (use_windows): Default to zero.
2403 * main.c: Include "main.h".
2404 (main): Delete.
2405 (struct captured_main_args): Delete.
2406 (gdb_main): New function.
2407 * main.h: New file.
2408 * gdb.c: New File.
2409
e36180d7
AC
24102002-09-25 Andrew Cagney <cagney@redhat.com>
2411
2412 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2413 (frame_map_regnum_to_name): New function.
2414 (frame_map_name_to_regnum): New function.
2415 * frame.h (frame_map_name_to_regnum): Declare.
2416 (frame_map_regnum_to_name): Declare.
2417 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2418 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2419 * parse.c: Do not include "builtin-regs.h".
2420 (target_map_name_to_register): Delete function.
2421 (write_dollar_variable): Use frame_map_name_to_regnum.
2422 * parser-defs.h (target_map_name_to_register): Delete declaration.
2423 * expprint.c: Include "frame.h".
2424 (print_subexp): Use frame_map_regnum_to_name.
2425 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2426 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2427
8b69000d
AC
24282002-09-25 Andrew Cagney <ac131313@redhat.com>
2429
2430 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2431 wasn't saved, and the next innermost frame is a dummy, return the
2432 dummy frame's link register.
2433
046ca86a
JB
24342002-09-24 Jim Blandy <jimb@redhat.com>
2435
2436 Fix from Paul Breed:
2437 * main.c (captured_main): Add a `break' after the case for 'b'.
2438
94b66fa7
KS
24392002-09-24 Keith Seitz <keiths@redhat.com>
2440
2441 * varobj.c (c_type_of_child): Use get_target_type instead
2442 of TYPE_TARGET_TYPE.
2443
c214a6fd
FN
24442002-09-22 Fernando Nasser <fnasser@redhat.com>
2445
53cb0458
FN
2446 * source.c (get_current_or_default_source_symtab_and_line): Remove
2447 function.
2448 (set_default_source_symtab_and_line): New function. Attempts to
2449 determine a source file to list lines from if one is not currently
2450 defined.
2451 (get_current_source_symtab_and_line): Initialize sal.pc and
2452 sal.end fields.
2453 (set_current_source_symtab_and_line): Mark argument as const.
2454 * source.h: Update declarations and comments.
2455 * linespec.c (decode_line_1): Replace call to removed routine above.
2456 * stack.c (print_frame_info_base): Ditto.
2457 * cli/cli-cmds.c (edit_command): Ditto.
2458 (list_command): Ditto.
2459
24602002-09-22 Fernando Nasser <fnasser@redhat.com>
2461
d6020d45 2462 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2463 sal.pc and sal.end fields.
c214a6fd
FN
2464 (get_current_or_default_source_symtab_and_line): Ditto.
2465 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2466 so we do not cause a new source symtab to be searched for (reverting an
2467 unintentional change from the 2002-09-20 patch).
2468 * scm-lang.c (scm_unpac): Ditto.
2469
cc3b68a5
AC
24702002-09-21 Andrew Cagney <cagney@redhat.com>
2471
2472 * complaints.c (symfile_explanations): Remove new-line from
2473 ``isolated_message''.
2474 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2475 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2476
5835abe7
NC
24772002-09-20 Nick Clifton <nickc@redhat.com>
2478
2479 * NEWS: Announce that V850EA ISA is no longer supported.
2480 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2481
a15ef5f5
DC
24822002-09-20 David Carlton <carlton@math.stanford.edu>
2483
06ba1b39
DC
2484 * Makefile.in (c-lang.o): Correct dependencies.
2485 (utils.o): Gather dependencies.
2486 (charset.o): Move.
a15ef5f5
DC
2487 * c-lang.c: #include "gdb_string.h"
2488
87885426
FN
24892002-09-20 Fernando Nasser <fnasser@redhat.com>
2490
2491 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2492 * cli/cli-cmds.c (list_command): New function. Implements the new
2493 cli edit command.
2494 (_init_cli_cmds): Add new command definition.
2495 * gdb.1: Document edit command.
2496 * doc/gdb.texinfo: Document edit command.
2497
24982002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2499
2500 * source.c: Make global variables current_source_symtab and
2501 current_source_line static.
2502 (list_command): Moved to cli/cli-cmds.c.
2503 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2504 (get_first_line_listed): New accessor function.
2505 (get_lines_to_list): New accessor function.
2506 (get_current_source_symtab_and_line): New function. Retrieves the
2507 position in the source code that we consider current.
2508 (get_current_or_default_source_symtab_and_line): New function.
2509 Like the above but attempts to determine a default position if one
2510 is not currently defined.
2511 (set_current_source_symtab_and_line): New function. Sets the source
2512 code position considered current and returns the previously set one.
2513 (clear_current_source_symtab_and_line): Reset stored information about
2514 a current source line.
2515 (_initialize_source): Remove registration for the "list" command and
2516 its alias.
2517 * source.h: Add declarations for the new functions above.
2518 * symtab.h: Remove declarations for the global variables mentioned
2519 above.
2520 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2521 obtain current source line.
2522 * linespec.c (decode_line_1): Ditto.
2523 * macroscope.c (default_macro_scope): Ditto.
2524 * scm-lang.c (scm_unpac): Ditto.
2525 * stack.c (print_frame_info_base): Ditto.
2526 * symfile.c (clear_symtab_users): Ditto.
2527 * symtab.c (decode_line_spec): Ditto.
2528 * cli/cli-cmds.c (list_command): Moved here from source.c.
2529 (ambiguous_line_spec): Moved here from source.c.
2530 (_init_cli_cmds): Add definition for "list" and its alias.
2531 * Makefile.in: Update dependencies.
2532
ddd216ea
CV
25332002-09-20 Corinna Vinschen <vinschen@redhat.com>
2534
2535 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2536 with what gcc thinks is correct.
2537
6d305052
CV
25382002-09-20 Corinna Vinschen <vinschen@redhat.com>
2539
2540 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2541 multiple register push instruction.
2542
234b45d4
KB
25432002-09-19 Jim Blandy <jimb@redhat.com>
2544
2545 Add support for distinct host and target character sets.
2546 * charset.c, charset.h: New files.
2547 * c-exp.y: #include "charset.h".
2548 (yylex): Convert character and string literals to the target
2549 character set, before returning them as the semantic value of the
2550 token.
2551 * c-lang.c: #include "charset.h".
2552 (c_emit_char): Use charset-specific methods to recognize
2553 characters with backslash escape forms, to decide which characters
2554 to print literally and which to print using numeric escape
2555 sequences, and to convert target characters to host characters
2556 before printing.
2557 * utils.c: #include "charset.h".
2558 (no_control_char_error): New function.
2559 (parse_escape): Use charset-specific methods to recognize
2560 backslash escapes, parse `control character' notation, and convert
2561 characters from the host character set to the target character set.
2562 * configure.in: Set the default host character set.
2563 Check where to find iconv, and what its argument types might be.
2564 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2565 * Makefile.in (SFILES): List charset.c.
2566 (COMMON_OBS): List charset.o.
2567 (charset.o): New rule.
2568 (charset_h): New header dependency variable.
2569 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2570 (LIBICONV): New variable, set by configure.
2571 (CLIBS): Include $(LIBICONV) here.
2572 * aclocal.m4, config.in, configure: Regenerated.
2573
525d6a61
JB
25742002-09-19 Joel Brobecker <brobecker@gnat.com>
2575
2576 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2577 bison 1.35 warning.
2578
3ed93867
RE
25792002-09-19 Richard Earnshaw <rearnsha@arm.com>
2580
2581 * gdb_mbuild.sh: New file.
2582
437666f8
AC
25832002-09-19 Andrew Cagney <ac131313@redhat.com>
2584
2585 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2586
389e51db
AC
25872002-09-18 Andrew Cagney <ac131313@redhat.com>
2588
2589 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2590 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2591 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2592 valops.c, value.h: Revert previous change.
2593
3b4efeaa
MS
25942002-09-18 Michael Snyder <msnyder@redhat.com>
2595
2596 Preliminary support for Objective-C:
2597 * defs.h (language_objc): New enum value.
2598 (puts_filtered_tabular): Declaration only, exported from utils.c.
2599 (skip_quoted): Delete, declared in completer.h.
2600 * c-exp.y: Include completer.h.
2601 * p-exp.y: Ditto.
2602 * jv-exp.y: Ditto.
2603 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2604 New operator enum values.
2605 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2606 * language.c (binop_result_type): Handle language_objc case.
2607 (integral_type, character_type, string_type, boolean_type,
2608 structured_type, binop_type_check): Ditto.
2609 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2610 (struct objc_specific): Add to general_symbol_info.
2611 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2612 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2613 * parser-defs.h (struct objc_class_str): New struct type.
2614 (start_msglist, end_msglist, add_msglist): Declaration only,
2615 exported from objc-lang.c.
2616 * value.h (value_of_local, value_nsstring,
2617 call_function_by_hand_expecting_type): Exported from valops.c.
2618 * valops.c (find_function_addr): Export.
2619 (call_function_by_hand_expecting_type): New function.
2620 (value_of_local): New function.
2621 * symfile.c (init_filename_language_table): Add ".m" extension
2622 for Objective-C.
2623 * utils.c (puts_filtered_tabular): New function.
2624 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2625 (set/show demangle): Extend help-string to refer to ObjC.
2626 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2627 * stabsread.c (symbol_reference_defined): Objective-C symbols
2628 may contain colons: make allowances when scanning stabs strings
2629 for colons.
2630 (objc_find_colon): New function.
2631 * printcmd.c (address_info): If language == objc then print
2632 "self" instead of "this".
2633 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2634 OP_NSSTRING, and OP_SELF.
2635 (prefixify_subexp): Ditto.
2636 * source.c (print_source_lines): Mention objc in comment.
2637 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2638 method names.
2639
b9caf505
AC
26402002-09-18 Andrew Cagney <ac131313@redhat.com>
2641
2642 * complaints.h: Update copyright.
2643 (struct complaints): Declare.
2644 (struct complaint): Make `message' constant.
2645 (internal_complaint): Declare.
2646 (complaint): Declare.
2647 (complaint_root): Delete declaration.
2648 (symfile_complaints): Delete declaration.
2649 (struct complaints): Add opaque declaration.
2650 (clear_complaints): Add a complaints parameter.
2651 * complaints.c: Update copyright.
2652 (enum complaint_series): Define.
2653 (complaint_root): Delete.
2654 (struct complaints): Define.
2655 (complaint_sentinel, symfile_complaint_book): New variables.
2656 (symfile_explanations, symfile_complaints): New variables.
2657 New variables.
2658 (get_complaints): New function.
2659 (vcomplaint): New function.
2660 (complaint): New function.
2661 (internal_complaint): New function.
2662 (complain): Call vcomplain with symfile_complaint.
2663 (clear_complaints): Rewrite.
2664 (_initialize_complaints): Use add_setshow_command.
2665 * Makefile.in (complaints.o): Update dependencies.
2666 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2667 to call to clear_complaints.
2668 (new_symfile_objfile, reread_symbols): Ditto.
2669 (oldsyms_complaint): Delete.
2670 (empty_symtab_complaint, unknown_option_complaint): Delete.
2671 (free_named_symtabs): Use complaint instead of complain.
2672
d2e6263c
MS
26732002-09-18 Michael Snyder <msnyder@redhat.com>
2674
5fb2031a
AC
2675 Contributed by Apple Computer, Inc. Merged with current sources
2676 by Adam Fedor <fedor@doc.com> [cagney].
2677
d2e6263c
MS
2678 * objc-lang.c: First clean-up round: comments, indentation.
2679 * objc-lang.h: Ditto.
2680 * objc-lang.y: Ditto.
2681
dec43320
AC
26822002-09-18 Andrew Cagney <ac131313@redhat.com>
2683
2684 * maint.c (maintenance_internal_error): Print the parameter as the
2685 error message.
2686 (maintenance_internal_warning): New function.
2687 (_initialize_maint_cmds): Add command `maint internal-warning'.
2688
2689 * defs.h (internal_warning, internal_vwarning): Declare.
2690 * utils.c (struct internal_problem): Define.
2691 (internal_vproblem): New function.
2692 (internal_warning): New function.
2693 (internal_vwarning): New function.
2694 (internal_warning_problem, internal_error_problem): New variables.
2695 (internal_verror): Just call internal_vproblem.
2696
b81654f1
MS
26972002-09-18 Michael Snyder <msnyder@redhat.com>
2698
2699 * objc-lang.c: New file, support for Objective-C.
2700 Preliminary check-in, not yet integrated into gdb.
2701 * objc-lang.h: New file.
2702 * objc-exp.y: New file.
2703
0542c381
AC
27042002-09-18 Andrew Cagney <ac131313@redhat.com>
2705
7bda5e4a
AC
2706 * infrun.c (signal_stop_update): Convert definition to ISO C.
2707 (signal_print_update): Ditto.
2708 (signal_pass_update): Ditto.
2709 * inflow.c (terminal_save_ours): Ditto.
2710
5247b418
AC
2711 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2712 comments.
2713
fc60962c
AC
2714 * config/djgpp/fnchange.lst: Handle name clashes between
2715 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2716 bfd/coff-tic80.c.
2717
0542c381
AC
2718 * i386-linux-tdep.h: Fix tipo.
2719
5b924b9b
AF
27202002-09-18 Adam Fedor <fedor@gnu.org>
2721
2722 * MAINTAINERS: Add myself to the Write After Approval list.
2723
5afc051b
JB
27242002-09-18 Jim Blandy <jimb@redhat.com>
2725
2726 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2727 texthigh and textlow to reader-specific structs caused
2728 objfile_relocate to miss them. This is fixable, but the work that
2729 the change was supposed to prepare GDB for never got done anyway.
2730
eb944380
DC
27312002-09-18 David Carlton <carlton@math.stanford.edu>
2732
2733 * MAINTAINERS: Alphabetize Write After Approval list.
2734
948e66d9
DJ
27352002-09-18 Daniel Jacobowitz <drow@mvista.com>
2736
2737 Fix PR gdb/709
2738 * values.c (value_static_field): Call read_var_value.
2739
dc604539
AC
27402002-09-18 Andrew Cagney <ac131313@redhat.com>
2741
2742 * valops.c (hand_function_call): Align the initial stack pointer
2743 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2744 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2745 return value.
2746 * mips-tdep.c (mips_frame_align): New function.
2747 (mips_gdbarch_init): Set frame_align.
2748 * gdbarch.sh (FRAME_ALIGN): New method.
2749 * gdbarch.h, gdbarch.c: Re-generate.
2750
cb7e422f
ML
27512002-09-18 Michal Ludvig <mludvig@suse.cz>
2752
2753 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2754 registers.
2755
a094c6fb
AC
27562002-09-17 Andrew Cagney <ac131313@redhat.com>
2757
2758 * NEWS: Mention that MIPS $fp behavior changed.
2759 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2760 reference to FP_REGNUM.
2761 (mipsnbsd_cannot_store_register): Ditto.
2762 * mips-linux-nat.c: Update copyright.
2763 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2764 (mips_linux_cannot_store_register): Ditto.
2765 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2766 * config/mips/tm-mips.h: Update copyright.
2767 (FP_REGNUM): Delete macro.
2768 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2769 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2770 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2771 (mips_r3041_reg_names, mips_r3051_reg_names)
2772 (mips_r3081_reg_names): Replace "fp" with "".
2773 Fix PR gdb/480.
2774
45cf40d1
TR
27752002-09-17 Theodore A. Roth <troth@verinet.com>
2776
2777 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2778 generic_read_register_dummy() (PR gdb/703).
2779 (avr_push_return_address): #if 0 out unused vars.
2780 (avr_gdbarch_init): Enable use of avr_push_return_address().
2781
c7e701b5
MS
27822002-09-17 Michael Snyder <msnyder@redhat.com>
2783
d76ba2a5 2784 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2785 RTE will take care of it.
2786
20bcf01c
AC
27872002-09-17 Andrew Cagney <ac131313@redhat.com>
2788
2789 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2790 invalid, return SP_REGNUM.
2791
009a9971 27922002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2793
2794 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2795 point registers without sign extension.
2796
135c175f
AC
27972002-09-17 Andrew Cagney <cagney@redhat.com>
2798
2799 * blockframe.c (deprecated_read_register_dummy): Rename
2800 generic_read_register_dummy.
2801 * frame.c (frame_unwind_signed_register): New function.
2802 (frame_unwind_unsigned_register): New function.
2803 * frame.h (frame_unwind_signed_register): Declare.
2804 (frame_unwind_unsigned_register): Declare.
2805 (deprecated_read_register_dummy): Rename
2806 generic_read_register_dummy.
2807
2808 * h8300-tdep.c (h8300_frame_chain): Update.
2809 (h8300_frame_saved_pc): Update.
2810 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2811 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2812 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2813 (s390_frame_chain): Update.
2814 * v850-tdep.c (v850_find_callers_reg): Update.
2815 (v850_frame_saved_pc): Update.
2816 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2817 (m32r_find_callers_reg): Update.
2818 (m32r_frame_saved_pc): Update.
2819 * sh-tdep.c (sh_find_callers_reg): Update.
2820 (sh64_get_saved_pr): Update.
2821 (sh_init_extra_frame_info): Update.
2822 (sh_init_extra_frame_info): Update.
2823 (sh64_init_extra_frame_info): Update.
2824 (sh64_init_extra_frame_info): Update.
2825 * mcore-tdep.c (mcore_find_callers_reg): Update.
2826 (mcore_frame_saved_pc): Update.
2827 (mcore_init_extra_frame_info): Update.
2828 * i386-tdep.c (i386_frame_saved_pc): Update.
2829 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2830 (ia64_init_extra_frame_info): Update.
2831 (ia64_init_extra_frame_info): Update.
2832 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2833 * cris-tdep.c (cris_init_extra_frame_info): Update.
2834 * avr-tdep.c (avr_frame_chain): Update.
2835 (avr_init_extra_frame_info): Update.
2836 (avr_frame_saved_pc): Update.
2837 * arm-tdep.c (arm_find_callers_reg): Update.
2838 (arm_init_extra_frame_info): Update.
2839 (arm_frame_saved_pc): Update.
2840
a741e514
TT
28412002-09-17 Tom Tromey <tromey@redhat.com>
2842
2843 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2844 is "'".
2845
d1a8e808
CV
28462002-09-17 Corinna Vinschen <vinschen@redhat.com>
2847
2848 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2849 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2850 NEXT_PROLOGUE_INSN.
2851 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2852 NEXT_PROLOGUE_INSN.
2853
d9025a18
JB
28542002-09-16 Joel Brobecker <brobecker@gnat.com>
2855
2856 * osfsolib.c: Remove file, replaced by solib-osf.c.
2857 * Makefile.in: Remove compilation rules for osfsolib.c.
2858
1b2ef1b6
DC
28592002-09-16 David Carlton <carlton@math.stanford.edu>
2860
2861 * cp-valprint.c (cp_print_class_method): Correct args to
2862 check_stub_method_group.
2863
928e48af
CV
28642002-09-16 Corinna Vinschen <vinschen@redhat.com>
2865
2866 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2867 `set architecture'. Unify naming convention of functions.
2868 (h8300_skip_prologue): Improve prologue analysis.
2869 (h8300_push_arguments): Rewritten to more closely match GCC's
2870 bizarre argument-passing behavior, along with the comment describing
2871 said behavior.
2872 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2873 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2874 sim, remote-e7000.c, remote-hms.c and remote.c
2875
5e3397bb
MK
28762002-09-15 Mark Kettenis <kettenis@gnu.org>
2877
2878 * i386-tdep.c (gdb_print_insn_i386): Removed.
2879 (i386_print_insn): New function.
2880 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2881 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2882 tm_print_insn_info.
2883
f710f4fc
MK
28842002-09-14 Mark Kettenis <kettenis@gnu.org>
2885
2886 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2887 zero.
2888
db54fef4
CV
28892002-09-14 Corinna Vinschen <vinschen@redhat.com>
2890
2891 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2892 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2893 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2894
2becadee
CF
28952002-09-13 Christopher Faylor <cgf@redhat.com>
2896
2897 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2898
de17c821
DJ
28992002-09-13 Daniel Jacobowitz <drow@mvista.com>
2900
2901 * gdbtypes.c (check_stub_method): Make static.
2902 (check_stub_method_group): New function.
2903 * gdbtypes.h: Update prototypes.
2904 * cp-support.c: New file.
2905 * cp-support.h: New file.
2906
2907 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2908 (update_method_name_from_physname): New function.
2909 (read_member_functions): Correct method names for operators
2910 and v3 constructors/destructors. Separate v2 constructors and
2911 destructors.
2912 * Makefile.in (stabsread.o): Update dependencies.
2913 (SFILES): Add cp-support.c.
2914 (COMMON_OBS): Add cp-support.o.
2915 (cp_support_h, cp-support.o): Add.
2916
2917 * cp-valprint.c (cp_print_class_method): Call
2918 check_stub_method_group instead of check_stub_method. Remove
2919 extraneous QUITs.
2920 * p-valprint.c (pascal_object_print_class_method): Likewise.
2921 * valops.c (search_struct_method): Likewise.
2922 (find_method_list, value_struct_elt_for_reference): Likewise.
2923
e76cff22
AC
29242002-09-13 Andrew Cagney <cagney@redhat.com>
2925
2926 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2927 * gdbarch.h, gdbarch.c: Regenerate.
2928
905abb3f
AC
29292002-09-13 Andrew Cagney <ac131313@redhat.com>
2930
2931 * frame.c (find_saved_register): Delete function.
2932 * frame.h (find_saved_register): Delete declaration.
2933 Fix PR gdb/631.
2934
64159455
AC
2935Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2936
2937 * mips-tdep.c (read_next_frame_reg): Re-hack using
2938 frame_register_unwind.
2939
795e1e11
AC
2940Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2941
2942 * mips-tdep.c (mips_get_saved_register): Re-hack using
2943 frame_register_unwind.
2944
5720643c
JB
29452002-09-12 Joel Brobecker <brobecker@gnat.com>
2946
2947 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2948 vector. Will be useful for Interix.
2949 * gdbarch.h, gdbarch.c: Regenerate.
2950
2951 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2952 name of the malloc function by NAME_OF_MALLOC.
2953
3bada2a2
JB
29542002-09-12 Joel Brobecker <brobecker@gnat.com>
2955
2956 * value.h (find_function_in_inferior): Add const keyword to
2957 one of the parameters. Allows us to invoke this function with
2958 a const char *.
2959 * valops.c (find_function_in_inferior): Likewise.
2960
3db26b01
JB
29612002-09-12 Joel Brobecker <brobecker@gnat.com>
2962
2963 * exec.c (xfer_memory): Fix compilation warning with old versions
2964 of GCC.
2965 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2966
17c5ed2c
DC
29672002-09-12 David Carlton <carlton@math.stanford.edu>
2968
2969 * symtab.h: Run through gdb_indent.h.
2970 Add 2002 to Copyright year list.
2971
ecd1107e
AM
29722002-09-12 Alan Modra <amodra@bigpond.net.au>
2973
2974 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2975 mach constants.
2976 * MAINTAINERS: Add myself to write after approval list.
2977
e64f66d1
JB
29782002-09-11 J. Brobecker <brobecker@gnat.com>
2979
2980 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2981
f9395794
JB
29822002-09-11 J. Brobecker <brobecker@gnat.com>
2983
2984 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2985 Interix.
2986
1a303dec
MS
29872002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2988
2989 * procfs.c (do_detach): Clear current signal, not just fault.
2990 Corrects problem with breakpoint trap signal leaking to detached
2991 process on Tru64.
2992
c0219d42
MS
29932002-09-10 Michael Snyder <msnyder@redhat.com>
2994
2995 * buildsym.c (finish_block): Protect against null pointer.
2996
9d84ac84
AC
29972002-09-10 Andrew Cagney <cagney@redhat.com>
2998
2999 * infcmd.c (default_print_registers_info): Send all output to
3000 ``file'' instead of ``gdb_stdout''.
3001
77d8f2b4
MS
30022002-09-10 Michael Snyder <msnyder@redhat.com>
3003
3004 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3005 LONGEST, and use signed register read (addresses are sign-
3006 extended for mips).
3007
99656a61
SC
30082002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3009
3010 * event-loop.c (gdb_do_one_event): Make public.
3011 * event-loop.h (gdb_do_one_event): Declare.
3012
da12f4d8
JL
30132002-09-10 Jeff Law <law@redhat.com>
3014
3015 * infttrace.c (child_resume): Simplify and rework to avoid
3016 TT_PROC_CONTINUE.
3017
d0aee0c4
FF
30182002-09-09 Fred Fish <fnf@intrinsity.com>
3019
3020 * printcmd.c (print_scalar_formatted): "len" is the number of
3021 target bytes, NOT the number of target bits.
3022
7cb3ec5e
EZ
30232002-09-09 Elena Zannoni <ezannoni@redhat.com>
3024
3025 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3026 * top.c (init_main): Set rl_terminal_name.
3027
4dc81987
AS
30282002-09-08 Aidan Skinner <aidan@velvet.net>
3029
3030 * ada-lang.c (ada_array_bound, ada_type_match,
3031 _initialize_ada_language): Fix K&R definitions.
3032 * ada-tasks.c (get_current_task): Fix K&R definitions.
3033 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3034
842330b4
CF
30352002-09-07 Christopher Faylor <cgf@redhat.com>
3036
3037 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3038 Add XP.
3039
43156d82
MK
30402002-09-06 Mark Kettenis <kettenis@gnu.org>
3041
66da5fd8
MK
3042 * i386-tdep.c (i386_register_virtual_type,
3043 i386_register_convertible, i386_register_convert_to_virtual,
3044 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3045 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3046 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3047 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3048 Don't set push_arguments twice.
3049
4b218c18
MK
3050 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3051 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3052 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3053 sigtramp_end to NULL.
3054 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3055 defines.
3056 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3057
4cc314d5
MK
3058 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3059 whitespace.
3060
43156d82
MK
3061 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3062 * gdbarch.h, gdbarch.c: Re-generate.
3063 * blockframe.c (find_pc_sect_partial_function): Convert to use
3064 SIGTRAMP_START_P predicate.
3065
6672060b
MS
30662002-09-05 Michael Snyder <msnyder@redhat.com>
3067
a90c3637
MS
3068 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3069 generic_dummy_frame method and old method. Also distinguish
3070 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3071 (arm_extract_return_value): Use new regcache method.
a90c3637 3072
6672060b
MS
3073 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3074 adjustment that doesn't conform to the ABI.
3075 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3076 saved regcache, not from current regcache.
3077
299ffc64
AC
30782002-09-05 Andrew Cagney <ac131313@redhat.com>
3079
3080 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3081 * README: Update.
3082
a3a2ee65
JT
30832002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3084
3085 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3086 if arm_apcs_32 is false.
3087
2bc7eea9
AC
30882002-09-04 Andrew Cagney <ac131313@redhat.com>
3089
3090 GDB 5.3 branch created.
3091
8a55a7c5
TR
30922002-09-03 Theodore A. Roth <troth@verinet.com>
3093
3094 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3095 generic_unwind_get_saved_register.
3096
e26fb1d7
DC
30972002-09-03 David Carlton <carlton@math.stanford.edu>
3098
3099 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3100 argument (PR gdb/653). Update call to smash_to_method_type.
3101 (read_structure_scope): Update call to dwarf2_add_member_fn.
3102
30d52491
ML
31032002-09-03 Michal Ludvig <mludvig@suse.cz>
3104
3105 * x86-64-linux-tdep.c: Include gdb_string.h
3106 * x86-64-linux-nat.c: Ditto.
3107
06891d83
JT
31082002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3109
3110 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3111 when YYDEBUG is set to 1.
3112 * c-exp.y: Likewise.
3113 * f-exp.y: Likewise.
3114 * jv-exp.y: Likewise.
3115 * m2-exp.y: Likewise.
3116 * p-exp.y: Likewise.
3117
7d400e77
JT
31182002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3119
3120 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3121 dependency list.
3122 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3123 solib_svr4_fetch_link_map_offsets to
3124 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3125 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3126 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3127 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3128 solib-svr4.o, and solib-legacy.o.
3129 * config/i386/tm-nbsd.h: Include solib.h.
3130
704a27c4
JT
31312002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3132
3133 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3134 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3135 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3136 comment noting that this needs its own target configuration.
3137 * config/i386/nbsd.mt: New file.
3138 * config/i386/nbsdaout.mt: Remove.
3139 * config/i386/nbsdelf.mt: Ditto.
3140 * config/i386/tm-nbsdaout.h: Ditto.
3141
d66198e1
JT
31422002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3143
3144 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3145 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3146 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3147 tdep->sigtramp_end.
3148 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3149 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3150 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3151
3cac699e
JT
31522002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3153
3154 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3155 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3156 * i386-tdep.h (i386bsd_init_abi): New prototype.
3157 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3158 function declaration.
3159 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3160 for NetBSD-a.out or NetBSD-ELF.
3161 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3162 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3163 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3164 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3165 and nbsd-tdep.h.
3166 (i386nbsd_pc_in_sigtramp): New function.
3167 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3168 i386nbsd_pc_in_sigtramp.
3169 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3170 and i386nbsdelf_init_abi OS ABI handlers.
3171 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3172 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3173
7010ca0a
MK
31742002-09-02 Mark Kettenis <kettenis@gnu.org>
3175
3176 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3177 registers if the target really has them.
3178
6dd93b72
JT
31792002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3180
3181 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3182 than nbsd-tdep.h.
3183
2ca8ae21
JT
31842002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3185
3186 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3187 list.
3188 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3189 (alphanbsd_skip_sigtramp_frame): New functions.
3190 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3191 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3192 to alphanbsd_sigcontext_addr.
3193
3d9b49b0
JT
31942002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3195
3196 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3197 list.
3198 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3199 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3200 nbsd_pc_in_sigtramp.
3201 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3202 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3203 * nbsd-tdep.c: Include gdb_string.h.
3204 (nbsd_pc_in_sigtramp): New function.
3205 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3206 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3207 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3208 ppcnbsd_pc_in_sigtramp.
3209 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3210 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3211 shnbsd_pc_in_sigtramp.
3212 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3213 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3214 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3215
c860120c
PM
32162002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3217
3218 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3219 watchpoints to NULL.
3220 (insert_breakpoints): set val field of watchpoints if NULL.
3221
3222
c7612d53
JB
32232002-08-29 Jim Blandy <jimb@redhat.com>
3224
3225 * symtab.c (lookup_symbol_aux): In the cases where we find a
3226 minimal symbol of an appropriate name and use its address to
3227 select a symtab to read and search, use `name' (as passed to us)
3228 as the demangled name when searching the symtab's global and
3229 static blocks, not the minsym's name.
3230
66609862
KS
32312002-08-29 Keith Seitz <keiths@redhat.com>
3232
3233 * stack.c (print_frame_info_base): Always set current_source_symtab
3234 and current_source_line.
3235
151fefe2
JB
32362002-08-29 Donn Terry <donnte@microsoft.com>
3237
3238 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3239
bfb3754e
KS
32402002-08-28 Keith Seitz <keiths@redhat.com>
3241
3242 * stack.c (select_frame): Add FIXME concerning selected-frame
3243 events.
3244 (select_frame_command): Send selected-frame-level-changed
3245 event notification, but only if the level actually changed.
3246 (up_silently_base): Add selected-frame-level-changed event
3247 notification.
3248 (down_silently_base): Likewise.
3249
e822a2a0
AC
32502002-08-28 Andrew Cagney <ac131313@redhat.com>
3251
3252 * Makefile.in: Update dependencies for all gdb/*.c files.
3253
309367d4
TT
32542002-08-27 Tom Tromey <tromey@redhat.com>
3255
3256 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3257 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3258 Update dependencies.
3259 * i387-tdep.c: Include gdb_string.h.
3260 * osabi.c: Likewise.
3261 * i386-linux-nat.c: Likewise.
3262 * lin-lwp.c: Likewise.
3263 * ax-gdb.c: Likewise.
3264 * signals/signals.c: Likewise.
3265 * jv-valprint.c: Likewise.
3266 * p-lang.c: Likewise.
3267 * c-valprint.c: Likewise.
3268 * cp-abi.c: Likewise.
3269
e1507482
EZ
32702002-08-27 Elena Zannoni <ezannoni@redhat.com>
3271
3272 * cli/cli-script.h (copy_command_lines): Export.
3273 * breakpoint.c: Include cli/cli-script.h.
3274 * Makefile.in (breakpoint.o): Update dependencies.
3275
c6510018
MS
32762002-08-26 Michael Snyder <msnyder@redhat.com>
3277
3278 * breakpoint.c (insert_breakpoints): Protect all references
3279 to 'process_warning'. Shorten long lines.
3280
c2b8ed2c
MS
32812002-08-26 Joel Brobecker <brobecker@gnat.com>
3282
3283 * cli/cli-script.c (copy_command_lines): New function.
3284 * defs.h (copy_command_lines): Export.
3285 * testsuite/gdb.base/commands.exp: New tests for commands
3286 attached to a temporary breakpoint, and for commands that
3287 delete the breakpoint they are attached to.
3288
32892002-08-26 Michael Snyder <msnyder@redhat.com>
3290
3291 * breakpoint.c (bpstat_stop_status): Instead of copying the
3292 pointer to the breakpoint commands struct, make a new copy
3293 of the struct and point to that.
3294 (bpstat_clear): Free the commands struct.
3295 (bpstat_clear_actions): Free the commands struct.
3296 (bpstat_do_actions): Free the command actions. Also execute
3297 the local cleanups, instead of deleting them.
3298 (delete_breakpoint): Leave the commands field of the bpstat
3299 chain alone -- it will be freed later.
3300
64b84175
KB
33012002-08-26 Kevin Buettner <kevinb@redhat.com>
3302
3303 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3304 deleted in 2002-08-20 commit. This function is still used by
3305 ppc-linux-nat.c.
3306
55970da6
KS
33072002-08-26 Keith Seitz <keiths@redhat.com>
3308
3309 * gdb-events.sh: Add selected-frame-level-changed event.
3310 * gdb-events.c: Regenerated.
3311 * gdb-events.h: Regenerated.
3312
a790ad35
SC
33132002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3314
3315 Fix PR gdb/393:
3316 * inflow.c (terminal_save_ours): New function to save terminal
3317 settings.
3318 * inferior.h (terminal_save_ours): Declare.
3319 * target.c (debug_to_terminal_save_ours): New function.
3320 (cleanup_target): Defaults to_terminal_save_ours.
3321 (update_current_target): Inherit to_terminal_save_ours.
3322 (setup_target_debug): Set to_terminal_save_ours.
3323 * target.h (target_terminal_save_ours): New to save terminal settings.
3324 (target_ops): New member to_terminal_save_ours.
3325 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3326 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3327 * inftarg.c (init_child_ops): Likewise.
3328 * m3-nat.c (init_m3_ops): Likewise.
3329 * procfs.c (init_procfs_ops): Likewise.
3330 * wince.c (init_child_ops): Likewise.
3331 * win32-nat.c (init_child_ops): Likewise.
3332 * sol-thread.c (init_sol_thread_ops): Likewise.
3333
c00dcbe9
MK
33342002-08-26 Mark Kettenis <kettenis@gnu.org>
3335
3d7f4f49
MK
3336 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3337 use regcache_* functions.
3338 (i386_gdbarch_init): Set store_return_value instead of
3339 deprecated_store_return_value.
3340
c00dcbe9
MK
3341 * regcache.c (regcache_raw_write_signed,
3342 regcache_raw_write_unsigned): New functions.
3343 * regcache.h (regcache_raw_write_signed,
3344 regcache_raw_write_unsigned): New prototypes.
3345
0e0d15ca
AC
33462002-08-25 Andrew Cagney <ac131313@redhat.com>
3347
3348 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3349 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3350 source file dependencies. Cleanup corresponding generator rules.
3351
d3b22ed5
AC
33522002-08-25 Andrew Cagney <ac131313@redhat.com>
3353
3354 * regcache.h (register_offset_hack): Declare.
3355 (regcache_cooked_read_using_offset_hack): Declare.
3356 (regcache_cooked_write_using_offset_hack): Declare.
3357
3358 * regcache.c (register_offset_hack): New function.
3359 (regcache_cooked_read_using_offset_hack): New function.
3360 (regcache_cooked_write_using_offset_hack): New function.
3361 (regcache_dump): Check that the registers, according to their
3362 offset, are packed hard against each other.
3363 (cooked_xfer_using_offset_hack): New function.
3364
bb425013
AC
33652002-08-25 Andrew Cagney <ac131313@redhat.com>
3366
3367 * regcache.c (struct regcache_descr): Add field register_type.
3368 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3369 in as a parameter
3370 (init_regcache_descr): Initialize register_type. Pass the descr
3371 to init_legacy_regcache_descr. Use register_type instead of
3372 REGISTER_VIRTUAL_TYPE.
3373 (register_type): New function.
3374 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3375 * regcache.h (register_type): Declare.
3376
d0403e00
AC
33772002-08-25 Andrew Cagney <ac131313@redhat.com>
3378
3379 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3380 instead of deprecated_store_return_value. Fix fallout from
3381 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3382
0ed04cce
AC
33832002-08-25 Andrew Cagney <ac131313@redhat.com>
3384
3385 * regcache.c (max_register_size): New function.
3386 (init_legacy_regcache_descr): Ensure that max_register_size is
3387 large enough for REGISTER_VIRTUAL_SIZE.
3388 * regcache.h (max_register_size): Declare.
3389
46d79c04
AC
33902002-08-24 Andrew Cagney <ac131313@redhat.com>
3391
3392 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3393 store_return_value.
3394 (e500_extract_return_value): Change type of valbuf pointer to
3395 void.
3396
853c7bd0
MK
33972002-08-24 Mark Kettenis <kettenis@gnu.org>
3398
cd87e769
MK
3399 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3400 workaround.
3401
853c7bd0
MK
3402 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3403 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3404 long long) to prevent compiler warning on 64-bit systems.
3405
ebba8386
AC
34062002-08-23 Andrew Cagney <cagney@redhat.com>
3407
3408 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3409 (DEPRECATED_STORE_RETURN_VALUE): New method.
3410 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3411 * gdbarch.h, gdbarch.c: Re-generate.
3412
3413 * values.c (set_return_value): Pass current_regcache to
3414 STORE_RETURN_VALUE.
3415 * arch-utils.h (legacy_store_return_value): Declare.
3416 * arch-utils.c (legacy_store_return_value): New function.
3417 (legacy_extract_return_value): Update parameters.
3418
3419 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3420 STORE_RETURN_VALUE.
3421 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3422 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3423 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3424 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3425 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3426 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3427 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3428 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3429 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3430 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3431
3432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3433 * i386-tdep.c (i386_extract_return_value): Update.
3434 * arch-utils.c (legacy_extract_return_value): Update.
3435 * frv-tdep.c (frv_gdbarch_init): Update.
3436 * cris-tdep.c (cris_gdbarch_init): Update.
3437 * d10v-tdep.c (d10v_gdbarch_init): Update.
3438 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3439 * m68k-tdep.c (m68k_gdbarch_init): Update.
3440 * mcore-tdep.c (mcore_gdbarch_init): Update.
3441 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3442 * s390-tdep.c (s390_gdbarch_init): Update.
3443 * sparc-tdep.c (sparc_gdbarch_init): Update.
3444 * sh-tdep.c (sh_gdbarch_init): Update.
3445 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3446 * v850-tdep.c (v850_gdbarch_init): Update.
3447 * avr-tdep.c (avr_gdbarch_init): Update.
3448 * ia64-tdep.c (ia64_gdbarch_init): Update.
3449 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3450 * vax-tdep.c (vax_gdbarch_init): Update.
3451 * alpha-tdep.c (alpha_gdbarch_init): Update.
3452 * arm-tdep.c (arm_gdbarch_init): Update.
3453 * mips-tdep.c (mips_gdbarch_init): Update.
3454 * i386-tdep.c (i386_gdbarch_init): Update.
3455
5bd8c6d0
AC
34562002-08-23 Andrew Cagney <ac131313@redhat.com>
3457
3458 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3459 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3460
e73e1724
MK
34612002-08-24 Mark Kettenis <kettenis@gnu.org>
3462
3463 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3464 problems.
3465
3e6564e1
JB
34662002-08-23 Joel Brobecker <brobecker@gnat.com>
3467
3468 * infrun.c (handle_inferior_event): Move a comment outside of a
3469 function call, in order to avoid indent reformatting this part
3470 of the code in an unreadable way.
3471
81d0cc19
GS
34722002-08-23 Grace Sainsbury <graces@redhat.com>
3473
3474 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3475 when breakpoints fail. Move general breakpoint error messages to
3476 insert_breakpoints.
3477 * breakpoint.c (insert_breakpoints): Change warnings when
3478 breakpoints are nto inserted to specify the type. Remove call to
3479 memory_error when hardware breakpoints can't be inserted. Remove
3480 multiple calls to warning so all messages are sent to the user at
3481 once.
3482 (delete_breakpoints): Make insert error messsages more explicit.
3483
17574093
DJ
34842002-08-23 Daniel Jacobowitz <drow@mvista.com>
3485
3486 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3487 gdbserver/ChangeLog.
3488
8acc2935
MK
34892002-08-23 Mark Kettenis <kettenis@gnu.org>
3490
dfe01d39
MK
3491 * i386-tdep.c: Include "objfiles.h".
3492 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3493 skip_trampoline_code.
3494 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3495 (CPLUS_MARKER): Define to '.'.
3496
8acc2935
MK
3497 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3498 member.
3499 (linux_corefile_thread_callback): Increase args->num_notes.
3500 (linux_make_note_section): Initialize thread_args.num_notes, and
3501 use it to determine whether notes for any threads were created.
3502
151fefe2 35032002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3504
3505 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3506 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3507 and PCUNKILL.
3508 (write_with_trace): Conditionalize out the switch branch handling
3509 PCSHOLD if the corresponding macro is not defined. Likewise for
3510 PRSABORT and PRSTOP.
3511 This change will be needed by the Interix port.
3512
e1507482
EZ
35132002-08-22 Elena Zannoni <ezannoni@redhat.com>
3514
3515 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3516 write_register wherever possible instead of manipulating the
3517 register bytes directly.
3518 Assign VALUE_CONTENTS to a variable and use that.
3519 The GPR numbers are now dependent on the architecture.
3520
96ff0de4
EZ
35212002-08-22 Elena Zannoni <ezannoni@redhat.com>
3522
3523 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3524 ev_offset fields.
3525 (skip_prologue): Add support for BookE/e500 instructions.
3526 (e500_extract_return_value): New function.
3527 (frame_get_saved_regs): Add support for saving ev registers and
3528 pseudo gpr's.
3529 (e500_store_return_value): New function.
3530 (rs6000_gdbarch_init): Move up default intializations of
3531 deprecated_extract_return_value and store_return_value. Overwrite
3532 init of store_return_value with e500 specific version.
3533 Set extract_return_value for e500.
3534
fbefca5b
EZ
35352002-08-22 Elena Zannoni <ezannoni@redhat.com>
3536
3537 * blockframe.c (generic_call_dummy_register_unwind): Use
3538 regcache_cooked_read to catch cases in which the variable is
3539 stored in a pseudo register.
3540
4d210288
AC
35412002-08-22 Andrew Cagney <cagney@redhat.com>
3542
3543 * NEWS: Mention that the i960 has been made obsolete.
3544 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3545 i960-tdep.c
3546 (remote-nrom.o): Obsolete target.
3547 (remote-nindy.o, i960-tdep.o): Ditto.
3548 * remote-nrom.c: Make file obsolete.
3549 * remote-nindy.c, remote-vx960.c: Ditto.
3550 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3551 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3552 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3553 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3554 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3555 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3556 i960-*-vxworks* obsolete.
3557 * MAINTAINERS: Note that the i960 is obsolete.
3558
6c0c456d
CV
35592002-08-21 Corinna Vinschen <vinschen@redhat.com
3560
3561 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3562 detach to allow reinitialization.
3563
9f9d12b3
AC
35642002-08-22 Andrew Cagney <ac131313@redhat.com>
3565
3566 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3567 attempt).
3568
ebeb39fe
JB
35692002-08-22 Jim Blandy <jimb@redhat.com>
3570
3571 * coffread.c (coff_symfile_read): Don't try to read the line
3572 number table from disk if the image file doesn't have a symbol
3573 table; we'll never actually look at the info anyway, and Windows
3574 ships DLL's with bogus file offsets for the line number data.
3575
5bf1c677
EZ
35762002-08-21 Elena Zannoni <ezannoni@redhat.com>
3577
3578 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3579 an e500 executable.
3580
71b8ef93
MS
35812002-08-21 Michael Snyder <msnyder@redhat.com>
3582
3583 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3584 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3585 (DEFAULT_MIPS_TYPE): Delete unused macro.
3586 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3587 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3588
d174216d
JB
35892002-08-21 Jim Blandy <jimb@redhat.com>
3590
3591 * valops.c (value_cast): Simplify and correct logic for doing a
3592 static cast from a pointer to a base class to a pointer to a
3593 derived class.
3594
0ab7a791
AC
35952002-08-21 Andrew Cagney <ac131313@redhat.com>
3596
3597 * infcmd.c (default_print_registers_info): Replace
3598 do_registers_info.
3599 (registers_info): Use gdbarch_print_registers_info instead of
3600 DO_REGISTERS_INFO.
3601 * inferior.h (default_print_registers_info): Replace
3602 do_registers_info.
3603 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3604 (DO_REGISTERS_INFO): Change to a predicate function.
3605 * gdbarch.h, gdbarch.c: Regenerate.
3606
e23792cc
KS
36072002-08-21 Keith Seitz <keiths@redhat.com>
3608
3609 * gdb-events.sh: Add target-changed event.
3610 * gdb-events.c: Regenerated.
3611 * gdb-events.c: Regenerated.
3612 * valops.c (value_assign): Add target-changed event notification
3613 to inlval_register, lval_memory, and lval_reg_frame_relative.
3614
9fb14e79
JB
36152002-08-21 Joel Brobecker <brobecker@gnat.com>
3616
3617 * NEWS: Add an entry regarding the improvement of the next/step
3618 operation on Alpha Tru64 multi-processor machines.
3619
6d39a69f
AC
36202002-08-21 Andrew Cagney <ac131313@redhat.com>
3621
72acd513
AC
3622 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3623 directores.
342af04b 3624 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3625 * Makefile.in (install-gdbtk): Move to install section.
3626 (rdi-share/libangsd.a): Move to end of file.
3627
fa5f27c7
AC
36282002-08-19 Andrew Cagney <ac131313@redhat.com>
3629
3630 * frame.c (frame_register_unwind): When a register, set addrp to
3631 the register's byte.
3632
5a89d8aa
MS
36332002-08-20 Michael Snyder <msnyder@redhat.com>
3634
3635 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3636 used locally, so move them from the target machine header to here.
3637 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3638 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3639 Make static.
3640 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3641
822e978b
AC
36422002-08-20 Andrew Cagney <cagney@redhat.com>
3643
3644 * NEWS: Mention that the Apollo line was made obsolete.
3645 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3646 m68*-hp-hpux* obsolete.
3647 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3648 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3649 * buildsym.c (make_blockvector): Make static.
3650 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3651 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3652 (ALLDEPFILES): Remove dstread.c.
3653 (dstread.o): Obsolete make rule.
3654 * dstread.c: Makefile obsolete.
3655 * dst.h: Ditto.
3656 * config/m68k/hp300hpux.mt: Ditto.
3657 * config/m68k/hp300hpux.mh: Ditto.
3658 * config/m68k/hp300bsd.mt: Ditto.
3659 * config/m68k/hp300bsd.mh: Ditto.
3660 * config/m68k/apollo68b.mt: Ditto.
3661 * config/m68k/apollo68v.mh: Ditto.
3662 * config/m68k/apollo68b.mh: Ditto.
3663
e41b17f0
MS
36642002-08-20 Michael Snyder <msnyder@redhat.com>
3665
3666 * mips-tdep.c (mips_in_return_stub): Make static.
3667 (mips_gdbarch_init): Set in_solib_return_trampoline.
3668 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3669
d50355b6
MS
36702002-08-20 Michael Snyder <msnyder@redhat.com>
3671
3672 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3673 * gdbarch.c, gdbarch.h: Regenerate.
3674 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3675 Add.
3676 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3677
757a7cc6
MS
36782002-08-20 Michael Snyder <msnyder@redhat.com>
3679
3680 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3681 (mips_gdbarch_init): Set skip_trampoline_code,
3682 in_solib_call_trampoline.
3683 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3684 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3685
c8001721
EZ
36862002-08-20 Elena Zannoni <ezannoni@redhat.com>
3687
3688 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3689
3690 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3691 vector type for ev registers.
3692 (e500_pseudo_register_read): New function.
3693 (e500_pseudo_register_write): New function.
3694 (e500_dwarf2_reg_to_regnum): New function.
3695 (PPC_UISA_NOFP_SPRS): New macro.
3696 (PPC_EV_REGS): New macro.
3697 (PPC_GPRS_PSEUDO_REGS): New macro.
3698 (registers_e500): New register set for e500.
3699 (variants): Add e500 variant.
3700 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3701 before setting architectural dependent variations. Initialize ev
3702 registers numbers. Add case for e500 architecture. Set the
3703 number of pseudo registers.
3704
64366f1c
EZ
37052002-08-20 Elena Zannoni <ezannoni@redhat.com>
3706
3707 * rs6000-tdep.c: Clean up comments.
3708
7e78f0ca
AC
37092002-08-20 Andrew Cagney <cagney@redhat.com>
3710
3711 * h8300-tdep.c: Re-indent file.
3712
697f7479
JB
37132002-08-20 Jim Blandy <jimb@redhat.com>
3714
3715 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3716 default for this.
697f7479 3717
e86ae29f
KS
37182002-08-20 Keith Seitz <keiths@redhat.com>
3719
3720 * breakpoints.c (watch_command_1): Use internal breakpoint
3721 when setting a watchpoint_scope breakpoint.
3722
216b504f
EZ
37232002-08-20 Elena Zannoni <ezannoni@redhat.com>
3724
3725 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3726 (build_builtin_type_vec64i): Ditto.
3727 (build_builtin_type_vec128): Ditto.
3728 (build_builtin_type_vec128i): Ditto.
3729
f7ab6ec6
MS
37302002-08-19 Michael Snyder <msnyder@redhat.com>
3731
3732 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3733 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3734 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3735 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3736 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3737 CALL_DUMMY_ADDRESS): Delete.
3738 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3739 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3740 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3741 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3742 push_return_address.
3743 (mips_register_raw_size, mips_eabi_use_struct_convention,
3744 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3745 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3746 mips_init_extra_frame_info, mips_eabi_push_arguments,
3747 mips_n32n64_push_arguments, mips_push_return_address,
3748 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3749 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3750
b5d1566e
MS
37512002-08-19 Michael Snyder <msnyder@redhat.com>
3752
3753 * mips-tdep.c (mips_frame_num_args): New function.
3754 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3755 frame_saved_pc, frame_args_address, frame_locals_address,
3756 frame_num_args, and frame_args_skip.
3757 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3758 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3759 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3760 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3761
2f1488ce
MS
37622002-08-20 Michael Snyder <msnyder@redhat.com>
3763
3764 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3765 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3766 * mips-tdep.c (mips_store_struct_return): New function.
3767 (mips_extract_struct_value_address): New function.
3768 (mips_gdbarch_init): Set store_struct_return and
3769 extract_struct_value_address.
3770
41ff2da1
DC
37712002-08-20 David Carlton <carlton@math.stanford.edu>
3772
3773 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3774 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3775 (read_file_scope): Check that line_header is nonzero before
3776 decoding macro information.
3777
e5451d58
MK
37782002-08-20 Mark Kettenis <kettenis@gnu.org>
3779
3780 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3781 flag the general-purpose registers as floating-point on targets
3782 that don't support the floating-point registers.
3783
4a6daafa
EZ
37842002-08-20 Elena Zannoni <ezannoni@redhat.com>
3785
3786 * rs6000-tdep.c (altivec_register_p): Delete.
3787 (rs6000_do_altivec_registers): Delete.
3788 (rs6000_altivec_registers_info): Delete.
3789 (rs6000_do_registers_info): Delete.
3790 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3791 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3792
ab4327e0
EZ
37932002-08-20 Elena Zannoni <ezannoni@redhat.com>
3794
3795 * infcmd.c (do_registers_info): Print vector registers in hex
3796 format only.
3797 (print_vector_info): Check that printing registers
3798 makes sense.
3799 (print_float_info): Ditto.
3800
cb1d2653
AC
38012002-08-20 Andrew Cagney <ac131313@redhat.com>
3802
3803 * mips-tdep.c (mips_gdbarch_init): Update.
3804 (mips_o32_extract_return_value): Rewrite.
3805 (mips_o32_store_return_value): Rewrite.
3806 (mips_o32_xfer_return_value): New function.
3807 (mips_xfer_register): Tweak debug print message. Allow for
3808 buf_offset when dumping the value transfered.
3809
dfc3d9b2
AC
38102002-08-20 Andrew Cagney <ac131313@redhat.com>
3811
3812 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3813 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3814 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3815 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3816 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3817
7807aa61
MS
38182002-08-14 Michael Snyder <msnyder@redhat.com>
3819
3820 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3821
489461e2
EZ
38222002-08-19 Elena Zannoni <ezannoni@redhat.com>
3823
3824 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3825 register.
3826 (P): New macro to define a register as a pseudo register.
3827 (R, R4, R8, R16, FR32, R64, R0): Updated.
3828 (struct variant): Add new fields for number of pseudo registers
3829 and number of total registers.
3830 (tot_num_registers): New macro replacing....
3831 (num_registers): ...deleted macro.
3832 (num_registers): New function.
3833 (num_pseudo_registers): New function.
3834 (variants): Update all variants to intialize new fields correctly.
3835 Postpone initialization of number of pseudo regs and real regs.
3836 (init_variants): New function.
3837 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3838 registers offsets.
3839
fcaffe4c
DC
38402002-08-19 David Carlton <carlton@math.stanford.edu>
3841
2c2738a0
DC
3842 * valops.c (search_struct_field): Change error message to treat
3843 return value of 0 from value_static_field as meaning that field is
3844 optimized out.
3845 (value_struct_elt_for_reference): Ditto.
3846 * values.c (value_static_field): Treat an unresolved location the
3847 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3848 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3849 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3850 * MAINTAINERS: Add self to Write After Approval list.
3851
88658117
AC
38522002-08-19 Andrew Cagney <ac131313@redhat.com>
3853
3854 * mips-tdep.c (mips_xfer_register): New function.
3855 (mips_n32n64_extract_return_value): Rewrite.
3856 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3857 instead of deprecated_extract_return_value.
3858
21283beb
EZ
38592002-08-19 Elena Zannoni <ezannoni@redhat.com>
3860
3861 * rs6000-tdep.c (TDEP): Delete macro.
3862 (branch_dest): Replace use of TDEP macro with its body.
3863 (rs6000_pop_frame): Ditto.
3864 (rs6000_push_arguments): Ditto.
3865 (rs6000_skip_trampoline_code): Ditto.
3866 (rs6000_frame_saved_pc): Ditto.
3867 (rs6000_frame_chain): Ditto.
3868 (rs6000_register_name): Ditto.
3869 (rs6000_register_byte): Ditto.
3870 (rs6000_register_raw_size): Ditto.
3871 (rs6000_register_virtual_type): Ditto.
3872 (rs6000_register_convertible): Ditto.
3873 (rs6000_convert_from_func_ptr_addr): Ditto.
3874
bf072999
DJ
38752002-08-19 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3878 conditionally.
3879 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3880 MIPS_LINUX_JB_ELEMENT_SIZE.
3881 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3882 for MAX_REGISTER_RAW_SIZE arrays.
3883 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3884 MIPS_LINUX_JB_ELEMENT_SIZE.
3885
9b949a49
PM
38862002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3887
3888 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3889
6d3e79c6
AS
38902002-08-19 Aidan Skinner <aidan@velvet.net>
3891
3892 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3893 ada-valprint.c ada-tasks.c.
3894 (YYFILES): Add ada-exp.y.
3895 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3896 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3897 (ada-exp.tab.o): New target.
3898
06c0b04e
AC
38992002-08-18 Andrew Cagney <ac131313@redhat.com>
3900
3901 * regcache.c (regcache_xfer_part): New function.
3902 (regcache_raw_read_part): New function.
3903 (regcache_raw_write_part): New function.
3904 (regcache_cooked_read_part): New function.
3905 (regcache_cooked_write_part): New function.
3906 * regcache.h (regcache_raw_read_part): Declare.
3907 (regcache_raw_write_part): Declare.
3908 (regcache_cooked_read_part): Declare.
3909 (regcache_cooked_write_part): Declare.
3910
92d1e331
DJ
39112002-08-18 Daniel Jacobowitz <drow@mvista.com>
3912
3913 * remote.c (remote_open_1): Add async_p.
3914 (remote_async_open_1): Delete.
3915 (open_remote_target): Delete.
3916 (remote_open, extended_remote_open): Update calls to remote_open_1.
3917 (remote_async_open, extended_remote_async_open): Call
3918 remote_open_1 instead of remote_async_open_1.
3919
247055de
MK
39202002-08-19 Mark Kettenis <kettenis@gnu.org>
3921
3922 * blockframe.c: Fix a few coding standard violations.
3923
641eda39
MK
39242002-08-19 Mark Kettenis <kettenis@gnu.org>
3925
0b717710
MK
3926 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3927 here from ...
3928 * config/i386/tm-i386sco5.h: ... here. File removed.
3929 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3930
26d28e12 3931 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3932 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3933 (TM_FILE): Set to tm-i386.h.
3934 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3935 * config/i386/tm-i386v.h: Remove file.
3936 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3937 instead of "i386/tm-i386v.h".
3938 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3939 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3940 "i386/tm-i386v.h".
3941 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3942 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3943 "i386/tm-i386.h".
3944
d4e0bab4
MK
39452002-08-18 Mark Kettenis <kettenis@gnu.org>
3946
3947 * config/i386/nm-i386v.h: Add protection against
3948 multiple-inclusion.
3949 (i386_register_u_addr): Remove prototype.
3950 (register_u_addr): New prototype.
3951 (REGISTER_U_ADDR): Redefine accordingly.
3952 * i386v-nat.c: Improve several comments.
3953 (i386_register_u_addr): Change signature and rename to
3954 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3955 ubase variable.
3956
46cac009
AC
39572002-08-18 Andrew Cagney <ac131313@redhat.com>
3958
3959 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3960 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3961 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3962 deprecated_extract_return_value.
3963 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3964 rename mips_o32o64_push_arguments.
3965 (mips_gdbarch_init): Update.
3966 (mips_extract_return_value): Delete.
3967 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3968 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3969 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3970 (mips_n32n64_extract_return_value): Clone
3971 mips_extract_return_value.
3972 (mips_store_return_value): Delete.
3973 (mips_o32_store_return_value): Clone mips_store_return_value.
3974 (mips_o64_store_return_value): Clone mips_store_return_value.
3975 (mips_eabi_store_return_value): Clone mips_store_return_value.
3976 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3977
d2e4a39e
AS
39782002-08-18 Aidan Skinner <aidan@velvet.net>
3979
0c30c098
AS
3980 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3981 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3982
39832002-08-18 Aidan Skinner <aidan@velvet.net>
3984
3985 * ada-lang.c: Run through gdb_indent.sh.
3986 * ada-lang.h: Run through gdb_indent.sh.
3987 * ada-tasks.c: Run through gdb_indent.sh.
3988 * ada-typeprint.c: Run through gdb_indent.sh.
3989 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3990
01fc4e33
AC
39912002-08-18 Andrew Cagney <ac131313@redhat.com>
3992
3993 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3994 ABI.
3995
d8ee244c
MK
39962002-08-18 Mark Kettenis <kettenis@gnu.org>
3997
c38d8261
MK
3998 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3999
222db64c
MK
4000 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4001 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4002
c2848c82
MK
4003 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4004 write_register_gen instead of write_register_bytes.
4005
d8ee244c
MK
4006 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4007 i[3456]-*-osf1mk* configurations have been made obsolete.
4008 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4009 i[3456]86-*-osf1mk* hosts obsolete.
4010 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4011 targets obsolete.
4012 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4013 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4014 config/i386/i386m3.mt, config/i386/nm-m3.h,
4015 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4016 config/i386/i386mk.mh, config/i386/i386mk.mt,
4017 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4018 obsolete.
4019 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4020 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4021 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4022
61d8d407
AC
40232002-08-18 Andrew Cagney <ac131313@redhat.com>
4024
4025 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4026 (hppa_value_returned_from_stack): Declare.
4027 (hppa_extract_return_value): Declare.
4028 * config/pa/hppa.mt: New file.
4029 * configure.tgt: Recognize hppa*-*-*.
4030 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4031
0c52bd59
MK
40322002-08-18 Mark Kettenis <kettenis@gnu.org>
4033
4034 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4035 comment.
4036
b5686e99
MK
40372002-08-17 Mark Kettenis <kettenis@gnu.org>
4038
4039 * top.c (gdb_rl_operate_and_get_next): Make sure
4040 operate-and-get-next functions correctly even when the history
4041 list is completely filled.
4042
c1bab85b
AC
40432002-08-18 Andrew Cagney <ac131313@redhat.com>
4044
4045 * MAINTAINERS (Target Instruction Set Architectures): Rename
4046 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4047 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4048 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4049 already listed under Host/Native.
4050
4051 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4052 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4053 mips*-*-*.
4054
32089c7c
AC
40552002-08-17 Andrew Cagney <ac131313@redhat.com>
4056
4057 * config/ia64/ia64.mt: New file.
4058 * config/alpha/alpha.mt: New file.
4059 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4060 ia64-linux-gnu. Mention that ia64-elf is broken.
4061 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4062
b4671f85
MK
40632002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4064
4065 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4066 generic_func_frame_valid instead of func_frame_valid.
4067
c8edd8b4
JB
40682002-08-16 Joel Brobecker <brobecker@gnat.com>
4069
4070 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4071 procfs appears to be broken when debugging on multi-processor
4072 machines. So enable software single stepping in order to avoid
4073 using the procfs interface to do next/step operations, using
4074 internal breakpoints instead.
4075
4076 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4077 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4078 make this pc address equal to the value it would have if the
4079 system stepping capability was used. Also set a new flag used
4080 to ensure that we don't readjust the PC one more time later.
4081
4082 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4083 address by DECR_PC_AFTER_BREAK when software single step is
4084 in use for this architecture, as this has already been taken
4085 care of in handle_inferior_event().
4086
238617f6
JB
40872002-08-16 Joel Brobecker <brobecker@gnat.com>
4088
4089 * infrun.c (handle_inferior_event): Minor reformatting, to make
4090 a rather long condition expression easier to read.
4091
541a7aac
AC
40922002-08-16 Andrew Cagney <ac131313@redhat.com>
4093
4094 * Makefile.in (gdbtk.o): Move to end of file.
4095 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4096 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4097 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4098 (gdbtk-wrapper.o, gdbres.o): Ditto.
4099
f92d4a7b
AC
41002002-08-16 Andrew Cagney <ac131313@redhat.com>
4101
4102 * Makefile.in (copying.o): Separate out compile rule.
4103 (hpux-thread.o, procfs.o, signals.o): Ditto.
4104 (v850ice.o, z8k-tdep.o): Ditto.
4105 (tui-file.o): Move to TUI section.
4106 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4107 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4108
1cce71eb
JB
41092002-08-16 Joel Brobecker <brobecker@gnat.com>
4110
4111 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4112 skip_trampoline_code, for better namespace-proofing.
4113
4114 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4115
0851f23d
JB
41162002-08-16 Joel Brobecker <brobecker@gnat.com>
4117
4118 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4119
f8d40ec8
JB
41202002-08-16 Joel Brobecker <brobecker@gnat.com>
4121
4122 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4123 signal, check whether we hit a breakpoint before checking for a
4124 single step breakpoint. Otherwise, GDB fails to notice that a
4125 breakpoint has been hit when stepping onto a breakpoint.
4126
63d022e0
KS
41272002-08-16 Keith Seitz <keiths@redhat.com>
4128
4129 * gdb-events.sh (clear_gdb_event_hooks): New function.
4130 * gdb-events.c: Regenerate.
4131 * gdb-events.h: Regenerate.
4132
6e31adb3
AC
41332002-08-16 Andrew Cagney <ac131313@redhat.com>
4134
4135 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4136 not_a_sw_breakpoint.
4137 * breakpoint.h (bpstat_stop_status): Add parameter names.
4138
c8189ed1
GS
41392002-08-16 Grace Sainsbury <graces@redhat.com>
4140
4141 * remote.c (remote_insert_hw_breakpoint)
4142 (remote_remove_hw_breakpoint): Fix calculation of length field
4143 for Z-packet.
4144
d05285fa
MS
41452002-08-15 Michael Snyder <msnyder@redhat.com>
4146
466d7106
MS
4147 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4148 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4149 (supply_fpregset): Ditto.
4150
d05285fa
MS
4151 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4152 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4153 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4154 (TARGET_READ_SP): Delete.
bf1f5b4c 4155 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4156 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4157 Delete.
4158 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4159 from macros to functions.
bf1f5b4c 4160
d05285fa
MS
4161 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4162 (mips_register_convertible, mips_register_convert_to_virtual,
4163 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4164 (mips_read_sp): New function.
4165 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4166 (mips_do_registers_info): Make static.
4167 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4168 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4169 (mips_register_convert_from_type, mips_register_convert_to_type):
4170 New functions.
4171 (mips_gdbarch_init): Set up function_start_offset,
4172 register_virtual_size, pc_in_sigtramp.
d05285fa 4173
e76f1f2e
AC
41742002-08-15 Andrew Cagney <ac131313@redhat.com>
4175
4176 * infcmd.c (vector_info): New function.
4177 (_initialize_infcmd): Add command "info vector".
4178 (print_vector_info): New function.
4179
4180 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4181 * gdbarch.h, gdbarch.c: Regenerate.
4182
4782dc19
AC
41832002-08-15 Andrew Cagney <ac131313@redhat.com>
4184
4185 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4186 ``print_all''. Only print vector registers when ``print_all''.
4187
23e3a7ac
AC
41882002-08-15 Andrew Cagney <ac131313@redhat.com>
4189
8e186fd6
AC
4190 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4191 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4192
23e3a7ac
AC
4193 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4194 Add `args' parameter.
4195 * gdbarch.h, gdbarch.c: Regenerate.
4196
4197 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4198
4199 * infcmd.c (float_info): Call print_float_info.
4200 (print_float_info): New function. By default, print the
4201 floating-point registers.
4202
4203 * arch-utils.h (default_print_float_info): Delete declaration.
4204 * arch-utils.c (default_print_float_info): Delete function.
4205
e0ca2bb9
MK
42062002-08-16 Mark Kettenis <kettenis@gnu.org>
4207
3f733acc
MK
4208 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4209 out define.
4210
7d8d2918
MK
4211 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4212 FRAME.
4213
1c7cc583
MK
4214 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4215 * configure.host: Make i[3456]86-*-aix host obsolete.
4216 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4217 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4218 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4219 config/i386/xm-i386aix.h: Make files obsolete.
4220 * i386aix-nat.c: Make file obsolete.
4221 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4222 (i386aix-nat.o): Make target obsolete.
4223
e0ca2bb9
MK
4224 * config/i386/nm-gnu.h: Removed.
4225 * config/i386/nm-i386gnu.h: New file.
4226 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4227 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4228 Moved here from ...
4229 * config/i386/tm-i386gnu.h: ... here. Removed.
4230 * config/i386/xm-i386gnu.h: Removed.
4231 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4232 (NAT_FILE): Set to nm-i386gnu.h.
4233 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4234 * i386-tdep.c: New file.
4235 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4236 (i386gnu-tdep.o): Specify dependencies.
4237
16057ec7 42382002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4239
6b99ee2e
MK
4240 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4241 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4242 Adjust a few comments to reflect reality a bit closer.
4243 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4244 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4245 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4246 target_insert_watchpoint, target_remove_watchpoint):
4247 Move defines to ...
4248 * config/i386/nm-i386sco5.h: ... here.
4249 (kernel_u_size): Add prototype. Improve a few comments and add
4250 protection against multiple inclusion.
4251
d9a6f65c
MK
4252 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4253 out define.
4254
047eff6a
MK
4255 * uw-thread.c (SP_ARG0): Define if not already defined.
4256 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4257
dcdb1290
MK
4258 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4259
5d2d0b2a
MK
4260 * config/i386/tm-i386.h: Don't include "regcache.h".
4261
61113f8b
MK
4262 * i387-tdep.h (i387_print_float_info): New prototype.
4263 * i387-tdep.c (print_i387_value, print_i387_ext,
4264 print_i387_status_word, print_i387_control_word): Add `struct
4265 ui_file *' argument and use it for output.
4266 (i387_print_float_info): Renamed from i387_float_info. Add
4267 `struct gdbarch *' and `struct ui_file *' arguments and use the
4268 latter for output.
4269 * i386-tdep.c: Include "i387-tdep.h".
4270 (i386_gdbarch_init): Set print_float_info.
4271 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4272 (FLOAT_INFO): Remove define.
4273
46e0f506
MS
42742002-08-13 Michael Snyder <msnyder@redhat.com>
4275
4276 * mips-tdep.c (mips_push_arguments): Rename to
4277 mips_eabi_push_arguments, and tune for EABI.
4278 (MIPS_REGS_HAVE_HOME_P): Delete.
4279 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4280 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4281 Delete references to mips_regs_have_home_p.
4282
409268de
KS
42832002-08-14 Keith Seitz <keiths@redhat.com>
4284
4285 * Makefile.in (install-gdbtk): Create insight plugin directory.
4286 Install plugins.tcl file.
4287
ffc6a242
KS
42882002-08-14 Keith Seitz <keiths@redhat.com>
4289
4290 * configure.in: Move SUBDIRS to near top of the file so that
4291 --enable options may add things to it.
4292 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4293 * configure: Regenerate.
4294
ebafbe83
MS
42952002-08-13 Michael Snyder <msnyder@redhat.com>
4296
4297 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4298 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4299 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4300
32f6f25d
AC
43012002-08-13 Andrew Cagney <ac131313@redhat.com>
4302
4303 * vax-tdep.c (vax_get_saved_register): Delete function.
4304 (vax_gdbarch_init): Update.
4305 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4306 (ns32k_gdbarch_init): Update.
4307 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4308 (alpha_gdbarch_init): Update.
4309
53826de9
AC
43102002-08-13 Andrew Cagney <cagney@redhat.com>
4311
4312 * regcache.c (init_regcache_descr): Overallocate the
4313 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4314 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4315 nr_raw_registers.
4316 (set_register_cached): Add range checking assertions. Use
4317 current_regcache.
4318
16057ec7 43192002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4320
4321 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4322 numbers for MMX registers.
4323
7b4c2dce
AC
43242002-08-13 Andrew Cagney <cagney@redhat.com>
4325
4326 * i386-tdep.c (i386_gdbarch_init): Use
4327 generic_unwind_get_saved_register.
4328
1e03ad20
KB
43292002-08-13 Kevin Buettner <kevinb@redhat.com>
4330
4331 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4332 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4333 target vector.
4334 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4335 Delete. Add comment regarding this now-deleted target method.
4336
548bcbec
SC
43372002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4338
4339 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4340 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4341 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4342 real PC and the page number (if it's within the memory bank window).
4343 (m68hc11_pseudo_register_write): Likewise when saving.
4344 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4345 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4346 (m68hc11_register_raw_size): And use 32-bit for it.
4347 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4348 16K memory bank is used by the prog; also use the virtual pc.
4349
7df11f59
SC
43502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4351
4352 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4353 (m68hc11_gdbarch_init): Install it in gdbarch.
4354 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4355 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4356 (MSYMBOL_SIZE): New for documentation.
4357 (insn_return_kind): Enum to specify how a function returns.
4358 (frame_extra_info): Cleanup and record the return mode.
4359 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4360 register in address computation.
4361 (m68hc11_get_return_insn): New to obtain the return instruction used
4362 by the function.
4363 (m68hc11_frame_init_saved_regs): Take into account the return
4364 instruction used by the function for far and interrupt functions.
4365 (m68hc11_init_extra_frame_info): Take into account page register.
4366 (m68hc11_frame_args_address): Adjust according to the return mode.
4367 (show_regs): Print page register only when it's used.
4368
5706502a
SC
43692002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4370
4371 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4372 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4373 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4374 registers.
4375 (m68hc11_register_raw_size): Likewise.
4376
28fc6740
AC
43772002-08-13 Andrew Cagney <cagney@redhat.com>
4378
4379 * i386-tdep.c (i386_register_name): Handle mmx registers.
4380 (mmx_regnum_p): New function.
4381 (i386_mmx_names): New array.
4382 (mmx_num_regs): New variable.
4383 (i386_pseudo_register_read): New function.
4384 (i386_pseudo_register_write): New function.
4385 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4386
4387 * regcache.c (regcache_raw_read_unsigned): New function.
4388 (regcache_raw_read_signed): New function.
4389 * regcache.h (regcache_raw_read_unsigned): Declare.
4390 (regcache_raw_read_signed): Declare.
4391
a378f419
AC
43922002-08-13 Andrew Cagney <cagney@redhat.com>
4393
4394 * regcache.c (regcache_raw_read_as_address): Delete function.
4395 (regcache_cooked_read_signed): New function.
4396 (regcache_cooked_read_unsigned): New function.
4397 * regcache.h (regcache_cooked_read_signed): Declare.
4398 (regcache_cooked_read_unsigned): Declare.
4399 (regcache_raw_read_as_address): Delete declaration.
4400
4401 * blockframe.c (generic_read_register_dummy): Use
4402 regcache_cooked_read_unsigned.
4403 * i386-tdep.c (i386_extract_struct_value_address): Use
4404 regcache_cooked_read_unsigned.
4405
81967506
SC
44062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4407
4408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4409 double sizes according to ELF ABI flags.
4410 (gdbarch_tdep): Record elf_flags.
4411
ffe1f3ee
SC
44122002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4413
4414 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4415 (m6812_prolog): They can appear in 68HC12 function prologue.
4416 (m68hc11_frame_chain): Cleanup.
4417
98216c5d
AC
44182002-08-12 Andrew Cagney <cagney@redhat.com>
4419
4420 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4421 declarations.
4422 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4423 (i386_linux_register_raw_size): Delete function.
4424 (i386_linux_init_abi): Update.
4425 * i386-tdep.c (i386_register_raw_size): Delete function.
4426 (i386_register_byte): Delete function.
4427 (i386_gdbarch_init): Update.
4428 (i386_register_size): Delete array.
4429 (i386_register_offset): Delete array.
4430
4431 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4432 (REGISTER_RAW_SIZE): Delete macro.
4433 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4434 (REGISTER_BYTE): Delete macro.
4435
3b19021e
AS
44362002-08-11 Aidan Skinner <aidan@velvet.net>
4437
4438 * ada-lang.c (ada_lookup_partial_symbol)
4439 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4440 prototype names so that grep ^func works properly.
4441
4442 * ada-lang.c (ada_array_element_type)
4443 (ada_lookup_partial_symbol): Fix typos in parameter list.
4444
4445 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4446 Fix prototype names so that grep ^func works properly.
4447
b063e7a2
AC
44482002-08-10 Andrew Cagney <cagney@redhat.com>
4449 Elena Zannoni <ezannoni@redhat.com>
4450 Martin M. Hunt <hunt@redhat.com>
4451
4452 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4453 (build_builtin_type_vec128i): Set the vector bit.
4454 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4455 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4456 (build_builtin_type_vec64): New function.
4457 (build_builtin_type_vec64i): New function.
4458 (build_gdbtypes): Initialize builtin_type_vec64 and
4459 builtin_type_vec64i.
4460
a7e3c2ad
AC
44612002-08-09 Andrew Cagney <cagney@redhat.com>
4462
4463 * regcache.c (regcache_dump): Compare the register offset
4464 with REGISTER_BYTE.
4465 * arch-utils.c (generic_register_byte): New function.
4466 * arch-utils.h (generic_register_byte): Declare.
4467 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4468 * gdbarch.h, gdbarch.c: Regenerate.
4469
af030b9a
AC
44702002-08-09 Andrew Cagney <cagney@redhat.com>
4471
4472 * regcache.c: Include "gdbcmd.h"
4473 (_initialize_regcache): Add commands "maintenance print
4474 registers", "maintenance print raw-registers" and "maintenance
4475 print cooked-registers".
4476 (enum regcache_dump_what): Define.
4477 (dump_endian_bytes): New function.
4478 (regcache_dump): New function.
4479 (regcache_print): New function.
4480 (maintenance_print_registers): New function.
4481 (maintenance_print_raw_registers): New function.
4482 (maintenance_print_cooked_registers): New function.
4483 * Makefile.in (regcache.o): Update dependencies.
4484
cb3d25d1
MS
44852002-08-09 Michael Snyder <msnyder@redhat.com>
4486
4487 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4488 (mips_push_arguments): Correct some comments. Use paddr_nz
4489 for printing addresses in debug output. Replace static
4490 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4491 (mips_n32n64_push_arguments): New function, cloned from
4492 mips_push_arguments and tuned for the n32/n64 ABI.
4493 (mips_push_register): Buffer needs dynamic allocation.
4494 (mips_print_register): Ditto.
4495 (do_gp_register_row): Ditto.
4496 (mips_store_return_value): Ditto.
4497 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4498
2163ab9d
DH
44992002-08-09 Don Howard <dhoward@redhat.com>
4500
4501 * memattr.c (mem_info_command): Print special case of upper bound
4502 as max CORE_ADDR + 1.
4503
b78bcb18
MS
45042002-08-08 Michael Snyder <msnyder@redhat.com>
4505
4506 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4507 returns structs by ref if they're too big to fit in two registers.
4508
ffabd70d
KB
45092002-08-09 Kevin Buettner <kevinb@redhat.com>
4510
4511 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4512 saved regs value.
4513 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4514 mips_find_saved_regs().
4515 (mips_pop_frame): Likewise.
4516
fbcdb4a3
KB
45172002-08-09 Kevin Buettner <kevinb@redhat.com>
4518
4519 * blockframe.c (frame_saved_regs_register_unwind): Revise
4520 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4521 frames are in use.
4522
3c3bea1c
GS
45232002-08-09 Grace Sainsbury <graces@redhat.com>
4524
4525 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4526 T-packets; the 'a' is not taken as a register number.
4527 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4528 (remote_stopped_data_address): New functions; add to target
4529 vector.
4530 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4531 prototypes to match other implementations of this
4532 function. replace integer argument with pointer -- the length
4533 field in the Z-packet is the length of what is pointed to or 1 if
4534 pointer is null. Add to target vector.
4535 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4536 target vector.
4537
4538 From Mark Salter:
4539 * remote.c (remote_wait): Add support to extract optional
4540 watchpoint information from T-packet. Ignore unrecognized
4541 optional info in T-packet.
4542 (remote_async_wait): Ditto.
4543
5d1d95de
CV
45442002-08-09 Corinna Vinschen <vinschen@redhat.com>
4545
4546 * cli/cli-dump.c: Change fopen modes to use binary open modes
4547 as defined in include/fopen-bin.h throughout.
4548
c86b5b38
MS
45492002-08-08 Michael Snyder <msnyder@redhat.com>
4550
4551 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4552
b30590dc
KB
45532002-08-08 Kevin Buettner <kevinb@redhat.com>
4554
4555 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4556 assertion failure by returning early after a warning.
4557
498868ed
KB
45582002-08-08 Kevin Buettner <kevinb@redhat.com>
4559
4560 * mips-tdep.c (mips_find_saved_regs): Make static.
4561 (mips_frame_init_saved_regs): New function.
4562 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4563 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4564 (mips_find_saved_regs): Delete declaration.
4565
b2dd6311
GS
45662002-08-08 Grace Sainsbury <graces@redhat.com>
4567
3c3bea1c
GS
4568 * remote.c (remote_wait, remote_async_wait): Change
4569 thread_num from int to ULONGEST.
4570 (unpack_varlen_hex): Change result parameter from
4571 int * to ULONGEST *.
b2dd6311 4572
ea47855f
AC
45732002-08-08 Andrew Cagney <ac131313@redhat.com>
4574
4575 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4576 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4577 powerpc*-*-*.
4578 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4579
69db8bae
AC
45802002-08-08 Andrew Cagney <cagney@redhat.com>
4581
4582 * gcore.c (override_derive_stack_segment): Delete variable.
4583 (preempt_derive_stack_segment): Delete function.
4584 (derive_stack_segment): Delete function.
4585 (default_derive_stack_segment): Renamed to derive_stack_segment.
4586 (override_derive_heap_segment): Delete variable.
4587 (preempt_derive_heap_segment): Delete function.
4588 (derive_heap_segment): Delete function.
4589 (default_derive_heap_segment): Rename to derive_heap_segment.
4590
cb811fe7
MS
45912002-08-06 Michael Snyder <msnyder@redhat.com>
4592
4593 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4594 * mips-tdep.c (mips_EABI_use_struct_convention,
4595 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4596 New functions. (mips_use_struct_convention): Delete.
4597 (mips_gdbarch_init): set use_gdbarch_convention.
4598
8b389c40
MS
45992002-08-06 Michael Snyder <msnyder@redhat.com>
4600
4601 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4602 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4603 mips_o32_reg_struct_has_addr): New functions.
4604 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4605
5c27f28a
AC
46062002-08-07 Andrew Cagney <ac131313@redhat.com>
4607
4608 * regcache.c (pseudo_register): Delete function.
4609 (fetch_register): Delete function.
4610 (store_register): Delete function.
4611 (regcache_raw_read, legacy_read_register_gen): Use
4612 target_fetch_registers instead of fetch_register.
4613 (legacy_write_register_gen, regcache_raw_write): Use
4614 target_store_register instead of store_register.
4615 (write_register_bytes): Ditto.
4616
4617 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4618 (STORE_PSEUDO_REGISTER): Delete.
4619 * gdbarch.h, gdbarch.c: Regenerate.
4620
5b331675
CV
46212002-08-06 Corinna Vinschen <vinschen@redhat.com>
4622
4623 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4624 write dump file binary.
4625
6acdf5c7
MS
46262002-08-05 Michael Snyder <msnyder@redhat.com>
4627
4628 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4629 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4630 (mips_gdbarch_init): Set N32 target to be mips64.
4631
b2f01c35
KB
46322002-08-06 Kevin Buettner <kevinb@redhat.com>
4633
4634 * frame.c (find_saved_register): Break out of loop once saved
4635 register address is found. Don't mention sparc in loop comment
4636 anymore.
4637
63db5580
KB
46382002-08-06 Kevin Buettner <kevinb@redhat.com>
4639
4640 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4641 mips_default_saved_regsize to 8.
4642
5e34e75e
AC
46432002-08-06 Andrew Cagney <ac131313@redhat.com>
4644
4645 * gcore.c: Do not include <sys/procfs.h>.
4646 * Makefile.in (gcore.o): Update dependencies.
4647
eb4c54a2
AC
46482002-08-06 Andrew Cagney <cagney@redhat.com>
4649
4650 * configure.tgt: Make arc-*-* obsolete.
4651 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4652 * MAINTAINERS: Make arc-elf obsolete.
4653 * arc-tdep.c: Make file obsolete.
4654 * config/arc/arc.mt: Ditto.
4655 * config/arc/tm-arc.h: Ditto.
4656
ced15480
TR
46572002-08-05 Theodore A. Roth <troth@verinet.com>
4658
c1bab85b 4659 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4660
b4743822
AC
46612002-08-05 Andrew Cagney <ac131313@redhat.com>
4662
4663 * mcore-tdep.c (mcore_gdbarch_init): Use
4664 generic_unwind_get_saved_register instead of
4665 generic_get_saved_register.
4666 * v850-tdep.c (v850_gdbarch_init): Ditto.
4667 * frv-tdep.c (frv_gdbarch_init): Ditto.
4668 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4669 * s390-tdep.c (s390_gdbarch_init): Ditto.
4670 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4671 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4672 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4673
3956d554
JB
46742002-08-05 Joel Brobecker <brobecker@gnat.com>
4675
4676 * objfiles.h: Add missing #include "symfile.h"
4677
4678 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4679
8249c0d6
AC
46802002-08-04 Andrew Cagney <ac131313@redhat.com>
4681
4682 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4683 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4684 of FIELD_BITSIZE.
4685
b9d14705
DJ
46862002-08-04 Daniel Jacobowitz <drow@mvista.com>
4687
4688 * NEWS: Cleanup and nitpick.
4689
dd73b9bb
AC
46902002-08-03 Andrew Cagney <ac131313@redhat.com>
4691
4692 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4693
043a27f8
AC
46942002-08-03 Andrew Cagney <ac131313@redhat.com>
4695
4696 * Makefile.in (gdbtk-bp.o): Update dependencies.
4697 (gdbtk-register.o): Ditto.
4698 (gdbtk-varobj.o): Ditto.
4699
46ce284d
AC
47002002-08-03 Andrew Cagney <cagney@redhat.com>
4701
4702 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4703 m68hc11_fetch_pseudo_register.
4704 (m68hc11_pseudo_register_write): Replace
4705 m68hc11_store_pseudo_register.
4706 (m68hc11_gdbarch_init): Update.
4707
b66d6d2e
AC
4708Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4709
4710 * gdbarch.sh: Include "gdb_string.h".
4711 * gdbarch.c: Regenerate.
4712
4713 * regcache.c: Include "gdb_string.h".
4714 * ax-general.c: Ditto.
4715 * varobj.c: Ditto.
4716 * std-regs.c: Ditto.
4717 * fbsd-proc.c: Ditto.
4718 * thread.c: Ditto.
4719
4720 * Makefile.in (regcache.o): Update dependencies.
4721 (thread.o, gdbarch.o): Ditto.
4722 (ax-general.o, gdbarch.o): Ditto.
4723 (varobj.o, std-regs.o): Ditto.
4724 (fbsd-proc.o): Specify dependencies.
4725
29e1842b
AC
47262002-08-02 Andrew Cagney <cagney@redhat.com>
4727
4728 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4729 regnum.
4730 (regcache_cooked_write): Ditto.
4731
68365089
AC
47322002-08-02 Andrew Cagney <ac131313@redhat.com>
4733
4734 * regcache.c (regcache_cooked_read): New function.
4735 (regcache_cooked_write): New function.
4736 (read_register_gen): Rewrite using regcache_cooked_read.
4737 (write_register_gen): Rewrite using regcache_cooked_write.
4738
4739 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4740 Declare.
4741
d8124050
AC
47422002-08-02 Andrew Cagney <cagney@redhat.com>
4743
4744 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4745 Replace the architecture methods register_read and register_write.
4746 * gdbarch.h, gdbarch.c: Regenerate.
4747 * regcache.c (init_regcache_descr): Update.
4748 (read_register_gen): Update.
4749 (write_register_gen): Update.
4750 (supply_register): Update comment.
4751
4752 * sh-tdep.c (sh_gdbarch_init): Update.
4753 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4754 `regcache' and `gdbarch' parameters. Make `buffer' a void
4755 pointer. Update code.
4756 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4757 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4758 void pointer. Update code.
4759 (sh64_register_write): Delete.
4760 (sh4_register_read): Delete.
4761 (sh64_register_read): Delete.
4762 (sh4_register_write): Delete.
4763 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4764 void pointer, `to' parameter a void pointer.
4765 (sh_sh64_register_convert_to_raw): Ditto.
4766
a6425924
KB
47672002-08-01 Kevin Buettner <kevinb@redhat.com>
4768
4769 * mips-tdep.c (mips_register_virtual_type): Use architecture
4770 invariant return values.
4771
ff5922b5
AC
47722002-08-01 Andrew Cagney <cagney@redhat.com>
4773
4774 * linux-proc.c: Include "gdb_string.h".
4775 * Makefile.in (linux-proc.o): Update dependency list.
4776
32a6503c
KB
47772002-08-01 Kevin Buettner <kevinb@redhat.com>
4778
4779 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4780 comment.
4781
ccaa32c7
GS
47822002-08-01 Grace Sainsbury <graces@redhat.com>
4783
4784 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4785 to_insert_watchpoint, to_remove_watchpoint,
4786 to_stopped_by_watchpoint, to_stopped_data_address,
4787 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4788 target vecctor. Define their corresponding macros so they call
4789 them.
4790
4791 * target.c: Add default and debug versions of for
4792 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4793 to_insert_watchpoint, to_remove_watchpoint,
4794 to_stopped_by_watchpoint, to_stopped_data_address,
4795 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4796
78fde5f8
KB
47972002-08-01 Kevin Buettner <kevinb@redhat.com>
4798
4799 * mips-tdep.c (mips_register_virtual_type): New function.
4800 (mips_gdbarch_init): Register mips_register_virtual_type()
4801 with gdbarch machinery.
4802 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4803 this file instead of tm-bigmips.h.
4804 (MIPS_REGSIZE): Delete this macro.
4805 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4806 multiarch version in mips-tdep.c will be found.
4807
db034ac5
AC
48082002-08-01 Andrew Cagney <cagney@redhat.com>
4809
4810 * NEWS: Menion that CHILL has been made obsolete.
4811
4812 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4813 * stabsread.c (read_range_type): Ditto.
4814 * gdbtypes.h: Ditto.
4815 * language.c (binop_type_check): Ditto.
4816 (binop_result_type): Ditto.
4817 (integral_type): Ditto.
4818 (character_type): Ditto.
4819 (string_type): Ditto.
4820 (boolean_type): Ditto.
4821 (structured_type): Ditto.
4822 (lang_bool_type): Ditto.
4823 (binop_type_check): Ditto.
4824 * language.h (_LANG_chill): Ditto.
4825 * dwarfread.c (set_cu_language): Ditto.
4826 * dwarfread.c (CHILL_PRODUCER): Ditto.
4827 * dwarfread.c (handle_producer): Ditto.
4828 * expression.h (enum exp_opcode): Ditto.
4829 * eval.c: Ditto for comments.
4830 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4831 * expprint.c (print_subexp): Ditto.
4832 (print_subexp): Ditto.
4833 * valops.c (value_cast): Ditto.
4834 (search_struct_field): Ditto.
4835 * value.h (COERCE_VARYING_ARRAY): Ditto.
4836 * symfile.c (init_filename_language_table): Ditto.
4837 (add_psymbol_with_dem_name_to_list): Ditto.
4838 * valarith.c (value_binop): Ditto.
4839 (value_neg): Ditto.
4840 * valops.c (value_slice): Ditto.
4841 * symtab.h (union language_specific): Ditto.
4842 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4843 (SYMBOL_DEMANGLED_NAME): Ditto.
4844 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4845 * defs.h (enum language): Ditto.
4846 * symtab.c (got_symtab): Ditto.
4847 * utils.c (fprintf_symbol_filtered): Ditto.
4848
4849 * ch-typeprint.c: Make file obsolete.
4850 * ch-valprint.c: Make file obsolete.
4851 * ch-lang.h: Make file obsolete.
4852 * ch-exp.c: Make file obsolete.
4853 * ch-lang.c: Make file obsolete.
4854
4855 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4856 CHILL_LIB.
4857 (TARGET_FLAGS_TO_PASS): Ditto.
4858 (CHILLFLAGS): Obsolete.
4859 (CHILL): Obsolete.
4860 (CHILL_FOR_TARGET): Obsolete.
4861 (CHILL_LIB): Obsolete.
4862 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4863 ch-valprint.c.
4864 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4865 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4866 ch-lang.o.
4867 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4868 targets.
4869
8aaf0b47
JB
48702002-07-31 Joel Brobecker <brobecker@gnat.com>
4871
4872 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4873 This does not change anything at the moment, but will be helpful
4874 later when full Ada support is integrated.
4875
f3a7b3a5
KB
48762002-07-31 Kevin Buettner <kevinb@redhat.com>
4877
4878 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4879 help message.
4880
fb850278
KB
48812002-07-31 Kevin Buettner <kevinb@redhat.com>
4882
4883 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4884 and save it in a local variable. Use variable in later test.
4885
e3bddbfa
KB
48862002-07-31 Kevin Buettner <kevinb@redhat.com>
4887
4888 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4889 test. (Thanks to Daniel Jacobowitz.)
4890
28d169de
KB
48912002-07-31 Kevin Buettner <kevinb@redhat.com>
4892
4893 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4894 (mips_abi_strings): Add "n64".
4895 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4896
7fe7e44e
KB
48972002-07-31 Kevin Buettner <kevinb@redhat.com>
4898
4899 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4900 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4901
c6caf090
KB
49022002-07-31 Kevin Buettner <kevinb@redhat.com>
4903
4904 * utils.c (host_pointer_to_address, address_to_host_pointer):
4905 Use gdb_assert() instead of explicit call to internal_error().
4906
c41669e0
KB
49072002-07-30 Kevin Buettner <kevinb@redhat.com>
4908
4909 * Makefile.in (rs6000-nat.o): Update dependencies.
4910
4911 From Nicholas Duffek:
4912 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4913 (aix-thread.o): New rule.
4914 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4915 * config/powerpc/aix432.mh: New file.
4916
2fda4977
DJ
49172002-07-30 Daniel Jacobowitz <drow@mvista.com>
4918
4919 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4920 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4921 (fetch_core_registers, ppc_linux_supply_gregset)
4922 (ppc_linux_supply_fpregset): New functions.
4923 (ppc_linux_regset_core_fns): New.
4924 (_initialize_ppc_linux_tdep): Call add_core_fns.
4925 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4926 and ppc_linux_supply_gregset.
4927 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4928 (supply_fpregset): Call ppc_linux_supply_fpregset.
4929 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4930 corelow.o.
4931 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4932
729051e6
DJ
49332002-07-30 Daniel Jacobowitz <drow@mvista.com>
4934
4935 * symtab.c (lookup_symbol): Demangle before lowercasing.
4936
5f8a3188
AC
49372002-07-30 Andrew Cagney <ac131313@redhat.com>
4938
4939 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4940 declaration.
4941 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4942 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4943 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4944 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4945 "gdb_string.h".
4946 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4947 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4948 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4949 (avr-tdep.o, mon960-rom.o): Ditto.
4950 (aout_stabs_gnu_h): Define.
4951 (symtab_h): Remove $(gdb_obstack_h).
4952
67f07146
JB
49532002-07-30 Jim Blandy <jimb@redhat.com>
4954
4955 Patch from David Carlton <carlton@math.stanford.edu>:
4956 * gdbinit.in: Move the `dir' commands that add GDB's own source
4957 directory to the search path to the end, so that the `gdb' source
4958 directory will be searched first.
4959
04ea0df1
AC
49602002-07-29 Andrew Cagney <ac131313@redhat.com>
4961
4962 * gdb_obstack.h: New file.
4963 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4964 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4965 * objfiles.h: Include "gdb_obstack.h".
4966 * Makefile.in (gdb_obstack_h): Define.
4967 (symtab_h): Add $(gdb_obstack_h).
4968 (objfiles_h): Add $(gdb_obstack_h).
4969
4970 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4971 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4972 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4973 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4974 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4975 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4976 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4977 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4978
4979 * Makefile.in (bcache.o): Update dependencies.
4980 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4981 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4982 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4983 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4984 (stabsread.o, symfile.o, symmisc.o): Ditto.
4985 (symtab.o, typeprint.o, macroexp.o): Ditto.
4986 (macrotab.o, mdebugread.o): Ditto.
4987 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4988 (coff_ecoff_h, aout_aout64_h): Define.
4989 (aout_stabs_gnu_h, libaout_h): Define.
4990
d138e37a
AC
49912002-07-29 Andrew Cagney <cagney@redhat.com>
4992
4993 * regcache.c (struct regcache_descr): Rename nr_registers to
4994 nr_cooked_registers. Revise comments describing the structure
4995 member fields.
4996 (init_regcache_descr): Update.
4997 (init_legacy_regcache_descr): Update.
4998 (read_register_gen, write_register_gen): When a cooked register in
4999 the raw register range, directly access the value from the raw
5000 register cache.
5001
460e6ec3
AC
50022002-07-29 Andrew Cagney <ac131313@redhat.com>
5003
5004 * z8k-tdep.c: Do not include "obstack.h".
5005 * h8300-tdep.c, h8500-tdep.c: Ditto.
5006 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5007 * valprint.c, v850-tdep.c: Ditto.
5008 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5009 * mn10200-tdep.c: Ditto.
5010
5011 * Makefile.in (z8k-tdep.o): Update dependencies.
5012 (m68hc11-tdep.o, valprint.o): Ditto.
5013 (v850-tdep.o, d10v-tdep.o): Ditto.
5014 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5015 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5016 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5017 (sh_opc_h, gdb_sim_sh_h): Define.
5018 (elf_sh_h, elf_bfd_h): Define.
5019 (opcode_m68hc11_h): Define.
5020 (OPCODES_SRC, OPCODES_DIR): define.
5021 (OPCODES): Use $(OPCODES_DIR).
5022 (gdb_sim_d10v_h): Rename sim_d10v_h.
5023 (gdb_sim_arm_h): Rename sim_arm_h.
5024
790c9cf0
KB
50252002-07-26 Kevin Buettner <kevinb@redhat.com>
5026
5027 * utils.c (host_pointer_to_address, address_to_host_pointer):
5028 Change internal_error() message to indicate function responsible
5029 for the error.
5030
9647fa49
KB
50312002-07-26 Kevin Buettner <kevinb@redhat.com>
5032
5033 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5034 calls to local_hex_string_custom().
5035
dabbe2c0
KB
50362002-07-26 Kevin Buettner <kevinb@redhat.com>
5037
5038 * irix5-nat.c: Move IRIX shared library support from here...
5039 * solib-irix.c: ...to here. Revised substantially to work with
5040 generic solib framework.
5041
b96d0a4e
KB
5042 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5043 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5044 * mips-irix-tdep.c: New file.
5045
313fb2f6
KB
5046 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5047 (mips-irix-tdep.o, solib-irix.o): New rules.
5048 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5049 solib-irix.o.
5050 * config/mips/irix6.mt (TDEPFILES): Likewise.
5051 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5052
ab2eaf26
KB
50532002-07-26 Kevin Buettner <kevinb@redhat.com>
5054
177e4768 5055 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5056 disabled (via ``#if 0'') includes.
5057
7244546a
KB
50582002-07-26 Kevin Buettner <kevinb@redhat.com>
5059
5060 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5061 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5062 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5063 Add support for the fpscr register.
5064 * rs6000-nat.c (regmap, fetch_inferior_registers)
5065 (store_inferior_registers, fetch_core_registers): Likewise.
5066
dd7be90a
KB
50672002-07-26 Kevin Buettner <kevinb@redhat.com>
5068
5069 * rs6000-nat.c (language.h): Include.
5070 (special_regs): Delete this array.
5071 (regmap): New function.
5072 (fetch_register, store_register): Use regmap() to map gdb
5073 register numbers to ptrace register numbers. Also, use
5074 outputs from regmap() to make decisions regarding type of
5075 ptrace() call to make. In particular, don't compare against
5076 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5077 (fetch_inferior_registers, store_inferior_registers): Where
5078 possible, obtain register numbers from tdep struct. Don't
5079 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5080 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5081 (LAST_UISA_SP_REGNUM): Delete.
5082
11bf77db
KB
50832002-07-25 Kevin Buettner <kevinb@redhat.com>
5084
5085 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5086 (fetch_registers, store_register, fetch_core_registers): Don't
5087 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5088 regcache_collect() as appropriate.
5089 (find_toc_address): Format hex address with local_hex_string().
5090
06afebeb
AC
50912002-07-25 Andrew Cagney <ac131313@redhat.com>
5092
5093 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5094 bfd/elf32-frv.c.
5095
8c554d79
TT
50962002-07-24 Tom Tromey <tromey@redhat.com>
5097
5098 * jv-exp.y: Marked all strings with _().
5099 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5100 internal_error.
5101 (MethodInvocation, CastExpression, parse_number, yyerror,
5102 java_type_from_name, push_expression_name, yylex): Typo fixes.
5103
e4c242d9
DJ
51042002-07-24 Daniel Jacobowitz <drow@mvista.com>
5105
5106 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5107 (tee_file_flush, tee_file_write, tee_file_fputs)
5108 (tee_file_isatty): New.
5109 * ui-file.h (tee_file_new): Add prototype.
5110
ebf56fd3
AS
51112002-07-24 Aidan Skinner <aidan@velvet.net>
5112
5113 * ada-lang.c: Change k&r style function definitions to prototyped
5114 form.
5115 * ada-typeprint.c: Change k&r style function definitions to prototyped
5116 form.
5117 * ada-valprint.c: Change k&r style function definitions to prototyped
5118 form.
5119
7fb623f7
AC
51202002-07-24 Andrew Cagney <cagney@redhat.com>
5121
5122 * README: Remove reference to remote-bug.
5123 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5124 remote-bug.c.
5125 (m88k-nat.o): Delete rule.
5126 (m88k-tdep.o): Delete rule.
5127 (remote-bug.o): Delete rule.
5128 * MAINTAINERS: Mark as obsolete.
5129 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5130 * m88k-tdep.c: Make file obsolete.
5131 * config/m88k/m88k.mh: Ditto.
5132 * config/m88k/delta88v4.mh: Ditto.
5133 * config/m88k/delta88v4.mt: Ditto.
5134 * config/m88k/delta88.mt: Ditto.
5135 * config/m88k/delta88.mh: Ditto.
5136 * remote-bug.c: Ditto.
5137 * config/m88k/tm-delta88.h: Ditto.
5138 * config/m88k/nm-delta88v4.h: Ditto.
5139 * config/m88k/xm-delta88.h: Ditto.
5140 * config/m88k/xm-dgux.h: Ditto.
5141 * config/m88k/tm-m88k.h: Ditto.
5142 * config/m88k/nm-m88k.h: Ditto.
5143 * config/m88k/tm-delta88v4.h: Ditto.
5144 * m88k-nat.c: Ditto.
5145 * cxux-nat.c: Ditto.
5146 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5147 and m88*-*-* obsolete.
5148 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5149 m88*-*-* obsolete.
5150
37611a2b
AC
51512002-07-24 Andrew Cagney <cagney@redhat.com>
5152
5153 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5154 constant. Same for local pointer variables.
5155 (extract_signed_integer): Ditto.
5156 * defs.h (extract_unsigned_integer): Update.
5157 (extract_signed_integer): Update.
5158
1aaa5f99
AC
51592002-07-24 Andrew Cagney <cagney@redhat.com>
5160
5161 * regcache.c (regcache_raw_write): Change buf parameter to a
5162 constant void pointer.
5163 (regcache_raw_read): Change buf parameter to a void pointer.
5164 (legacy_write_register_gen): Change myaddr parameter a constant
5165 void pointer.
5166 (supply_register): Change val parameter to a const void pointer.
5167 * regcache.h (regcache_raw_write): Update declaration.
5168 (regcache_raw_read): Update declaration.
5169 (supply_register): Update declaration.
5170
b4f5539f
TT
51712002-07-24 Tom Tromey <tromey@redhat.com>
5172
5173 * defs.h (gdb_readline_wrapper): Declare.
5174 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5175 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5176 * top.c (gdb_readline_wrapper): New function.
5177 (command_line_input): Use it.
5178
0818c12a
AC
51792002-07-24 Andrew Cagney <cagney@redhat.com>
5180
5181 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5182 regcache_read and regcache_write.
5183 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5184 * regcache.c: Update.
5185 * sh-tdep.c (sh64_push_arguments): Update comment.
5186 (sh_pseudo_register_read): Update.
5187 (sh_pseudo_register_write): Update.
5188 (sh4_register_read): Update.
5189 (sh4_register_write): Update.
5190 (sh64_pseudo_register_read): Update.
5191 (sh64_pseudo_register_write): Update.
5192 (sh64_register_read): Update.
5193 (sh64_register_write): Update.
5194 * i386-tdep.c (i386_extract_return_value): Update.
5195 (i386_extract_struct_value_address): Update.
5196 (i386_extract_return_value): Update.
5197 * blockframe.c (generic_read_register_dummy): Update.
5198 (generic_call_dummy_register_unwind): Update
5199 * infrun.c (write_inferior_status_register): Update.
5200
f7321c06
JB
52012002-07-23 Jim Blandy <jimb@redhat.com>
5202
5203 * parser-defs.h (expression_context_pc): Make this extern.
5204 (Thanks to Michael Snyder.)
5205
2037aebb
AC
52062002-07-23 Andrew Cagney <ac131313@redhat.com>
5207
5208 GDB 5.2.1 released from 5.2 branch.
5209 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5210 * README: Update to mention 5.2.1.
5211
66504d44
MS
52122002-07-23 Mark Salter <msalter@redhat.com>
5213
5214 * remote.c (remote_read_bytes): Fix check for error.
5215
27bae383
KB
52162002-07-22 Kevin Buettner <kevinb@redhat.com>
5217
5218 * aix-thread.c (language.h): Include.
5219 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5220 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5221 Print newlines at end of debug messages.
5222 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5223 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5224
52252002-07-22 Kevin Buettner <kevinb@redhat.com>
5226
5227 * aix-thread.c (ppc-tdep.h): Include.
5228 (special_register_p): New function.
5229 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5230 (store_regs_user_thread): Use register number information from
5231 gdbarch_tdep struct instead of hardcoded offsets relative to
5232 FIRST_UISA_SP_REGNUM.
5233 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5234 special_register_p() instead of using FPLAST_REGNUM and
5235 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5236 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5237 will be MQ's register number.
5238
52392002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5240
5241 * aix-thread.c (ops): Rename to aix_thread_ops.
5242 (base_ops): Rename to base_target.
5243 (ops_attach): Rename to aix_thread_attach.
5244 (ops_detach): Rename to aix_thread_detach.
5245 (ops_resume): Rename to aix_thread_detach.
5246 (ops_wait): Rename to aix_thread_wait.
5247 (ops_kill): Rename to aix_thread_kill.
5248 (init_ops): Rename to init_aix_thread_ops.
5249 (ops_fetch_register): Rename to aix_thread_fetch_register.
5250 (ops_store_register): Rename to aix_thread_store_register.
5251 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5252 (ops_thread_alive): Rename to aix_thread_thread_alive.
5253 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5254 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5255 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5256 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5257 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5258 (store_regs_lib): Rename to store_regs_user_thread.
5259 (store_regs_kern): Rename to store_regs_kernel_thread.
5260
27bae383 52612002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5262
5263 * aix-thread.c (ops_prepare_to_store): Eliminate.
5264 (init_ops): Don't initialize ops.prepare_to_store.
5265 (store_regs_kern): Pre-fetch register buffers from child,
5266 because some registers may not be in the cache. Copy
5267 regs from register cache only if they are cached.
5268 (store_regs_lib): Copy regs from register cache only
5269 if they are cached.
5270 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5271 fill_gprs64): Ditto.
5272
61c5da0b
KB
52732002-07-22 Kevin Buettner <kevinb@redhat.com>
5274
5275 * aix-thread.c (gdb_assert.h): Include.
5276 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5277 register sizes (from register cache) match size of buffer holding
5278 register data.
5279 (fill_sprs32): Change parameter types to match those in the ptrace()
5280 buffer.
5281 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5282 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5283
52842002-07-22 Michael Snyder <msnyder@redhat.com>
5285
5286 * aix-thread.c (supply_sprs64): Cosmetic change.
5287 (supply_sprs32): Cosmetic change.
5288 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5289 (fill_sprs64): Use regcache_collect instead of read_register.
5290 (store_regs_lib): Use regcache_collect instead of
5291 read_register. Use fill_sprs32 instead of fill_sprs64,
5292 if debugging a 32-bit architecture.
5293 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5294 out of the register cache, instead of passing a pointer into
5295 the register cache directly to ptrace. Use regcache_collect
5296 insteaad of read_register.
5297 (ops_prepare_to_store): Use target_read_registers instead
5298 of read_register_bytes.
5299
36479eb1
AS
53002002-07-20 Aidan Skinner <aidan@velvet.net>
5301
5302 * MAINTAINERS: Add self under write after approval.
5303
80ae6ee2
AS
53042002-07-20 Aidan Skinner <aidan@velvet.net>
5305
5306 * ada-tasks.c: Change k&r style function definitions to prototyped
5307 form.
5308
8a8ab2b9
AC
53092002-07-19 Andrew Cagney <ac131313@redhat.com>
5310
5311 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5312 * x86-64-tdep.c: Include "objfiles.h".
5313 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5314 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5315
fb16b900
ML
53162002-07-17 Michal Ludvig <michal@suse.cz>
5317
5318 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5319 (update_context): Initialise cfa variable.
5320
0fe7bf7b
MS
53212002-07-17 Michael Snyder <msnyder@redhat.com>
5322
5323 * aix-thread.c: Shorten some long lines.
5324 Bring comments into line with code spec.
5325
488f131b
JB
53262002-07-18 Joel Brobecker <brobecker@gnat.com>
5327
5328 * infrun.c: Re-indent using gdb_indent.sh.
5329
46c415d2
JB
53302002-07-18 Joel Brobecker <brobecker@gnat.com>
5331
5332 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5333 Leave the indentation temporarily untouched, to minimize the diffs.
5334
cdecafbe
EZ
53352002-07-18 Elena Zannoni <ezannoni@redhat.com>
5336
5337 * stabsread.c: Make os9k sections of the code obsolete,
5338 for real this time.
5339 * stabsread.h: Make os9k sections of the code obsolete.
5340
7b6aa020
ML
53412002-07-18 Michal Ludvig <mludvig@suse.cz>
5342
09ec9b38
ML
5343 * linux-low.c (regsets_store_inferior_registers): Add free()
5344 at the end of a loop to prevent memory leak.
5345 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5346 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5347 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5348 line a comment.
4894ac5d 5349 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5350
233282cd
JB
53512002-07-17 Jim Blandy <jimb@redhat.com>
5352
5353 * macrocmd.c (info_macro_command): Remove newline from error
5354 message.
5355
7b6aa020 53562002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5357
5358 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5359 (sh_gdbarch_init): Use it for sh-dsp.
5360
f7ef9339
KB
53612002-07-16 Kevin Buettner <kevinb@redhat.com>
5362
5363 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5364 64-bit DWARF2 format.
5365
8dd72958
JB
53662002-07-16 Joel Brobecker <brobecker@gnat.com>
5367
5368 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5369 <sys/proc.h> when not available.
5370
a99a9e1b
AC
53712002-07-16 Andrew Cagney <ac131313@redhat.com>
5372
5373 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5374 * stabsread.c: Make os9k sections of the code obsolete.
5375 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5376 * config/i386/i386os9k.mt: Make file obsolete.
5377 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5378 (COMMON_OBS): Remove os9kread.o
5379 (SFILES): Remove os9kread.c.
5380 (os9kread.o, remote-os9k.o): Make target obsolete.
5381 * remote-os9k.c: Make file obsolete.
5382 * os9kread.c: Make file obsolete.
5383 * Makefile.in
5384
7a3085c1
AC
53852002-07-16 Andrew Cagney <ac131313@redhat.com>
5386
5387 * NEWS: Mention that the FR30 has been made obsolete.
5388 * fr30-tdep.c: Make file obsolete.
5389 * config/fr30/tm-fr30.h: Ditto.
5390 * config/fr30/fr30.mt: Ditto.
5391 * configure.tgt: Make fr30-*-elf obsolete.
5392 * MAINTAINERS: Make fr30-elf obsolete.
5393
28a93f5a
PM
53942002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5395
5396 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5397 found is not inside a section.
5398
be006b8b
KB
53992002-07-15 Kevin Buettner <kevinb@redhat.com>
5400
5401 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5402 strerror().
5403 (pdc_realloc): Use xrealloc() instead of realloc().
5404
14fa3751
KB
54052002-07-15 Kevin Buettner <kevinb@redhat.com>
5406
5407 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5408 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5409 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5410 macros.
5411
42cc437f
KB
54122002-07-15 Kevin Buettner <kevinb@redhat.com>
5413
5414 * aix-thread.c (ptrace_check): Eliminate goto.
5415 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5416 problem.
5417
8e2c28d4
KB
54182002-07-15 Kevin Buettner <kevinb@redhat.com>
5419
5420 * aix-thread.c (gdbcmd.h): Include.
5421 (DEBUG, DBG, DBG2, dbg): Eliminate.
5422 (debug_aix_thread): New static global.
5423 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5424 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5425 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5426 invocations to DBG and DBG2 macros to test against
5427 ``debug_aix_thread'' and call fprintf_unfiltered().
5428 (_initialize_aix_thread): Add new command "set debug aix-thread".
5429
30413464
AC
54302002-07-15 Andrew Cagney <ac131313@redhat.com>
5431
5432 From Gerhard Tonn <TON@de.ibm.com>:
5433 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5434 instead of supply_register.
5435
7c43edc1
AC
54362002-07-15 Andrew Cagney <ac131313@redhat.com>
5437
5438 * dwarf2cfi.c: Include "gdb_assert.h".
5439 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5440 non-NULL.
5441 (update_context): Do not use __func__. Add missing ``break''.
5442 (update_context): Do not use __func__.
5443
9364a0ef
EZ
54442002-07-15 Elena Zannoni <ezannoni@redhat.com>
5445
5446 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5447 and its setting. Set gdbarch instruction printing functions
5448 directly. For non-rs6000 case use new function
5449 gdb_print_insn_powerpc.
5450 (gdb_print_insn_powerpc): New function.
5451
3fbeef0b
AC
54522002-07-13 Andrew Cagney <ac131313@redhat.com>
5453
92eb23c5 5454 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5455 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5456 * configure.tgt: Mark d30v-*-* as obsolete.
5457 * d30v-tdep.c: Mark file as obsolete.
5458 * config/d30v/d30v.mt: Ditto.
5459 * config/d30v/tm-d30v.h: Ditto.
5460
aacb1f0a
AS
54612002-07-13 Aidan Skinner <aidan@velvet.net>
5462
5463 * ada-tasks.c (add_task_entry): replace calls to
5464 malloc() with xmalloc
5465 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5466
5467 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5468 ada_finish_decode_line_1, all_sals_for_line
5469 ada_breakpoint_rewrite): replace calls to free() with xfree()
5470
c11d79f2
KB
54712002-07-12 Kevin Buettner <kevinb@redhat.com>
5472
5473 From Nicholas Duffek (with minor changes by Martin Hunt,
5474 Louis Hamilton, and Kevin Buettner):
5475 * aix-thread.c: New file.
5476
8e19ed76
PS
54772002-07-12 Petr Sorfa <petrs@caldera.com>
5478
5479 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5480 complaint for invalid attribute class or form.
5481 (read_func_scope): DW_AT_frame_base
5482 better handling of DW_AT_block*.
5483 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5484 better handling of DW_AT_block*.
5485 (read_common_block): DW_AT_location
5486 better handling of DW_AT_block*.
5487 (read_partial_die): DW_AT_location better handling
5488 of DW_AT_block*.
5489 (new_symbol): DW_AT_external better handling of
5490 DW_AT_block*. Proper initialization of variable
5491 "addr".
5492 (attr_form_is_block): New function that returns true
5493 if the attribute's form is of DW_FORM_block*.
5494
295401f7
DJ
54952002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5496
5497 * valops.c (find_method_list): Remove comment about
5498 removed STATIC_MEMFUNCP argument.
5499 (value_find_oload_method_list): Likewise.
5500
e42dc924
KB
55012002-07-12 Kevin Buettner <kevinb@redhat.com>
5502
5503 From Nicholas Duffek:
5504 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5505 target_new_objfile_hook.
5506
6904b546
KB
55072002-07-12 Kevin Buettner <kevinb@redhat.com>
5508
5509 From Nicholas Duffek:
5510 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5511 csect.
5512
53fe9346
AC
55132002-07-12 Andrew Cagney <cagney@redhat.com>
5514
5515 * MAINTAINERS: Mention --enable-sim-build-warnings.
5516 (m68hc11-elf): Disable sim build warnings.
5517 (m32r-elf): Mark as broken obsolete candidate.
5518 (x86_64-linux-gnu): Mark as buildable with -Werror.
5519 (arm-elf): Change -w to ``,'' which enables warnings but not
5520 -Werror.
5521
af5f3db6
AC
55222002-07-12 Andrew Cagney <ac131313@redhat.com>
5523
5524 * bcache.h: Update copyright.
5525 (struct bstring, struct bcache): Move definition to "bcache.c".
5526 Replaced by opaque declaration.
5527 (bcache_xfree): Replace free_bcache.
5528 (bcache_xmalloc, bcache_memory_used): Declare.
5529
5530 * bcache.c: Update copyright.
5531 (struct bstring, struct bcache): Moved to here from "bcache.h".
5532 Update comments.
5533 (bcache_xmalloc, bcache_memory_used): New functions.
5534 (bcache_xfree): Replace function free_bcache.
5535
5536 * Makefile.in (objfiles.o): Add $(bcache_h).
5537 (objfiles_h): Remove $(bcache_h).
5538 (symfile.o): Add $(bcache_h).
5539
5540 * symmisc.c: Update copyright.
5541 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5542 (print_objfile_statistics): Use bcache_memory_used.
5543
5544 * symfile.c: Include "bcache.h".
5545 (reread_symbols): Use bcache_xfree.
5546 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5547 (add_psymbol_to_list): Pass psymbol_cache by value.
5548 (add_psymbol_with_dem_name_to_list): Ditto.
5549
5550 * objfiles.h: Update copyright.
5551 (struct bcache): Declare opaque. Do not include "bcache.h".
5552 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5553 bcache'' pointers.
5554 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5555
5556 * objfiles.c: Include "bcache.h". Update copyright.
5557 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5558 macro_cache.
5559 (free_objfile): Use bcache_xfree.
5560
444199e7
GS
55612002-07-11 Grace Sainsbury <graces@redhat.com>
5562
5563 * monitor.c (monitor_fetch_register): Make name a constant.
5564 (monitor_store_register): Same.
5565
261397f8
DJ
55662002-07-11 Daniel Jacobowitz <drow@mvista.com>
5567
5568 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5569 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5570 (finish_block) For non-function blocks, hash the symbol table. For
5571 function blocks, mark the symbol table as unhashed.
5572 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5573 (msymbol_hash_iw): Likewise.
5574 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5575 value.
5576 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5577 (lookup_minimal_symbol): Likewise for both.
5578 * symtab.h (struct block): Add `hashtable' flag. Comment the
5579 hashtable.
5580 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5581 (ALL_BLOCK_SYMBOLS): Update.
5582 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5583 (struct symbol): Add `hash_next' pointer.
5584 * symtab.c (lookup_block_symbol): Search using the hash table when
5585 possible.
5586 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5587 (search_symbols, find_addr_symbol): Likewise.
5588
5589 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5590 (read_dst_symtab): Likewise.
5591 * jv-lang.c (get_java_class_symtab): Likewise.
5592 * mdebugread.c: Include "gdb_assert.h".
5593 (shrink_block): Assert that the block being modified is not hashed.
5594 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5595 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5596 symbols.
5597 (dump_symtab): Recognize hashed blocks.
5598 * printcmd.c (print_frame_args): Assert that function blocks do not
5599 have hashed symbol tables.
5600 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5601 (fill_in_ada_prototype, debug_print_block): Likewise.
5602 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5603
6f0eaa01
CV
56042002-07-11 Corinna Vinschen <vinschen@redhat.com>
5605
5606 * stack.c (print_frame): Use result of frame_address_in_block()
5607 instead of fi->pc when evaluating symbols.
5608 (backtrace_command_1): Ditto.
5609
a208b0cb
AC
56102002-07-11 Andrew Cagney <cagney@redhat.com>
5611
5612 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5613 Make static.
5614
5615 * arm-tdep.c (arm_register_name): Make return type constant.
5616
a6b6b089
AC
56172002-07-10 Andrew Cagney <ac131313@redhat.com>
5618
5ae5f592
AC
5619 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5620 prototype.
5621 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5622 * s390-tdep.c (s390_fp_regnum): Ditto.
5623 (s390_read_fp): Ditto.
5624 (s390_pop_frame): Ditto.
5625 (_initialize_s390_tdep): Ditto.
5626 * remote.c (get_remote_state): Ditto.
5627 * procfs.c (mappingflags): Ditto.
5628 * memattr.c (_initialize_mem): Ditto.
5629 * mcore-tdep.c (mcore_pop_frame): Ditto.
5630 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5631 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5632 * language.c (set_case_str): Ditto.
5633 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5634 * frv-tdep.c (new_variant): Ditto.
5635 (frv_stopped_data_address): Ditto.
5636 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5637 (context_alloc): Ditto.
5638 (frame_state_alloc): Ditto.
5639 (unwind_tmp_obstack_init): Ditto.
5640 (unwind_tmp_obstack_free): Ditto.
5641 (cfi_read_fp): Ditto.
5642 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5643 (cris_pop_frame): Ditto.
5644 * c-lang.c (scanning_macro_expansion): Ditto.
5645 (finished_macro_expansion): Ditto.
5646 (c_preprocess_and_parse): Ditto.
5647 * gdbarch.sh: Ditto.
5648 * gdbarch.h, gdbarch.c: Regenerate.
5649 * config/mn10200/tm-mn10200.h: Adjust indentation.
5650 * target.c: Adjust indentation.
5651 * symtab.h: Adjust indentation.
5652 * stabsread.h: Adjust indentation.
5653 * remote-es.c: Adjust indentation.
5654 * os9kread.c: Adjust indentation.
5655
56562002-07-10 Andrew Cagney <ac131313@redhat.com>
5657
a6b6b089
AC
5658 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5659 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5660
a1789893
GS
56612002-07-10 Grace Sainsbury <graces@redhat.com>
5662
5663 * NEWS: Mention m68k, mcore multi-arching.
5664 * MAINTAINERS: Change status of m68k, mcore to reflect
5665 multi-arching.
5666
02f0d45d
DJ
56672002-07-10 Daniel Jacobowitz <drow@mvista.com>
5668
5669 * valops.c (find_overload_match): Free oload_syms.
5670
f15f768e
JB
56712002-07-09 Joel Brobecker <brobecker@gnat.com>
5672
5673 Define HAVE_SYS_PROC_H if sys/proc.h exists
5674 * configure.in: Add check for sys/proc.h
5675 * config.in: Regenerate.
5676 * configure: Regenerate.
5677
902a7139
GS
56782002-07-09 Grace Sainsbury <graces@redhat.com>
5679
5680 * config/m68k/tm-m68k.h: Remove macros wrapped in
5681 #if !GDB_MULTI_ARCH.
5682
a534e424
AC
56832002-07-08 Andrew Cagney <ac131313@redhat.com>
5684
5685 * config.in, configure: Regenerate.
5686
9b94f7bf
MK
56872002-07-08 Mark Kettenis <kettenis@gnu.org>
5688
5689 * dwarf2cfi.c: Include "gcore.h".
5690 (execute_stack_op): Fix implementation of the
5691 DW_OP_deref and DW_OP_deref_size operators by letting do their
5692 lookup in the target.
5693
1d34db41
MK
56942002-07-07 Mark Kettenis <kettenis@gnu.org>
5695
5696 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5697 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5698 tdep->sc_sp_offset.
5699
79d5b63a
DJ
57002002-07-05 Daniel Jacobowitz <drow@mvista.com>
5701
5702 Fix PR gdb/595, gdb/602
5703 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5704 Don't call value_cast, just read the vtable pointer; update comments
5705 to match.
5706
3bb912e8
GS
57072002-07-05 Grace Sainsbury <graces@redhat.com>
5708
5709 * config/mcore/tm-mcore.h: Remove file.
5710 * config/mcore/mcore.mt: Remove definition of TM_FILE
5711 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5712
ca39387d
MK
57132002-07-05 Mark Kettenis <kettenis@gnu.org>
5714
5715 * i386bsd-tdep.c: Include "gdb_string.h".
5716
efdc1108
GS
57172002-07-04 Grace Sainsbury <graces@redhat.com>
5718
5719 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5720 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5721 mcore-tdep.
5722 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5723 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5724 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5725 (RETVAL_REGNUM): Move macros from tm-mcore.h
5726 (mcore_reg_struct_has_addr): New function.
5727 (mcore_gdbarch_init): Added initializations for the macros removed
5728 from tm-mcore.h.
5729
bb21884d
MK
57302002-07-04 Mark Kettenis <kettenis@gnu.org>
5731
5732 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5733 traditonal string branding within the ELF header.
5734
228c6d41
DJ
57352002-07-04 Daniel Jacobowitz <drow@mvista.com>
5736
5737 * symtab.c (remove_params): New function.
5738 (make_symbol_overload_list): Use it instead of cplus_demangle.
5739 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5740
2404952e
MK
57412002-07-04 Mark Kettenis <kettenis@gnu.org>
5742
e5e4acad
MK
5743 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5744
baadce09
MK
5745 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5746 New variables.
5747 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5748 and tdep->sigtramp_end.
5749 * i386obsd-nat.c: New file.
5750 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5751
2404952e
MK
5752 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5753 Don't call get_current_frame().
5754
9b4f1ba7
PM
57552002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5756
5757 * i386-nat.c (child_post_startup_inferior): New function
5758 calling i386_cleanup_dregs if
5759 I386_USE_GENERIC_WATCHPOINTS is defined.
5760 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5761 conditional to acknowledge that i386-nat.c has its
5762 own child_post_startup_inferior function.
5763
c0d1d883
MK
57642002-07-04 Mark Kettenis <kettenis@gnu.org>
5765
00f8375e
MK
5766 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5767 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5768 instead of MAX_REGISTER_RAW_SIZE.
5769 (i386_extract_return_value, i386_extract_struct_value_address):
5770 Convert to use regcache.
5771 (i386_gdbarch_init): Set max_register_raw_size and
5772 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5773 Set extract_return_value and extract_struct_value_address instead
5774 of their deprecated variants.
5775
c0d1d883
MK
5776 Convert i386 target to generic dummy frames.
5777 * i386-tdep.c: Include "symfile.h".
5778 (i386_frameless_signal_p): Consider a function to be frameless if
5779 the pc points at the first instruction of the function.
5780 (i386_frame_chain): Handle (generic) call dummies.
5781 (i386_frame_saved_pc): Likewise.
5782 (i386_frame_init_saved_regs): Remove code dealing with call
5783 dummies on the stack.
5784 (i386_push_dummy_frame): Removed.
5785 (i386_call_dummy_words): Removed.
5786 (i386_fix_call_dummy): Removed.
5787 (i386_push_return_address): New function.
5788 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5789 parameter, and don't call get_current_frame.
5790 (i386_pop_frame): New function.
5791 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5792 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5793 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5794 call_dummy_length to 0, set call_dummy_words to NULL, set
5795 sizeof_call_dummy_words to 0, set fix_call_dummy to
5796 generic_fix_call_dummy, set pc_in_call_dummy to
5797 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5798 generic_push_dummy_frame, set push_return_address to
5799 i386_push_return_address and set frame_chain_valid to
5800 generic_file_frame_chain_valid.
5801
049ee0e4
AC
58022002-07-03 Andrew Cagney <ac131313@redhat.com>
5803
5804 * gdbarch.sh (struct regcache): Add opaque declaration.
5805 (EXTRACT_RETURN_VALUE): New architecture method.
5806 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5807 * gdbarch.h, gdbarch.c: Regenerate.
5808 * arch-utils.c (legacy_extract_return_value): New function.
5809 * arch-utils.h (legacy_extract_return_value): Declare.
5810 * values.c (value_being_returned): Re-enable code handling
5811 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5812 deprecated_grub_regcache_for_registers call to block handling
5813 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5814 (EXTRACT_RETURN_VALUE): Do not define.
5815
4e0d9804
GS
58162002-07-03 Grace Sainsbury <graces@redhat.com>
5817
5818 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5819 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5820 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5821 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5822 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5823 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5824 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5825 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5826 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5827 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5828 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5829 argument so the function fits the prototype in the architecture
5830 vector.
5831 (mcore_pop_frame): Remove argument so the function fits the
5832 prototype. Use get_current_frame instead of the argument.
5833 (mcore_push_arguments): Change type of struct_return so the
5834 function can be used in the architecture vector.
5835 (mcore_store_struct_return): Add.
5836 (mcore_frame_init_saved_regs): Add.
5837 (mcore_gdbarch_init): Add function calls to replace the macros
5838 removed from tm-mcore.h
5839
36160dc4
AC
58402002-07-03 Andrew Cagney <ac131313@redhat.com>
5841
5842 * infcmd.c (print_return_value): Remove compatibility code calling
5843 deprecated_grub_regcache_for_registers.
5844
5845 * values.c: Include "regcache.h".
5846 (value_being_returned): Update. Use
5847 deprecated_grub_regcache_for_registers to extract the register
5848 buffer address.
5849 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5850 ``struct regcache''.
5851 * Makefile.in (values.o): Add dependency on $(regcache_h).
5852
5853 * inferior.h (run_stack_dummy): Change type of second parameter to
5854 a ``struct regcache''.
5855 * valops.c (hand_function_call): Change type of retbuf to ``struct
5856 regcache''. Allocate using regcache_xmalloc, clean using
5857 make_cleanup_regcache_xfree.
5858 * infcmd.c (run_stack_dummy): Update. Use
5859 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5860
5861 * regcache.c (do_regcache_xfree): New function.
5862 (make_cleanup_regcache_xfree): New function.
5863 * regcache.h (make_cleanup_regcache_xfree): Declare.
5864
e64d9b3d
MH
58652002-07-03 Martin M. Hunt <hunt@redhat.com>
5866
4dd79c29
MH
5867 * event-top.c (command_line_handler): Don't read past
5868 beginning of buffer.
e64d9b3d 5869
4dd79c29
MH
58702002-07-03 Martin M. Hunt <hunt@redhat.com>
5871
e64d9b3d
MH
5872 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5873 struct frame_id.
5874 (varobj_create): Store frame_id for root.
5875 (varobj_gen_name): Use xasprintf.
5876 (varobj_update): Save and restore frame using get_frame_id() and
5877 frame_find_by_id().
5878 (create_child): Use xasprintf.
5879 (new_root_variable): Initialize frame_id.
5880 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5881 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5882 to prevent memory leak.
5883
26e6c56a
AC
58842002-07-03 Andrew Cagney <ac131313@redhat.com>
5885
5886 * valops.c (hand_function_call): Move declaration of retbuf to
5887 start of function, allocate using malloc, add a cleanup but before
5888 the inf_status cleanup, cleanup the buffer. Rename local variable
5889 old_chain to inf_status_cleanup.
5890
f436dd25
MH
58912002-07-03 Martin M. Hunt <hunt@redhat.com>
5892
5893 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5894
5895 * cli/cli-decode.c (cmd_func_p): New function.
5896 (cmd_func): New function.
5897
5898 * command.h: Add cmd_func() and cmd_func_p().
5899
4cfe2084
GS
59002002-07-03 Grace Sainsbury <graces@redhat.com>
5901
5902 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5903 (REGISTER_SIZE): Remove.
5904 (MAX_REGISTER_RAW_SIZE): Remove.
5905 (REGISTER_VIRTUAL_TYPE): Remove.
5906 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5907 (REGISTER_NAME): Remove.
5908 (USE_GENERIC_DUMMY_FRAMES): Remove.
5909 (CALL_DUMMY): Remove.
5910 (CALL_DUMMY_START_OFFSET): Remove.
5911 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5912 (CALL_DUMMY_LOCATION): Remove.
5913 (FIX_CALL_DUMMY): Remove.
5914 (CALL_DUMMY_ADDRESS): Remove.
5915 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5916 (SAVE_DUMMY_FRAME_TOS): Remove.
5917 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5918 (mcore_register_virtual_type): New function.
5919 (mcore_register_byte): New function.
5920 (mcore_register_size): New function.
5921 (mcore_register_name): New function.
5922 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5923 macros removed from tm-mcore.h.
5924 (mcore_dump_tdep): Add.
5925 (_initialize_mcore_tdep): Add gdbarch_register call.
5926
4fd667e9
MK
59272002-07-03 Mark Kettenis <kettenis@gnu.org>
5928
5929 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5930 frameless_look_for_prologue, such that we actually call this
5931 function.
5932
42f99ac2
JB
59332002-07-02 Joel Brobecker <brobecker@gnat.com>
5934
5935 * frame.h (frame_address_in_block): New function.
5936
5937 * blockframe.c (frame_address_in_block): New function extracted
5938 from get_frame_block().
5939 (get_frame_block): Use frame_address_in_block().
5940 (block_innermost_frame): Use frame_address_in_block() to match
5941 the frame pc address against the block boundaries rather than
5942 the frame pc directly. This prevents a failure when a frame pc
5943 is actually a return-address pointing immediately after the end
5944 of the given block.
5945
103a1597 59462002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5947
5948 * MAINTAINERS: Add self under write after approval.
5949
59502002-07-02 Grace Sainsbury <graces@redhat.com>
5951
103a1597
GS
5952 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5953 used in architecture vector. The default is
5954 m68k_local_breakpoint_from_pc.
5955 (m68k_local_breakpoint_from_pc): Add.
5956 (enum): Add register numbers from tm-m68k.h.
5957 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5958 vector.
5959 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5960 GDB_MULTI_ARCH_PARTIAL.
5961 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5962 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5963 m68k-tdep.c.
5964 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5965 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5966 to enum in m68k-tdep.c
5967
7a5a0534
JB
59682002-07-02 Joel Brobecker <brobecker@gnat.com>
5969
5970 * solib-osf.c (open_map): Compute the list of shared libraries
5971 loaded by the inferior, rather than the list of libraries loaded
5972 by GDB itself. Otherwise, GDB ends up reading the symbols from
5973 the wrong shared libraries...
5974
6f558d74
MK
59752002-07-02 Mark Kettenis <kettenis@gnu.org>
5976
b7d15bf7
MK
5977 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5978 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5979 macros.
5980 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5981 Remove functions.
5982 (FRAMELESS_SIGNAL): Remove function.
5983 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5984 i386_linux_saved_pc_after_call): Removed.
5985 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5986 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5987 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5988
6bff26de
MK
5989 * i386-tdep.c (i386_frameless_signal_p): New function.
5990 (i386_frame_chain): Deal with frameless signals.
5991 (i386_sigtramp_saved_sp): New function.
5992 (i386_frame_saved_pc): Deal with frameless signals.
5993 (i386_saved_pc_after_call): Make sure the correct value is
5994 returned just after entry into a sigtramp.
5995 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5996 i386fbsd4_sc_sp_offset): New variables.
5997 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5998 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5999 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6000 similiar to what we already did for sc_pc_offset.
6001 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6002 tdep->sc_sp_offset.
6003
6f558d74
MK
6004 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6005
145564b7
ML
60062002-07-02 Michal Ludvig <mludvig@suse.cz>
6007
6008 * config/i386/tm-x86-64linux.h: New.
6009 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6010 definitions.
6011 * config/i386/nm-x86-64.h: Rename to ...
6012 * config/i386/nm-x86-64linux.h: ... this one.
6013 * config/i386/x86-64linux.mh: Reflect the above change.
6014
3a1e71e3
MK
60152002-07-01 Mark Kettenis <kettenis@gnu.org>
6016
21d0e8a4
MK
6017 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6018 with sigcontext_addr. Add sc_sp_offset.
6019 (i386bsd_sigtramp_saved_pc): Remove prototype.
6020 (i386bsd_sicontext_addr): Add prototype.
6021 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6022 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6023 (i386_svr4_sigtramp_saved_pc): Removed.
6024 (i386_svr4_sigcontext_addr): New function.
6025 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6026 Initialize tdep->sigcontext_addr instead. Initialize
6027 tdep->sc_pc_offset and tdep->sc_sp_offset.
6028 (i386_gdbarch_init): Likewise.
6029 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6030 any more.
6031 (i386bsd_sigtramp_saved_pc): Remove function.
6032 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6033 Initialize tdep->sigcontext_addr instead. Initialize
6034 tdep->sc_pc_offset.
6035 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6036 of tdep->sigtramp_saved_pc.
6037 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6038 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6039 instead.
6040
3a1e71e3
MK
6041 * i386-tdep.c (i386_frameless_function_invocation,
6042 i386_frame_num_args, i386_frame_init_saved_regs,
6043 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6044 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6045 i386_extract_return_value, i386_store_return_value,
6046 i386_extract_struct_value_address, i386_register_virtual_type,
6047 i386_register_convertible, i386_register_convert_to_virtual,
6048 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6049 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6050 static.
6051
52e9098c
MK
60522002-07-01 Mark Kettenis <kettenis@gnu.org>
6053
77b13a25
MK
6054 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6055
52e9098c
MK
6056 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6057 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6058 this macro. Include "value.h".
6059
1b372fff
AS
60602002-06-30 Aidan Skinner <aidan@velvet.net>
6061
6062 * ada-exp.tab.c: remove as it's a generated file
6063 * ada-lex.c: remove as it's a generated file
6064
9c5045b5
MK
60652002-06-30 Mark Kettenis <kettenis@gnu.org>
6066
4a93c5bb
MK
6067 * config/i386/tm-i386.h (struct frame_info, struct
6068 frame_saved_regs, struct value, struct type): Remove forward
6069 declarations.
6070
322d4fe0
MK
6071 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6072 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6073 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6074 (FILL_FPXREGSET): Define.
6075
fdd8263d
MK
6076 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6077
482e577b
MK
6078 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6079 i[3456]86-*-netbsd* case.
6080 * config/i386/tm-obsd.h: Removed.
6081 * config/i386/obsd.mt: Removed.
6082 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6083 core-aout.o.
6084 (MH_CFLAGS): Add -DYYDEBUG=0.
6085
6916549a
MK
6086 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6087 i386nbsd_sc_pc_offset on OpenBSD too.
6088
9c5045b5
MK
6089 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6090 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6091 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6092 define.
6093 * i386bsd-tdep.c: Include "arch-utils.h".
6094 (i386bsd_aout_in_solib_call_trampoline): New function.
6095 (i386bsd_init_abi): Set in_solib_call_trampoline to
6096 i386bsd_aout_in_solib_call_trampoline.
6097 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6098 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6099
aa84d1bb
AC
61002002-06-28 Andrew Cagney <ac131313@redhat.com>
6101
6102 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6103 (struct obstack, struct bcache): Add opaque declarations.
6104 * Makefile.in (macrotab_h): Update
6105
b4d83933
AC
61062002-06-28 Andrew Cagney <ac131313@redhat.com>
6107
6108 * blockframe.c (generic_find_dummy_frame): Change return type to
6109 ``struct regcache''.
6110 (struct dummy_frame): Replace field ``registers'' with regcache, a
6111 struct regcache object.
6112 (generic_find_dummy_frame): Update.
6113 (generic_push_dummy_frame): Update. Use regcache_xfree,
6114 regcache_xmalloc and regcache_cpy.
6115 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6116 regcache_xfree.
6117 (deprecated_generic_find_dummy_frame): Update.
6118 (generic_read_register_dummy): Update. Use
6119 regcache_read_as_address.
6120 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6121 (generic_get_saved_register): Update. Use regcache_read.
6122
08c0b5bc
AC
61232002-06-28 Andrew Cagney <ac131313@redhat.com>
6124
6125 * Makefile.in (objfiles_h): Add $(bcache_h).
6126 * objfiles.h: Include "bcache.h".
6127
6128 * Makefile.in (symtab_h): Remove $(bcache_h).
6129 * symtab.h: Do not include "bcache.h".
6130
1f89801a
AC
61312002-06-28 Andrew Cagney <ac131313@redhat.com>
6132
6133 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6134 generic_func_frame_chain_valid.
6135
b9644b58
DB
61362002-06-28 David O'Brien <obrien@FreeBSD.org>
6137
6138 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6139 * config/i386/tm-fbsd.h: Likewise.
6140
dd486634
AC
61412002-06-28 Andrew Cagney <ac131313@redhat.com>
6142
6143 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6144 generic_unwind_get_saved_register.
6145
0b434a00
AC
61462002-06-27 Andrew Cagney <ac131313@redhat.com>
6147
6148 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6149 * regcache.c (supply_register): Add missing argument to
6150 register_buffer call.
6151
f30e5a77
AC
61522002-06-27 Andrew Cagney <ac131313@redhat.com>
6153
6154 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6155 Solaris /bin/grep does not not like it. From Peter Schauer.
6156
9f064c95
TT
61572002-06-26 Tom Tromey <tromey@redhat.com>
6158
6159 * command.h (add_setshow_cmd): Declare.
6160 (add_setshow_cmd_full): Declare.
6161 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6162 returns void. Use add_setshow_cmd_full.
6163 (add_setshow_cmd_full): New function.
6164 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6165 (add_setshow_boolean_cmd): Likewise.
6166
099c7589
JT
61672002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6168
6169 * config/vax/tm-vax.h: Protect from multiple inclusion.
6170 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6171 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6172 * config/vax/tm-vaxbsd.h: ...here. New file.
6173 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6174
1d049c5e
JT
61752002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6176
6177 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6178 (BELIEVE_PCC_PROMOTION): Remove.
6179 (AP_REGNUM): Move to...
6180 * config/vax/nm-vax.h: ...here.
6181 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6182 (vax_breakpoint_from_pc): New function.
6183 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6184 and gdbarch_believe_pcc_promotion.
6185
4791e091
JT
61862002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6187
6188 * Makefile.in (vax_tdep_h): Define.
6189 (vax-tdep.o): Use $(vax_tdep_h).
6190 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6191 (vax_dump_tdep): New function.
6192 (_initialize_vax_tdep): Register vax_dump_tdep.
6193 * vax-tdep.h: Include osabi.h.
6194 (struct gdbarch_tdep): New.
6195
da130f98
AC
61962002-06-26 Andrew Cagney <cagney@redhat.com>
6197
6198 * frame.h (deprecated_generic_find_dummy_frame): Rename
6199 generic_find_dummy_frame.
6200 * blockframe.c (generic_find_dummy_frame): Make static.
6201 (deprecated_generic_find_dummy_frame): New function.
6202 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6203 generic_find_dummy_frame with deprecated_find_dummy_frame.
6204 (sh64_nofp_frame_init_saved_regs): Ditto.
6205 (sh_fp_frame_init_saved_regs): Ditto.
6206 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6207 (s390_frame_chain): Ditto.
6208 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6209
6300c360
GS
62102002-06-26 Grace Sainsbury <graces@redhat.com>
6211
6212 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6213 gdbarch vector are at the top.
6214 (NUM_REGS): Remove.
6215 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6216 (FRAME_ARGS_ADDRESS): Remove.
6217 (FRAME_LOCALS_ADDRESS): Remove.
6218 (FRAME_NUM_ARGS): Remove.
6219 (FRAME_ARGS_SKIP): Remove.
6220 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6221 (m68k_gdbarch_init): Add gdbarch initializations for macros
6222 undefined in tm-m68k.h
6223
1c617db8
GS
62242002-06-26 Grace Sainsbury <graces@redhat.com>
6225
6226 * monitor.h: Add the function regname to monitor_ops
6227 structure. This way NUM_REGS does not have to be a constant.
6228 * monitor.c (monitor_fetch_register): Added support for regname
6229 function. The function is called if the array regnames is NULL.
6230 (monitor_store_register): Same.
da130f98
AC
6231 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6232 regnames array.
1c617db8
GS
6233 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6234 cpu32bug_cmds.regname to point to new function.
6235 * abug-rom.c (abug_regname): Same as above.
6236 (init_abug_cmds): Same.
6237 * dbug-rom.c (dbug_regname): Same as above.
6238 (init_dbug_cmds): Same.
6239 * remote-est.c (est_regname): Same.
6240 (init_est_cmds): Same.
6241 * rom68k-rom.c (rom68k_regname): Same.
6242 (init_rom68k_cmds): Same.
6243
ea9365bb
TT
62442002-06-25 Tom Tromey <tromey@redhat.com>
6245
6246 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6247
72cec141
AC
62482002-06-25 Andrew Cagney <cagney@redhat.com>
6249
6250 * infrun.c (stop_registers): Change variable's type to ``struct
6251 regcache'''.
6252 (xmalloc_inferior_status): Delete function.
6253 (free_inferior_status): Delete function.
6254 (normal_stop): Use regcache_cpy.
6255 (struct inferior_status): Change type of fields ``stop_registers''
6256 and ``registers'' to ``struct regcache''.
6257 (write_inferior_status_register): Use regcache_write.
6258 (save_inferior_status): Instead of calling
6259 xmalloc_inferior_status, allocate the inf_status buffer directly.
6260 Use regcache_dup_no_passthrough and regcache_dup to save the
6261 buffers.
6262 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6263 Replace the stop_registers regcache instead of overriding it. Use
6264 regcache_xfree. Instead of calling free_inferior_status, xfree
6265 the buffer directly.
6266 (discard_inferior_status): Use regcache_xfree. Instead of calling
6267 free_inferior_status, xfree the buffer directly.
6268 (build_infrun): Use regcache_xmalloc.
6269 (_initialize_infrun): Delete redundant call to build_infrun.
6270
6271 * Makefile.in (infcmd.o): Add $(regcache_h).
6272
6273 * infcmd.c: Include "regcache.h".
6274 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6275 obtain the address of `stop_registers' register buffer.
6276 (print_return_value): Ditto.
6277
6278 * inferior.h (struct regcache): Add opaque declaration.
6279 (stop_registers): Change variable's declared type to ``struct
6280 regcache''.
6281
defc6f8c
TT
62822002-06-24 Tom Tromey <tromey@redhat.com>
6283
c0e624e7
TT
6284 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6285 * target.c (initialize_targets): Fixed typo in
6286 trust-readonly-sections `show' documentation.
6287
defc6f8c
TT
6288 * main.c: Marked all strings with _().
6289
2b236d82
DH
62902002-06-24 Don Howard <dhoward@redhat.com>
6291
6292 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6293 that means max CORE_ADDR+1.
6294 (lookup_mem_region): Ditto.
6295 (mem_info_command): Ditto.
6296
942dc0e9
GS
62972002-06-24 Grace Sainsbury <graces@redhat.com>
6298
6299 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6300 (REGISTER_BYTES_OK): Remove.
6301 (REGISTER_BYTES): Remove.
6302 (STORE_STRUCT_RETURN): Remove.
6303 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6304 (STORE_RETURN_VALUE): Remove.
6305 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6306 (FRAME_CHAIN): Remove.
6307 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6308 (FRAME_SAVED_PC): Remove.
6309 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6310 (m68k_store_struct_return): Add.
6311 (m68k_deprecated_extract_return_value): Add.
6312 (m68k_deprecated_extract_struct_value_address): Add.
6313 (m68k_store_return_value): Add.
6314 (m68k_frame_chain): Add.
6315 (m68k_frameless_function_invocation): Add.
6316 (m68k_frame_saved_pc): Add.
6317 (m68k_gdbarch_init): added set_gdbarch calls for new
6318 functions and deleted macros.
6319
03c30d4d
TT
63202002-06-23 Tom Tromey <tromey@redhat.com>
6321
6322 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6323 (ALLDEPFILES): Likewise.
6324 (udiheaders): Removed.
6325 (udip2soc.o): Likewise.
6326 (udi2go32.o): Likewise.
6327 (udr.o): Likewise.
6328 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6329
37e71372
AC
63302002-06-22 Andrew Cagney <ac131313@redhat.com>
6331
06a6ac57
AC
6332 * infrun.c (_initialize_infrun): Delete unnecessary call to
6333 build_infrun.
6334
37e71372
AC
6335 * regcache.h: Update comments describing the regcache_cpy family
6336 of functions.
6337 (regcache_save, regcache_restore): Delete declaration.
6338 (regcache_save_no_passthrough): Delete declaration.
6339 (regcache_restore_no_passthrough): Delete declaration.
6340 * regcache.c (regcache_save): Delete function.
6341 (regcache_save_no_passthrough): Delete function.
6342 (regcache_restore): Delete function.
6343 (regcache_restore_no_passthrough): Delete function.
6344
78f6d055
AC
63452002-06-21 Andrew Cagney <ac131313@redhat.com>
6346
6347 * config/m68k/tm-m68k.h: Fix typo.
6348 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6349 (m68k_frame_init_saved_regs): Declare.
6350
78b119cb
JB
63512002-06-21 Jim Blandy <jimb@redhat.com>
6352
6353 Remove some vestiges of Harris 88k support.
6354 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6355 register numbering quirk.
6356 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6357 odd symbols occurring in Harris 88k ELF targets.
6358
0fbb3da7
TT
63592002-06-21 Tom Tromey <tromey@redhat.com>
6360
6361 * gdb_locale.h: New file.
6362 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6363 (defs_h): Added gdb_locale.h.
6364 * configure, config.in: Rebuilt.
6365 * configure.in (PACKAGE): Define.
6366 * defs.h: Include gdb_locale.h.
6367 * main.c (captured_main): Call setlocale, bindtextdomain,
6368 textdomain.
6369
456f8b9d
DB
63702002-06-21 Dave Brolley <brolley@redhat.com>
6371
6372 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6373 * config/frv/frv.mt: New file.
6374 * config/frv/tm-frv.h: New file.
6375 * configure.tgt: Support frv-*-*.
6376 * Makefile.in (frv-tdep.o): New target.
6377 * frv-tdep.c: New file.
6378 * NEWS: Mention frv.
6379
cdd463f9
DB
63802002-06-21 Dave Brolley <brolley@redhat.com>
6381
6382 * MAINTAINERS: Add self to "Write After Approval" list.
6383
5d3ed2e3
GS
63842002-06-21 Grace Sainsbury <graces@redhat.com>
6385
6386 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6387 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6388 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6389 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6390 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6391
6392 * m68k-tdep.c: Include arch-utils.h
6393 (m68k_register_raw_size): Add.
6394 (m68k_register_virtual_size): Add.
6395 (m68k_register_virtual_type): Add.
6396 (m68k_register_name): Add.
6397 (m68k_stack_align): Add.
6398 (m68k_register_byte): Add.
6399 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6400 tm-m68k.h.
6401
7f8e7424
GS
64022002-06-21 Grace Sainsbury <graces@redhat.com>
6403
a2c6a6d5 6404 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6405 m68k_find_saved_regs.
6406 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6407 references to it with frame->saved_regs.
7f8e7424
GS
6408 (m68k_gdbarch_init): Added function calls to initialize the
6409 gdbarch structure.
a2c6a6d5
GS
6410 (m68k_fix_call_dummy): Add.
6411 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6412 (CALL_DUMMY): Remove.
6413 (CALL_DUMMY_LENGTH): Remove.
6414 (CALL_DUMMY_START_OFFSET): Remove.
6415 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6416 (FIX_CALL_DUMMY): Remove.
6417 (PUSH_DUMMY_FRAME): Remove.
6418 (POP_FRAME): Remove.
7f8e7424 6419
f461f5cf
PM
64202002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6421
6422 * parse.c (parse_fprintf): New function used to avoid calls to
6423 fprintf in bison parser generated debug code.
6424 * parser-defs.h: Declaration of new parse_fprintf function.
6425 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6426 Set YYDEBUG to 1 by default.
6427 Set YYFPRINTF as parse_fprintf.
6428
7f0c12ed
ML
64292002-06-21 Michal Ludvig <mludvig@suse.cz>
6430
6431 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6432 encoding anymore.
6433 (pointer_encoding, enum ptr_encoding): New.
6434 (execute_cfa_program): Take care about pointer encoding.
6435 (dwarf2_build_frame_info): Only call parse_frame_info for
6436 .debug_frame and .eh_frame.
6437 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6438 fixed augmentation handling, added relative addressing,
6439 ignore duplicate FDEs. Added comments.
19d833a2 6440 * dwarf2cfi.c: Reindented.
7f0c12ed 6441
87c4a039
EZ
64422002-06-20 Elena Zannoni <ezannoni@redhat.com>
6443
6444 * event-top.c (command_handler): Don't use space_at_cmd_start
6445 unless there is sbrk() on the host. Assign time and space data
6446 to union fields of the appropriate length.
6447
1cf877ad
ML
64482002-06-20 Michal Ludvig <mludvig@suse.cz>
6449
6450 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6451 x86_64_register_name. Return type changed to 'const char *'.
6452 (x86_64_register_name2nr): Rename to x86_64_register_number.
6453 (x86_64_gdbarch_init): Update to reflect the change.
6454 * x86-64-tdep.h: Ditto.
6455 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6456 (supply_fpregset): Ditto.
6457
3fadccb3
AC
64582002-06-19 Andrew Cagney <cagney@redhat.com>
6459
6460 * regcache.h: Update copyright.
6461 (struct regcache, struct gdbarch): Add opaque declarations.
6462 (current_regcache): Declare global variable.
6463 (regcache_read, regcache_write): Add gdbarch parameter.
6464 (regcache_save, regcache_save_no_passthrough)
6465 (regcache_restore, regcache_restore_no_passthrough)
6466 (regcache_dup, regcache_dup_no_passthrough)
6467 (regcache_cpy, regcache_cpy_no_passthrough)
6468 (deprecated_grub_regcache_for_registers)
6469 (deprecated_grub_regcache_for_register_valid)
6470 (regcache_valid_p): Add function declarations.
6471
6472 * regcache.c: Update copyright.
6473 (regcache_descr_handle): New global variable.
6474 (struct regcache_descr): Define.
6475 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6476 (regcache_descr, xfree_regcache_descr): New functions.
6477 (struct regcache): Define.
6478 (regcache_xmalloc, regcache_xfree): New functions.
6479 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6480 (regcache_dup, regcache_dup_no_passthrough): New functions.
6481 (regcache_valid_p, regcache_read_as_address): New functions.
6482 (deprecated_grub_regcache_for_registers): New function.
6483 (deprecated_grub_regcache_for_register_valid): New function.
6484 (current_regcache): New global variable.
6485 (register_buffer): Add regcache parameter. Update calls.
6486 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6487 (read_register_gen, write_register_gen): Update register_buffer
6488 call. Test for legacy_p instead of gdbarch_register_read_p or
6489 gdbarch_register_write_p.
6490 (regcache_collect): Update register_buffer call.
6491 (build_regcache): Rewrite. Use deprecated grub functions.
6492 (regcache_save, regcache_save_no_passthrough): New functions.
6493 (regcache_restore, regcache_restore_no_passthrough): New
6494 functions.
6495 (_initialize_regcache): Create the regcache_data_handle. Swap
6496 current_regcache global variable.
6497
6498 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6499 parameter to regcache_read and regcache_write calls.
6500 (sh4_register_read): Ditto.
6501 (sh64_pseudo_register_read): Ditto.
6502 (sh64_register_read): Ditto.
6503 (sh_pseudo_register_write): Ditto.
6504 (sh4_register_write): Ditto.
6505 (sh64_pseudo_register_write): Ditto.
6506 (sh64_register_write): Ditto.
6507
6508 * defs.h (XCALLOC): Define.
6509
152d9db6
GS
65102002-06-19 Grace Sainsbury <graces@redhat.com>
6511
6512 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6513 * m68k-tdep.c (m68k_gdbarch_init): Added.
6514 (m68k_dump_tdep): Added.
6515
170911c7
DJ
65162002-06-19 Daniel Jacobowitz <drow@mvista.com>
6517
6518 * ada-lang.c (fill_in_ada_prototype): Update comment.
6519
2e4ebe70
DJ
65202002-06-19 Daniel Jacobowitz <drow@mvista.com>
6521
6522 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6523 MIPS_ABI_LAST.
6524 (mips_abi_string, mips_abi_strings): New.
6525 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6526 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6527 tdep->mips_abi_string. Honor mips_abi_string. Default to
6528 O32 if no ABI is found.
6529 (mips_dump_tdep): Use mips_abi_strings.
6530 (mips_abi_update): New function.
6531 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6532 ``set mips abi'' and ``show mips abi''. Check the size of
6533 mips_abi_strings.
6534
16775908
AC
65352002-06-19 Andrew Cagney <cagney@redhat.com>
6536
6537 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6538 constant.
6539
5051bfa4 65402002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6541
5051bfa4
JB
6542 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6543 current frame using only the first stack size adjustment. All
6544 subsequent size adjustments are not considered to be part of
6545 the "static" part of the current frame.
6546 Compute the address of the saved registers relative to the
6547 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6548 in use in this frame.
6549
56468235
DH
65502002-06-18 Don Howard <dhoward@redhat.com>
6551
6552 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6553 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6554 suggesting this solution.
6555
0b624158
AC
65562002-06-18 Andrew Cagney <ac131313@redhat.com>
6557
6558 * config/romp/xm-rtbsd.h: Delete file.
6559 * config/romp/rtbsd.mh: Delete file.
6560
221ea385
KS
65612002-06-18 Keith Seitz <keiths@redhat.com>
6562
6563 * breakpoint.c (condition_command): Post breakpoint_modify
6564 when a condition is added to an existing breakpoint.
6565 (commands_command): Likewise for commands.
6566 (set_ignore_count): Likewise for ignore counts.
6567 If no tty, do not simply return, still need to send event
6568 notification.
6569 (ignore_command): Only print a newline if the command came
6570 from a tty.
6571 Don't call breakpoints_changed, since this is now properly
6572 handled by set_ignore_count.
6573
5402eed1
AC
65742002-06-18 Andrew Cagney <cagney@redhat.com>
6575
6576 * MAINTAINERS: Note that cris-elf target can be compiled with
6577 -Werror.
6578 * cris-tdep.c (cris_register_name): Make return type constant.
6579 (cris_breakpoint_from_pc): Ditto.
6580
cc22880b
ML
65812002-06-18 Michal Ludvig <mludvig@suse.cz>
6582
6583 * frame.h (struct frame_info): Change type of context to
6584 'struct context'.
6585
fa88f677
AC
65862002-06-17 Andrew Cagney <cagney@redhat.com>
6587
6588 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6589 pointer.
6590 * gdbarch.h, gdbarch.c: Regenerate.
6591 * config/mips/tm-mips.h (mips_register_name): Update.
6592 * i386-tdep.h (i386_register_name): Update.
6593 * mips-tdep.c (mips_register_name): Update
6594 * alpha-tdep.c (alpha_register_name): Update.
6595 * arch-utils.c (legacy_register_name): Update.
6596 * arch-utils.h (legacy_register_name): Update.
6597 * avr-tdep.c (avr_register_name): Update.
6598 * ia64-tdep.c (ia64_register_name): Update.
6599 * i386-tdep.c (i386_register_name): Update.
6600 * sparc-tdep.c (sparc32_register_name): Update.
6601 (sparc64_register_name): Update.
6602 (sparclite_register_name): Update.
6603 (sparclet_register_name): Update.
6604 * sh-tdep.c (sh_generic_register_name): Update.
6605 (sh_sh_register_name): Update.
6606 (sh_sh3_register_name): Update.
6607 (sh_sh3e_register_name): Update.
6608 (sh_sh_dsp_register_name): Update.
6609 (sh_sh3_dsp_register_name): Update.
6610 (sh_sh4_register_name): Update.
6611 (sh_sh64_register_name): Update.
6612 * s390-tdep.c (s390_register_name): Update.
6613 * rs6000-tdep.c (rs6000_register_name): Update.
6614 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6615 (ns32k_register_name_32382): Update.
6616 * d10v-tdep.c (d10v_ts2_register_name): Update.
6617 (d10v_ts3_register_name): Update.
6618 * xstormy16-tdep.c (xstormy16_register_name): Update.
6619 * vax-tdep.c (vax_register_name): Update.
6620 * v850-tdep.c (v850_register_name): Update.
6621 * m68hc11-tdep.c (m68hc11_register_name): Update.
6622 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6623 (am33_register_name): Update.
6624
ea1e7ef6
GS
66252002-06-17 Grace Sainsbury <graces@redhat.com>
6626
6627 * m68k-tdep.c: Reindented.
6628
9b02dd1b
AC
66292002-06-17 Andrew Cagney <ac131313@redhat.com>
6630
6631 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6632 list of predefined types.
6633
8758dec1
MK
66342002-06-16 Mark Kettenis <kettenis@gnu.org>
6635
b6197528
MK
6636 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6637 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6638 REGISTER_CONVERT_TO_RAW): Remove defines.
6639 (i386_register_virtual_type, i386_register_convertible,
6640 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6641 Remove prototypes.
6642 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6643 macros mentioned above.
6644
82b47e62
MK
6645 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6646 (i386lynx_saved_pc_after_call): Remove prototype.
6647 * i386ly-tdep.c: Include "i386-tdep.h".
6648 (i386lynx_saved_pc_after_call): Make static. Use
6649 read_memory_nobpt instead of read_memory. Use
6650 read_memory_unsigned_integer instead of read_memory_integer.
6651 (i386lynx_init_abi): New function.
6652 (i386lynx_coff_osabi_sniffer): New function.
6653 (_initialize_i386bsd_tdep): New function.
6654
8758dec1
MK
6655 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6656 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6657 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6658 (i386_fix_call_dummy): Remove prototype.
6659 * i386-tdep.c (i386_call_dummy_words): New variable.
6660 (i386_gdbarch_init): Adjust for removal of the
6661 macros mentioned above.
6662
e9e68a56
AC
66632002-06-15 Andrew Cagney <ac131313@redhat.com>
6664
6665 * command.h (add_setshow_auto_boolean_cmd): Replace
6666 add_set_auto_boolean_cmd.
6667 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6668 add_set_auto_boolean_cmd.
6669 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6670 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6671 mask-address'' command.
6672 (show_mask_address): Add cmd parameter.
6673 * remote.c (add_packet_config_cmd): Update. Change type of
6674 set_func and show_func to cmd_sfunc_ftype.
6675 (_initialize_remote): Update `set remote Z-packet'
6676 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6677 (show_remote_protocol_e_packet_cmd): Ditto.
6678 (show_remote_protocol_E_packet_cmd): Ditto.
6679 (show_remote_protocol_P_packet_cmd): Ditto.
6680 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6681 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6682 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6683 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6684 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6685 (show_remote_protocol_Z_packet_cmd): Ditto.
6686 (show_remote_protocol_binary_download_cmd): Ditto.
6687 (show_remote_cmd): Pass NULL to all of above.
6688
fc08ec52
MK
66892002-06-15 Mark Kettenis <kettenis@gnu.org>
6690
6691 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6692 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6693 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6694 POP_FRAME): Remove defines.
6695 (i386_push_arguments, i386_store_struct_return,
6696 i386_extract_return_value, i386_store_return_value,
6697 i386_extract_struct_value_address, i386_push_dummy_frame,
6698 i386_pop_frame): Renove prototypes.
6699 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6700 macros mentioned above.
6701
e707bbc2
AC
67022002-06-15 Andrew Cagney <ac131313@redhat.com>
6703
6704 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6705 add_set_boolean_cmd.
6706 (add_setshow_cmd): New function.
6707 * command.h (add_setshow_boolean_cmd): Replace
6708 add_set_boolean_cmd.
6709 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6710 and ``set rdiromatzero''.
6711 * maint.c (_initialize_maint_cmds): Update commented out code.
6712 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6713 * target.c (initialize_targets): Update `set
6714 trust-readonly-sections'.
6715 * remote.c (_initialize_remote): Update `set remotebreak'.
6716
42fdc8df
MK
67172002-06-15 Mark Kettenis <kettenis@gnu.org>
6718
93924b6b
MK
6719 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6720 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6721 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6722 fit into multi-arch framework.
6723 (i386_breakpoint_from_pc): New function.
6724 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6725 above.
6726
42fdc8df
MK
6727 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6728 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6729 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6730 (i386_frameless_function_invocation, i386_frame_num_args,
6731 i386_frame_init_saved_regs): Remove prototypes.
6732 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6733 macros mentioned above.
6734
9773a94b
AC
67352002-06-15 Andrew Cagney <ac131313@redhat.com>
6736
6737 * cli/cli-decode.c (set_cmd_cfunc): Update.
6738 (set_cmd_sfunc): Update.
6739 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6740 (set_cmd_sfunc, set_cmd_cfunc): Update.
6741 * cli/cli-decode.h: Update.
6742
6e157172
MK
67432002-06-15 Mark Kettenis <kettenis@gnu.org>
6744
6745 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6746 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6747
7f19b9a2
AC
67482002-06-15 Andrew Cagney <ac131313@redhat.com>
6749
6750 * defs.h (auto_boolean): Declare enum.
6751 * command.h (cmd_auto_boolean): Delete enum.
6752 * mips-tdep.c (mask_address_var): Update.
6753 (mips_mask_address_p): Update.
6754 (show_mask_address): Update.
6755 * remote.c (struct packet_config): Update.
6756 (update_packet_config): Update.
6757 (show_packet_config_cmd): Update.
6758 (packet_ok): Update.
6759 (add_packet_config_cmd): Update.
6760 (_initialize_remote):
6761 * command.h: Update.
6762 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6763 (do_setshow_command): Update.
6764 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6765 * cli/cli-decode.h: Update.
6766
1cf88de5
MK
67672002-06-15 Mark Kettenis <kettenis@gnu.org>
6768
22ba8cf2
MK
6769 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6770 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6771 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6772 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6773 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6774 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6775
762c5349
MK
6776 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6777 list of DJGPP COFF targets.
6778
091198bb
MK
6779 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6780 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6781 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6782 (FP0_REGNUM): Remove define.
6783 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6784 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6785 (i386_register_virtual_size): Remove protoype.
6786 * i386-tdep.c (i386_register_virtual_size): Removed.
6787 (i386_extract_return_value, i386_store_return_value): Use
6788 FP0_REGNUM instead of NUM_FREGS to determine whether the
6789 floating-point registers are available.
6790 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6791 Adjust for removal of macros mentioned above.
6792
67932002-06-15 Mark Kettenis <kettenis@gnu.org>
6794
fcc9bf01
MK
6795 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6796 comments.
6797 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6798 Remove prototypes.
6799 (supply_gregset, fill_gregset): Remove use of register keyword and
6800 remove declaration for regmap. Use I386_NUM_GREGS instead of
6801 NUM_REGS and NUM_FREGS.
6802 (FPREGSET_FSAVE_OFFSET): Remove.
6803 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6804 NUM_FREGS to determine whether the floating-point registers are
6805 available.
6806
65e78234
MK
6807 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6808 gnu_store_registers): Replace usage of NUM_GREGS with
6809 I386_NUM_GREGS.
6810
98df6387
MK
6811 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6812 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6813 usage of NUM_GREGS with I386_NUM_GREGS.
6814
099a9414
MK
6815 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6816
57976e88
MK
6817 * i386bsd-nat.c: Include "i386-tdep.h".
6818 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6819 I386_NUM_GREGS.
6820
b335f4a6
MK
6821 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6822 and associated comment. They no longer make any sense, since we
6823 don't use this file anymore on Linux.
6824
1cf88de5
MK
6825 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6826 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6827 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6828 elements in these arrays.
6829 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6830 MAX_NUM_REGS.
6831
daa66587
MK
68322002-06-15 Mark Kettenis <kettenis@gnu.org>
6833
6834 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6835 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6836
26e9b323
AC
68372002-06-14 Andrew Cagney <cagney@redhat.com>
6838
6839 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6840 EXTRACT_RETURN_VALUE.
6841 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6842 EXTRACT_STRUCT_VALUE_ADDRESS.
6843 * gdbarch.h, gdbarch.c: Regenerate.
6844
6845 * values.c (value_being_returned): Handle
6846 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6847 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6848
6849 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6850 * arm-tdep.c (arm_gdbarch_init): Update.
6851 * avr-tdep.c (avr_gdbarch_init): Update.
6852 * cris-tdep.c (cris_gdbarch_init): Update.
6853 * d10v-tdep.c (d10v_gdbarch_init): Update.
6854 * ia64-tdep.c (ia64_gdbarch_init): Update.
6855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6857 * s390-tdep.c (s390_gdbarch_init): Update.
6858 * sh-tdep.c (sh_gdbarch_init): Update.
6859 * s390-tdep.c (s390_gdbarch_init): Update.
6860 * sparc-tdep.c (sparc_gdbarch_init): Update.
6861 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6862 * v850-tdep.c (v850_gdbarch_init): Update.
6863 * vax-tdep.c (vax_gdbarch_init): Update.
6864 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6865 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6866
6867 * config/arc/tm-arc.h: Update.
6868 * config/d30v/tm-d30v.h: Update.
6869 * config/fr30/tm-fr30.h: Update.
6870 * config/h8300/tm-h8300.h: Update.
6871 * config/h8500/tm-h8500.h: Update.
6872 * config/i386/tm-i386.h: Update.
6873 * config/i386/tm-ptx.h: Update.
6874 * config/i386/tm-symmetry.h: Update.
6875 * config/i960/tm-i960.h: Update.
6876 * config/m32r/tm-m32r.h: Update.
6877 * config/m68k/tm-delta68.h: Update.
6878 * config/m68k/tm-linux.h: Update.
6879 * config/m68k/tm-m68k.h: Update.
6880 * config/m88k/tm-m88k.h: Update.
6881 * config/mcore/tm-mcore.h: Update.
6882 * config/mips/tm-mips.h: Update.
6883 * config/mn10200/tm-mn10200.h: Update.
6884 * config/pa/tm-hppa.h: Update.
6885 * config/pa/tm-hppa64.h: Update.
6886 * config/sparc/tm-sp64.h: Update.
6887 * config/sparc/tm-sparc.h: Update.
6888 * config/sparc/tm-sparclet.h: Update.
6889 * config/z8k/tm-z8k.h: Update.
6890
5179e78f
AC
68912002-06-14 Andrew Cagney <cagney@redhat.com>
6892
6893 * Makefile.in (i386_linux_tdep_h): Define.
6894 (i386_tdep_h, i387_tdep_h): Define.
6895 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6896 $(i386_tdep_h) and $(i387_tdep_h).
6897 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6898
8201327c
MK
68992002-06-14 Mark Kettenis <kettenis@gnu.org>
6900
edf393ac
MK
6901 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6902 Already covered by the default.
6903
896fb97d
MK
6904 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6905 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6906 (i386_gdbarch_init): Initialize long_double_format and long_double
6907 bit.
6908
8201327c
MK
6909 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6910 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6911 Move these to ...
6912 * config/i386/i386sol2.mh: ... here.
6913 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6914 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6915 (SIGCONTEXT_PC_OFFSET): Remove define.
6916 (IN_SIGTRAMP): Remove define.
6917 * i386-sol2-tdep.c: New file.
6918
6919 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6920 * config/i386/tm-i386nw.h: Removed.
6921
6922 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6923 USE_STRUCT_CONVENTION): Remove defines.
6924 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6925 (get_longjmp_target): Remove prototype.
6926 (IN_SIGTRAMP): Remove define.
6927 (i386bsd_in_sigtramp): Remove prototype.
6928 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6929 function. Update comment accordingly
6930 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6931 (FRAME_SAVED_PC): Remove define.
6932 (i386bsd_frame_saved_pc): Remove prototype.
6933 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6934 GET_LONGJMP_TARGET): Remove defines.
6935 (get_longjmp_target): Remove prototype.
6936 (IN_SIGTRAMP): Remove define.
6937 (i386bsd_in_sigtramp): Remove prototype.
6938 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6939 function. Update comment accordingly
6940 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6941 (FRAME_SAVED_PC): Remove define.
6942 (i386bsd_frame_saved_pc): Remove prototype.
6943 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6944 Remove prototype.
6945 (USE_STRUCT_CONVENTION): Remove prototype.
6946 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6947 declaration.
6948 (_initialize_i386bsd_nat): Revise logic to determine some
6949 constants at compile time when compiling a native GDB. Warn if
6950 things don't match up with what we expect.
6951 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6952 Remove variables.
6953 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6954 to use date stored in `struct gdbarch_tdep'.
6955 (i386bsd_sigcontext_offset): Remove varaible.
6956 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6957 stored in `struct gdbarch_tdep'.
6958 (i386bsd_frame_saved_pc): Make static.
6959 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6960 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6961 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6962 i386fbsd4_sc_pc_offset): New variables.
6963 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6964 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6965 functions.
6966 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6967 functions.
6968 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6969 Modify the value of i386fbsd_sigtramp_start and
6970 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6971 i386fbsd_sigtramp_end.
6972 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6973 function.
6974
6975 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6976 define to i386-linux-tdep.h.
6977 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6978 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6979 defines.
6980 (i386_linux_register_name, i386_linux_register_byte,
6981 i386_linux_register_raw_size): Remove prototypes.
6982 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6983 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6984 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6985 TARGET_WRITE_PC): Remove defines.
6986 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6987 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6988 i386_linux_write_pc): Remove prototypes.
6989 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6990 (get_longjmp_target): Remove prototype.
6991 * i386-linux-tdep.h: New file.
6992 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6993 * i386-linux-tdep.c: Include "i386-tdep.h" and
6994 "i386-linux-tdep.h".
6995 (i386_linux_register_name, i386_linux_register_byte,
6996 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6997 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6998 Make static.
6999 (i386_linux_init_abi): New function.
7000 (_initialize_i386_linux_tdep): New function.
7001
7002 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7003 (i386_saved_pc_after_call): Remove prototype.
7004 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7005 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7006 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7007 (i386_register_name, i386_stab_reg_to_regnum,
7008 i386_dwarf_reg_to_regnum): Remove prototypes.
7009 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7010 SIZEOF_SSE_REGS): Remove defines.
7011 (REGISTER_BYTES): Remove define.
7012 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7013 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7014 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7015 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7016 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7017 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7018 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7019 (get_longjmp_target): Remove prototype.
7020 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7021 (sigtramp_saved_pc): Remove define.
7022 (i386v4_sigtramp_saved_pc): Remove prototype.
7023 * config/i386/tm-go32.h (FRAME_CHAIN,
7024 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7025 (i386go32_frame_saved_pc): Remove prototype.
7026 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7027 (get_longjmp_target): Remove prototype.
7028 * i386-tdep.h: Include "osabi.h".
7029 (enum i386_abi): Removed.
7030 (enum struct_return): New enum.
7031 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7032 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7033 sc_pc_offset members.
7034 (i386_gdbarch_register_os_abi): Remove prototype.
7035 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7036 I386_SSE_NUM_REGS): New defines.
7037 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7038 I386_SSE_SIZEOF_REGS): New defines.
7039 (i386_register_name, i386_register_byte, i386_register_raw_size):
7040 New prototypes.
7041 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7042 (i386bsd_sigtramp_saved_pc): New prototype.
7043 * i386-tdep.c: Don't include "elf-bfd.h".
7044 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7045 i386_frame_chain, i386_saved_pc_after_call): Make static.
7046 (i386_frame_saved_pc): Rewrite to call architecture dependent
7047 function to deal with signal handlers. Make static.
7048 (i386go32_frame_saved_pc): Removed.
7049 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7050 Removed.
7051 (i386_get_longjmp_target): New function.
7052 (default_struct_convention, pcc_struct_convention,
7053 reg_struct_convention, valid_conventions, struct_convention): New
7054 variables.
7055 (i386_use_struct_convention): New function.
7056 (i386v4_sigtramp_saved_pc): Renamed to
7057 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7058 (i386_pc_in_sigtramp): New function.
7059 (i386_abi_names): Removed.
7060 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7061 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7062 Removed.
7063 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7064 i386_gdbarch_register_os_abi): Removed.
7065 (struct i386_abi_handler): Removed.
7066 (i386_abi_handler_list): Removed.
7067 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7068 functions.
7069 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7070 i386_nw_init_abi): New functions.
7071 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7072 Use set_gdbarch_xxx() calls instead of relying on macros for a
7073 number of calls.
7074 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7075 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7076 Register the various architecture variants defined in this file.
7077
ad2f7632
DJ
70782002-06-14 Daniel Jacobowitz <drow@mvista.com>
7079
7080 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7081 (struct main_type): Remove arg_types member. Update comments for
7082 struct field.
7083 (TYPE_ARG_TYPES): Remove.
7084 (TYPE_FN_FIELD_ARGS): Update.
7085 (smash_to_method_type): Update prototype.
7086
7087 * c-typeprint.c (cp_type_print_method_args): Take method type
7088 instead of argument list. Use new argument layout. Simplify.
7089 (c_type_print_args): Use new argument layout. Simplify.
7090 (c_type_print_base): Update call to cp_type_print_method_args.
7091 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7092 argument; use die->type instead. Update call to
7093 smash_to_method_type.
7094 (read_structure_scope): Update call to dwarf2_add_member_fn.
7095 * gdbtypes.c (allocate_stub_method): Update comment.
7096 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7097 Use new argument layout.
7098 (check_stub_method): Use new argument layout. Don't count
7099 void as an argument.
7100 (print_arg_types): Update comments. Use new argument layout.
7101 (recursive_dump_type): Don't print arg_types member.
7102 * hpread.c (hpread_read_struct_type): Use new argument layout.
7103 (fixup_class_method_type): Likewise.
7104 (hpread_type_lookup): Likewise.
7105 * stabsread.c (read_type): Update calls to read_args and
7106 smash_to_method_type.
7107 (read_args): Use new argument layout. Simplify.
7108 * valops.c (typecmp): Use new argument layout. Update parameters
7109 and comments. Simplify.
7110 (hand_function_call): Use new argument layout.
7111 (search_struct_method): Update call to typecmp.
7112 (find_overload_match): Use new argument layout.
7113
6da02953
DJ
71142002-06-13 Daniel Jacobowitz <drow@mvista.com>
7115
7116 * NEWS: Mention multithreaded debug support for gdbserver.
7117
519b2366
DJ
71182002-06-13 Daniel Jacobowitz <drow@mvista.com>
7119
7120 * MAINTAINERS: Mention NEWS.
7121
6c0d6680
DJ
71222002-06-13 Daniel Jacobowitz <drow@mvista.com>
7123
7124 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7125 (struct mips_objfile_private, compare_pdr_entries): New.
7126 (non_heuristic_proc_desc): Read the ".pdr" section if it
7127 is present.
7128
6529d2dd
AC
71292002-06-12 Andrew Cagney <ac131313@redhat.com>
7130
7131 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7132 (arm_debug): New static variable.
7133 (_initialize_arm_tdep): Add ``set debug arm'' command.
7134
26216b98
AC
71352002-06-12 Andrew Cagney <ac131313@redhat.com>
7136
7137 * Makefile.in (sim_arm_h): Define.
7138 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7139 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7140 (arm_register_sim_regno): New function, map an internal REGNUM
7141 onto a simulator register number.
7142 (arm_gdbarch_init): Set register_sim_regno.
7143
814b3ba0
AH
71442002-06-09 Aldy Hernandez <aldyh@redhat.com>
7145
7146 * MAINTAINERS: Add self.
7147
475b0867
JB
71482002-06-11 Jim Blandy <jimb@redhat.com>
7149
919d772c
JB
7150 * source.c (source_info): Mention whether the symtab has
7151 information about preprocessor macros.
7152
475b0867
JB
7153 Call the command `info macro', not `show macro'.
7154 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7155 Fix error message.
7156 (_initialize_macrocmd): Register `info_macro_command' in
7157 `infolist', not `showlist'.
7158
9e364162
DJ
71592002-06-11 Daniel Jacobowitz <drow@mvista.com>
7160
7161 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7162 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7163 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7164 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7165 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7166 unconditionally.
7167 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7168 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7169 (_initialize_mips_tdep): Remove dead code.
7170 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7171 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7172 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7173 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7174 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7175 MIPS_LAST_FP_ARG_REGNUM): Remove.
7176
23aa4c72
ML
71772002-06-11 Michal Ludvig <mludvig@suse.cz>
7178
7179 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7180 (unwind_tmp_obstack_free, parse_frame_info)
7181 (update_context, cfi_read_fp, cfi_write_fp)
7182 (cfi_frame_chain, cfi_init_extra_frame_info)
7183 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7184 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7185
70eb15a4
CV
71862002-06-11 Corinna Vinschen <vinschen@redhat.com>
7187
7188 * v850-tdep.c (v850_type_is_scalar): New function.
7189 (v850_use_struct_convention): Match current gcc implementation
7190 as close as possible.
7191 (v850_push_arguments): Fix stack_offset handling. Don't write
7192 struct_addr into register. This is done by v850_store_struct_return.
7193 (v850_extract_return_value): Care for structs.
7194 (v850_store_return_value): Ditto.
7195 (v850_store_struct_return): Actually write address.
7196
482a4d06
ML
71972002-06-11 Michal Ludvig <mludvig@suse.cz>
7198
7199 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7200 without debug information too.
7201
d855c300
AC
72022002-06-10 Andrew Cagney <ac131313@redhat.com>
7203
7204 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7205 Make multi-arch pure.
7206 * gdbarch.h, gdbarch.c: Re-generate.
7207 * arm-tdep.c (arm_print_float_info): Update.
7208 * arch-utils.h (default_print_float_info): Update.
7209 * arch-utils.c (default_print_float_info): Update.
7210 * infcmd.c (float_info): Update call.
7211
dd12a101
AC
72122002-06-10 Andrew Cagney <ac131313@redhat.com>
7213
7214 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7215 the front of the initialize list.
7216
101dcfbe
AC
72172002-06-10 Andrew Cagney <ac131313@redhat.com>
7218
7219 * infrun.c (struct inferior_status): Replace fields
7220 selected_frame_address and selected_level with field
7221 selected_frame_id.
7222 (save_inferior_status): Update. Use get_frame_id.
7223 (struct restore_selected_frame_args): Delete.
7224 (restore_selected_frame): Update. Use frame_find_by_id.
7225 (restore_inferior_status): Update.
7226
7227 * breakpoint.h (struct breakpoint): Change type of
7228 watchpoint_frame to frame_id.
7229 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7230 call to get_current_frame.
7231 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7232 get_current_frame.
7233 (watchpoint_check): Use frame_find_by_id.
7234
7235 * frame.h (record_selected_frame): Delete declaration.
7236 * stack.c (record_selected_frame): Delete function.
7237
7238 * frame.h (struct frame_id): Define.
7239 (get_frame_id): Declare.
7240 (frame_find_by_id): Declare.
7241 * frame.c (frame_find_by_id): New function.
7242 (get_frame_id): New function.
7243
304270b6
AV
72442002-06-10 Andrey Volkov <avolkov@transas.com>
7245
7246 * ser-e7kpc.c: Fix duplicated define and call of
7247 _initialize_ser_e7000pc
7248
2f2cf184
DJ
72492002-06-09 Daniel Jacobowitz <drow@mvista.com>
7250
7251 * signals/signals.c (target_signal_from_host): Fix #ifdef
7252 SIGRTMIN case.
7253 (do_target_signal_to_host): Likewise.
7254
caaa3122
DJ
72552002-06-09 Daniel Jacobowitz <drow@mvista.com>
7256
7257 * mips-tdep.c (mips_find_abi_section): New function.
7258 (mips_gdbarch_init): Call it.
7259
6ac5df3a
MK
72602002-06-09 Mark Kettenis <kettenis@gnu.org>
7261
7262 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7263 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7264 after Andrew's 2002-06-08 gdbarch change.
7265
82ea117a
MK
72662002-06-09 Mark Kettenis <kettenis@gnu.org>
7267
7268 * i386-linux-nat.c (suppy_gregset): Don't supply
7269 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7270 register cache.
7271 (fill_gregset): Don't fetch it under the same circumstances.
7272
3c25f8c7
AC
72732002-06-09 Andrew Cagney <cagney@redhat.com>
7274
7275 * Makefile.in (callback_h): Define.
7276 (remote_sim_h): Update path to remote-sim.h.
7277 (remote-rdp.o): Add $(callback_h).
7278 (remote-sim.o): Use $(callback_h).
7279 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7280 * remote-rdp.c: Include "gdb/callback.h".
7281
1029b7fa
MK
72822002-06-09 Mark Kettenis <kettenis@gnu.org>
7283
7284 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7285 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7286
616675d3
AC
72872002-06-08 Andrew Cagney <ac131313@redhat.com>
7288
a3efda28
AC
7289 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7290 * rdi-share/serpardr.c: Ditto.
7291 * rdi-share/unixcomm.c: Ditto.
7292 * rdi-share/serdrv.c: Ditto.
7293 * rdi-share/hostchan.h: Ditto.
7294 * rdi-share/hostchan.c: Ditto.
7295 * rdi-share/host.h: Ditto.
7296 * rdi-share/devsw.c: Ditto.
7297
c5f10366
AC
7298 * objfiles.h: Change type of obj_private to void pointer.
7299 * pa64solib.c: Update copyright. Don't include "assert.h", use
7300 strcmp instead of STREQ, use LONGEST, do not use PTR
7301 * somsolib.c: Ditto.
7302
616675d3
AC
7303 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7304 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7305 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7306
e4b415d9
AC
73072002-06-08 Andrew Cagney <ac131313@redhat.com>
7308
7309 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7310 (default_get_saved_register): Delete function.
7311 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7312 generic_unwind_get_saved_register.
7313 * gdbarch.h, gdbarch.c: Re-generate.
7314
ca0d0b52
AC
73152002-06-08 Andrew Cagney <ac131313@redhat.com>
7316
7317 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7318 generic_func_frame_chain_valid.
7319 * gdbarch.h, gdbarch.c: Re-generate.
7320 * blockframe.c (generic_func_frame_chain_valid): Only check
7321 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7322 passing FP to PC_IN_CALL_DUMMY.
7323 Fix PR gdb/360.
7324
76860b5f
AC
73252002-06-08 Andrew Cagney <ac131313@redhat.com>
7326
7327 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7328 (register_gdbarch_data): Initialize init_p.
7329 (gdbarch_data): Initialize data pointer using the init function.
7330 (init_gdbarch_data): Delete function.
7331 (gdbarch_update_p): Update.
7332 (initialize_non_multiarch): Update.
7333 (struct gdbarch): Add field initialized_p.
7334 * gdbarch.h, gdbarch.c: Re-generate.
7335
8dda9770
ML
73362002-06-07 Michal Ludvig <mludvig@suse.cz>
7337
7338 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7339 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7340 better do the things actually here.
7341 * x86-64-tdep.c (x86_64_register_name2nr): New.
7342 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7343 (x86_64_gdbarch_init): Respect the above change.
7344 * x86-64-tdep.h (x86_64_register_name2nr)
7345 (x86_64_register_nr2name): Add prototypes.
7346 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7347
3d79a47c
MS
73482002-06-06 Michael Snyder <msnyder@redhat.com>
7349
7bd91a28
MS
7350 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7351 Delete extra braces and re-indent.
7352 (d10v_store_return_value): Char return values
3d79a47c
MS
7353 must be shifted over by one byte in R0.
7354 (d10v_extract_return_value): Delete extra braces, re-indent.
7355
095a4c96
EZ
73562002-06-06 Elena Zannoni <ezannoni@redhat.com>
7357
7358 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7359 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7360 (d10v_integer_to_address): Rewrite.
7361 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7362 the d10v specific functions which take care of converting to the
7363 correct space.
7364
e8a77ca4
EZ
73652002-06-06 Elena Zannoni <ezannoni@redhat.com>
7366
7367 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7368 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7369
4f2e4a4f
AC
73702002-06-02 Andrew Cagney <ac131313@redhat.com>
7371
7372 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7373 includes.
7374 * config/tm-linux.h: Ditto.
7375 * config/alpha/tm-alphalinux.h: Ditto.
7376 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7377 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7378 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7379 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7380 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7381 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7382 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7383 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7384 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7385 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7386 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7387 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7388 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7389 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7390 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7391 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7392 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7393 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7394 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7395 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7396 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7397 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7398 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7399 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7400 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7401 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7402 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7403 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7404 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7405 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7406 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7407 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7408 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7409 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7410 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7411 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7412 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7413
ae2ab2ce
AS
74142002-05-04 Aidan Skinner <aidan@velvet.net>
7415
7416 * ada-exp.tab.c: New file
7417 * ada-exp.y: New file
7418 * ada-lang.c: New file
7419 * ada-lang.h: New file
7420 * ada-lex.c: New file
7421 * ada-lex.l: New file
7422 * ada-tasks.c: New file
7423 * ada-typeprint.c: New file
7424 * ada-valprint.c: New file
7425
0ddd0135
JT
74262002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7427
7428 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7429 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7430
750fbacc
JT
74312002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7432
7433 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7434 insetead of ppc-linux-tdep.o.
7435 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7436 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7437
df94e18a
AC
74382002-06-02 Andrew Cagney <ac131313@redhat.com>
7439
7440 2002-05-07 Christian Groessler <chris@groessler.org>
7441 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7442 bit register contents for little endian hosts.
7443
1a38ab75
AC
74442002-06-01 Andrew Cagney <ac131313@redhat.com>
7445
7446 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7447 any maintainer.
7448
8b1632ac
AC
74492002-06-01 Andrew Cagney <ac131313@redhat.com>
7450
7451 * gdbarch.h: Regenerate.
7452
627054c8
AC
74532002-06-01 Andrew Cagney <ac131313@redhat.com>
7454
7455 * MAINTAINERS: Add everyone to write-after-approval list.
7456
4f460812
AC
74572002-06-01 Andrew Cagney <ac131313@redhat.com>
7458
7459 * stack.c (frame_info): Use frame_register_unwind instead of
7460 saved_regs. Mention when the SP is on the stack or in a register.
7461
7462 * frame.h (frame_register_unwind_ftype): Define. Document.
7463 (struct frame_info): Add field register_unwind and
7464 register_unwind_cache.
7465 (frame_register_unwind): Declare.
7466 (generic_unwind_get_saved_register): Declare.
7467
7468 * frame.c (frame_register_unwind): New function.
7469 (generic_unwind_get_saved_register): New function.
7470
7471 * blockframe.c (generic_call_dummy_register_unwind): New function.
7472 (frame_saved_regs_register_unwind): New function.
7473 (set_unwind_by_pc): New function.
7474 (create_new_frame): New function.
7475 (get_prev_frame): New function.
7476
de888f76
AC
74772002-05-30 Andrew Cagney <ac131313@redhat.com>
7478
7479 * a29k-share/: Delete directory.
7480 * remote-vx29k.c: Delete file.
7481
2f2c3626
JT
74822002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7483
7484 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7485 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7486
9ce5c36a
JT
74872002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7490 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7491 (sparc64nbsd-nat.o)
7492 (sparcnbsd-nat.o)
7493 (sparcnbsd-tdep.o): New dependency lists.
7494 * NEWS: Note new UltraSPARC NetBSD native configuration.
7495 * configure.host (sparc64-*-netbsd*): New host.
7496 * configure.tgt (sparc-*-netbsdelf*)
7497 (sparc-*-netbsd*): Set gdb_target to nbsd.
7498 (sparc64-*-netbsd*): New target.
7499 * sparc64nbsd-nat.c: New file.
7500 * sparcnbsd-nat.c: New file.
7501 * sparcnbsd-tdep.c: New file.
7502 * sparcnbsd-tdep.h: New file.
7503 * config/sparc/nbsd.mt: New file.
7504 * config/sparc/nbsd64.mh: New file.
7505 * config/sparc/nbsd64.mt: New file.
7506 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7507 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7508 (HOST_IPC): Remove.
7509 * config/sparc/nbsdaout.mt: Remove.
7510 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7511 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7512 (HOST_IPC): Remove.
7513 * config/sparc/nbsdelf.mt: Remove.
7514 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7515 sparc-nat.c compatiblity defines.
7516 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7517 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7518 * config/sparc/tm-nbsd64.h: New file.
7519 * config/sparc/tm-nbsdaout.h: Remove.
7520 * config/sparc/xm-nbsd.h: Remove.
7521
ef3cf062
JT
75222002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7523
7524 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7525 * sparc-tdep.c: Include osabi.h.
7526 (gdbarch_tdep): Add osabi member.
7527 (_initialize_sparc_tdep): Use gdbarch_register.
7528 (sparc_gdbarch_init): Use generic OS ABI framework.
7529 (sparc_dump_tdep): New function.
7530
ee8ff470
KB
75312002-05-30 Kevin Buettner <kevinb@redhat.com>
7532
7533 * corefile.c (do_captured_read_memory_integer): Return non-zero
7534 result.
7535 (safe_read_memory_integer): Copy result of memory read when
7536 status is non-zero. Also, add comments.
7537
7b112f9c
JT
75382002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7539
7540 * Makefile.in (ppc_tdep_h): Define.
7541 (ppc-linux-nat.o)
7542 (ppc-linux-tdep.o)
7543 (rs6000-tdep.o): Use $(ppc_tdep_h).
7544 (ppc-sysv-tdep.o)
7545 (ppcnbsd-nat.o)
7546 (ppcnbsd-tdep.o): New dependency lists.
7547 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7548 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7549 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7550 (ppc_sysv_abi_broken_use_struct_convention)
7551 (ppc_sysv_abi_use_struct_convention)
7552 (ppc_sysv_abi_push_arguments): Move to...
7553 * ppc-sysv-tdep.c: ...here.
7554 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7555 * rs6000-tdep.c (process_note_abi_tag_sections)
7556 (get_elfosabi): Remove.
7557 (rs6000_gdbarch_init): Use generic OS ABI framework.
7558 (rs6000_dump_tdep): New function.
7559 (_initialize_rs6000_tdep): Use gdbarch_register.
7560 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7561 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7562 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7563 of ppc-linux-tdep.o.
7564 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7565 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7566 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7567 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7568 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7569 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7570
480dd42a
JB
75712002-05-29 Jim Blandy <jimb@redhat.com>
7572
7573 * macroscope.c (default_macro_scope): Put `void' in empty argument
7574 list.
7575
4182591f
AC
75762002-05-29 Andrew Cagney <ac131313@redhat.com>
7577
7578 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7579 * arch-utils.c: Include "sim-regno.h".
7580 * gdbarch.sh: Don't include "sim-regno.h".
7581 * gdbarch.h, gdbarch.c: Regenerate.
7582 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7583 here.
7584 * arch-utils.h (legacy_register_sim_regno): To here.
7585 * remote-sim.c (legacy_register_sim_regno): Move function from
7586 here.
7587 * arch-utils.c (legacy_register_sim_regno): To here.
7588
8238d0bf
AC
75892002-05-28 Andrew Cagney <ac131313@redhat.com>
7590
7591 * sim-regno.h: New file.
7592 * Makefile.in (sim_regno_h): Define.
7593 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7594 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7595 (legacy_register_sim_regno): New function.
7596 (one2one_register_sim_regno): New function.
7597 (gdbsim_fetch_register): Rewrite.
7598 (gdbsim_store_register): Only store a register when
7599 REGISTER_SIM_REGNO is valid.
7600 * d10v-tdep.c: Include "sim-regno.h".
7601 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7602 (d10v_ts3_register_sim_regno): Ditto.
7603 * gdbarch.sh: Include "sim-regno.h".
7604 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7605 * gdbarch.h, gdbarch.c: Regenerate.
7606 * arch-utils.h (default_register_sim_regno): Delete declaration.
7607 * arch-utils.c (default_register_sim_regno): Delete function.
7608
485721b1
JT
76092002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7610
7611 * ppcnbsd-nat.c: Rewrite.
7612 * ppcnbsd-tdep.c: New file.
7613 * ppcnbsd-tdep.h: New file.
7614 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7615 solib.o, and solib-svr4.o.
7616 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7617 nbsd-tdep.o, and corelow.o.
7618
697f244d
AC
76192002-05-28 Andrew Cagney <ac131313@redhat.com>
7620
7621 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7622 `tr' and `sed'. Mention that `broken' targets are not expected to
7623 build.
7624
f08caad1 76252002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7626
7627 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7628 Let PC point right after the prologue before looking up symbols.
7629
3139facc
MH
76302002-05-27 Martin M. Hunt <hunt@redhat.com>
7631
7632 * i386-tdep.c (i386_register_virtual_type): Return
7633 builtin_type_vec128i for SSE registers.
7634
7635 * gdbtypes.h (builtin_type_vec128i): Declare.
7636
7637 * gdbtypes.c (build_builtin_type_vec128i): New function.
7638 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7639 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7640 (build_gdbtypes): Initialize new builtin vector types.
7641 (_initialize_gdbtypes): Register new vector types with gdbarch.
7642
6e3ba3b8
JT
76432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7644
7645 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7646 since it has been multi-arch'd.
7647 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7648 Move Alpha and VAX multi-arch news entries to same section
7649 as other multi-arch news.
7650
93d5585d
JT
76512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7652
7653 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7654 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7655 static. Rename some register numbers to put them in ns32k-tdep
7656 private namespace.
7657 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7658 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7659 functions.
7660 (_initialize_ns32k_tdep): Use gdbarch_register.
7661 * ns32k-tdep.h: New file.
7662 * ns32knbsd-tdep.c: New file.
7663 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7664 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7665 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7666 REGISTER_BYTES, REGISTER_BYTE): Remove.
7667 * config/ns32k/tm-ns32k.h: New file.
7668 * config/ns32k/tm-umax.h: Remove.
7669
efb2c70e
JT
76702002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7671
7672 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7673 ns32k_store_struct_return, ns32k_extract_return_value,
7674 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7675 functions.
7676 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7677 ns32k_saved_pc_after_call.
7678 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7679 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7680 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7681 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7682 ns32k_extract_struct_value_address.
7683
7bcc927b
JT
76842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7685
7686 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7687 ns32k_fix_call_dummy): New.
7688 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7689 ns32k_call_dummy_words.
7690 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7691 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7692 CALL_DUMMY_NARGS): Remove.
7693 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7694
78f9d765
JT
76952002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7696
7697 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7698 ns32k_frame_saved_pc, ns32k_frame_args_address,
7699 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7700 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7701 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7702 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7703 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7704 (BREAKPOINT): Remove..
7705 (FRAME_CHAIN): Define as ns32k_frame_chain.
7706 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7707 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7708 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7709 (FRAME_FIND_SAVED_REGS): Remove.
7710 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7711 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7712 (POP_FRAME): Define as ns32k_pop_frame.
7713
f2c762e0
JT
77142002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7715
7716 * ns32k-tdep.c (ns32k_register_byte_32082,
7717 ns32k_register_byte_32382, ns32k_register_raw_size,
7718 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7719 functions.
7720 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7721 ns32k_register_byte_32382.
7722 * config/ns32k/tm-umax.h: Update copyright years.
7723 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7724 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7725 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7726 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7727 (ns32k_get_enter_addr): Fix prototype.
7728
af137673
JT
77292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7730
7731 * ns32k-tdep.c: Update copyright years.
7732 (ns32k_register_name_32082): New function.
7733 (ns32k_register_name_32382): Ditto.
7734 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7735 (REGISTER_NAME): Define as ns32k_register_name_32382.
7736 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7737 (REGISTER_NAME): Define as ns32k_register_name_32082.
7738
a8bc7b56
JB
77392002-05-24 Jim Blandy <jimb@redhat.com>
7740
7741 * dwarf2read.c (free_line_header): Use xfree, not free.
7742
83a45910
JT
77432002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7744
7745 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7746 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7747
0db71247
AC
77482002-05-23 Andrew Cagney <ac131313@redhat.com>
7749
7750 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7751
b9e5e4dd
AC
77522002-05-23 Andrew Cagney <ac131313@redhat.com>
7753
7754 From Ross Alexander at NEC Europe:
7755 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7756
de530e84
MS
77572002-05-23 Michael Snyder <msnyder@redhat.com>
7758
7759 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7760 for input, rather than parse_and_eval_address.
7761
b91b96f4
AC
77622002-05-23 Andrew Cagney <ac131313@redhat.com>
7763
7764 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7765 * Makefile.in (sim_d10v_h): Update definition.
7766
8b279e7a
AC
77672002-05-24 Andrew Cagney <cagney@redhat.com>
7768
7769 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7770 change `2002-05-22 Michael Snyder' below.
7771 (d10v_push_arguments): Ditto.
7772 (d10v_extract_return_value): Ditto.
7773
0a3d0425
JB
77742002-05-23 Jim Blandy <jimb@redhat.com>
7775
7776 * macrotab.c (check_for_redefinition): Don't complain if the new
7777 definition is the same as the previous one. Take more arguments
7778 to allow the comparison.
7779 (macro_define_object, macro_define_function): Pass more arguments
7780 to check_for_redefinition.
7781
78eac43e
MS
77822002-05-22 Michael Snyder <msnyder@redhat.com>
7783
7784 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7785 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7786 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7787 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7788 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7789 Add a temp variable to save a call (and a memory read).
7790 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7791 if possible (so that PC_IN_CALL_DUMMY will work).
7792
9bc1edb8
CV
77932002-05-22 Corinna Vinschen <vinschen@redhat.com>
7794
7795 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7796
005ef3d2
ML
77972002-05-22 Michal Ludvig <mludvig@suse.cz>
7798
7799 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7800 fde->cie_ptr.
7801 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7802 (dwarf2_build_frame_info): Add offset to fde->initial_location
7803 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7804 (execute_stack_op): Change type of 'result' from ULONGEST to
7805 CORE_ADDR.
005ef3d2 7806
fcf4f891
JT
78072002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7808
7809 * config/alpha/tm-nbsd.h: Include solib.h.
7810
cfef91e4
JT
78112002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7812
7813 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7814 assumptions about the host's byte order.
7815
9964235a
JT
78162002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7819 to dependency list.
7820 * alphanbsd-tdep.c: Include solib-svr4.h.
7821 * shnbsd-tdep.c: Ditto.
7822
9eeef8ef
JT
78232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7826 nbsd-tdep.h to dependency list.
7827 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7828 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7829 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7830 nbsdaout.mh and nbsdelf.mh consistently.
7831 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7832 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7833 nbsdaout.mt and nbsdelf.mh consistently.
7834 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7835 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7836 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7837 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7838 a.out shared library stuff from here...
7839 * config/nm-nbsdaout.h: ...to here.
7840 * config/tm-nbsd.h: Remove.
7841 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7842 * config/arm/nbsd.mh: Remove.
7843 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7844 nbsd-tdep.o.
7845 * config/arm/nbsdaout.mh: New file.
7846 * config/arm/nbsdelf.mh: New file.
7847 * config/arm/nm-nbsdaout.h: New file.
7848 * config/i386/nbsd.mh: Remove.
7849 * config/i386/nbsd.mt: Remove.
7850 * config/i386/nbsdaout.mh: New file.
7851 * config/i386/nbsdaout.mt: New file.
7852 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7853 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7854 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7855 i386_register_u_addr): Remove.
7856 * config/i386/nm-nbsdaout.h: New file.
7857 * config/i386/nm-nbsdelf.h: Remove.
7858 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7859 (USE_STRUCT_CONVENTION): Remove.
7860 * config/i386/tm-nbsdaout.h: New file.
7861 * config/i386/tm-nbsdelf.h: Remove.
7862 * config/m68k/nbsd.mh: Remove.
7863 * config/m68k/nbsd.mt: Remove.
7864 * config/m68k/nbsdaout.mh: New file.
7865 * config/m68k/nbsdaout.mt: New file.
7866 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7867 * config/m68k/nm-nbsdaout.h: New file.
7868 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7869 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7870 * config/ns32k/nbsd.mh: Remove.
7871 * config/ns32k/nbsd.mt: Remove.
7872 * config/ns32k/nbsdaout.mh: New file.
7873 * config/ns32k/nbsdaout.mt: New file.
7874 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7875 * config/ns32k/nm-nbsdaout.h: New file.
7876 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7877 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7878 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7879 (SVR4_SHARED_LIBS): Remove.
7880 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7881 * config/sparc/nbsd.mh: Remove.
7882 * config/sparc/nbsd.mt: Remove.
7883 * config/sparc/nbsdaout.mh: New file.
7884 * config/sparc/nbsdaout.mt: New file.
7885 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7886 * config/sparc/nbsdelf.mt: New file.
7887 * config/sparc/nm-nbsdaout.h: New file.
7888 * config/sparc/nm-nbsdelf.h: Remove.
7889 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7890 * config/sparc/tm-nbsdaout.h: New file.
7891
257ce470
JT
78922002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7893
7894 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7895 mipsnbsd-tdep.c
7896 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7897
76a6d5fe
JT
78982002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7899
7900 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7901 shnbsd-nat.c.
7902 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7903
45888261
JT
79042002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7905
7906 * NEWS: Note new MIPS NetBSD native configuration.
7907 * configure.host (mips*-*-netbsd*): New host.
7908 * configure.tgt (mips*-*-netbsd*): New target.
7909 * mipsnbsd-nat.c: New file.
7910 * mipsnbsd-tdep.c: New file.
7911 * mipsnbsd-tdep.h: New file.
7912 * config/mips/nbsd.mh: New file.
7913 * config/mips/nbsd.mt: New file.
7914 * config/mips/nm-nbsd.h: New file.
7915 * config/mips/tm-nbsd.h: New file.
7916
70f80edf
JT
79172002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7918
7919 * Makefile.in (SFILES): Add osabi.c.
7920 (COMMON_OBS): Add osabi.o.
7921 (osabi.o): New dependency list.
7922 * osabi.c: New file.
7923 * osabi.h: New file.
7924 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7925
7926 * Makefile.in (alpha_tdep_h): Define and use instead of
7927 alpha-tdep.h.
7928 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7929 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7930 Remove.
7931 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7932 * alpha-tdep.h: Include osabi.h.
7933 (alpha_abi): Remove.
7934 (gdbarch_tdep): Use generic OS ABI framework.
7935 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7936 gdbarch_register_osabi.
7937 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7938 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7939 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7940
7941 * Makefile.in (sh_tdep_h): Add osabi.h.
7942 * sh-tdep.h (sh_osabi): Remove.
7943 (gdbarch_tdep): Use generic OS ABI framework.
7944 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7945 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7946 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7947 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7948
7949 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7950 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7951 gdbarch_register_osabi.
7952 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7953 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7954 (get_elfosabi): Rename to...
7955 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7956 ABI framework support routines.
7957 (arm_gdbarch_init): Use generic OS ABI framework.
7958 (arm_dump_tdep): Likewise.
7959 (_initialize_arm_tdep): Likewise.
7960 * arm-tdep.h: Include osabi.h.
7961 (arm_abi): Remove.
7962 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7963 osabi member.
7964 (arm_gdbarch_register_os_abi): Remove prototype.
7965 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7966 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7967
7968 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7969 * mips-tdep.c: Include osabi.h.
7970 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7971 OS ABI framework.
7972
d194345b
KH
79732002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7974
7975 * h8300-tdep.c: Fix formatting.
7976
70c6b0d1
EZ
79772002-05-20 Elena Zannoni <ezannoni@redhat.com>
7978
7979 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7980 printing vector registers.
7981
165b8e33
AC
79822002-05-19 Andrew Cagney <ac131313@redhat.com>
7983
7984 From Fernando Nasser:
7985 * remote.c (remote_async_open_1): Re-throw the exception when the
7986 connection fails.
7987 (remote_cisco_open): Ditto.
7988 (remote_open_1): Ditto.
7989
36918e70
AC
79902002-05-19 Andrew Cagney <ac131313@redhat.com>
7991
7992 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7993 (remote_start_remote): Add uiout parameter. Pass through to
7994 remote_start_remote_dummy.
7995 (remote_open_1): Use catch_exception instead of catch_errors.
7996 (remote_async_open_1): Ditto.
7997 (remote_cisco_open): Ditto.
7998
ae44c0c4
AC
79992002-05-19 Andrew Cagney <ac131313@redhat.com>
8000
8001 * remote.c (remote_start_remote): Replace PTR with void pointer.
8002 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8003 static.
8004
8efe637d
AC
80052002-05-18 Andrew Cagney <ac131313@redhat.com>
8006
8007 * gdb_indent.sh: Allow the script to be run in the sim directory.
8008
2f1b5984
MK
80092002-05-18 Mark Kettenis <kettenis@gnu.org>
8010
f0f625e2
MK
8011 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8012 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8013
2f1b5984
MK
8014 * corelow.c (core_open): Only call set_gdbarch_from_file if
8015 exec_bfd is NULL.
8016
fc974602
AV
80172002-05-17 Andrey Volkov <avolkov@transas.com>
8018
8019 * h8300-tdep.c: Add support of EXR register
8020 * config/h8300/tm-h8300.h: Ditto.
8021
906709f4
AV
80222002-05-17 Andrey Volkov <avolkov@transas.com>
8023
8024 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8025
6e591d68
AV
80262002-05-17 Andrey Volkov <avolkov@transas.com>
8027
8028 * h8300-tdep.c: Change literal regnums to REGNO.
8029
84f0252a
JB
80302002-05-17 Jim Blandy <jimb@redhat.com>
8031
e0e9281e
JB
8032 * NEWS: Note addition of macro support.
8033
84f0252a
JB
8034 Expand preprocessor macros in C expressions.
8035 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8036 (scan_macro_expansion, scanning_macro_expansion,
8037 finished_macro_expansion): New function declarations.
8038 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8039 variable declarations.
8040 * parser-defs.h (expression_context_pc): New declaration.
8041 * parse.c (expression_context_pc): New variable.
8042 (parse_exp_1): Set expression_context_pc, as well as
8043 expression_context_block.
8044 * c-exp.y (yylex): If we're not already reading the result of a
8045 macro expansion, try to macro-expand the next token. When we're
8046 done scanning a macro expansion, switch back to the mainline text.
8047 Commas and `if's in a macro's expansion don't terminate the input.
8048 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8049 (macro_original_text, macro_expanded_text,
8050 expression_macro_lookup_func, expression_macro_lookup_baton): New
8051 variables.
8052 (scan_macro_expansion, scanning_macro_expansion,
8053 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8054 c_preprocess_and_parse): New functions.
8055 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8056 c_preprocess_and_parse, instead of c_parse.
8057 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8058 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8059
1c509ca8
JR
8060Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8061
8062 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8063 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8064 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8065
2250ee0c
CV
80662002-05-17 Corinna Vinschen <vinschen@redhat.com>
8067
8068 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8069
ab3b8126
JT
80702002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8071
8072 * Makefile.in (sh_tdep_h): Define and use.
8073 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8074 register enum): Move to...
8075 * * sh-tdep.h: ...here.
8076 * sh-tdep.c: Include sh-tdep.h.
8077 * sh3-rom.c: Likewise.
8078 * shnbsd-tdep.c: Likewise.
8079
ed9d4749
MS
80802002-05-16 Michael Snyder <msnyder@redhat.com>
8081
8082 * arm-tdep.c: Spelling fix in comment.
8083
2e276125
JB
80842002-05-16 Jim Blandy <jimb@redhat.com>
8085
6821892e
JB
8086 Add commands for manually expanding macros and showing their
8087 definitions.
8088 * macrocmd.c, macroscope.c, macroscope.h: New files.
8089 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8090 (macroscope_h): New variable.
8091 (HFILES_NO_SRCDIR): Add macroscope.h.
8092 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8093 (macroscope.o, macrocmd.o): New rules.
8094
2e276125
JB
8095 Teach the Dwarf 2 reader to read macro information.
8096 * dwarf2read.c: #include "macrotab.h".
8097 (dwarf_macinfo_buffer): New variable.
8098 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8099 dwarf_macinfo_size.
8100 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8101 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8102 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8103 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8104 dwarf2_macro_spaces_in_definition): New complaints.
8105 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8106 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8107 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8108 the partial symbol table.
8109 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8110 from what's recorded in the partial symbol table.
8111 (read_file_scope): If the compilation unit has a
8112 `DW_AT_macro_info' attribute, read its macro information.
8113 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8114
2f53fe6c
DJ
81152002-05-16 Daniel Jacobowitz <drow@mvista.com>
8116
8117 Fix PR gdb/546
8118 * ser-tcp.c: Don't include <netinet/udp.h>.
8119
2be99286
SC
81202002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8121
8122 * MAINTAINERS: Update my email address.
8123
c9af212b 81242002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8125
8126 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8127 include file of the same name.
8128
bf5f1a52
CV
81292002-05-16 Corinna Vinschen <vinschen@redhat.com>
8130
8131 * configure.tgt: Mark v850 as multi-arched.
8132 * config/v850/tm-v850.h: Remove file.
8133 * config/v850/v850.mt: Eliminate TM_FILE.
8134
435e042a
CV
81352002-05-16 Corinna Vinschen <vinschen@redhat.com>
8136
8137 * v850-tdep.c: Full multi-arch.
8138 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8139 Define GDB_MULTI_ARCH to 2.
8140
9819c6c8
PM
81412002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8142
8143 * p-exp.y (current_type): New static variable.
8144 Carries the type of the expression at the position that is parsed.
8145 (push_current_type, pop_current_type): Two new functions. Used
8146 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8147 (search_field): New static variable. Set to one after parsing a point
8148 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8149 (FIELDNAME): New token. After a point only a token belonging to
8150 current_type type definition is allowed.
8151 (all over token rules): reset and change current_type according
8152 to rules.
8153 (exp '[' rule): insert implicit array index field if
8154 exp is a pascal string type.
8155
3a06899a
CV
81562002-05-16 Corinna Vinschen <vinschen@redhat.com>
8157
8158 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8159 frame info. Use frame_info's saved_regs instead of matching member
8160 in extra_frame_info throughout.
8161 (v850_frame_init_saved_regs): New function.
8162 (v850_init_extra_frame_info): Move most functionality into
8163 v850_frame_init_saved_regs().
8164 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8165 (v850_frame_find_saved_regs): Remove declaration.
8166 (FRAME_FIND_SAVED_REGS): Remove definition.
8167 (v850_frame_init_saved_regs): Add declaration.
8168 (FRAME_INIT_SAVED_REGS): Add definition.
8169
6ed14b0e
CV
81702002-05-16 Corinna Vinschen <vinschen@redhat.com>
8171
8172 * v850-tdep.c: Begin multi-arch'ing v850.
8173 (v850_target_architecture_hook): Remove function.
8174 (v850_gdbarch_init): New function. Add code previously in
8175 v850_target_architecture_hook().
8176 (_initialize_v850_tdep): Don't set target_architecture_hook.
8177 Call register_gdbarch_init() instead.
8178
42725910
DJ
81792002-05-16 Daniel Jacobowitz <drow@mvista.com>
8180
8181 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8182 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8183 (fixup_class_method_type): Likewise.
8184
99d9066e
JB
81852002-05-15 Jim Blandy <jimb@redhat.com>
8186
8187 Add macro structures to GDB's symbol tables. Nobody puts anything
8188 in them yet.
8189 * symtab.h (struct symtab): New member: `macro_table'.
8190 * buildsym.h (pending_macros): New global variable.
8191 * buildsym.c: #include "macrotab.h".
8192 (buildsym_init): Initialize `pending_macros'.
8193 (end_symtab): If we found macro information while reading a CU's
8194 debugging info, do build a symtab structure for it. Make the
8195 symtab point to the macro information, and clear the
8196 `pending_macros' pointer which held it while we were reading the
8197 debug info.
8198 (really_free_pendings): Free any pending macro table.
8199 * objfiles.h (struct objfile): New member: `macro_cache'.
8200 * objfiles.c (allocate_objfile): Set allocate and free functions
8201 for the macro cache's objstack.
8202 (free_objfile): Empty the macro cache's obstack.
8203 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8204 set new allocate and free functions for it.
8205 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8206 free functions for the macro cache's objstack. (Why is this
8207 function building its own objfile?)
8208 * symmisc.c (print_objfile_statistics): Print statistics on the
8209 macro bcache.
8210 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8211
c899585b
RE
82122002-05-15 Richard Earnshaw <rearnsha@arm.com>
8213
8214 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8215 (REGISTER_U_ADDR): Delete definition.
8216 (arm_register_u_addr): Delete declaration.
8217
a6cdd8c5
RE
82182002-05-15 Richard Earnshaw <rearnsha@arm.com>
8219
8220 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8221 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8222
c97dcfc7
AC
82232002-05-14 Andrew Cagney <ac131313@redhat.com>
8224
8225 * regcache.c (register_valid): Revise comments refering to "Not
8226 available" and "unavailable".
8227 * frame.c (frame_register_read): Ditto.
8228 * findvar.c (value_of_register): Ditto.
8229
93021b7d
AC
82302002-05-15 Andrew Cagney <cagney@redhat.com>
8231
8232 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8233 (remote-sim.o): Update dependencies.
8234 (d10v-tdep.o): Specify dependencies.
8235 (sim_d10v_h): Define.
8236
a86bc61c
JB
82372002-05-14 Jim Blandy <jimb@redhat.com>
8238
8239 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8240 * macrotab.c (macro_lookup_inclusion, find_definition,
8241 new_macro_table): Same.
8242
8243 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8244 not `! strcmp ()'. This is a dubious improvement.
8245 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8246
8247 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8248 although it's not necessary, to avoid a warning.
8249
2fdde8f8
DJ
82502002-05-14 Daniel Jacobowitz <drow@mvista.com>
8251
8252 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8253 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8254 TYPE_INSTANCE_FLAGS.
8255 (struct main_type): New.
8256 (struct type): Move most members to struct main_type. Change
8257 cv_type and as_type to new type_chain member. Add instance_flags.
8258 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8259 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8260 (finish_cv_type): Remove prototype.
8261 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8262 Set TYPE_CHAIN.
8263 (alloc_type_instance): New function.
8264 (smash_type): New function.
8265 (make_pointer_type, make_reference_type, make_function_type)
8266 (smash_to_member_type, smash_to_method_type): Call smash_type.
8267 (make_qualified_type): New function.
8268 (make_type_with_address_space): Call make_qualified_type.
8269 (make_cv_type): Likewise.
8270 (finish_cv_type): Remove unnecessary function.
8271 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8272 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8273 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8274 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8275 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8276 * hpread.c (hpread_read_struct_type): Likewise.
8277 * stabsread.c (read_struct_type): Likewise.
8278
843fedf4
EZ
82792002-05-14 Elena Zannoni <ezannoni@redhat.com>
8280
8281 * configure.tgt: Add a catch all sh* target, for cases like
8282 sh[2,3,4]-elf and sh-hms.
8283
05a6c72c
KS
82842002-05-14 Keith Seitz <keiths@redhat.com>
8285
8286 * event-loop.c (create_file_handler): Don't do anything but
8287 update data when we are given a fd which we are already
8288 monitoring.
8289
5d085aaf
ML
82902002-05-14 Michal Ludvig <mludvig@suse.cz>
8291
8292 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8293 (update_context): Use __func__ in warnings.
8294
9db8d71f
DJ
82952002-05-14 Daniel Jacobowitz <drow@mvista.com>
8296
8297 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8298 and tcp_close to net_open and net_close.
8299 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8300 using UDP if requested. Don't try to disable Nagle on UDP
8301 sockets.
8302 * remote.c (remote_serial_open): New function. Warn about UDP.
8303 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8304
5dbc6baa
EZ
83052002-05-13 Elena Zannoni <ezannoni@redhat.com>
8306
8307 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8308
cc3023f7
EZ
83092002-05-13 Elena Zannoni <ezannoni@redhat.com>
8310
8311 * configure.tgt: Remove sh-hms target.
8312 * MAINTAINERS: Don't list sh-hms as a separate target.
8313
ec2bcbe7
JB
83142002-05-13 Jim Blandy <jimb@redhat.com>
8315
8316 Add first preprocessor macro-expansion files.
8317 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8318 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8319 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8320 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8321 (COMMON_OBS): Add macrotab.o, macroexp.o.
8322 (macroexp.o, macrotab.o): New rules.
8323
6d531722
AC
83242002-05-13 Andrew Cagney <ac131313@redhat.com>
8325
8326 * config/m88k/tm-m88k.h: Update copyright.
8327 (m88k_target_write_pc): Declare
8328 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8329 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8330 (SHIFT_INST_REGS): Update definition.
8331 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8332 using old definition of TARGET_WRITE_PC.
8333 * regcache.c (generic_target_write_pc): Delete code handling
8334 NNPC_REGNUM.
8335 * gdbarch.sh (NNPC_REGNUM): Delete.
8336 * gdbarch.h, gdbarch.c: Regenerate.
8337
3e3f2739
RE
83382002-05-13 Richard Earnshaw <rearnsha@arm.com>
8339
8340 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8341 builtin reg number.
8342
0004e5a2
DJ
83432002-05-13 Daniel Jacobowitz <drow@mvista.com>
8344
8345 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8346 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8347 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8348 access macros.
8349 * c-typeprint.c (cp_type_print_method_args): Likewise.
8350 (c_type_print_args): Likewise.
8351 * d10v-tdep.c (d10v_push_arguments): Likewise.
8352 (d10v_extract_return_value): Likewise.
8353 * expprint.c (print_subexp): Likewise.
8354 * gdbtypes.c (lookup_primitive_typename): Likewise.
8355 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8356 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8357 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8358 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8359 (TYPE_VECTOR): Likewise.
8360 * hpread.c (hpread_read_struct_type)
8361 (fix_static_member_physnames, fixup_class_method_type)
8362 (hpread_type_lookup): Likewise.
8363 * mdebugread.c (parse_symbol, parse_type): Likewise.
8364 * p-lang.c (is_pascal_string_type): Likewise.
8365 * valops.c (hand_function_call): Likewise.
8366 * x86-64-tdep.c (classify_argument): Likewise.
8367
8368 * hpread.c (hpread_read_function_type)
8369 (hpread_read_doc_function_type): Call replace_type.
8370 * dstread.c (create_new_type): Delete.
8371 (decode_dst_structure, process_dst_function): Call alloc_type.
8372 Use type access macros.
8373
dff95cc7
MK
83742002-05-12 Mark Kettenis <kettenis@gnu.org>
8375
8376 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8377 the're not supported by the current architecture.
8378 (i387_fill_fxsave): Likewise.
8379
bbcd32ad
FF
83802002-05-12 Fred Fish <fnf@redhat.com>
8381
8382 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8383 sect_index_xxx members to index the first slot in section_offsets
8384 if all of the section_offsets are zero.
8385
89cf4787
MK
83862002-05-12 Mark Kettenis <kettenis@gnu.org>
8387
8388 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8389 checked in with last change.
8390
1f77ffc5
MK
83912002-05-12 Mark Kettenis <kettenis@gnu.org>
8392
8393 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8394 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8395 config.sub.
8396
89b8b4a9
DJ
83972002-05-12 Daniel Jacobowitz <drow@mvista.com>
8398
8399 * Makefile.in: Update dependencies.
8400
14a5e767
AC
84012002-05-11 Andrew Cagney <ac131313@redhat.com>
8402
8403 * language.c (local_hex_string_custom): Simplify. Do not depend
8404 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8405
8406 * memattr.c (mem_info_command): Replace calls to
8407 longest_local_hex_string and longest_local_hex_string_custom.
8408 * buildsym.c (make_blockvector): Ditto.
8409 * solib.c (info_sharedlibrary_command): Ditto.
8410 * tracepoint.c (tracepoints_info): Ditto.
8411 * symtab.c (print_msymbol_info): Ditto.
8412
8413 * language.c (local_hex_string): Delete.
8414 (local_hex_string_custom): Delete.
8415 (longest_local_hex_string): Rename to local_hex_string.
8416 (longest_local_hex_string_custom): Rename to
8417 local_hex_string_custom.
8418 * language.h (local_hex_string): Change parameter type to LONGEST.
8419 (local_hex_string_custom): Ditto.
8420 (longest_local_hex_string): Delete declaration.
8421 (longest_local_hex_string_custom): Ditto.
8422
8423 * solib.c: Update copyright.
8424 * memattr.c: Update copyright.
8425
13d01224
AC
84262002-05-11 Andrew Cagney <ac131313@redhat.com>
8427
8428 * arch-utils.h (legacy_register_to_value): Declare.
8429 (legacy_value_to_register): Declare.
8430 (legacy_convert_register_p): Declare.
8431 * arch-utils.c (legacy_register_to_value): New function.
8432 (legacy_value_to_register): New function.
8433 (legacy_convert_register_p): New function.
8434
8435 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8436 (VALUE_TO_REGISTER): Define.
8437 (CONVERT_REGISTER_P): Define.
8438 * gdbarch.h, gdbarch.c: Regenerate.
8439
8440 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8441 VALUE_TO_REGISTER.
8442 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8443 CONVERT_REGISTER_P.
8444
4a1970e4
DJ
84452005-05-11 Daniel Jacobowitz <drow@mvista.com>
8446 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8447
8448 * Makefile.in: Update dependencies for valops.c.
8449 * valops.c: Include "gdb_assert.h".
8450 (typecmp): Skip THIS parameter to methods.
8451 (find_method_list): Remove static_memfuncp argument,
8452 update callers. Check for stub methods.
8453 (find_value_oload_method_list): Don't set *static_memfuncp.
8454 (find_overload_match): Don't check for stub methods. Assert
8455 that methods are not stubbed. Handle static methods.
8456 (value_find_oload_method_list): Remove static_memfuncp argument.
8457 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8458 to the argument list for static stub methods.
8459 * value.h (value_find_oload_method_list): Update prototype.
8460
b2e75d78
AC
84612002-05-11 Andrew Cagney <ac131313@redhat.com>
8462
8463 * arch-utils.h (generic_register_size): Declare.
8464 (generic_register_raw_size, generic_register_virtual_size): Delete
8465 declarations.
8466 * arch-utils.c (generic_register_raw_size): Delete.
8467 (generic_register_size): New function.
8468 (generic_register_virtual_size): Delete.
8469
8470 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8471 default generic_register_size.
8472 * gdbarch.h, gdbarch.c: Re-generate.
8473
8474 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8475 register_virtual_size.
8476 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8478
451fbdda
AC
84792002-05-11 Andrew Cagney <ac131313@redhat.com>
8480
8481 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8482 * gdbarch.h, gdbarch.c: Regenerate.
8483 * gnu-v3-abi.c: Update copyright.
8484 (vtable_address_point_offset): Update.
8485 (gnuv3_rtti_type): Update.
8486 (gnuv3_baseclass_offset): Update.
8487 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8488 (init_fetch_link_map_offsets): Update.
8489 * remote.c (get_remote_state): Update.
8490
6d2f5cea
DJ
84912002-05-11 Daniel Jacobowitz <drow@mvista.com>
8492
8493 * TODO: Remove value_headof/value_from_vtable_info comment.
8494 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8495 * values.c (value_headof, value_from_vtable_info): Delete.
8496 * value.h (value_from_vtable_info): Delete prototype.
8497
d2324da4
AC
84982002-05-11 Andrew Cagney <ac131313@redhat.com>
8499
8500 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8501 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8502 $(gdb_regex_h).
8503 (gdb_assert_h): Define.
8504 (gdb_wait_h): Define.
8505 (gdb_regex_h): Define.
8506
5c717440
DJ
85072002-05-11 Daniel Jacobowitz <drow@mvista.com>
8508
8509 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8510 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8511
6c7861b3
JT
85122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8513
8514 * nbsd-tdep.c: Fix comment.
8515
ea5bc2a6
JT
85162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8517
8518 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8519 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8520 (nbsd-tdep.o): New dependency list.
8521 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8522 nbsd-tdep.h.
8523 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8524 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8525 * nbsd-tdep.c: New file.
8526 * nbsd-tdep.h: New file.
8527 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8528 nbsd-tdep.h.
8529 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8530 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8531 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8532 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8533
b28da865
JT
85342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8535
8536 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8537 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8538 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8539 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8540 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8541 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8542
4b8ff1fa
JT
85432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8544
8545 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8546 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8547 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8548 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8549 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8550 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8551 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8552
dfe6eb1f
JT
85532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8554
8555 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8556 fetch_elfcore_registers to...
8557 * i386nbsd-tdep.c: ...here.
8558 (i386nbsd_use_struct_convention): Rename to...
8559 (i386nbsd_aout_use_struct_convention): ...this.
8560 (i386nbsd_supply_reg): New function.
8561 (i386nbsd_fill_reg): New function.
8562 (fetch_core_registers): Use i386nbsd_supply_reg.
8563 (fetch_elfcore_registers): Likewise.
8564 (_initialize_i386nbsd_tdep): New function.
8565 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8566 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8567 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8568 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8569 (i386nbsd_aout_use_struct_convention): ...this.
8570
20cb8cda
JT
85712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8572
8573 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8574 (store_inferior_registers): Use shnbsd_fill_reg.
8575 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8576 sh_nbsd_supply_register): Collapse into...
8577 (shnbsd_supply_reg): ...this.
8578 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8579 (shnbsd_fill_reg): ...this.
8580 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8581 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8582 (fetch_core_registers): Use shnbsd_supply_reg.
8583 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8584 (sh_nbsd_core_fns): Rename to...
8585 (shnbsd_core_fns): ...this.
8586 (sh_nbsd_elfcore_fns): Rename to...
8587 (shnbsd_elfcore_fns): ...this.
8588 (sh_nbsd_init_abi): Rename to...
8589 (shnbsd_init_abi): ...this.
8590 (_initialize_sh_nbsd_tdep): Rename to...
8591 (_initialize_shnbsd_tdep): ...this.
8592 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8593 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8594 sh_nbsd_fill_register): Remove prototypes.
8595 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8596
e750d25e
JT
85972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8598
8599 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8600 (i387-nat.o): Delete dependency list.
8601 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8602 (x86-64-linux-nat.o): Likewise.
8603 * i387-nat.c: Delete file, moving contents to...
8604 * i387-tdep.c: ...here.
8605 * i387-nat.h: Rename...
8606 * i387-tdep.h: ...to this.
8607 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8608 * i386-linux-nat.c: Likewise.
8609 * i386bsd-nat.c: Likewise.
8610 * i386gnu-nat.c: Likewise.
8611 * i386nbsd-nat.c: Likewise.
8612 * i386v4-nat.c: Likewise.
8613 * x86-64-linux-nat.c: Likewise.
8614 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8615 * config/i386/go32.mh (NATDEPFILES): Likewise.
8616 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8617 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8618 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8619 * config/i386/linux.mh (NATDEPFILES): Likewise.
8620 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8621 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8622 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8623 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8624
1aee598a
JT
86252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8626
8627 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8628 (alphanbsd-nat.o): Remove dependency list.
8629 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8630 * alphanbsd-nat.c: Delete. Contents moved to...
8631 * alphanbsd-tdep.c: ...here.
8632 (_initialize_alphanbsd_tdep): Register core functions.
8633 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8634
12bcb0fe
JT
86352002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8636
8637 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8638 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8639 (alphanbsd-nat.o): Likewise.
8640 (alphabsd-tdep.o): New dependency list.
8641 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8642 (fill_gregset): Use alphabsd_fill_reg.
8643 (supply_fpregset): Use alphabsd_supply_fpreg.
8644 (fill_fpregset): Use alphabsd_fill_fpreg.
8645 (fetch_inferior_registers): Use struct reg and struct fpreg
8646 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8647 and alphabsd_supply_fpreg.
8648 (store_inferior_registers): Use struct reg and struct fpreg
8649 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8650 and alphabsd_fill_fpreg.
8651 * alphabsd-tdep.c: New file.
8652 * alphabsd-tdep.h: New file.
8653 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8654 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8655 alphabsd_supply_fpreg.
8656 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8657 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8658
361d1df0
EC
86592002-05-11 Eric Christopher <echristo@redhat.com>
8660
8661 * mips-tdep.c (mips_double_register_type): Fix thinko.
8662 (mips_single_register_type): Ditto.
8663 * MAINTAINERS: Add self.
8664
92dd7cee
MK
86652002-05-11 Mark Kettenis <kettenis@gnu.org>
8666
8667 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8668 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8669 right thing on architectures with different endianness and/or
8670 integer sizes.
8671
e27da16d
JT
86722002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8673
8674 From Christian Limpach <chris@Pin.LU>
8675 * configure.in: Change sed expression which comments out
8676 NATDEPFILES to also comment out continuation lines.
8677 * configure: Regenerate.
8678
ddde02bd
EZ
86792002-05-10 Elena Zannoni <ezannoni@redhat.com>
8680
8681 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8682 big patch.
8683
1c922164
EZ
86842002-05-10 Elena Zannoni <ezannoni@redhat.com>
8685
8686 * sh-tdep.c: Include correct file.
8687
283150cd
EZ
86882002-05-10 Elena Zannoni <ezannoni@redhat.com>
8689
8690 New support for sh64-elf (sh5) target.
8691
8692 * configure.tgt: For sh64-elf target, default to sh-elf.
8693
8694 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8695 (struct gdbarch_tdep): Add new fields for new registers and ABI
8696 info.
361d1df0 8697
283150cd
EZ
8698 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8699 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8700 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8701 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8702 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8703 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8704 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8705 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8706 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8707 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8708 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8709 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8710 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8711 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8712 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8713 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8714 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8715 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8716 sign_extend, sh64_nofp_frame_init_saved_regs,
8717 sh64_init_extra_frame_info, sh64_get_saved_register,
8718 sh64_extract_struct_value_address, sh64_pop_frame,
8719 sh64_push_arguments, sh64_extract_return_value,
8720 sh64_store_return_value, sh64_show_media_regs,
8721 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8722 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8723 sh_sh64_register_virtual_type,
8724 sh_sh64_register_convert_to_virtual,
8725 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8726 sh64_register_read, sh64_pseudo_register_write,
8727 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8728 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8729 sh64_do_pseudo_register, sh_compact_do_registers_info,
8730 sh64_do_registers_info, sh_gdbarch_init): New functions.
8731
3117ed25
EZ
87322002-05-10 Elena Zannoni <ezannoni@redhat.com>
8733
8734 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8735
2654e6d4
DJ
87362002-05-10 Daniel Jacobowitz <drow@mvista.com>
8737
8738 * linespec.c (decode_line_1): Check for a double quote after
8739 a filename correctly.
8740
9ab3e532
JB
87412002-05-10 Jim Blandy <jimb@redhat.com>
8742
8743 Properly track the size of the current objfile's .debug_line section.
8744 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8745 (DWARF_LINE_SIZE): New macro.
8746 (dwarf2_build_psymtabs_hard): Record the line section's size in
8747 the partial symbol table.
8748 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8749 symbol table.
8750
126fa72d
PS
87512002-05-10 Petr Sorfa <petrs@caldera.com>
8752
8753 * ia64-tdep.c: Handle breakpoints on L instruction type
8754 in MLX instruction bundle by moving the breakpoint to
8755 the third slot (X instruction type) as L holds only data.
8756
1f077a3e
KB
87572002-05-10 Kevin Buettner <kevinb@redhat.com>
8758
8759 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8760 (process_one_symbol): Complain about discarding local symbols
8761 due to a misplaced N_LBRAC entry.
8762
8120c9d5 87632002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8764
8765 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8766 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8767 decrease the depth we are at, in the case of templates.
361d1df0 8768
67b2c998
DJ
87692002-05-09 Daniel Jacobowitz <drow@mvista.com>
8770
8771 * mips-tdep.c (mips_float_register_type): New function.
8772 (mips_double_register_type): New function.
8773 (mips_print_register): Use them.
8774 (do_fp_register_row): Likewise.
8775
fd326606
DJ
87762002-05-09 Daniel Jacobowitz <drow@mvista.com>
8777
6609d9af 8778 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8779 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8780 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8781
bef35864
MS
87822002-05-09 Michael Snyder <msnyder@redhat.com>
8783
8784 * remote-rdp.c (remote_rdp_can_run): Remove.
8785
c55a3f73
TT
87862002-05-09 Tom Tromey <tromey@redhat.com>
8787
8788 * jv-valprint.c (java_val_print): Handle `char' as a special case
8789 of TYPE_CODE_INT.
8790
b8d5e71d
MS
87912002-05-09 Michael Snyder <msnyder@redhat.com>
8792
8793 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8794 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8795 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8796 str r(0123),[sp,#nn].
361d1df0 8797 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8798 order-independent by placing it in a loop.
8799
e2cd42dd
MS
88002002-05-06 Michael Snyder <msnyder@redhat.com>
8801
8802 * stabsread.c (read_type): Add recognition for new attribute:
8803 "@V;" means that an array type is actually a vector.
8804 This is analogous to the vector flag that's been added to dwarf2.
8805
3ce1502b
MK
88062002-05-09 Mark Kettenis <kettenis@gnu.org>
8807
8808 * i386-tdep.h (i386_abi): New enum.
8809 (struct gdbarch_tdep): Replace os_ident member with abi.
8810 (i386_gdbarch_register_os_abi): New prototype.
8811 * i386-tdep.c (i386_abi_names): New array.
8812 (process_note_abi_tag_sections): Removed.
8813 (process_note_sections): New function.
8814 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8815 (struct i386_abi_handler): New struct.
8816 (i386_abi_handler_list): New variable.
8817 (i386_gdbarch_register_os_abi): New function.
8818 (i386_gdbarch_init): Adapt for the changes given above.
8819
084c156a
DJ
88202002-05-08 Daniel Jacobowitz <drow@mvista.com>
8821
8822 * gregset.h: Say "GNU/Linux".
8823
6599f021
EZ
88242002-05-08 Elena Zannoni <ezannoni@redhat.com>
8825
8826 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8827 (build_gdbtypes): Build builtin_type_v2_float.
8828 (_initialize_gdbtypes): Register new builtin type.
8829
40af4b0c
AC
88302002-05-08 Andrew Cagney <ac131313@redhat.com>
8831
8832 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8833 (clear_gdbarch_swap): New function.
8834 (initialize_non_multiarch): Call.
8835 (gdbarch_update_p): Before calling init(), swap out and clear the
8836 existing architecture.
8837 * gdbarch.c: Regenerate.
8838
4fe84f46
JT
88392002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8840
8841 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8842 alphanbsd-tdep.c.
8843
4015edd1
JT
88442002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8845
8846 * sh-nbsd-nat.c: Rename to...
8847 * shnbsd-nat.c: ...this.
8848 * sh-nbsd-tdep.c: Rename to...
8849 * shnbsd-tdep.c: ...this.
8850 * sh-nbsd-tdep.h: Rename to...
8851 * shnbsd-tdep.h: ...this.
8852 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8853 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8854
0e2bd219
RE
88552002-05-08 Richard Earnshaw <rearnsha@arm.com>
8856
8857 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8858 concatenation for command help messages.
8859
13a38d45
JT
88602002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8861
8862 * NEWS: Note new sh*-*-netbsdelf* configuration.
8863 * configure.host: Set gdb_host_cpu to sh for all sh*.
8864 (sh*-*-netbsdelf*): New host.
8865 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8866 (sh*-*-netbsdelf*): New target.
8867 * sh-nbsd-nat.c: New file.
8868 * sh-nbsd-tdep.c: New file.
8869 * sh-nbsd-tdep.h: New file.
8870 * config/sh/nbsd.mh: New file.
8871 * config/sh/nbsd.mt: New file.
8872 * config/sh/nm-nbsd.h: New file.
8873 * config/sh/tm-nbsd.h: New file.
8874
d658f924
JT
88752002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8876
8877 * sh-tdep.c (sh_osabi_names): Declare.
8878 (process_note_abi_tag_sections): New function.
8879 (get_elfosabi): Ditto.
8880 (sh_gdbarch_register_os_abi): Ditto.
8881 (sh_dump_tdep): Ditto.
8882 _initialize_sh_tdep): Use gdbarch_register to register
8883 sh_gdbarch_init and sh_dump_tdep.
8884 * config/sh/tm-sh.h (sh_osabi): Declare.
8885 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8886
848cfffb
AC
88872002-05-07 Andrew Cagney <ac131313@redhat.com>
8888
8889 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8890 (thumb_scan_prologue): Ditto.
8891 (arm_find_callers_reg): Ditto.
8892 (arm_frame_chain): Ditto.
8893 (arm_init_extra_frame_info): Ditto.
8894 (arm_frame_saved_pc): Ditto.
8895 (arm_pop_frame): Ditto.
8896 (arm_push_return_address): New function.
8897 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8898 call_dummy_location, call_dummy_breakpoint_offset_p,
8899 call_dummy_breakpoint_offset, call_dummy_p,
8900 call_dummy_stack_adjust_p, call_dummy_words,
8901 sizeof_call_dummy_words, call_dummy_start_offset,
8902 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8903 call_dummy_address, push_return_address and push_dummy_frame for
8904 generic dummy frames.
8905
e7d717c0
JT
89062002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8907
8908 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8909 size computation for alloca.
8910 (sh_fp_frame_init_saved_regs): Likewise.
8911
7bbcf283
RE
89122002-05-07 Richard Earnshaw <rearnsha@arm.com>
8913
8914 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8915 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8916 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8917 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8918 * remote-rdp.c (remote_rdp_fetch_register): Use
8919 ARM_MAX_REGISTER_RAW_SIZE.
8920 (remote_rdp_store_register): Likewise.
8921
4657573b
ML
89222002-05-07 Michal Ludvig <mludvig@suse.cz>
8923
361d1df0 8924 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8925 added default labels to switch {} statements.
8926 * x86-64-tdep.c: Ditto.
8927 * x86-64-linux-nat.c: Ditto.
8928
010f3b2f
JT
89292002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8930
8931 * solib.h: Protect against multiple inclusion.
8932
debd256d
JB
89332002-05-06 Jim Blandy <jimb@redhat.com>
8934
9ab3e532
JB
8935 Add first preprocessor macro-expansion files.
8936 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8937 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8938 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8939 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8940 (COMMON_OBS): Add macrotab.o, macroexp.o.
8941 (macroexp.o, macrotab.o): New rules.
8942
debd256d
JB
8943 Separate the job of reading the line number info statement program
8944 header (...expialidocious) out into its own function.
8945 * dwarf2read.c (struct line_head, struct filenames, struct
8946 directories): Replace with...
8947 (struct line_header): New structure, containing the full
8948 contents of the statement program header, including the
8949 include directory and file name tables.
8950 (read_file_scope): If we have line number info, instead of just
8951 calling dwarf_decode_lines to do all the work, call
8952 dwarf_decode_line_header first to get a `struct line_header'
8953 containing the data in the statement program header, and then
8954 pass that to dwarf_decode_lines, which will pick up where that
8955 left off. Be sure to clean up the `struct line_header' object.
8956 (dwarf_decode_line_header, free_line_header, add_include_dir,
8957 add_file_name): New functions.
8958 (dwarf_decode_lines): Move all the code to read the statement
8959 program header into dwarf_decode_line_header. Take the line
8960 header it built as the first argument, instead of the offset to
8961 the compilation unit's line number info. Use the new `struct
8962 line_header' type instead of the old structures. No need to do
8963 cleanups here now, since we don't allocate anything.
8964 (dwarf2_statement_list_fits_in_line_number_section,
8965 dwarf2_line_header_too_long): New complaints.
8966
ac3aafc7
EZ
89672002-05-06 Elena Zannoni <ezannoni@redhat.com>
8968
8969 * gdbtypes.c (init_vector_type): New function.
8970 (build_builtin_type_vec128): Simplify the representation of SIMD
8971 registers.
8972 (build_gdbtypes): Initialize new builtin vector types.
8973 (_initialize_gdbtypes): Register new vector types with gdbarch.
8974 (builtin_type_v4_float, builtin_type_v4_int32,
8975 builtin_type_v8_int16, builtin_type_v16_int8,
8976 builtin_type_v2_int32, builtin_type_v4_int16,
8977 builtin_type_v8_int8): New (renamed) SIMD types.
8978
13e49980
MK
89792002-05-06 Mark Kettenis <kettenis@gnu.org>
8980
8981 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8982 (i387_fill_fxsave): Likewise.
8983
997b20b8
AO
89842002-05-05 Alexandre Oliva <aoliva@redhat.com>
8985
8986 * alpha-tdep.c (alpha_extract_return_value): Don't use
8987 non-constant array size in prototype.
8988
535c96ce
AC
89892002-05-04 Andrew Cagney <ac131313@redhat.com>
8990
8991 From Brian Taylor <briant at model dot com>:
8992 * ui-out.c (ui_out_field_core_addr): Use the function
8993 longest_local_hex_string_custom'to format addresses > 32 bits
8994 wide.
8995
8996 * ui-out.c (ui_out_field_core_addr): Update comment.
8997
bedfa57b
AC
89982002-05-04 Andrew Cagney <ac131313@redhat.com>
8999
9000 * stack.c (select_and_print_frame): Make static. Delete the
9001 parameter `level'.
9002 (func_command): Update call.
9003 (select_frame_command): Delete code computing the frame level.
9004 * frame.h (select_and_print_frame): Delete declaration.
9005
f621c63e
AC
90062002-05-04 Andrew Cagney <ac131313@redhat.com>
9007
9008 * sparc-tdep.c (sparc_get_saved_register): Comment why
9009 get_prev_frame call is safe.
9010
0f7d239c
AC
90112002-05-04 Andrew Cagney <ac131313@redhat.com>
9012
9013 * frame.h (select_frame): Delete level parameter.
9014 * stack.c (select_frame): Update. Use frame_relative_level to
9015 obtain the frame's level.
9016 (select_and_print_frame): Update call.
9017 (select_frame_command): Ditto.
9018 (up_silently_base): Ditto.
9019 (down_silently_base): Ditto.
9020 * ocd.c (ocd_start_remote): Ditto.
9021 * remote-rdp.c (remote_rdp_open): Ditto.
9022 * remote-mips.c (mips_initialize): Ditto.
9023 (common_open): Ditto.
9024 * remote-e7000.c (e7000_start_remote): Ditto.
9025 * m3-nat.c (select_thread): Ditto.
9026 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9027 (child_get_current_exception_event): Ditto.
9028 * varobj.c (varobj_create): Ditto.
9029 (varobj_update): Ditto.
9030 (c_value_of_root): Ditto.
9031 * tracepoint.c (finish_tfind_command): Ditto.
9032 * corelow.c (core_open): Ditto.
9033 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9034 * thread.c (info_threads_command): Ditto.
9035 (switch_to_thread): Ditto.
9036 * infrun.c (normal_stop): Ditto.
9037 (restore_selected_frame): Ditto.
9038 (restore_inferior_status): Ditto.
9039 * breakpoint.c (insert_breakpoints): Ditto.
9040 (watchpoint_check): Ditto.
9041 (bpstat_stop_status): Ditto.
9042 (do_enable_breakpoint): Ditto.
9043 * blockframe.c (flush_cached_frames): Ditto.
9044 (reinit_frame_cache): Ditto.
9045
71d6c7b1
AC
90462002-05-04 Andrew Cagney <ac131313@redhat.com>
9047
9048 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9049 maintainer.
9050
cda6c68a
JB
90512002-05-04 Jim Blandy <jimb@redhat.com>
9052
9053 * gdbtypes.c (replace_type): Doc fix.
9054
5c1c87f0
AC
90552002-05-04 Andrew Cagney <ac131313@redhat.com>
9056
9057 * valprint.c (strcat_longest): Delete commented out function.
9058 Update copyright.
9059
cd9bfe15
AC
90602002-05-04 Andrew Cagney <ac131313@redhat.com>
9061
9062 * MAINTAINERS: Mark a29k as deleted.
9063 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9064 Move new configurations to the top.
9065 * configure.tgt: Remove a29k.
9066 * config/a29k/tm-vx29k.h: Delete.
9067 * config/a29k/vx29k.mt: Delete.
9068 * config/a29k/tm-a29k.h: Delete.
9069 * config/a29k/a29k-udi.mt: Delete.
9070 * config/a29k/a29k.mt: Delete.
9071 * a29k-tdep.c: Delete.
9072 * remote-udi.c: Delete.
9073 * remote-mm.c: Delete.
9074 * remote-eb.c: Delete.
9075 * remote-adapt.c: Delete.
9076 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9077 * config/s390/s390x.mt: Ditto.
9078 * config/s390/s390.mt: Ditto.
9079 * config/sparc/sparclynx.mh: Ditto.
9080 * config/sparc/linux.mh: Ditto.
9081 * config/pa/hppaosf.mh: Ditto.
9082 * config/pa/hppabsd.mh: Ditto.
9083 * config/ns32k/nbsd.mt: Ditto.
9084 * config/mips/vr5000.mt: Ditto.
9085 * config/m68k/sun3os4.mh: Ditto.
9086 * config/m68k/nbsd.mt: Ditto.
9087 * config/m68k/m68klynx.mh: Ditto.
9088 * config/m32r/m32r.mt: Ditto.
9089 * config/i386/x86-64linux.mt: Ditto.
9090 * config/i386/nbsdelf.mt: Ditto.
9091 * config/i386/nbsd.mt: Ditto.
9092 * config/i386/i386lynx.mh: Ditto.
9093
bf0c5130
AC
90942002-05-04 Andrew Cagney <ac131313@redhat.com>
9095
9096 * target.c (debug_print_register): New function. Handle oversize
9097 registers.
9098 (debug_to_fetch_registers): Call.
9099 (debug_to_store_registers): Call.
9100
2ae1c2d2
JB
91012002-05-03 Jim Blandy <jimb@redhat.com>
9102
13a393b0
JB
9103 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9104 (read_type): Doc fix.
9105 * gdbtypes.c (replace_type): Doc fix.
9106
2ae1c2d2
JB
9107 * stabsread.c (multiply_defined_struct): New complaint.
9108 (read_struct_type): If the type we were passed isn't empty, or
9109 incomplete, don't read the new struct type into it; complain,
9110 and return the original type unchanged. Take a new `type_code'
9111 argument, which is the type code for the new type.
9112 (read_type): Rather than storing the type's type code here, pass
9113 it as an argument to read_struct_type, and let that take care of
9114 storing it. That way, we don't overwrite the original type code,
9115 so read_struct_type can use it to decide whether we're overwriting
9116 something we shouldn't.
9117 (complain_about_struct_wipeout): New function.
9118
8de9bdc4
AC
91192002-05-03 Andrew Cagney <ac131313@redhat.com>
9120
9121 * gdbarch.sh: Assert that gdbarch is non-NULL.
9122 * gdbarch.c: Regenerate.
9123
f773fdbb
JM
91242002-05-03 Jason Merrill <jason@redhat.com>
9125
9126 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9127 and return NULL.
9128
0e04a514
ML
91292002-05-03 Michal Ludvig <mludvig@suse.cz>
9130
9131 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9132 (x86_64_dwarf2gdb_regno_map_length),
9133 (x86_64_dwarf2_reg_to_regnum): Added.
9134 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9135 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9136 (_initialize_x86_64_tdep): Synced with the change above.
9137 (x86_64_skip_prologue): Reformulated message.
9138
065432a8
PM
91392002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9140
9141 * f-exp.y: Also use new prev_lexptr variable
9142 to improve error reporting. Based on Michael Snyder
9143 2002-04-24 dated patch to c-exp.y.
9144 * jv-exp.y: Likewise.
9145 * m2-exp.y: Likewise.
9146
a3162708
EZ
91472002-05-02 Elena Zannoni <ezannoni@redhat.com>
9148
9149 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9150 we are dealing with vectors.
9151
03620c38
PM
91522002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9153
9154 * config/m68k/tm-nbsd.h: Obvious fix,
9155 correct machine name.
9156
6604db2e
PM
91572002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9158
9159 * p-typeprint.c (pascal_type_print_base): Add support
9160 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9161
0906b739
PM
91622002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9163
9164 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9165 for fondamental pascal 'char' type.
9166
e2625b33
PM
91672002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9168
9169 * p-lang.h (is_pascal_string_type): Declaration changed,
9170 new sixth argument of type char ** added.
361d1df0 9171 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9172 changed. Args length_pos, length_size, string_pos, char_size
9173 can now be NULL. New argument arrayname set to the field
9174 name of the char array. Return value set to char array
9175 field index plus one.
361d1df0 9176 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9177 is_pascal_string_type function.
9178
cf17c188
AC
91792002-05-02 Andrew Cagney <cagney@redhat.com>
9180
9181 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9182 <cagney@redhat.com> change.
9183 * gdbarch.c: Regenerate.
9184
52bca491
AC
91852002-05-02 Andrew Cagney <cagney@redhat.com>
9186
9187 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9188 before probing for a new one. Detect errorenous gdbarch_init
9189 functions.
9190 * gdbarch.c: Regenerate.
9191
d5e72505
AC
91922002-05-01 Andrew Cagney <cagney@redhat.com>
9193
9194 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9195 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9196 * config/v850/tm-v850.h: Ditto. Update copyright.
9197
af566d9f
AC
91982002-04-30 Andrew Cagney <ac131313@redhat.com>
9199
9200 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9201 current_gdbarch.
9202
880d85fa
MS
92032002-04-30 Michael Snyder <msnyder@redhat.com>
9204
94c30b78
MS
9205 * arm-tdep.c: Whitespace clean-ups.
9206 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9207 should have been removed as part of 4/24 change.
9208
6f5987a6
KB
92092002-04-30 Kevin Buettner <kevinb@redhat.com>
9210
9211 * rs6000-tdep.c: Added comment describing how fpscr register
9212 numbers were chosen.
9213
1a113c93
MS
92142002-04-30 Michael Snyder <msnyder@redhat.com>
9215
9216 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9217
9a6f53fe
EZ
92182002-04-29 Elena Zannoni <ezannoni@redhat.com>
9219
9220 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9221 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9222 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9223
11ed25ac
KB
92242002-04-29 Kevin Buettner <kevinb@redhat.com>
9225
9226 From Louis Hamilton <hamilton@redhat.com>:
9227 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9228 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9229 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9230 not bfd-private xcoff data, to determine wordsize.
9231 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9232
ae232405
AC
92332002-04-29 Andrew Cagney <ac131313@redhat.com>
9234
9235 GDB 5.2 released from 5.2 branch.
9236
91fd20f7
ML
92372002-04-29 Michal Ludvig <mludvig@suse.cz>
9238
9239 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9240 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9241 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9242
2dc5091b
EZ
92432002-04-29 Elena Zannoni <ezannoni@redhat.com>
9244
9245 * rs6000-tdep.c (rs6000_extract_return_value,
9246 rs6000_store_return_value): Handle returning vectors.
9247 (rs6000_gdbarch_init): Use
9248 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9249 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9250 New function.
9251 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9252 vectors.
9253 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9254 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9255
2b9848d8
PM
92562002-04-24 Pierre Muller <ics.u-strasbg.fr>
9257
9258 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9259 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9260 with fprintf_unfiltered (gdb_stderr,...).
9261
f8d17dc5
PM
92622002-04-24 Pierre Muller <ics.u-strasbg.fr>
9263
9264 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9265 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9266 Replace fprintf (stderr,...
9267 with fprintf_unfiltered (gdb_stderr,....
9268 * remote-es.c: Likewise.
9269 * remote-os9k.c: Likewise.
9270 * remote-st.c: Likewise.
9271
2f2f1ad1
AS
92722002-04-28 Andreas Schwab <schwab@suse.de>
9273
9274 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9275 linux-proc.o and gcore.o.
9276
b6779aa2
AC
92772002-04-26 Michal Ludvig <mludvig@suse.cz>
9278
9279 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9280 code without frame pointers.
9281
7e57f5f4
AC
92822002-04-26 Andrew Cagney <ac131313@redhat.com>
9283
9284 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9285 ON_STACK is needed.
9286
2ceb85d0
BE
92872002-04-26 Ben Elliston <bje@redhat.com>
9288
9289 * target.c (do_xfer_memory): Correct reference to the new option
9290 "trust-readonly-sections".
9291
f5f8a009
EZ
92922002-04-26 Elena Zannoni <ezannoni@redhat.com>
9293
9294 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9295 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9296 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9297 vectors.
9298 (read_array_type): Record the fact that this array type is really a
9299 vector (i.e. are passed in by value).
9300
5868c862
JT
93012002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9302
9303 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9304 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9305 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9306 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9307 * alpha-linux-tdep.c: Include frame.h.
9308 (alpha_linux_sigcontext_addr): New function.
9309 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9310 alpha_linux_sigcontext_addr.
9311 * alpha-osf1-tdep.c: Include gdbcore.h.
9312 (alpha_osf1_sigcontext_addr): New function.
9313 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9314 alpha_osf1_sigcontext_addr.
9315 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9316 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9317
bfb01f37
AC
93182002-04-26 Andrew Cagney <ac131313@redhat.com>
9319
361d1df0 9320 * stack.c (selected_frame_level):
bfb01f37
AC
9321 (select_frame): Do not set selected_frame_level.
9322 * frame.h (selected_frame_level): Delete declaration.
9323
15813d3f
AC
93242002-04-26 Andrew Cagney <ac131313@redhat.com>
9325
9326 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9327 convert_from_func_ptr-addr when AIX / PowerOpen.
9328
6096c27a
AC
93292002-04-25 Andrew Cagney <ac131313@redhat.com>
9330
9331 * valops.c (hand_function_call): Call
9332 generic_save_call_dummy_addr.
9333 * frame.h (generic_save_call_dummy_addr): Declare.
9334 * blockframe.c (struct dummy_frame): Add fields call_lo and
9335 call_hi.
9336 (generic_find_dummy_frame): Check for PC in range call_lo to
9337 call_hi instead of entry_point_address.
9338 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9339 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9340 (generic_save_call_dummy_addr): New function.
9341
f510d44e
DM
93422002-04-24 David S. Miller <davem@redhat.com>
9343
9344 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9345 sparc_skip_prologue.
9346 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9347 information to find prologue when possible.
9348 (sparc_prologue_frameless_p): Call examine_prologue directly.
9349 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9350 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9351 second argument.
9352 (SKIP_PROLOGUE): Likewise.
9353
15d72a92
JT
93542002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9355
9356 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9357 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9358 indicate that the condition it was testing is always true.
9359 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9360 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9361 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9362
accc6d1f
JT
93632002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9364
9365 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9366 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9367 tdep->jb_pc and tdep->jb_elt_size.
9368 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9369 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9370 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9371 * alpha-nat.c (get_longjmp_target): Remove.
9372 (JB_ELEMENT_SIZE): Ditto.
9373 (JB_PC): Ditto.
9374 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9375 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9376 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9377 to alpha_get_longjmp_target.
9378 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9379 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9380 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9381
1bfdc549
AC
93822002-04-25 Andrew Cagney <ac131313@redhat.com>
9383
9384 * README: Update to GDB 5.2.
9385
1bd316f0
AC
93862002-04-25 Andrew Cagney <ac131313@redhat.com>
9387
9388 * gdbarch.sh (LC_ALL): Set to `c'.
9389
2e5ff58c
TR
93902002-04-25 Theodore A. Roth <troth@verinet.com>
9391
9392 * avr-tdep.c: Ran through gdb_indent.sh.
9393
e33ce519
TR
93942002-04-25 Theodore A. Roth <troth@verinet.com>
9395
9396 * MAINTAINERS: Add myself as AVR maintainer.
9397 * NEWS: Note new target avr.
9398
8818c391
TR
93992002-04-25 Theodore A. Roth <troth@verinet.com>
9400
9401 * Makefile.in: Add support for AVR target.
9402 * configure.tgt: Add support for AVR target.
9403 * avr-tdep.c: New file
9404 * config/avr/avr.mt: New file.
9405
79509c2d
TR
94062002-04-25 Theodore A. Roth <troth@verinet.com>
9407
9408 * MAINTAINERS: Add myself to write-after-approval.
9409
dac8068e
PM
94102002-04-24 Pierre Muller <ics.u-strasbg.fr>
9411
9412 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9413 with fprintf_unfiltered (gdb_stderr,....
9414
25bf3106
PM
94152002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9416
9417 Fix PR gdb/508.
9418 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9419
24467a86
PM
94202002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9421
9422 * p-exp.y: Also use new prev_lexptr variable
9423 to improve error reporting. Based on Michael Snyder
9424 2002-04-24 dated patch to c-exp.y.
9425
95b80706
JT
94262002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9427
9428 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9429 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9430 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9431 to 0.
9432 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9433 and struct value.
9434 (FUNCTION_START_OFFSET): Remove.
9435 (BREAKPOINT): Ditto.
9436
e90cc612
JT
94372002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9438
9439 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9440 * NEWS: Ditto.
9441
6c72f9f9
JT
94422002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9443
9444 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9445 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9446 alpha_linux_pc_in_sigtramp.
9447 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9448 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9449 alpha_osf1_pc_in_sigtramp.
9450 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9451 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9452 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9453 alphafbsd_pc_in_sigtramp.
9454 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9455 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9456 alphanbsd_pc_in_sigtramp.
9457 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9458 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9459
5e4f3379
JT
94602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9461
9462 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9463
da8ca43d
JT
94642002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9465
9466 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9467 alphanbsd-tdep.c.
9468 (alphanbsd-nat.o): New dependency list.
9469 (alphanbsd-tdep.o): Ditto.
9470 * NEWS: Note new native NetBSD/alpha configuration.
9471 * alphanbsd-nat.c: New file.
9472 * alphanbsd-tdep.c: Ditto.
9473 * configure.host (alpha*-*-netbsd*): New host.
9474 * configure.tgt (alpha*-*-netbsd*): New target.
9475 * config/alpha/nbsd.mh: New file.
9476 * config/alpha/nbsd.mt: Ditto.
9477 * config/alpha/nm-nbsd.h: Ditto.
9478 * config/alpha/tm-nbsd.h: Ditto.
9479
36a6271d
JT
94802002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9481
9482 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9483 (alpha-osf1-tdep.o): New dependency list.
9484 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9485 and skip_sigtramp_frame members.
9486 * alpha-linux-tdep.c: Include gdbcore.h.
9487 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9488 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9489 * alpha-osf1-tdep.c: New file.
9490 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9491 alpha-osf1-dep.c.
9492 (alpha_frame_past_sigtramp_frame): New function.
9493 (alpha_dynamic_sigtramp_offset): Ditto.
9494 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9495 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9496 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9497 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9498 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9499 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9500 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9501 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9502 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9503 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9504 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9505 to find_solib_trampoline_target.
9506 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9507 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9508 (SKIP_TRAMPOLINE_CODE): Remove.
9509 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9510 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9511 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9512 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9513 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9514 (PROC_SIGTRAMP_MAGIC): Ditto.
9515 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9516 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9517 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9518 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9519 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9520
2f4bc57b
JT
95212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9522
9523 * NEWS: Note that Alpha targets are now multi-arch.
9524
665132f9
MS
95252002-04-24 Michael Snyder <msnyder@redhat.com>
9526
9527 * parser-defs.h (prev_lexptr): New external variable.
9528 * parse.c (parse_exp_1): Set prev_lexptr to null before
9529 calling the language-specific parser.
9530 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9531 (yyerror): Use prev_lexptr in error reporting.
9532
32872fa7
DJ
95332002-04-24 Daniel Jacobowitz <drow@mvista.com>
9534
9535 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9536 * gregset.h: If FILL_FPXREGSET is defined, provide
9537 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9538 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9539 is defined, call fill_fpxregset.
9540
57e76fac
MS
95412002-04-24 Roland McGrath <roland@frob.com>
9542
9543 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9544 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9545 (supply_gregset, supply_fpregset): New functions.
9546
9547 * gnu-nat.c (gnu_find_memory_regions): New function.
9548 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9549 (gnu_xfer_memory): Add a cast.
9550
f43845b3
MS
95512002-04-24 Michael Snyder <msnyder@redhat.com>
9552
361d1df0 9553 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9554 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9555 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9556 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9557 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9558 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9559
a0abec03
AC
9560Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9561
9562 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9563 NUM_PSEUDO_REGS can be used.
9564
d7bd68ca
AC
95652002-04-24 Andrew Cagney <ac131313@redhat.com>
9566
9567 * arch-utils.h: Update copyright.
9568
9569 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9570 * gdbarch.h, gdbarch.c: Re-generate.
9571
9572 * inferior.h (IN_SIGTRAMP): Delete definition.
9573 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9574 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9575
9576 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9577 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9578 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9579 (find_proc_framesize): Ditto.
9580 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9581 (alpha_init_extra_frame_info): Ditto.
9582 * infrun.c (handle_inferior_event): Ditto.
9583 (handle_inferior_event): Ditto.
9584 (check_sigtramp2): Ditto.
9585 * blockframe.c (create_new_frame): Ditto.
9586 (get_prev_frame): Ditto.
9587 * ppc-linux-tdep.c: Update comments.
9588 * i386-linux-tdep.c: Update comments.
9589 * breakpoint.c (bpstat_what): Update comment.
9590
4867e41e
DM
95912002-04-24 David S. Miller <davem@redhat.com>
9592
21d83aa5
DM
9593 * i960-tdep.c (register_in_window_p): New function.
9594 (i960_find_saved_register): Use it instead of
9595 REGISTER_IN_WINDOW_P.
9596 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9597
4867e41e
DM
9598 * symtab.h (find_stab_function_addr): Kill extern.
9599 * minsyms.c (find_stab_function_addr): Remove from here...
9600 * dbxread.c: ... to here, and mark it static.
9601
69cdf6a2
DM
96022002-04-20 David S. Miller <davem@redhat.com>
9603
9604 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9605 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9606
5a595886
DM
96072002-04-21 David S. Miller <davem@redhat.com>
9608
9609 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9610 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9611 (vx_write_register): Likewise.
9612
1da1a192
JB
96132002-04-23 J. Brobecker <brobecker@gnat.com>
9614
9615 * source.c (is_regular_file): New function.
9616 (openp): Check wether file to open is a regular file
9617 to avoid opening directories.
9618
baa6f10b
JT
96192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9620
9621 * findvar.c (extract_signed_integer): Cast printf argument
9622 to suppress format warning.
9623 (extract_unsigned_integer): Likewise.
9624 * infcmd.c (registers_info): Likewise.
9625 * top.c (get_prompt_1): Likewise.
9626 * valops.c (value_assign): Likewise.
9627 * valprint.c (print_decimal): Likewise.
9628
b2c4da81
L
96292002-04-22 H.J. Lu (hjl@gnu.org)
9630
9631 * c-exp.y (typebase): Support
361d1df0 9632
b2c4da81
L
9633 [long|long long|short] [signed|unsigned] [int|]
9634
9635 and
9636
9637 signed [long|long long|short] int
9638
f267bd6a
JT
96392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9640
9641 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9642 and vax-tdep.h.
9643 * vax-tdep.h: New file.
9644 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9645 Make several routines static.
9646 (vax_get_saved_register): New function.
9647 (vax_gdbarch_init): New function.
9648 (_initialize_vax_tdep): Register vax_gdbarch_init.
9649 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9650 Remove macros now under the control of gdbarch.
9651
da3c6d4a
MS
96522002-04-22 Michael Snyder <msnyder@redhat.com>
9653
11d3b27d
MS
9654 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9655 Some whitespace and coding standards tweaks.
da3c6d4a 9656
a33f7558
JT
96572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9658
9659 * vax-tdep.c: Include regcache.h.
9660 (vax_call_dummy_words): New.
9661 (sizeof_vax_call_dummy_words): New.
9662 (vax_fix_call_dummy): New function.
9663 (vax_saved_pc_after_call): Ditto.
9664 * config/vax/tm-vax.h: Don't include regcache.h.
9665 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9666 (CALL_DUMMY): Remove.
9667 (CALL_DUMMY_WORDS): Define.
9668 (SIZEOF_CALL_DUMMY_WORDS): Define.
9669 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9670
47a73475
MS
96712002-04-18 Michael Snyder <msnyder@redhat.com>
9672
9673 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9674
52efde73
JT
96752002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9676
9677 * vax-tdep.c (vax_frame_chain): New function.
9678 (vax_push_dummy_frame): Ditto.
9679 (vax_pop_frame): Ditto.
9680 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9681 (FRAMELESS_FUNCTION_INVOCATION): Use
9682 generic_frameless_function_invocation_not.
9683 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9684 (POP_FRAME): Use vax_pop_frame.
9685
ea74468c
JT
96862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9687
9688 * vax-tdep.c (vax_store_struct_return): New function.
9689 (vax_extract_return_value): Ditto.
9690 (vax_store_return_value): Ditto.
9691 (vax_extract_struct_value_address): Ditto.
9692 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9693 vax_store_struct_return.
9694 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9695 (STORE_RETURN_VALUE): Use vax_store_return_value.
9696 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9697
5516aa92
JT
96982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9699
9700 * vax-tdep.c (vax_frame_saved_pc): New function.
9701 (vax_frame_args_address_correct): Ditto.
9702 (vax_frame_args_address): Ditto.
9703 (vax_frame_locals_address): Ditto.
9704 (vax_frame_num_args): Move code to be in proximity to
9705 other frame-related functions.
9706 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9707 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9708 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9709 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9710 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9711
36af0b35
L
97122002-04-22 H.J. Lu (hjl@gnu.org)
9713
9714 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9715 includedir.
9716
ab62c900
JT
97172002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9718
9719 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9720 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9721 (FRAME_INIT_SAVED_REGS): New macro.
9722
7232b100
JT
97232002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9724
9725 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9726
b70d2aee
JT
97272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9728
9729 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9730 where needed.
9731 (fetch_osf_core_registers): Likewise.
9732 (supply_gregset): Likewise.
9733
a0e8a2d1 97342002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9735
a0e8a2d1
JB
9736 * symfile.h (get_section_index): Define.
9737 * symfile.c (get_section_index): New function.
9738 * mdebugread.c (SC_IS_SBSS): New macro.
9739 (SC_IS_BSS): Return true for the scBss storage class only, as
9740 the scSBss storage class refers to the .sbss section.
9741 (parse_partial_symbols): Discard the symbols which associated
9742 section does not exist.
9743 Make sure to use the .sbss section index for symbols which
9744 storage class is scBss, rather than using the .bss section index.
9745
51eb8b08
JT
97462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9747
9748 * vax-tdep.c: Update copyright years.
9749 (vax_register_name): New function.
9750 (vax_register_byte): Ditto.
9751 (vax_register_raw_size): Ditto.
9752 (vax_register_virtual_size): Ditto.
9753 (vax_register_virtual_type): Ditto.
9754 * config/vax/tm-vax.h: Update copyright years.
9755 (REGISTER_NAMES): Remove.
9756 (REGISTER_NAME): Define.
9757 (REGISTER_BYTE): Use vax_register_byte.
9758 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9759 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9760 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9761
6cc1c0a8
AC
97622002-04-21 Andrew Cagney <ac131313@redhat.com>
9763
9764 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9765 declaration
9766 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9767
9319a2fe
DM
97682002-04-21 David S. Miller <davem@redhat.com>
9769
9770 * arch-utils.c (generic_prologue_frameless_p): Kill
9771 SKIP_PROLOGUE_FRAMELESS_P code.
9772 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9773 references.
9774 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9775 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9776 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9777 references.
9778 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9779 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9780 (sparc_gdbarch_init): Pass it to
9781 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9782
e9ed6d01
JT
97832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9784
9785 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9786 (alphabsd-nat.o): New dependency list.
9787
36012033
JT
97882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9789
9790 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9791 alphafbsd-tdep.c.
9792 (alpha-linux-tdep.o): New dependency list.
9793 (alphafbsd-tdep.o): Likewise.
9794
3379287a
JT
97952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9796
9797 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9798 to here...
9799 * alpha-tdep.c: ...from here.
9800 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9801
4bcbd6cb
JT
98022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9803
9804 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9805 prototype from here...
9806 * alpha-tdep.h: ...to here.
9807
b31da25e
AC
98082002-04-21 Andrew Cagney <ac131313@redhat.com>
9809
9810 * frame.h (selected_frame_level): Document as deprecated.
9811 (frame_relative_level): Declare.
9812 * stack.c (frame_relative_level): New function.
9813 (selected_frame_level): Document as deprecated.
9814 (select_frame): Do not set the selected_frame_level.
9815
9816 * stack.c (frame_info, record_selected_frame): Update.
9817 (frame_command, current_frame_command): Update.
9818 (up_silently_base, up_command, down_silently_base): Update.
9819 (down_command): Update.
9820 * inflow.c (kill_command): Update.
9821 * tracepoint.c (finish_tfind_command): Update.
9822 * corelow.c (core_open): Update.
9823 * thread.c (info_threads_command): Update.
9824 (do_captured_thread_select): Update.
9825 * infcmd.c (finish_command): Update.
9826 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9827
9c1d6fe5
JT
98282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9829
9830 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9831
ab89facf
AC
98322002-04-21 Andrew Cagney <ac131313@redhat.com>
9833
9834 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9835 type const.
9836
82a4efa1
JT
98372002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9838
9839 * alphafbsd-tdep.c: Update copyright years. Include
9840 alpha-tdep.h.
9841 (alphafbsd_use_struct_convention): Make static.
9842 (alphafbsd_init_abi): New function.
9843 (_initialize_alphafbsd_tdep): New function.
9844 * config/alpha/tm-fbsd.h: Update copyright years.
9845 (USE_STRUCT_CONVENTION): Remove.
9846
44dffaac
JT
98472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9848
9849 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9850 an Alpha ABI variant.
9851 (alpha_abi_handler_list): Declare.
9852 (alpha_gdbarch_register_os_abi): New function.
9853 (alpha_gdbarch_init): Give registered ABI variant handlers a
9854 chance to tweak the gdbarch once we have set up defaults.
9855 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9856
65585be4
JT
98572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9858
9859 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9860 to standard_coerce_float_to_double.
9861 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9862
d9b023cc
JT
98632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9864
9865 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9866 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9867 from gdbarch_tdep rather than a constant.
9868 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9869 the default text address for all Alpha Unix ABIs.
9870 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9871 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9872
dc129d82
JT
98732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9874
9875 * alpha-tdep.h: New file. Includes several Alpha target constants
9876 taken from...
9877 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9878 let gdbarch deal with.
9879 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9880 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9881 to dependency list.
9882 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9883 Alpha target register names.
9884 * alphabsd-nat.c: Likewise.
9885 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9886 Alpha target register names. Make serveral routines static.
9887 (alpha_get_saved_register): New function.
9888 (alpha_abi_names): New.
9889 (process_note_abi_tag_sections): New function.
9890 (get_elfosabi): New function.
9891 (alpha_gdbarch_init): New function.
9892 (alpha_dump_tdep): New function.
9893 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9894
d49d1e0a
AC
98952002-04-21 Andrew Cagney <ac131313@redhat.com>
9896
9897 * frame.c (find_saved_register): Delete #ifdef
9898 HAVE_REGISTER_WINDOWS code.
9899 * config/sparc/tm-sparc.h: Update comments.
9900 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9901
92e8c9ed
AC
99022002-04-21 Andrew Cagney <ac131313@redhat.com>
9903
9904 * i960-tdep.c (i960_find_saved_register): New function.
9905 (i960_get_saved_register): New function.
9906 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9907 (i960_get_saved_register): Declare.
9908 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9909
e1925118
DM
99102002-04-20 David S. Miller <davem@redhat.com>
9911
9912 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9913
29673b29
AC
99142002-04-20 Andrew Cagney <ac131313@redhat.com>
9915
9916 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9917 instead of NUM_PSEUDO_REGS.
9918
6c86dcd5
DM
99192002-04-20 David S. Miller <davem@redhat.com>
9920
9921 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9922 GDB_MULTI_ARCH_PARTIAL
9923 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9924 define, let tm-sp64.h do it.
9925
aa40ec90
JT
99262002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9927
9928 * frame.c (find_saved_register): Avoid a NULL pointer
9929 dereference and actually walk the frame list.
9930
0f79675b
AC
99312002-04-20 Andrew Cagney <ac131313@redhat.com>
9932
9933 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9934 sorted in most most-recent-used order. Document.
9935 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9936
f91305dd 99372002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9938
9939 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9940 instead of ->prev.
9941 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9942 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9943 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9944 instead of ->prev.
9945
73d322b1
EZ
99462002-04-19 Elena Zannoni <ezannoni@redhat.com>
9947
9948 Fix PR gdb/471.
9949 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9950 (build_builtin_type_vec128): Ditto.
9951 (append_composite_type_field): Fix calculation of type length in
9952 union case.
9953
ccd9a834
EZ
99542002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9955
9956 * config/djgpp/README: Update.
9957
9958 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9959 compiler warnings.
9960
a57f9e49
JT
99612002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9962
9963 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9964 (alpha_setup_arbitrary_frame): ...to this.
9965 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9966 for alpha_setup_arbitrary_frame.
9967
f4f9705a
AC
99682002-04-18 Andrew Cagney <cagney@redhat.com>
9969
9970 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9971 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9972
f4f9705a
AC
9973 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9974 * target.h (memory_breakpoint_from_pc): Update declaration.
9975 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9976
9977 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9978 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9979 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9980 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9981 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9982 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9983 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9984 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9985 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9986 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9987 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9988 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9989
9990 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9991 const pointer.
9992 * monitor.c (monitor_insert_breakpoint): Ditto.
9993 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9994
9995 * config/mcore/tm-mcore.h: Update copyright.
9996 * mem-break.c: Ditto.
9997 * xstormy16-tdep.c: Ditto.
9998
29f319b8
PM
99992002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10000
10001 * p-exp.y: Add precedence rule for '^' token.
10002 This removes the shift/reduce conflicts.
10003 Remove the comment concerning these shift/reduce conflicts.
10004
ebeac11a
EZ
100052002-04-18 Elena Zannoni <ezannoni@redhat.com>
10006
10007 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10008 (registers_powerpc_nofp): New register set for processors
10009 without floating point unit.
10010
27c31547
DM
100112002-04-18 David S. Miller <davem@redhat.com>
10012
10013 * MAINTAINERS: Add myself to write-after-approval.
10014
47a73475
MS
100152002-04-17 Michael Snyder <msnyder@redhat.com>
10016
10017 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10018
953836b2
AC
100192002-04-17 Andrew Cagney <ac131313@redhat.com>
10020
10021 * rs6000-tdep.c (frame_initial_stack_address): Use
10022 frame_register_read to read the alloca_reg.
10023
8b0d4340
AC
100242002-04-17 Andrew Cagney <ac131313@redhat.com>
10025
10026 * frame.c (find_saved_register): Find saved registers in the next
10027 not prev frame.
10028 Fix PR gdb/365.
10029
d8864532
AC
100302002-04-17 Andrew Cagney <ac131313@redhat.com>
10031
10032 * gdbarch.sh (LANG): Set to ``c''.
10033
36cc83a3 100342002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10035
36cc83a3 10036 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10037
2f4150cc 100382002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10039
10040 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10041 Update copyright.
10042
628703c6 10043 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10044 Also fix PR gdb/391.
361d1df0 10045
56157b4a
AC
100462002-04-14 Andrew Cagney <ac131313@redhat.com>
10047
10048 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10049 * aclocal.m4, configure: Re-generate.
10050 Fix PR gdb/391.
361d1df0 10051
6d1e3329
EZ
100522002-04-14 Elena Zannoni <ezannoni@redhat.com>
10053
10054 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10055 instead of tm_print_insn.
10056
cb06fa07
EZ
100572002-04-14 Elena Zannoni <ezannoni@redhat.com>
10058
10059 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10060
f208ba17
AC
100612002-04-14 Andrew Cagney <ac131313@redhat.com>
10062
10063 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10064 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10065 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10066
20f01a46
DH
100672002-04-12 Don Howard <dhoward@redhat.com>
10068
10069 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10070 max_user_call_depth.
10071 (init_cmd_lists): Initialize the new value;
10072 * cli/cli-script.c (execute_user_command): Limit the call depth of
10073 user defined commands. This avoids a core-dump when user commands
10074 are infinitly recursive.
10075
a88376a3
KB
100762002-04-12 Kevin Buettner <kevinb@redhat.com>
10077
10078 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10079 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10080 from tdep struct instead of DEFAULT_LR_SAVE.
10081 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10082 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10083 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10084
f2172603
MS
100852002-04-12 Michael Snyder <msnyder@redhat.com>
10086
694f61fb 10087 * Remote.c: Spelling fix.
20fe79c8
MS
10088 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10089 If no symbol found for "sbrk", try "_sbrk".
10090 (make_output_phdrs): Use bfd_section_name.
10091 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10092 * eval.c: Indentation fix-ups.
169a7369
MS
10093 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10094 in case it gets applied to an address that is already
10095 in the instruction space.
de74f71f
MS
10096 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10097 * symfile.c: Fix indentation, long lines.
f2172603
MS
10098 * source.c: White space fix-up.
10099
cda5a58a
AC
101002002-04-12 Andrew Cagney <cagney@redhat.com>
10101
10102 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10103 * frame.c (frame_register_read): New function. Return non-zero on
10104 success.
10105 (read_relative_register_raw_bytes_for_frame): Delete.
10106 (read_relative_register_raw_bytes): Delete.
10107 * frame.h (frame_register_read): Declare.
10108 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10109 * sh-tdep.c: Ditto.
10110 * infcmd.c (do_registers_info): Ditto.
10111 * hppa-tdep.c: Ditto.
10112 * rs6000-tdep.c: Ditto.
10113 * h8500-tdep.c: Ditto.
10114 * mips-tdep.c: Ditto.
10115 * h8300-tdep.c: Ditto.
10116 * z8k-tdep.c: Ditto.
10117
2ea5f656
KB
101182002-04-12 Kevin Buettner <kevinb@redhat.com>
10119
10120 From Jimi X <jimix@watson.ibm.com>:
10121 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10122 64-bit SysV ABI.
10123
27b15785
KB
101242002-04-12 Kevin Buettner <kevinb@redhat.com>
10125
10126 From Jimi X <jimix@watson.ibm.com>:
10127 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10128 bfd info.
10129
5d57ee30
KB
101302002-04-12 Kevin Buettner <kevinb@redhat.com>
10131
10132 From Jimi X <jimix@watson.ibm.com>:
10133 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10134 register sets for these processor variants.
10135
bc1e36ca
DJ
101362002-04-11 Daniel Jacobowitz <drow@mvista.com>
10137
bc1e36ca
DJ
10138 * regformats/reg-ppc.dat: Support FPSCR.
10139
e3f36dbd
KB
101402002-04-11 Kevin Buettner <kevinb@redhat.com>
10141
10142 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10143 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10144 Add fpscr as an invalid/unfetchable register.
10145 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10146 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10147 (fill_fpregset): Add support for register fpscr.
10148 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10149 (fill_gregset): Account for the fact that register ``mq'' might
10150 not exist.
10151 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10152 (registers_power): Add fpscr to register set at slot 71.
10153 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10154 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10155
943c9c25
MS
101562002-04-11 Michael Snyder <msnyder@redhat.com>
10157
10158 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10159 * configure: Regenerate.
10160 * config.in: Regenerate.
10161 * acconfig.h: Add define for _SYSCALL32.
10162 * core-sol2.c: Remove #define _SYSCALL32.
10163 * solib-legacy.c: Remove #define _SYSCALL32.
10164
d8c0a2e7
AC
101652002-04-10 Andrew Cagney <ac131313@redhat.com>
10166
10167 * stack.c (select_frame): Cleanup internal error message, do not
10168 use %p.
10169
7cc19214
AC
101702002-04-10 Andrew Cagney <ac131313@redhat.com>
10171
10172 * stack.c (select_frame): Check that selected_frame and the
10173 specified level are as expected.
10174 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10175 Update copyright.
10176 * frame.h (struct frame_info): Add field `level'. Update
10177 copyright.
10178 Work-in-progress PR gdb/464.
10179
67a2b77e
AC
101802002-04-10 Andrew Cagney <ac131313@redhat.com>
10181
10182 * maint.c (maint_print_section_info): Rename print_section_info.
10183 (print_bfd_section_info, print_objfile_section_info): Update.
10184 * inferior.h (struct gdbarch): Add opaque declaration.
10185 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10186 * gdbarch.h: Regenerate.
10187
8cfda98c
ML
101882002-04-10 Michal Ludvig <mludvig@suse.cz>
10189
10190 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10191 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10192 (kernel_u_size): Added.
10193 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10194 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10195
ca439ad2 101962002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10197
ca439ad2
JI
10198 * valarith.c (find_size_for_pointer_math): New function, either returns
10199 the size for a pointer's target, returns 1 for void *, or errors for
10200 incomplete types.
10201 (value_add, value_sub): use find_size_for_pointer_math.
10202
2f2893d9
DJ
102032002-04-09 Daniel Jacobowitz <drow@mvista.com>
10204
10205 * linux-low.c (linux_look_up_symbols): New hook.
10206 (linux_target_ops): Add linux_look_up_symbols.
10207 * remote-utils.c (decode_address): New function.
10208 (look_up_one_symbol): New function.
10209 * server.c (handle_query): Call target look_up_symbols hook.
10210 * server.h (look_up_one_symbol): Add prototype.
10211 * target.h (struct target_ops): Add look_up_symbols hook.
10212
96cb11df
AC
102132002-04-09 Andrew Cagney <ac131313@redhat.com>
10214
10215 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10216 override FP_REGNUM with frame->fp. Update copyright.
10217 * parse.c (num_std_regs, std_regs): Delete.
10218 (target_map_name_to_register): Do not search std_regs. Update
10219 function description.
10220 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10221 declarations. Update copyright.
10222 Fix PR gdb/251.
361d1df0 10223
97658e92
DJ
102242002-04-09 Daniel Jacobowitz <drow@mvista.com>
10225
10226 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10227 after the last symbol in a block.
10228
6044e3eb
PM
102292002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10230
10231 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10232 is non zero as a found symbol.
10233
0406ec40
AC
102342002-04-08 Andrew Cagney <ac131313@redhat.com>
10235
10236 * findvar.c: Include "builtin-regs.h".
10237 (value_of_register): Call value_of_builtin_reg when applicable.
10238 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10239 (target_map_name_to_register): Call
10240 builtin_reg_map_name_to_regnum.
10241 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10242 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10243 (builtin_regs_h): Define.
10244 (builtin-regs.o): New target.
10245 (findvar.o): Add $(builtin_regs_h).
10246 * builtin-regs.c, builtin-regs.h: New files.
10247 * std-regs.c: New file.
10248 Partial fix for PR gdb/251.
10249
56a6dfb9
KB
102502002-04-08 Kevin Buettner <kevinb@redhat.com>
10251
10252 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10253 it's no longer required.
10254
3a808432
AC
102552002-04-08 Andrew Cagney <ac131313@redhat.com>
10256
10257 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10258
7c40d541
KB
102592002-04-08 Kevin Buettner <kevinb@redhat.com>
10260
10261 From Jimi X <jimix@watson.ibm.com>:
10262 * rs6000-tdep.c (rs6000_software_single_step): Use
10263 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10264 and size. Use target_insert_breakpoint() and
10265 target_remove_breakpoint() to insert and remove breakpoints
10266 instead of explicit memory reads and writes.
10267
cc9836a8
KB
102682002-04-08 Kevin Buettner <kevinb@redhat.com>
10269
10270 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10271 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10272 ELF_OBJECT_FORMAT ifdef.
10273
7495d1dc
KB
102742002-04-08 Kevin Buettner <kevinb@redhat.com>
10275
10276 From Jimi X <jimix@watson.ibm.com>:
10277 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10278
4288e836
KB
102792002-04-08 Kevin Buettner <kevinb@redhat.com>
10280
10281 From Jimi X <jimix@watson.ibm.com>:
10282 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10283 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10284
a4e4e501
MK
102852002-04-07 Mark Kettenis <kettenis@gnu.org>
10286
10287 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10288 s/asprintf/xasprintf/.
10289 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10290
006defba
AC
102912002-04-07 Andrew Cagney <ac131313@redhat.com>
10292
10293 I believe Jeff Law denies responsability for this one:
10294 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10295 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10296 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10297 Work-around for PR gdb/366.
10298
7aa83cac
EZ
102992002-04-07 Elena Zannoni <ezannoni@redhat.com>
10300
10301 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10302 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10303 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10304
cf1fcca1
EZ
103052002-04-07 Elena Zannoni <ezannoni@redhat.com>
10306
10307 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10308 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10309 information.
10310
3f289e6f
AC
103112002-04-07 Andrew Cagney <ac131313@redhat.com>
10312
10313 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10314 maintainer.
10315
129188f6
AC
103162002-04-07 Andrew Cagney <ac131313@redhat.com>
10317
10318 * README (Reporting Bugs in GDB): Document the bug web page as the
10319 prefered way of submitting bugs.
10320 Fix PR gdb/402.
10321
1200cd6e
AC
103222002-04-06 Andrew Cagney <ac131313@redhat.com>
10323
10324 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10325 -1. Update comment.
10326 * gdbarch.h, gdbarch.c: Re-generate.
10327
2853c33c
AS
103282002-04-07 Andreas Schwab <schwab@suse.de>
10329
10330 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10331 buffer to regcache_collect.
10332
c2169756
AC
103332002-04-06 Andrew Cagney <ac131313@redhat.com>
10334
10335 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10336 * gdbarch.c, gdbarch.h: Re-generate.
10337
25f1b008
AC
103382002-04-06 Andrew Cagney <ac131313@redhat.com>
10339
10340 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10341 declaration. Fix -Werror.
10342
59263426
DJ
103432002-04-05 Daniel Jacobowitz <drow@mvista.com>
10344
10345 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10346 * gdbarch.c: Regenerate.
10347
f5db4da3
MS
103482002-04-05 Michael Snyder <msnyder@redhat.com>
10349
80f8a6eb
MS
10350 * breakpoint.c (clear_command): Rewrite middle section to
10351 combine two loops with identical control conditions.
10352 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10353 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10354
ad3dcc5c
L
103552002-04-05 H.J. Lu (hjl@gnu.org)
10356
10357 * solib-svr4.c (bkpt_names): Add "__start".
10358
f32e7a74
AC
103592002-04-04 Andrew Cagney <ac131313@redhat.com>
10360
10361 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10362 as test for 64 bit target.
10363
8227c0ff
AC
103642002-04-05 Andrew Cagney <ac131313@redhat.com>
10365
10366 * h8500-tdep.c (h8500_write_fp): Delete function.
10367 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10368 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10369 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10371 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10372 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10373 (s390_write_fp):
10374 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10375 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10376 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10377 (d10v_write_fp): Delete function.
10378 * inferior.h (write_fp, generic_target_write_fp): Delete
10379 declarations.
10380 * regcache.c (generic_target_write_fp): Delete function.
10381 (write_fp): Delete function.
10382 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10383 * gdbarch.h, gdbarch.c: Regenerate.
10384 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10385 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10386 (sparc64_write_fp): Delete declaration.
10387 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10388 (h8500_write_fp): Delete declaration.
10389
2757dd86
AC
103902002-04-04 Andrew Cagney <ac131313@redhat.com>
10391
10392 * sparc-tdep.c (sparc64_write_fp): Delete.
10393 (sparc_push_dummy_frame): Replace write_fp call with code to store
10394 the FP directly.
10395 (sparc_gdbarch_init): Do not initialize write_fp.
10396
c69255e1
KB
103972002-04-05 Kevin Buettner <kevinb@redhat.com>
10398
10399 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10400 clause.
10401
ae767bfb
JB
104022002-03-29 Jim Blandy <jimb@redhat.com>
10403
10404 * stack.c (get_selected_block): Add new argument `addr_in_block',
10405 used to return the exact code address we used to select the block,
10406 not just the block.
10407 * blockframe.c (get_frame_block, get_current_block): Same.
10408 * frame.h (get_frame_block, get_current_block,
10409 get_selected_block): Update declarations.
10410 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10411 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10412
84d2ac95
MS
104132002-04-05 Michael Snyder <msnyder@redhat.com>
10414
10415 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10416 warning message.
10417
596aa3bf
JB
104182002-04-05 J. Brobecker <brobecker@gnat.com>
10419
10420 * utils.c (xfullpath): New function.
10421 * defs.h (xfullpath): Add declaration.
10422 * source.c (openp): Use xfullpath in place of gdb_realpath to
10423 avoid resolving the basename part of filenames when the
10424 associated file is a symbolic link. This fixes a potential
10425 inconsistency between the filenames known to GDB and the
10426 filenames it prints in the annotations.
10427 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10428 to be able to match a filename with either the real filename, or
10429 the name of any symbolic link to this file.
10430 (lookup_partial_symtab): Ditto.
10431
c02f5703
MS
104322002-04-04 Michael Snyder <msnyder@redhat.com>
10433
10434 * breakpoint.c: Add support for hardware breakpoints in overlays.
10435 (overlay_events_enabled): New state variable.
10436 (insert_breakpoints): Use overlay_events_enabled to decide
10437 whether to attempt to set a breakpoint at the overlay load addr.
10438 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10439 (remove_breakpoint): Use overlay_events_enabled to decide
10440 whether breakpoints need to be removed from overlay load addr.
10441 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10442 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10443 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10444 disable_overlay_breakpoints): Update overlay_events_enabled.
10445
5fb290d7
DJ
104462002-04-04 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * dwarf2read.c (struct function_range): New.
10449 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10450 (check_cu_functions): New.
10451 (read_file_scope): Initialize global function lists.
10452 Call dwarf_decode_line after processing children.
10453 (read_func_scope): Add to global function list.
10454 (dwarf_decode_lines): Call check_cu_functions everywhere
10455 record_line is called. Call record_line with a linenumber
10456 of 0 to mark sequence ends.
10457
7b3fabf0
ML
104582002-04-04 Michal Ludvig <mludvig@suse.cz>
10459
361d1df0 10460 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10461 change sync with glibc.
10462
bce58c09
JB
104632002-04-03 Jim Blandy <jimb@redhat.com>
10464
10465 * configure.in: Call AC_C_INLINE.
10466 * configure: Regenerated.
361d1df0 10467
2fccf04a
DJ
104682002-04-01 Daniel Jacobowitz <drow@mvista.com>
10469
10470 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10471 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10472
2d1bfe2e
MK
104732002-03-31 Mark Kettenis <kettenis@gnu.org>
10474
a5941fbf
MK
10475 * NEWS: Mention gcore support on FreeBSD/i386.
10476
a90cd31d
MK
10477 * fbsd-proc.c: New file.
10478 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10479 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10480
2d1bfe2e
MK
10481 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10482 while statement.
10483
9eb6e5a1
JB
104842002-03-29 Jim Blandy <jimb@redhat.com>
10485
10486 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10487 unescaped newlines in string literals, but newer ones don't. So
10488 escape them.
10489
f02df580
MS
104902002-03-26 Michael Snyder <msnyder@redhat.com>
10491 Andrew Cagney <cagney@redhat.com>
10492
361d1df0 10493 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10494 restore file to memory.
10495 * cli/cli-dump.h: New file.
10496 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10497 * NEWS: Mention new commands.
f02df580 10498
109f874e
MS
104992002-03-28 Michael Snyder <msnyder@redhat.com>
10500
10501 * symfile.c (symbol_file_add): Move test for null symbols to later.
10502
520f6ade
AC
105032002-03-27 Andrew Cagney <ac131313@redhat.com>
10504
10505 From veksler at il.ibm.com:
10506 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10507 the xstrduped original path.
10508 Fix PR gdb/417.
10509
d4654627
MS
105102002-03-27 Michael Snyder <msnyder@redhat.com>
10511
10512 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10513 * infcmd.c (_initialize_infcmd): Ditto.
10514 * language.c (_initialize_language): Ditto.
10515 * symfile.c (_initialize_symfile): Ditto.
10516 * top.c (_init_main): Ditto.
10517 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10518
6be8bc0c
EZ
105192002-03-27 Elena Zannoni <ezannoni@redhat.com>
10520
10521 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10522 vector registers handling.
10523 (skip_prologue): Handle new AltiVec instructions. Fill in new
10524 fields of frame data.
10525 (frame_get_saved_regs): Fill in information for AltiVec registers.
10526
12af6855
JB
105272002-03-27 Jim Blandy <jimb@redhat.com>
10528
10529 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10530 a function; leave this macro here to invoke that function.
10531 (symbol_init_mangled_name): Declaration for that function.
10532 * symtab.c (symbol_init_mangled_name): New function.
10533
dc672865
AC
105342002-03-27 Andrew Cagney <ac131313@redhat.com>
10535
10536 * valarith.c: Replace strerror with safe_strerror.
10537 * tracepoint.c: Ditto.
10538 * lin-lwp.c: Ditto.
10539 * go32-nat.c: Ditto.
10540 * inflow.c: Ditto.
10541 * gnu-nat.c: Ditto.
10542
d96429cd
AS
105432002-03-27 Andreas Schwab <schwab@suse.de>
10544
10545 * event-top.c (command_line_handler): Remove useless if.
10546
7e336ba1
AJ
105472002-03-27 Andreas Jaeger <aj@suse.de>
10548
10549 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10550 comment.
10551
de220d0f
ML
105522002-03-27 Michal Ludvig <mludvig@suse.cz>
10553
10554 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10555 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10556 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10557 (x86_64_linux_dr_get_status, supply_gregset),
10558 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10559 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10560 (x86_64_register_info_table): Add.
10561 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10562 (x86_64_register_raw_size, x86_64_register_virtual_type),
10563 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10564 general x86_64_register_info_table.
10565 (i386_gdbarch_init): gdbarch_register_bytes is now set
10566 dynamicaly during initialization.
10567 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10568 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10569
0e98d0a7
DJ
105702002-03-27 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * gdbserver/server.c (main): Call target_signal_to_host_p
10573 and target_signal_to_host on signals received from the remote.
10574 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10575 target_signal_from_host on signals sent to the remote.
10576 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10577 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10578
3130066b
DJ
105792002-03-27 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * signals/signals.c: Include "server.h" in gdbserver build.
10582 (target_signal_from_name): Don't use STREQ.
10583 (_initialize_signals): Likewise. Don't include function in
10584 gdbserver build.
10585
9aedf4f4
DJ
105862002-03-27 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * signals.c: Moved to...
10589 * signals/signals.c: Here.
7e336ba1 10590 * Makefile (signals.o): Update.
9aedf4f4 10591
3fa41cdb
JL
105922002-03-26 Jeff Law (law@redhat.com)
10593
10594 * somread.c (som_symtab_read): Remove some commented out code and
10595 updated related comments. Do not set the minimal symbol table to
10596 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10597 in a dynamic executable.
10598 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10599 where we are unable to find the minimal symbol for the given
10600 PC value.
10601
ee677e8d
MS
106022002-03-25 Jeff Law (law@redhat.com)
10603
10604 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10605
e76e1718
ML
106062002-03-25 Michal Ludvig <mludvig@suse.cz>
10607
10608 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10609
18a642a1
AC
106102002-03-23 Andrew Cagney <ac131313@redhat.com>
10611
10612 * command.h: Update copyright.
10613 (struct cmd_list_element): Replace definition with opaque
10614 declaration.
10615 (enum cmd_types): Document that it will eventually be moved to
10616 cli/cli-decode.h
10617 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10618 (MALLOCED_REPLACEMENT): Delete macro.
10619 * Makefile.in (cli_decode_h): Add $(command_h).
10620 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10621 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10622 * completer.c: Include "cli/cli-decode.h".
10623 * maint.c: Include "cli/cli-decode.h".
10624 * cli/cli-decode.h: Include "command.h".
10625 (enum command_class): Delete.
10626 (enum cmd_types): Comment out.
10627 (enum cmd_auto_boolean): Delete.
10628 (enum var_types): Delete.
10629
b2875cc0
AC
106302002-03-23 Andrew Cagney <ac131313@redhat.com>
10631
10632 * cli/cli-decode.c: Include "gdb_assert.h".
10633 (add_set_or_show_cmd): New static function.
10634 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10635 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10636 all fields, such as func, from the set command.
10637
3b45974e
AC
106382002-03-23 Andrew Cagney <ac131313@redhat.com>
10639
10640 * MAINTAINERS (sh-elf): Change warning flag to -w.
10641
823ca731
AC
106422002-03-23 Andrew Cagney <cagney@redhat.com>
10643
10644 * defs.h (error): Add printf format attribute.
10645 * thread-db.c (thread_from_lwp): Fix error format string.
10646 * stack.c (parse_frame_specification): Ditto.
10647 * cli/cli-decode.c (undef_cmd_error): Ditto.
10648 * scm-lang.c (scm_lookup_name): Ditto.
10649 * tracepoint.c (trace_error): Ditto.
10650 * remote-utils.c (usage): Ditto.
10651 * remote.c (compare_sections_command): Ditto.
10652 Fix PR gdb/328.
10653
0e101458
AC
106542002-03-22 Andrew Cagney <ac131313@redhat.com>
10655
10656 * gdbtypes.c (append_composite_type_field): New function.
10657 (init_composite_type): New function.
10658 * gdbtypes.h (append_composite_type_field): Declare.
10659 (init_composite_type): Ditto.
10660
8e0662df
EZ
106612002-03-22 Elena Zannoni <ezannoni@redhat.com>
10662
10663 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10664 function.
8e0662df
EZ
10665 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10666 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10667 structure returning convention for SYSV ABI case, but not
10668 for GNU/Linux, FreeBSD, or NetBSD.
10669
3121eff0
DJ
106702002-03-22 Daniel Jacobowitz <drow@mvista.com>
10671
10672 * symtab.h (lookup_block_symbol): Add mangled_name argument
10673 to prototype.
10674
10675 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10676 with new mangled_name argument.
10677 * linespec.c (decode_line_1): Likewise.
10678 * valops (value_of_this): Likewise.
10679 * symtab.c (lookup_transparent_type): Likewise.
10680 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10681 (lookup_symbol): If we are given a mangled name, pass it down
10682 to lookup_symbol_aux.
10683 (lookup_block_symbol): If we are given a mangled name to check
10684 against, only return symbols which match it.
10685
349b409f
CF
106862002-03-22 Christopher Faylor <cgf@redhat.com>
10687
10688 * win32-nat.c (child_create_inferior): Check for proper shell to use
10689 here, in case the user changes it on the fly.
10690 (_initialize_inftarg): Remove shell path considerations.
10691
2a873819
EZ
106922002-03-21 Elena Zannoni <ezannoni@redhat.com>
10693
10694 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10695 for gdbarch_max_register_raw_size and max_register_virtual_size.
10696 Adjust copyright year.
10697
a1b9830c
DJ
106982002-03-21 Daniel Jacobowitz <drow@mvista.com>
10699
10700 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10701 in a function to cover the entire beginning of the function
10702 as well if it does not already.
10703
8b5790f2
TR
107042002-03-21 Tom Rix <trix@redhat.com>
10705
10706 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10707 (rs6000_ptrace64): Renamed from ptrace64.
10708
bdbe5747
MH
107092002-03-20 Martin M. Hunt <hunt@redhat.com>
10710
10711 * gdbserver/remote-utils.c (remote_open): Don't call
10712 getprotobyname, we're all using TCP here so just use
10713 IPPROTO_TCP.
7e336ba1 10714 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10715
107162002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10717
bdbe5747
MH
10718 * regcache.c (_initialize_regcache): No need to call
10719 build_regcache() at this time; it gets called whenever
10720 the gdbarch changes.
10721
7781cd62
DB
107222002-03-20 David O'Brien <obrien@FreeBSD.org>
10723
10724 * sparc-nat.c: Include sys/param.h where possible.
10725
f65ca430
DJ
107262002-03-20 Daniel Jacobowitz <drow@mvista.com>
10727
10728 Fix PR gdb/422.
10729 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10730 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10731 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10732 complex types.
10733 * stabsread.c (rs6000_builtin_type): Likewise.
10734 (read_sun_floating_type): Likewise.
10735
0c867556
PS
107362002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10737
10738 * stabsread.c (read_member_functions): Remove skip code for duplicate
10739 constructor/destructor methods. Use standard parsing for these
10740 methods and just do not chain them to the list of methods after
10741 parsing.
10742
12b9c64f
AO
107432002-03-19 Alexandre Oliva <aoliva@redhat.com>
10744
10745 * coffread.c: Remove redundant static declarations. Replace
10746 occurrences of `PTR' with `void *'.
10747 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10748 * top.h (quit_cover): Likewise.
10749 * defs.h (catch_errors): Likewise.
10750
349c5d5f
AC
107512002-03-18 Andrew Cagney <ac131313@redhat.com>
10752
10753 * defs.h (XMALLOC): Define.
10754 * gdb-events.sh (XMALLOC): Delete macro.
10755 * gdb-events.c, gdb-events.h: Regenerate.
10756 * gdbarch.sh (XMALLOC): Delete macro.
10757 * gdbarch.c: Regenerate.
10758 * serial.c (XMALLOC): Delete macro.
10759 * ui-file.c (XMALLOC): Ditto.
10760 * ser-unix.h (XMALLOC): Ditto.
10761 * sh-tdep.c (XMALLOC): Ditto.
10762 * ui-out.c (XMALLOC): Ditto.
10763 * utils.c (XMALLOC): Ditto.
10764 * i386-tdep.c (XMALLOC): Ditto.
10765 * gdb-events.c (XMALLOC): Ditto.
10766 * d10v-tdep.c (XMALLOC): Ditto.
10767 * cli-out.c (XMALLOC): Ditto.
10768
10769 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10770 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10771 * ui-file.c, ui-out.c: Ditto.
10772
7d0766f3
AC
107732002-03-18 Andrew Cagney <ac131313@redhat.com>
10774
10775 * command.h (struct cmd_list_element): Add field context.
10776 (set_cmd_context, get_cmd_context): Declare.
10777 * cli/cli-decode.h: Ditto.
10778 * cli/cli-decode.c (get_cmd_context): New function.
10779 (set_cmd_context): New function.
10780 (add_cmd): Initialize context.
10781 Part of fixing PR gdb/145 and PR gdb/146.
10782
5913bcb0
AC
107832002-03-17 Andrew Cagney <ac131313@redhat.com>
10784
1868c04e
AC
10785 * cli/cli-decode.c (cmd_type): New function.
10786 * command.h (cmd_type): Declare.
10787 * infrun.c (set_schedlock_func): Call function cmd_type.
10788 * kod.c (kod_set_os): Call cmd_type.
10789 * cris-tdep.c (cris_version_update): Use function cmd_type.
10790 (cris_mode_update, cris_abi_update): Ditto.
10791
5913bcb0
AC
10792 * command.h: (execute_cmd_post_hook): Declare.
10793 (execute_cmd_pre_hook): Declare.
10794 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10795 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10796 functions. Execute pre/post hook while ensuring that afterwords
10797 hook_in is cleared.
10798 * top.c (execute_command): Use execute_cmd_post_hook, and
10799 execute_cmd_pre_hook to execute pre/post commands.
10800 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10801 hook_stop_stub.
10802 (hook_stop_stub): Call execute_cmd_pre_hook.
10803
b51450c9
AC
108042002-03-17 Andrew Cagney <ac131313@redhat.com>
10805
10806 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10807 set'' and this leads to a core dump. Move xstrdup of
10808 operating_system to after check that it is not NULL.
10809
f66c9f11
AC
108102002-03-17 Andrew Cagney <ac131313@redhat.com>
10811
8e694ecf
AC
10812 * kod.c (kod_set_os): Remove unnecessary check that
10813 ``command->type'' is set_cmd.
10814
f66c9f11
AC
10815 * valprint.c (set_input_radix): Use input_radix.
10816 (set_output_radix): Use output_radix.
10817 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10818 isn't reverted.
10819
9d01611c
AC
108202002-03-16 Andrew Cagney <ac131313@redhat.com>
10821
10822 * value.h (struct value): Delete field ``substring_addr''. Change
10823 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10824 force_core_addr_align and force_pointer_aligh.
10825
10826 * value.h (struct value): Fix typo in above change.
9d01611c 10827
4156bb53
PS
108282002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10829
10830 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10831 to fix internal_error from ``maintenance print architecture''.
10832
0e5e3ea6
PS
108332002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10834
10835 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10836 for gcc versions after gcc-2.8.1.
10837
9b013045
PS
108382002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10839
10840 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10841 for method resolution. Restore adjustment of ``this'' pointer after
10842 calling value_struct_elt, which was accidentally removed during the
10843 HP merge.
10844
376c9600
AC
108452002-03-15 Andrew Cagney <ac131313@redhat.com>
10846
10847 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10848 value_of_register.
10849 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10850 get_saved_register.
10851 * value.h (value_of_register): Update.
10852
a4db0f07
RH
108532002-03-14 Richard Henderson <rth@redhat.com>
10854
10855 * configure.in: Detect declaration for canonicalize_file_name.
10856 * utils.c (canonicalize_file_name): Declare, if needed.
10857 (gdb_realpath): Prefer realpath if available and usable.
10858 * config.in, configure: Rebuild.
10859
96383835
RH
108602002-03-14 Richard Henderson <rth@redhat.com>
10861
10862 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10863 a constant array bound.
10864
10865 * MAINTAINERS: Add myself to write-after-approval.
10866
75245b24
MS
108672002-03-14 Michael Snyder <msnyder@redhat.com>
10868
10869 * symfile.c (syms_from_objfile): Return immediately if no syms.
10870 (symbol_file_add): Return immediately if no syms.
10871 (find_sym_fns): Return immediately if no syms.
10872
e641a1ca
ML
108732002-03-13 Michal Ludvig <mludvig@suse.cz>
10874
10875 * gdbserver/remote-util.c (remote_open): Print remote-side's
10876 IP address when remote debugging over the network.
7e336ba1 10877
df08bfec
DB
108782002-03-12 David O'Brien <obrien@FreeBSD.org>
10879
10880 * config/sparc/fbsd.mh: Fix copyright.
10881 * config/sparc/fbsd.mt: Likewise.
10882
9a57864f
RE
108832002-03-11 Richard Earnshaw <rearnsha@arm.com>
10884
10885 * MAINTAINERS: Fix typo in name of gdb warnings option.
10886 (x86-64): Fix formating so that this can be parsed by awk.
10887
dd7bf85e
DJ
108882002-03-10 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10891 * defs.h: Include "gdb/signals.h".
10892 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10893
33a0a2ac
ML
108942002-03-10 Michal Ludvig <mludvig@suse.cz>
10895
10896 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10897 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10898 from x86-64-tdep.h
10899
dd824b04
DJ
109002002-03-10 Daniel Jacobowitz <drow@mvista.com>
10901 Don Howard <dhoward@redhat.com>
10902
10903 * mips-tdep.c (ST0_FR): Define.
10904 (mips2_fp_compat): New function, temporarily disabled.
10905 (mips_read_fp_register_single): New function.
10906 (mips_read_fp_register_double): New function.
10907 (mips_print_register): Use them.
10908 (do_fp_register_row): Likewise.
10909
6a41ff59
AC
109102002-03-09 Andrew Cagney <ac131313@redhat.com>
10911
10912 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10913 approval''.
10914
4ea09c10
PS
109152002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10916
10917 * stabsread.c (read_member_functions): Fix is_stub test for
10918 static member functions, improve comment.
10919
6ccc741d
RE
109202002-03-07 Richard Earnshaw <rearnsha@arm.com>
10921
10922 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10923 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10924 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10925 commands that set boolean values.
10926 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10927 (arm_rdi_resume): Always initialize PC.
10928 (arm_rdi_open): Don't use rslt as a boolean.
10929 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10930 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10931 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10932 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10933
438013df
AO
109342002-03-06 Alexandre Oliva <aoliva@redhat.com>
10935
10936 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10937 * configure: Rebuilt.
10938
70ed8774
SC
109392002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10940
10941 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10942 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10943
5ba2abeb
AC
109442002-03-06 Andrew Cagney <ac131313@redhat.com>
10945
10946 * cli/cli-decode.c (set_cmd_completer): New function.
10947 * command.h (set_cmd_completer): Declare.
10948 * cli/cli-decode.h (set_cmd_completer): Ditto.
10949
10950 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10951 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10952 * win32-nat.c (_initialize_inftarg): Ditto.
10953 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10954 * proc-api.c (_initialize_proc_api): Ditto.
10955 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10956 * source.c (_initialize_source): Ditto.
10957 * exec.c (_initialize_exec): Ditto.
10958 * solib.c (_initialize_solib): Ditto.
10959 * top.c (init_main): Ditto.
10960 * tracepoint.c (_initialize_tracepoint): Ditto.
10961 * symfile.c (_initialize_symfile): Ditto.
10962 * printcmd.c (_initialize_printcmd): Ditto.
10963 * infcmd.c (_initialize_infcmd): Ditto.
10964 * corefile.c (_initialize_core): Ditto.
10965
f779ca99
AC
109662002-03-05 Andrew Cagney <ac131313@redhat.com>
10967
10968 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10969
01a3934b
AC
109702002-03-05 Andrew Cagney <ac131313@redhat.com>
10971
10972 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10973
37057839
AC
109742002-03-05 Andrew Cagney <ac131313@redhat.com>
10975
10976 * NEWS: Update headings, 5.2 has branched.
10977
c6ecbae5
DJ
109782002-03-04 Daniel Jacobowitz <drow@mvista.com>
10979
10980 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10981 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10982 (register_addr, REGISTER_RAW_SIZE): Likewise.
10983 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10984 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10985
e9f30c21
ML
109862002-03-03 Michal Ludvig <mludvig@suse.cz>
10987
10988 * MAINTAINERS (x86-64): Add myself.
10989 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10990 changed value_ptr -> struct value *
10991
54394ac3
DB
109922002-03-01 David O'Brien <obrien@FreeBSD.org>
10993
10994 * configure.host (sparc64-*-freebsd): Add.
10995 * configure.tgt: Likewise.
10996 * config/sparc/fbsd.mh: New file.
10997 * config/sparc/fbsd.mt: Likewise.
10998 * config/sparc/nm-fbsd.h: Likewise.
10999 * config/sparc/tm-fbsd.h: Likewise.
11000
bfe95955
DJ
110012002-03-01 Daniel Jacobowitz <drow@mvista.com>
11002
11003 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11004 regformats/reg-s390x.dat.
11005
f33c6cbf
AC
110062002-03-01 Andrew Cagney <ac131313@redhat.com>
11007
11008 * utils.c: Add FIXME explaining true/false problem.
11009
5ecaa7dd
AC
110102002-02-28 Andrew Cagney <ac131313@redhat.com>
11011
11012 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11013
2a251cc2
MC
110142002-02-28 Michael Chastain <mec@shout.net>
11015
11016 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11017
6a8031a3 110182002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11019
11020 * gdbserver/linux-s390-low.c: New file.
11021 * regformats/reg-s390.dat: New file.
11022 * regformats/reg-s390x.dat: New file.
11023 * gdbserver/configure.srv: Add S/390.
11024 * gdbserver/Makefile.in: Add S/390.
11025 * configure.tgt: Enable gdbserver for S/390.
11026
ac469903
EZ
110272002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11028
11029 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11030 first line of the doc string for "info dos", except at the end of
11031 the sentence, since the short help stops at the first period.
11032
985cb1a3
JM
110332002-02-28 Jason Merrill <jason@redhat.com>
11034
11035 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11036
c570663e
FF
110372002-02-27 Fred Fish <fnf@redhat.com>
11038
11039 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11040 comment (dumy -> dummy).
11041
43630227
PS
110422002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11043
11044 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11045
b84911e8
RB
110462002-02-27 Rodney Brown <rbrown64@csc.com.au>
11047
11048 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11049
58caa3dc
DJ
110502002-02-27 Daniel Jacobowitz <drow@mvista.com>
11051
11052 * gdbserver/acconfig.h: New file.
11053 * gdbserver/i387-fp.c: New file.
11054 * gdbserver/i387-fp.h: New file.
11055 * gdbserver/linux-x86-64.c: New file.
11056 * regformats/reg-x86-64.dat: New file.
11057 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11058 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11059 * gdbserver/configure.in: Add support for regsets.
11060 * gdbserver/config.in: Regenerate.
11061 * gdbserver/configure: Regenerate.
11062 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11063 * gdbserver/linux-low.h: New file.
11064 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11065 for regsets.
11066 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11067 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11068 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11069 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11070 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11071 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11072 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11073 "i387-fp.h". Add PTRACE_GETREGS and friends.
11074 * gdbserver/regcache.c (supply_register): New function.
11075 (supply_register_by_name): New function.
11076 (collect_register): New function.
11077 (collect_register_by_name): New function.
11078
93652174
DJ
110792002-02-27 Daniel Jacobowitz <drow@mvista.com>
11080
11081 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11082 (config.status): Add configure.srv dependency.
11083 (server_h): Add config.h dependency.
11084
a02e4a61
DJ
110852002-02-27 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11088 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11089 * gdbserver/configure.srv: Change i386-*-linux* to use
11090 reg-i386-linux.o.
11091
ce0eebec
AC
110922002-02-26 Andrew Cagney <ac131313@redhat.com>
11093
11094 * x86-64-tdep.c: Re-indent. Update copyright date.
11095
82dbc5f7
AC
110962002-02-26 Andrew Cagney <ac131313@redhat.com>
11097
11098 From Michal Ludvig <mludvig@suse.cz>:
11099 * x86-64-tdep.c (value.h): Delete.
11100 (gdb_assert.h): Include.
11101 (x86_64_register_convert_to_virtual,
11102 x86_64_register_convert_to_raw ): Add check which lets only
11103 floating-point values to be converted.
11104 (value_push): Delete.
11105 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11106 (i386_gdbarch_init): Number of register_bytes fixed.
11107
e4621584
AC
111082002-02-26 Andrew Cagney <ac131313@redhat.com>
11109
11110 * MAINTAINERS: Add x86-64 target.
11111
81a9a963
AC
111122002-02-26 Andrew Cagney <ac131313@redhat.com>
11113
11114 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11115 * osfsolib.c (solib_map_sections): Ditto.
11116 * irix5-nat.c (solib_map_sections): Ditto.
11117 * corelow.c (gdb_check_format): Ditto.
11118 * symfile.c (symfile_bfd_open): Ditto.
11119 * solib.c (solib_map_sections): Ditto.
11120 Fix PR gdb/354.
7e336ba1 11121
0f017ab9
AC
111222002-02-26 Andrew Cagney <ac131313@redhat.com>
11123
11124 * remote.c (_initialize_remote): By default, disable ``e'' and
11125 ``E'' step out-of-range packets.
11126
75738c29
AS
111272002-02-26 Andreas Schwab <schwab@suse.de>
11128
11129 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11130 m68k_linux_frame_saved_pc.
11131 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11132 in_sigtramp.
11133 (SIGCONTEXT_PC_OFFSET): Remove.
11134 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11135 m68k_linux_sigtramp_saved_pc): New functions.
11136 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11137 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11138 (UCONTEXT_PC_OFFSET): Define.
11139 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11140 non-RT and RT signal trampolines.
11141
7e8ed687
RE
111422002-02-26 Richard Earnshaw <rearnsha@arm.com>
11143
11144 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11145 (TARGET_NBPG, STACK_END_ADDR): Delete
11146 (VARIABLES_INSIDE_BLOCK): Delete.
11147
6972bc8b
AC
111482002-02-25 Andrew Cagney <ac131313@redhat.com>
11149
11150 * utils.c (perror_with_name): Make string parameter constant.
11151 (print_sys_errmsg): Ditto.
11152 (query): Ditto.
11153 * defs.h (perror_with_name): Update.
11154 (print_sys_errmsg): Update.
11155 (query): Update.
11156
aa32f823
DJ
111572002-02-25 Daniel Jacobowitz <drow@mvista.com>
11158
11159 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11160 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11161
19caaa45
PS
111622002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11163
11164 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11165 if it already matches the current architecture from the exec file.
11166 Include arch-utils.h for gdbarch_info_init prototype.
11167 * Makefile.in (rs6000-nat.o): Update dependencies.
11168
d951901f
EZ
111692002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11170
11171 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11172 list of exported variables.
11173
7ea81414
DJ
111742002-02-24 Daniel Jacobowitz <drow@mvista.com>
11175
11176 * gdbserver/configure.srv: New file.
11177 * gdbserver/configure.in: Use configure.srv instead
11178 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11179 from it.
11180 * gdbserver/configure: Regenerated.
11181 * gdbserver/terminal.h: New file.
11182 * gdbserver/Makefile.in: Update for configure changes. Remove
11183 more unneeded include paths.
11184
080fe24b
AC
111852002-02-24 Andrew Cagney <ac131313@redhat.com>
11186
11187 From wiz at danbala:
11188 * config/sparc/tm-sp64.h: Fix grammar and typos.
11189 Fix PR gdb/287.
11190
8605d56e
AC
111912002-02-24 Andrew Cagney <ac131313@redhat.com>
11192
11193 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11194 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11195 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11196 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11197 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11198 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11199 * s390-tdep.c: Ditto.
92362027
AC
11200 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11201 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11202 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11203 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11204 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11205 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11206 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11207 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11208 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11209 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11210 Fix PR gdb/378.
7e336ba1 11211
8ed32cc0
AC
112122002-02-23 Andrew Cagney <ac131313@redhat.com>
11213
a3007b6f
AC
11214 * lin-thread.c: Delete file.
11215 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11216 to gdb_proc_service.h.
11217 * configure: Re-generate.
11218
50a9e2f1
AC
11219 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11220 * serial.c (serial_open): Delete check for "ocd".
11221 Fix PR gdb/349.
11222
8b6e7932
AC
11223 * Makefile.in (linux-thread.o): Delete target.
11224 * linux-thread.c: Delete file.
11225
d155c46b
AC
11226 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11227 renamed SH files to be consistent.
11228
8ed32cc0
AC
11229 * symtab.c (sort_search_symbols): Use xfree.
11230
0e18d038
RE
112312002-02-23 Richard Earnshaw <rearnsha@arm.com>
11232
11233 * arm-linux-tdep.c (arm_linux_init_abi): Register
11234 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11235 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11236 definition with undef, since we don't want the sysvr4 definition.
11237 (SKIP_TRAMPOLINE_CODE): Likewise.
11238
27aac7ff
AC
112392002-02-23 Andrew Cagney <ac131313@redhat.com>
11240
11241 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11242
11243 * configure.in: (AC_CHECK_FUNCS) Added test for
11244 canonicalize_file_name Regenerated.
11245 * config.in, configure: Regenerated.
11246 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11247 defined use canonicalize_file_name.
7e336ba1 11248
65a6e0ee
MC
112492002-02-23 Michael Chastain <mec@shout.net>
11250
11251 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11252
47b95330
AC
112532002-02-23 Andrew Cagney <ac131313@redhat.com>
11254
11255 * README: Remove references to cygnus.com.
11256 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11257 dot com'' form. Remove references to cygnus.com and sourceware.
11258
696f451b
AC
112592002-02-23 Andrew Cagney <ac131313@redhat.com>
11260
11261 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11262 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11263 1003.1-2001 no longer allows "head -1".
11264 * gdb/Makefile.in (version.c): Likewise.
11265 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11266 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11267 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11268
bbaca940
AC
112692002-02-23 Andrew Cagney <ac131313@redhat.com>
11270
11271 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11272 * command.h (cmd_cfunc_eq): Declare.
11273 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11274
11275 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11276 ``struct cmd_list_element *''.
11277 * cli/cli-cmds.c (is_complete_command): Update. Use
11278 cmd_cfunc_eq.
11279 * top.c (execute_command): Pass the command to
11280 is_complete_command.
11281 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11282
b8b8b047
AC
112832002-02-23 Andrew Cagney <ac131313@redhat.com>
11284
11285 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11286 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11287 architecture defines.
11288 * s390-tdep.c (s390_gdbarch_init): Likewise.
11289
19d3fc80
RE
112902002-02-23 Richard Earnshaw <rearnsha@arm.com>
11291
11292 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11293 (arm_linux_push_arguments): Likewise.
11294 (arm_linux_init_abi): Register them. Also register linux-specific
11295 call_dummy_words.
11296 (find_minsym_and_objfile): Use strcmp, not STREQ.
11297 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11298 (arm_linux_call_dummy_words): Delete declaration.
11299 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11300 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11301 declarations.
11302 (LOWEST_PC): Delete.
11303
3ab13650
PS
113042002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11305
11306 * maint.c (print_section_info): Do not prepend `0x' to filepos
11307 output, it will be handled by local_hex_string_custom.
11308
19d3fc80 113092002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11310
11311 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11312 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11313 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11314
d85a5daf
JB
113152002-02-22 Jim Blandy <jimb@redhat.com>
11316
11317 Indicate that the bcache functions don't change the strings
11318 they're passed.
11319 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11320 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11321
eeb25b8a
PM
113222002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11323
11324 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11325
6badb179
CF
113262002-02-21 Christopher Faylor <cgf@redhat.com>
11327
11328 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11329 find the complete path to a loaded DLL.
11330
e8717518
FF
113312002-02-21 Fred Fish <fnf@redhat.com>
11332
11333 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11334 that marks the end of the range of a function, enter a line number
11335 entry that has a line number of zero and a PC offset that matches
11336 the end of the function. This starts a range of PC's for which no
11337 line number information is known.
11338 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11339 PC's for which no line number info is found (line number is zero)
11340 then we didn't find any valid line information.
11341 * symtab.h: Document use of zero line number entry.
11342
9abe5450
EZ
113432002-02-21 Elena Zannoni <ezannoni@redhat.com>
11344
11345 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11346 (have_ptrace_getvrregs): Define for run time checks.
11347 (gdb_vrregset_t): New type for Altivec register handling.
11348 (fetch_register, store_register): Fetch/store altivec register
11349 when needed.
11350 (fetch_altivec_register, store_altivec_register): New functions.
11351 (supply_vrregset, fill_vrregset): New functions.
11352 (fetch_altivec_registers, store_altivec_registers): New functions.
11353 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11354 registers as well.
11355
aaa38bb5
AJ
113562002-02-21 Jiri Smid <smid@suse.cz>
11357
11358 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11359
b34db576
RE
113602002-02-21 Richard Earnshaw <rearnsha@arm.com>
11361
11362 * Makefile.in (armnbsd-nat.o): Update dependencies.
11363 * armnbsd-nat.c (supply_gregset): New function. Common code to
11364 supply the integer register set.
11365 (supply_fparegset): New function. Similar for FPA registers.
11366 (fetch_regs, fetch_fp_regs): Use them.
11367 (fetch_core_registers): Likewise.
11368 (fetch_elfcore_registers): New function.
11369 (arm_netbsd_elfcore_fns): New core-file type specification.
11370 (_initialize_arm_netbsd_nat): Register it.
11371
3e56fc4b
RE
113722002-02-21 Richard Earnshaw <rearnsha@arm.com>
11373
11374 * armnbsd-nat.c: Include gdbcore.h.
11375 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11376 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11377 'void' to declaration, to shut up ARI.
11378 (fetch_core_registers): Make static. Rewrite using supply_register.
11379 (arm_netbsd_core_fns): New core-file type specification.
11380 (_initialize_arm_netbsd_nat): New function.
11381
097f6b0b
CF
113822002-02-21 Christopher Faylor <cgf@redhat.com>
11383
11384 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11385 value.
11386
c914e0cc
CF
113872002-02-20 Christopher Faylor <cgf@redhat.com>
11388
11389 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11390 fails.
11391
385fa495
DJ
113922002-02-20 Daniel Jacobowitz <drow@mvista.com>
11393
11394 * jv-exp.y (parse_number): Change type of implicit longs
11395 to builtin_type_uint64.
11396
e5f1222d
DJ
113972002-02-20 Daniel Jacobowitz <drow@mvista.com>
11398
11399 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11400 to be an integer instead of a `union wait'.
11401
75c9abc6
DJ
114022002-02-20 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * mips-linux-nat.c: Call the operating system GNU/Linux.
11405 * mips-linux-tdep.c: Likewise.
11406 * mips-tdep.c: Likewise.
11407
551792a5
DJ
114082002-02-20 Daniel Jacobowitz <drow@mvista.com>
11409
11410 Fix PR gdb/265.
11411 * jv-exp.y (parse_number): Handle 64-bit integers.
11412
ee6e2b82
DJ
114132002-02-20 Daniel Jacobowitz <drow@mvista.com>
11414
11415 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11416 AC_STDC_HEADERS to AC_HEADER_STDC.
11417 * gdbserver/configure: Regenerated.
11418
a48442a0
RE
114192002-02-20 Richard Earnshaw <rearnsha@arm.com>
11420
11421 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11422 is defined.
11423 * sparc-tdep.c (get_longjmp_target): Likewise.
11424
fe419ffc
RE
114252002-02-20 Richard Earnshaw <rearnsha@arm.com>
11426
11427 * News: Add news about ARM and Multi-arch. Mention the new target
11428 arm*-*-netbsd*.
11429
5832ed7e
JB
114302002-02-19 Jim Blandy <jimb@redhat.com>
11431
11432 * stabsread.c (error_type_complaint): Improve error message.
11433
84563040
DJ
114342002-02-19 Daniel Jacobowitz <drow@mvista.com>
11435
11436 * gdbserver/README: Update documentation.
11437 * gdbserver/configure.in: Update configury to match documentation.
11438 * gdbserver/Makefile.in: Likewise.
11439 * gdbserver/configure: Regenerated.
11440 * gdbserver/aclocal.m4: New file, generated by aclocal.
11441 * gdbserver/config.in: New file, generated by autoheader.
11442
375fd65b
RE
114432002-02-19 Richard Earnshaw <rearnsha@arm.com>
11444
11445 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11446 armnbsd-nat.c.
11447
08216dd7
RE
114482002-02-19 Richard Earnshaw <rearnsha@arm.com>
11449
11450 * arm-tdep.h (enum arm_float_model): New enum.
11451 (struct gdbarch_tdep): Add fp_model.
11452 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11453 up floating-point conversions until we know the floating-point model
11454 in use by the inferior. Don't complain about being unable to
11455 determine the ABI of the inferior when we don't have one.
11456 (arm_extract_return_value): Support different floating-point models.
11457 (arm_store_return_value): Likewise.
aaa38bb5 11458 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11459 ARM_FLOAT_SOFT.
11460 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11461
65d6d66a
PS
114622002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11463
11464 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11465 of ``current_gdbarch''.
11466
47221191
RE
114672002-02-19 Richard Earnshaw <rearnsha@arm.com>
11468
11469 * armnbsd-nat.c : ANSIfy all function declarations.
11470 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11471 (fetch_inferior_registers): Re-implement in terms of above.
11472 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11473 (store_inferior_registers): Re-implement in terms of above.
11474
fdf39c9a
RE
114752002-02-19 Richard Earnshaw <rearnsha@arm.com>
11476
aaa38bb5 11477 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11478 kernel.
11479 * arm-linux-tdep.c: Likewise.
11480 * config/arm/tm-linux.h: Likewise.
11481
93247f88
RE
114822002-02-19 Richard Earnshaw <rearnsha@arm.com>
11483
11484 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11485 * config/arm/nbsd.mt (TM_FILE): Delete.
11486 * config/arm/tm-nbsd.h: Delete.
11487
d7b486e7
RE
114882002-02-19 Richard Earnshaw <rearnsha@arm.com>
11489
11490 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11491 Initialize CALL_DUMMY_LENGTH.
11492
41d39a95
RE
114932002-02-19 Richard Earnshaw <rearnsha@arm.com>
11494
11495 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11496 function.
11497 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11498 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11499 defines one thing and that is incorrect for this port.
11500 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11501
e1195560
PM
115022002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11503
11504 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11505
c1748f97
PM
115062002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11507
11508 * win32-nat.c (display_selector): New function. Displays information
11509 about the information returned by GetThreadSelectorEntry API function.
11510 (display_selectors): New function. Displays the infomation of
11511 the selector given as argument, or of CS, DS ans FS selectors
11512 if no argument is given.
11513 ( _initialize_inftarg): Add "w32" as info prefix command.
11514 Add "info w32 selector" as command calling display_selectors.
11515
e41e6bbf
PM
115162002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11517
11518 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11519 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11520 if not defined.
11521
0d3a9f48
RE
115222002-02-18 Richard Earnshaw <rearnsha@arm.com>
11523
11524 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11525
3fb4b924
RE
115262002-02-18 Richard Earnshaw <rearnsha@arm.com>
11527
11528 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11529 (arm_fix_call_dummy): Call it.
11530 (arm_call_dummy_breakpoint_offset): Delete.
11531 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11532 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11533
7f55af32
AC
115342002-02-18 Andrew Cagney <ac131313@redhat.com>
11535
11536 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11537 Default to func_frame_chain_valid.
11538 * gdbarch.h, gdbarch.c: Re-generate.
11539 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11540
05f13b9c
EZ
115412002-02-18 Elena Zannoni <ezannoni@redhat.com>
11542
11543 * ppc-linux-nat.c: Update copyright.
11544 (fetch_register, store_register): Add tid parameter, don't compute
11545 tid here.
11546 (fetch_ppc_registers, store_ppc_registers): Add tid
11547 parameter. Pass it along to callees.
11548 (fetch_inferior_registers, store_inferior_registers): Compute tid
11549 here, and pass it to calleed functions.
11550 (fill_gregset, supply_fpregset): Clean up formatting.
11551
d7afb4c9
RE
115522002-02-18 Richard Earnshaw <rearnsha@arm.com>
11553
11554 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11555 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11556
9df628e0
RE
115572002-02-18 Richard Earnshaw <rearnsha@arm.com>
11558
11559 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11560 * gdbarch.c gdbarch.h: Regenerate.
11561 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11562 function.
11563 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11564 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11565 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11566
11567 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11568 * arm-tdep.c (arm_get_longjmp_target): New function.
11569 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11570 this to a positive value register arm_get_longjmp_target as the
11571 longjmp handler.
11572 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11573 (arm_linux_init_abi): Set up longjmp description in tdep.
11574 * armnbsd-nat.c (get_longjmp_target): Delete.
11575 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11576 description in tdep.
11577 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11578 (get_longjmp_target): Delete declaration.
11579 (GET_LONGJMP_TARGET): Delete.
11580 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11581 (GET_LONGJMP_TARGET): Delete.
11582
57bc8964
KB
115832002-02-17 Kevin Buettner <kevinb@redhat.com>
11584
11585 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11586 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11587 of ``current_gdbarch''.
11588
83d31a92
TT
115892002-02-17 Tom Tromey <tromey@redhat.com>
11590
11591 * cli/cli-cmds.c (compare_strings): New function.
11592 (complete_command): Only print each unique item once.
11593 * completer.h (complete_line): Declare.
11594 * completer.c (complete_line): New function.
11595 (line_completion_function): Use it.
11596
17ef5d92
AC
115972002-02-16 Andrew Cagney <ac131313@redhat.com>
11598
11599 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11600 * gdbarch.h, gdbarch.c: Re-generate.
11601
491b8946
DJ
116022002-02-16 Daniel Jacobowitz <drow@mvista.com>
11603
11604 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11605
116062002-02-16 Daniel Jacobowitz <drow@mvista.com>
11607
11608 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11609 * valops.c (value_arg_coerce): Don't take the address of a reference
11610 to convert an argument to a reference.
11611
dfe7f3ac
CF
116122002-02-15 Christopher Faylor <cgf@redhat.com>
11613
11614 * win32-nat.c (get_image_name): New function.
11615 (handle_load_dll): Use get_image_name function.
11616 (get_child_debug_event): Avoid registering debug events until possibly
11617 execed process is started.
11618 (child_create_inferior): Allow invocation via shell so that command
11619 line redirection, etc. works ok.
11620 (_initialize_inftarg): Add new command: "set shell" to control whether
11621 a shell is used to start a process.
11622
1d33e73a
DJ
116232002-02-15 Daniel Jacobowitz <drow@mvista.com>
11624
11625 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11626 instead of find_register_by_number.
11627 (cannot_store_register): Likewise.
11628
48cd0caa
PM
116292002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11630
aaa38bb5 11631 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11632 fprintf_unfiltered (gdb_stderr, ...).
11633
8656e7d8
DJ
116342002-02-15 Daniel Jacobowitz <drow@mvista.com>
11635
11636 * gdbserver/gdbserver.1: Document --attach.
11637
66e810cd
RE
116382002-02-15 Richard Earnshaw <rearnsha@arm.com>
11639
11640 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11641 descriptions.
11642 * arm-tdep.c (arm_default_arm_le_breakpoint)
11643 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11644 (arm_default_thumb_be_breakpoint): New. Initialize them from
11645 traditional breakpoint defines.
11646 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11647 (arm_gdbarch_init): Initialize new breakpoint variables.
11648 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11649 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11650 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11651 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11652 code out to ...
11653 (arm_netbsd_init_abi_common): ... here; new function.
11654 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11655 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11656 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11657 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11658
97e03143
RE
116592002-02-15 Richard Earnshaw <rearnsha@arm.com>
11660
11661 * arm-tdep.h (enum arm_abi): New enum.
11662 (struct gdbarch_tdep): New structure.
11663 (LOWEST_PC): Provide a default.
11664 (arm_gdbarch_register_os_abi): Declare new function.
11665 * arm-tdep.c (arm_abi_names): New array.
11666 (process_note_abi_tag_sections): New function.
11667 (get_elfosabi): New function.
11668 (arm_gdbarch_register_os_abi): New function.
11669 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11670 support for that ABI has been built in, then call the appropriate
11671 configuration routine. Use gdbarch_num_regs() to get the number
11672 of registers.
11673 (arm_dump_tdep): New function.
11674 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11675 place-holder functions.
11676 (_initialize_arm_tdep): Register them.
11677 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11678
11679 * armnbsd-tdep.c: New file.
11680 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11681 * config/arm/nbsd.mt (TDEPFILES): Add it.
11682 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11683
11684 * armnbsd-nat.c: Include regcache.h.
11685 * Makefile.in (armnbsd-nat.o): Update dependency list.
11686
11687 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11688
ad68be46
DJ
116892002-02-14 Daniel Jacobowitz <drow@mvista.com>
11690
11691 * gdbserver/Makefile.in: Fix typos in target rules.
11692
003d6d1d
DJ
116932002-02-14 Daniel Jacobowitz <drow@mvista.com>
11694
aaa38bb5 11695 Fix part of PR gdb/267.
003d6d1d
DJ
11696 * linespec.c (find_methods): Handle constructors specially for now.
11697
6b230f1b
CV
116982002-02-14 Corinna Vinschen <vinschen@redhat.com>
11699
11700 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11701 handling.
11702 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11703 standard_coerce_float_to_double().
11704
1ea98d12
CF
117052002-02-14 Christopher Faylor <cgf@redhat.com>
11706
11707 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11708 GDBINIT_FILENAME.
11709
dd47e6fd
EZ
117102002-02-14 Elena Zannoni <ezannoni@redhat.com>
11711
11712 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11713 find_variant_by_name, because it confuses the multiarch
11714 framework. Return NULL if there isn't an architecture with the
11715 user supplied name, instead of forcing a different one without
11716 recording the change with the multiarch machinery.
11717 (find_variant_by_name): Delete.
11718
d7e39b9e
PS
117192002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11720
11721 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11722 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11723
76e42a4f
MH
117242002-02-13 Martin M. Hunt <hunt@redhat.com>
11725
aaa38bb5 11726 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11727 print_frame_info_listing_hook, set current_source_symtab.
11728
0a30fbc4
DJ
117292002-02-14 Daniel Jacobowitz <drow@mvista.com>
11730
11731 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11732 and remove unused $(INCLUDE_DIR).
11733 Add regcache.c to OBS.
11734 Add generated register protocol files to clean target.
11735 Update dependencies for new objects, obsolete old target code.
11736
11737 * gdbserver/linux-low.c: Remove all platform-specific code to
11738 new files. Remove various dead code. Update to use regcache
11739 functionality.
11740 * gdbserver/remote-utils.c (fromhex): Add return statement
11741 to quiet warning.
11742 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11743 constant.
11744 (input_interrupt): Add integer parameter to match prototype
11745 of a signal handler.
11746 (outreg): Use register_data ().
11747 (prepare_resume_reply): Use gdbserver_expedite_regs.
11748 * gdbserver/server.c (main): Dynamically allocate own_buf because
11749 PBUFSIZ is no longer constant. Use registers_to_string () and
11750 registers_from_string ().
11751 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11752 for error (), fatal (), and warning (). Update definition of
11753 PBUFSIZ to use regcache functionality. Add include guard.
11754 * gdbserver/utils.c (fatal): Add missing ``const''.
11755 (warning): New function.
11756
11757 * regformats/regdat.sh: Include "regcache.h" in generated files.
11758 Provide init_registers () function.
11759 * regformats/regdef.h: Add prototype for set_register_cache ().
11760 Add include guard.
11761
11762 * gdbserver/linux-arm-low.c: New file.
11763 * gdbserver/linux-i386-low.c: New file.
11764 * gdbserver/linux-ia64-low.c: New file.
11765 * gdbserver/linux-m68k-low.c: New file.
11766 * gdbserver/linux-mips-low.c: New file.
11767 * gdbserver/linux-ppc-low.c: New file.
11768 * gdbserver/linux-sh-low.c: New file.
11769
11770 * gdbserver/regcache.c: New file.
11771 * gdbserver/regcache.h: New file.
11772
11773 * gdbserver/low-linux.c: Removed obsolete file.
11774
4cc841d0
DJ
117752002-02-14 Daniel Jacobowitz <drow@mvista.com>
11776
11777 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11778 * config/i386/linux.mt: Likewise.
11779 * config/ia64/linux.mt: Likewise.
11780 * config/m68k/linux.mh: Likewise.
11781 * config/powerpc/linux.mh: Likewise.
11782 * config/mips/linux.mt: Likewise.
11783
11784 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11785
11786 * config/i386/i386lynx.mh: Mark gdbserver variables
11787 as (currently) obsolete for this target.
11788 * config/i386/nbsd.mt: Likewise.
11789 * config/i386/nbsdelf.mt: Likewise.
11790 * config/m32r/m32r.mt: Likewise.
11791 * config/m68k/m68klynx.mh: Likewise.
11792 * config/m68k/nbsd.mt: Likewise.
11793 * config/m68k/sun3os4.mh: Likewise.
11794 * config/mips/vr5000.mt: Likewise.
11795 * config/ns32k/nbsd.mt: Likewise.
11796 * config/pa/hppabsd.mh: Likewise.
11797 * config/pa/hppaosf.mh: Likewise.
11798 * config/powerpc/nbsd.mt: Likewise.
11799 * config/rs6000/rs6000lynx.mh: Likewise.
11800 * config/s390/s390.mt: Likewise.
11801 * config/s390/s390x.mt: Likewise.
11802 * config/sparc/sparclynx.mh: Likewise.
11803 * config/sparc/sun4os4.mh: Likewise.
11804 * config/i386/x86-64linux.mt: Likewise.
11805 * config/sparc/linux.mh: Likewise.
11806
a85f51e7
DJ
118072002-02-14 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * configure.tgt: Configure gdbserver only for known working
11810 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11811 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11812 SUBDIRS if it is configured. Update comment for ${nativefile}.
11813 * configure: Regenerated.
11814
65554fef
MS
118152002-02-13 Michael Snyder <msnyder@redhat.com>
11816
670a52db
MS
11817 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11818
6dbdc4a3
MS
11819 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11820 (default_gcore_mach): Just return 0, work around a problem in bfd.
11821 (default_gcore_target): OK to return NULL if exec_bfd is null.
11822 (make_mem_sec): Use a cast, avoid a warning.
11823
11824 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11825 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11826 sizeof (host pointer) != sizeof (target pointer)).
11827 (procfs_make_note_section): Avoid overflow in psargs string.
11828
aaa38bb5 11829 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11830 implementation return an error.
11831
118322002-02-13 Rodney Brown <rbrown64@csc.com.au>
11833
11834 * procfs.c (procfs_make_note_section): Provide a default definition
11835 (for alpha-dec-osf4.0f). Fix typos.
11836
1e4d76e7
EZ
118372002-02-13 Elena Zannoni <ezannoni@redhat.com>
11838
11839 * linux-proc.c: Add include of regcache.h.
11840 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11841
b6d1a1d5
AC
118422002-02-13 Andrew Cagney <ac131313@redhat.com>
11843
11844 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11845 * memattr.c (create_mem_region): Disallow useless empty region.
11846 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11847 non-overlapping.
b6d1a1d5 11848
6c6ea35e
MC
118492002-02-13 Michael Chastain <mec@shout.net>
11850
11851 * defs.h: Kill CONST_PTR.
11852 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11853 * c-lang.c (c_builtin_types): Likewise.
11854 * ch-lang.c (ch_builtin_types): Likewise.
11855 * f-lang.c (f_builtin_types): Likewise.
11856 * language.c (unknown_builtin_types): Likewise.
11857 * m2-lang.c (m2_builtin_types): Likewise.
11858 * p-lang.c (pascal_builtin_types): Likewise.
11859 * scm-lang.c (c_builtin_types): Likewise.
11860
3e0b0f48
KS
118612002-02-13 Keith Seitz <keiths@redhat.com>
11862
11863 * arm-tdep.h (arm_get_next_pc): Add declaration.
11864
67255d04
RE
118652002-02-13 Richard Earnshaw <rearnsha@arm.com>
11866
11867 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11868 with other related struct-returning functions.
11869 (arm_extract_struct_value_address): New function.
11870 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11871 initialize float_format, double_format and long_double_format as
11872 appropriate to the endianness of the target.
11873 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11874 (arm_use_struct_convention): Delete declaration.
11875 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11876
079777f6
KS
118772002-02-13 Keith Seitz <keiths@redhat.com>
11878
11879 * defs.h (core_addr_to_string_nz): New function.
11880
34588f23
MK
118812002-02-13 Mark Kettenis <kettenis@gnu.org>
11882
11883 Apply missing bits of 2002-01-15 patch.
11884 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11885 (fill_fpregset): Use i387_fill_fsave.
11886
49b563f9
KS
118872002-02-12 Keith Seitz <keiths@redhat.com>
11888
49b563f9
KS
11889 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11890 (core_addr_to_string_nz): New function.
11891
aeb98c60
RE
118922002-02-11 Richard Earnshaw <rearnsha@arm.com>
11893
11894 * arm-linux-nat.c: Really include arm-tdep.h.
11895 * config/arm/tm-linux.h (struct type, struct value): Declare.
11896
65554fef
MS
118972002-02-11 Michael Snyder <msnyder@redhat.com>
11898
11899 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11900 (gcore section): Ifdef for Solaris and Unixware only.
11901 (procfs_do_thread_registers): Unixware needs one lwpstatus
11902 per thread (not one prstatus or pstatus).
11903 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11904 not over all gdb threads. For unixware, call elfcore_write_pstatus
11905 once before iterating over threads.
11906
34e8f22d
RE
119072002-02-11 Richard Earnshaw <rearnsha@arm.com>
11908
11909 * arm-tdep.h: New file.
11910 * arm-tdep.c: Include arm-tdep.h.
11911 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11912 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11913 (arm_print_float_info, arm_register_type, convert_to_extended)
11914 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11915 (arm_extract_return_value, arm_register_name): Make static.
11916 (arm_software_single_step): Similarly. Fix types in declaration.
11917 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11918 (arm_store_return_value, arm_store_struct_return): New functions.
11919 (arm_gdbarch_init): Register the above functions. Also register
11920 call_dummy_start_offset, sizeof_call_dummy_words,
11921 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11922 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11923 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11924 prologue_cache.saved_regs here, rather than ...
11925 (_initialize_arm_tdep): ... here.
11926 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11927 declarations.
11928 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11929 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11930 (arm_print_float_info, arm_register_type, convert_to_extended)
11931 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11932 (arm_extract_return_value, arm_register_name): Delete declarations.
11933 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11934 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11935 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11936 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11937 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11938 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11939 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11940 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11941 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11942 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11943 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11944 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11945 interface.
11946 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11947 * remote-rdi.c remote-rdp.c: Likewise.
11948 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11949 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11950 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11951 definition.
11952
11953 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11954 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11955 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11956 from non-ARM_ prefixed definitions.
11957 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11958 all uses of above.
11959 * remote-rdi.c remote-rdp.c: Likewise.
11960 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11961
148754e5
RE
119622002-02-11 Richard Earnshaw <rearnsha@arm.com>
11963
11964 * arm-tdep.c (arm_frameless_function_invocation)
11965 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11966 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11967 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11968 (arm_pop_frame, arm_get_next_pc): Make static.
11969 (arm_gdbarch_init): Register above in gdbarch structure.
11970 (arm_read_fp): Renamed from arm_target_read_fp.
11971 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11972 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11973 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11974 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11975 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11976 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11977 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11978 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11979 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11980 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11981 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11982
434d2d4f
DJ
119832002-02-10 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * symtab.c (compare_search_syms): New function.
11986 (sort_search_symbols): New function.
11987 (search_symbols): Sort symbols after searching rather than
11988 before.
11989
55241689
AC
119902002-02-10 Andrew Cagney <ac131313@redhat.com>
11991
11992 * NEWS: Linux -> GNU/Linux.
11993
028c194b
AC
119942002-02-10 Andrew Cagney <ac131313@redhat.com>
11995
11996 * gdbarch.sh: For for level one methods, disallow a definition
11997 when partially multi-arched. Add comments explaining rationale.
11998 * gdbarch.h: Re-generate.
11999
6acf50cd
AC
120002002-02-10 Andrew Cagney <ac131313@redhat.com>
12001
12002 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12003 multi-arch partial.
aaa38bb5 12004
50248794
AC
120052002-02-10 Andrew Cagney <ac131313@redhat.com>
12006
12007 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12008 field. Use diff -u.
12009 * gdbarch.c: Re-generate.
12010
c30e0066
AC
120112002-02-10 Andrew Cagney <ac131313@redhat.com>
12012
9b56c5f3 12013 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12014 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12015 partial.
12016
6e6d6484
AC
120172002-02-10 Andrew Cagney <ac131313@redhat.com>
12018
12019 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12020 multi-arch partial.
12021 (PUSH_ARGUMENTS): Switch to using predefault.
12022 * gdbarch.c: Regenerate.
12023
c203844d
AC
120242002-02-10 Andrew Cagney <ac131313@redhat.com>
12025
12026 * valops.c (PUSH_ARGUMENTS): Delete definition.
12027 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12028 partial. Default to default_push_arguments.
12029 * gdbarch.h, gdbarch.c: Regenerate.
12030
b5a2688f
AC
120312002-02-09 Andrew Cagney <ac131313@redhat.com>
12032
12033 * defs.h (throw_exception): Rename return_to_top_level. Update
12034 comments.
12035 * utils.c (error_stream, internal_verror, quit): Ditto.
12036 * top.c (throw_exception, catcher): Ditto.
12037 * sparclet-rom.c (sparclet_load): Ditto.
12038 * remote.c (interrupt_query, minitelnet): Ditto.
12039 * remote-sds.c (interrupt_query): Ditto.
12040 * remote-mips.c (mips_error, mips_kill): Ditto.
12041 * ocd.c (interrupt_query): Ditto.
12042 * monitor.c (monitor_interrupt_query): Ditto.
12043 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12044 * target.h: Update comment.
aaa38bb5 12045
b5a2688f 12046 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12047
2fa5c1e0
AC
120482002-02-09 Andrew Cagney <ac131313@redhat.com>
12049
12050 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12051 default_double_format.
12052 * gdbarch.h, gdbarch.c: Re-generate.
12053 * findvar.c (floatformat_unknown): Delete variable definition.
12054 * doublest.h (floatformat_unknown): Delete variable declaration.
12055
da966255
JB
120562002-02-09 Jim Blandy <jimb@redhat.com>
12057
12058 * stabsread.c (read_type): Add code to parse Sun's syntax for
12059 prototyped function types.
12060
123a4891
AC
120612002-02-09 Andrew Cagney <ac131313@redhat.com>
12062
12063 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12064 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12065
fb39c8f3
PS
120662002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12067
12068 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12069 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12070 now _initialize_xcoffsolib gets called again and overrides the
12071 commands from solib.c in a native configuration.
12072
0b87a11d
MK
120732002-02-09 Mark Kettenis <kettenis@gnu.org>
12074
12075 * doublest.c (store_typed_floating): Don't try to return a value.
12076 Fixes PR gdb/290.
12077
bdc2fc72
JB
120782002-02-08 Jim Blandy <jimb@redhat.com>
12079
12080 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12081 is prototyped and has no arguments, print its argument list as
12082 `(void)'.
12083
da69bbcf
CD
120842002-02-08 Chris Demetriou <cgd@broadcom.com>
12085
12086 * MAINTAINERS (write-after-approval): Add myself.
12087 (paper-trail): I've escaped!
aaa38bb5 12088
b69571f5
CF
120892002-02-08 Christopher Faylor <cgf@redhat.com>
12090
12091 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12092 changes.
12093 (_initialize_check_for_gdb_ini): Ditto.
12094
f6871398
MH
120952002-02-08 Martin M. Hunt <hunt@redhat.com>
12096
12097 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12098 xaprintf -> xasprintf.
12099
4e52d31c
PM
121002002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12101
12102 * win32-nat.c: Remove use of printf and sprintf functions.
12103
39bbf761
RE
121042002-02-08 Richard Earnshaw <rearnsha@arm.com>
12105
12106 * arm-tdep.c (arm_frame_chain_valid): Make static.
12107 (arm_push_arguments): Likewise.
12108 (arm_gdbarch_init): New function.
12109 (_initialize_arm_tdep): Call it.
12110 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12111 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12112 (FRAME_CHAIN_VALID): Delete.
12113 (arm_frame_chain_valid): Delete declaration.
12114 (PUSH_ARGUMENTS): Delete.
12115 (arm_push_arguments): Delete declaration.
12116 (CALL_DUMMY_P): Delete.
12117
9c9532c9
CV
121182002-02-08 Andrew Cagney <ac131313@redhat.com>
12119 Corinna Vinschen <vinschen@redhat.com>
12120
12121 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12122 on builtin float types.
12123
4e8f7a8b
DJ
121242002-02-08 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * utils.c: Include <curses.h> before "bfd.h".
12127 * tui/tui-hooks.c: Likewise.
12128 * tui/tui.c: Likewise.
12129 * tui/tuiCommand.c: Likewise.
12130 * tui/tuiData.c: Likewise.
12131 * tui/tuiDataWin.c: Likewise.
12132 * tui/tuiDisassem.c: Likewise.
12133 * tui/tuiGeneralWin.c: Likewise.
12134 * tui/tuiIO.c: Likewise.
12135 * tui/tuiLayout.c: Likewise.
12136 * tui/tuiRegs.c: Likewise.
12137 * tui/tuiSource.c: Likewise.
12138 * tui/tuiSourceWin.c: Likewise.
12139 * tui/tuiStack.c: Likewise.
12140 * tui/tuiWin.c: Likewise.
12141
cd4bffcf
EZ
121422002-02-07 Elena Zannoni <ezannoni@redhat.com>
12143
12144 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12145 to include space for pseudoregs as well. Update loops accordingly.
12146 (sh_fp_frame_init_saved_regs): Ditto.
12147 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12148
26806ce2
AC
121492002-02-07 Andrew Cagney <ac131313@redhat.com>
12150
12151 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12152 Add Richard Earnshaw to Arm maintainers.
12153
97fdab62
AC
121542002-02-07 Andrew Cagney <ac131313@redhat.com>
12155
a6b98203
AC
12156 * defs.h (warning_begin): Delete declaration.
12157
97fdab62
AC
12158 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12159 Delete macro.
12160
78b29b40
MS
121612002-02-07 Michael Snyder <msnyder@redhat.com>
12162
aaa38bb5 12163 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12164 Logic bug, remove misplaced else.
12165
d8849953
KD
121662002-02-07 Klee Dienes <klee@apple.com>
12167
12168 * fork-inferior.c (fork_inferior): Add '!' to the list of
12169 characters that need to be quoted when building a string for the
12170 shell. Quote '!' specifically with a backslash, since CSH chokes
12171 when trying to evaluate "str!str".
aaa38bb5 12172
095778a0
NC
121732002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12174
12175 * rdi-share/host.h: Only provide a typedef for bool if it is not
12176 defined.
12177
1900040c
MS
121782002-02-04 Michael Snyder <msnyder@redhat.com>
12179
12180 * breakpoint.h (enum bptype): Add new overlay event bp type.
12181 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12182
1900040c
MS
12183 * breakpoint.c (create_internal_breakpoint): New function.
12184 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12185 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12186 (create_thread_event_breakpoint): Ditto.
12187 (create_solib_event_breakpoint): Ditto.
12188 (create_overlay_event_breakpoint): New function.
12189 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12190 (update_breakpoints_after_exec): Delete and re-initialize
12191 overlay event breakpoints after an exec. Add FIXME comment
12192 about longjmp breakpoint.
12193 (print_it_typical): Ignore overlay event breakpoints.
12194 (print_one_breakpoint): Ditto.
12195 (mention): Ditto.
12196 (bpstat_what): Do not stop for overlay event breakpoints.
12197 (delete_breakpoint): Don't delete overlay event breakpoints.
12198 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12199 (breakpoint_re_set): Re-create overlay event breakpoint.
12200
12201 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12202 (overlay_manual_command): Disable overlay breakpoints.
12203 (overlay_off_command): Disable overlay breakpoints.
12204
082fc60d
RE
122052002-02-06 Richard Earnshaw <rearnsha@arm.com>
12206
12207 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12208 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12209 to here from config/tm-arm.h.
12210 (coff_sym_is_thumb): Make static.
12211 (arm_elf_make_msymbol_special): New function.
12212 (arm_coff_make_msymbol_special): New function.
12213 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12214 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12215 (coff_sym_is_thumb): Delete declaration.
12216 (arm_elf_make_msymbol_special): Declare.
12217 (arm_coff_make_msymbol_special): Declare.
12218 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12219 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12220
039c5766
RE
122212002-02-06 Richard Earnshaw <rearnsha@arm.com>
12222
12223 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12224
122252002-02-06 Richard Earnshaw <rearnsha@arm.com>
12226
12227 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12228 * gdbarch.c gdbarch.h: Regenerate.
12229 * arch-utils.c (default_print_float_info): New function.
12230 * arch-utils.h (default_print_float_info): Prototype it.
12231 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12232 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12233 (PRINT_FLOAT_INFO): Document it.
12234
12235 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12236 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12237 (PRINT_FLOAT_INFO): Define.
12238
58fa08f0
PM
122392002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12240
aaa38bb5 12241 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12242 Add typecast to sprintf argument to suppress a warning.
12243
7393af7c
PM
122442002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12245
58fa08f0 12246 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12247 to allow easier handling of pass state.
12248 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12249 that gives exception name and address.
12250 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12251 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12252 exceptions added.
aaa38bb5
AJ
12253 (child_continue): Correctly report continue_status.
12254 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12255 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12256 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12257 the exception should be passed to debuggee or not.
12258
6af4589c
MS
122592002-02-05 Michael Snyder <msnyder@redhat.com>
12260
12261 * regcache.c (fetch_register): Call target_fetch_register
12262 only if we don't call FETCH_PSEUDO_REGISTER.
12263 (store_register): Call target_store_register only if we
12264 don't call STORE_PSEUDO_REGISTER.
12265
a2cf933a
EZ
122662002-02-05 Elena Zannoni <ezannoni@redhat.com>
12267
12268 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12269 ELF_MAKE_MSYMBOL_SPECIAL.
12270 * gdbarch.c, gdbarch.h: Regenerate.
12271 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12272 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12273 * elfread.c (elf_symtab_read): Compile use of
12274 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12275 multiarched.
12276 * coffread.c (coff_symtab_read): Ditto, for
12277 COFF_MAKE_MSYMBOL_SPECIAL.
12278
6bb7be43
JB
122792002-02-05 Jim Blandy <jimb@redhat.com>
12280
12281 * solib-svr4.c (svr4_truncate_ptr): New function.
12282 (svr4_relocate_section_addresses): Do the address arithmetic with
12283 the appropriate truncation for target addresses, even when
12284 CORE_ADDR is larger than a target address.
12285
e18651ec
DJ
122862002-02-05 Daniel Jacobowitz <drow@mvista.com>
12287
12288 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12289 to (int *).
12290
6b2725be
DJ
122912002-02-05 Daniel Jacobowitz <drow@mvista.com>
12292
12293 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12294 code.
12295
fca9e603
DJ
122962002-02-05 Daniel Jacobowitz <drow@mvista.com>
12297
12298 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12299
6c537a52
DJ
123002002-02-05 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * gdbserver/linux-low.c: Remove unused include files.
12303
d844cde6
DJ
123042002-02-05 Daniel Jacobowitz <drow@mvista.com>
12305
12306 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12307 (read_inferior_memory): Use it.
12308 (write_inferior_memory): Likewise.
12309
d07c63e7
DJ
123102002-02-05 Daniel Jacobowitz <drow@mvista.com>
12311
12312 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12313 grubbing through sys_errlist.
12314
da6d8c04
DJ
123152002-02-05 Daniel Jacobowitz <drow@mvista.com>
12316
12317 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12318
5b421780
PM
123192002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12320 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12321
9f60d481
AC
123222002-02-04 Andrew Cagney <ac131313@redhat.com>
12323
12324 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12325 (do_sfunc, set_cmd_sfunc): New functions.
12326
12327 * command.h (struct cmd_list_element): Add field func.
12328 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12329 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12330 * cli/cli-decode.h: Ditto.
12331
12332 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12333 (help_all, help_cmd_list): Ditto.
12334 (find_cmd, complete_on_cmdlist): Ditto.
12335 * top.c (execute_command): Ditto.
12336
12337 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12338 function.sfunc.
12339
12340 * infcmd.c (notice_args_read): Fix function signature.
12341
12342 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12343 * cli/cli-decode.c (add_set_cmd): Ditto.
12344 * utils.c (initialize_utils): Ditto.
12345 * maint.c (_initialize_maint_cmds): Ditto.
12346 * infrun.c (_initialize_infrun): Ditto.
12347 * demangle.c (_initialize_demangler): Ditto.
12348 * remote.c (add_packet_config_cmd): Ditto.
12349 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12350 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12351 * proc-api.c (_initialize_proc_api): Ditto.
12352 * kod.c (_initialize_kod): Ditto.
12353 * valprint.c (_initialize_valprint): Ditto.
12354 * top.c (init_main): Ditto.
12355 * infcmd.c (_initialize_infcmd): Ditto.
12356 * corefile.c (_initialize_core): Ditto.
12357 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12358 * arch-utils.c (initialize_current_architecture): Ditto.
12359 (_initialize_gdbarch_utils): Ditto.
12360 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12361
12362 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12363 * wince.c (_initialize_inftarg): Ditto.
12364 * symfile.c (_initialize_symfile): Ditto.
12365 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12366 * language.c (_initialize_language): Ditto.
12367 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12368
f9ba0717
MS
123692002-02-04 Michael Snyder <msnyder@redhat.com>
12370
12371 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12372
0c74b2a7
DJ
123732002-02-04 Daniel Jacobowitz <drow@mvista.com>
12374
12375 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12376 Add rules for building the register data files.
12377
c638789f
DJ
123782002-02-04 Daniel Jacobowitz <drow@mvista.com>
12379
12380 * regformats/regdat.sh: Add braces to the definition of
12381 expedite_regs_${arch}.
12382
db253027
DJ
123832002-02-04 Daniel Jacobowitz <drow@mvista.com>
12384
12385 * regformats/regdef.h (struct reg): Add comment describing the
12386 requirements for offset and size fields.
12387
206be19c
AS
123882002-02-04 Andreas Schwab <schwab@suse.de>
12389
12390 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12391 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12392
181c1381
RE
123932002-02-04 Richard Earnshaw <rearnsha@arm.com>
12394
12395 * gdbarch.sh (copyright): Update years in generated header.
12396 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12397 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12398 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12399 * dbxread.c: Likewise.
12400 * dwarfread.c: Likewise.
12401 * elfread.c: Likewise.
12402 * somread.c: Likewise.
12403
12404 * arm-tdep.c (arm_smash_text_address): New function.
12405 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12406
fa4ba8da
PM
124072002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12408
12409 Add support for hardware watchpoints on win32 native.
aaa38bb5 12410 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12411 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12412 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12413 of debug registers.
12414 (debug_registers_changed): New variable. Reflects when debug registers
12415 are changed and need to be written to inferior.
aaa38bb5 12416 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12417 was set, used when new threads are created.
12418 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12419 i386-nat code.
12420 (thread_rec): Set dr array if id is the thread of current_event .
12421 (child_continue, child_resume): Change the debug registers for all
12422 threads if debug_registers_changed.
12423 (child_add_thread): Change the debug registers if debug_registers_used.
12424 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12425 Link nm.h to new nm-cygwin.h file.
12426 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12427 of hardware registers.
12428
a73c86fb
AC
124292002-02-03 Andrew Cagney <ac131313@redhat.com>
12430
12431 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12432 Restore behavour broken by 2002-01-20 Andrew Cagney
12433 <ac131313@redhat.com> IEEE_FLOAT removal.
12434
acf5ed49
DJ
124352002-02-03 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * c-valprint.c (c_val_print): Pass a proper valaddr to
12438 cp_print_class_method.
12439 * valops.c (search_struct_method): If there is only one method
12440 and args is NULL, return that method.
12441
493d28d5
DJ
124422002-02-03 Daniel Jacobowitz <drow@mvista.com>
12443
12444 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12445 accessing tag_name directly.
12446
7495dfdb
DJ
124472002-02-03 Daniel Jacobowitz <drow@mvista.com>
12448
12449 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12450 of accessing tag_name directly.
12451
dd6bda65
DJ
124522002-02-03 Daniel Jacobowitz <drow@mvista.com>
12453
12454 PR gdb/280
12455 * gdbtypes.c (replace_type): New function.
12456 * gdbtypes.h (replace_type): Add prototype.
12457 * stabsread.c (read_type): Use replace_type.
12458
88fe217c
RE
124592002-02-03 Richard Earnshaw <rearnsha@arm.com>
12460
12461 * Makefile.in (memattr.o): Add missing dependencies rule.
12462
e5d66720
PS
124632002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12464
12465 * breakpoint.c (break_at_finish_command): Really export.
12466 (break_at_finish_at_depth_command): Ditto.
12467 (tbreak_at_finish_command): Ditto.
12468 * hppa-tdep.c: Include completer.h.
12469 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12470 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12471
fffee0be
AC
124722002-02-01 Andrew Cagney <ac131313@redhat.com>
12473
12474 * utils.c (do_write): New function.
12475 (error_stream): Rewrite combining the code from error_begin and
12476 verror.
12477 (verror): Rewrite using error_stream.
12478 (error_begin): Delete function.
12479
255e7dbf
AC
124802002-02-01 Andrew Cagney <ac131313@redhat.com>
12481
12482 * utils.c (error_begin): Make static.
12483 * defs.h (error_begin): Delete declaration.
12484
12485 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12486 (decode_line_1): Use cplusplus_error instead of error_begin,
12487 cplusplus_hint and return_to_top_level.
12488 * coffread.c (coff_symfile_read): Use error instead of error_begin
12489 and return_to_top_level.
12490 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12491
ddfe3c15
AC
124922002-02-01 Andrew Cagney <ac131313@redhat.com>
12493
12494 * language.h (type_error, range_error): Make string parameter
12495 constant.
12496 * language.c (warning_pre_print): Delete extern declaration.
12497 * dwarfread.c (warning_pre_print): Ditto.
12498 * language.c (type_error, range_error): Rewrite to use verror and
12499 vwarning instead of warning_begin.
12500
03ac34d5
MS
125012002-02-01 Michael Snyder <msnyder@redhat.com>
12502
261c4ca2
MS
12503 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12504 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12505
e00d1dc8
AC
125062002-02-01 Andrew Cagney <ac131313@redhat.com>
12507
12508 * command.h (NO_FUNCTION): Delete macro.
12509 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12510 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12511 * tracepoint.c (_initialize_tracepoint): Ditto.
12512 * cli/cli-decode.c (add_set_cmd): Ditto.
12513 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12514
76b79d6e
DJ
125152002-02-01 Daniel Jacobowitz <drow@mvista.com>
12516
12517 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12518 Update ``this'' pointer when calling virtual functions.
12519
799f9e91
MS
125202002-02-01 Michael Snyder <msnyder@redhat.com>
12521
c7bd442c 12522 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12523 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12524
3cf384d4
DJ
125252002-02-01 Daniel Jacobowitz <drow@mvista.com>
12526
12527 * regformats/reg-arm.dat: New file.
12528 * regformats/reg-i386.dat: New file.
12529 * regformats/reg-ia64.dat: New file.
12530 * regformats/reg-m68k.dat: New file.
12531 * regformats/reg-mips.dat: New file.
12532 * regformats/reg-ppc.dat: New file.
12533 * regformats/reg-sh.dat: New file.
12534 * regformats/regdef.h: New file.
12535 * regformats/regdat.sh: New file.
12536
0defa245
RE
125372002-02-01 Richard Earnshaw <reanrsha@arm.com>
12538
12539 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12540 (arm_frame_args_address, arm_frame_locals_address): New functions.
12541 (arm_frame_num_args): New function.
12542 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12543 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12544 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12545
405f26e6
MS
125462002-01-31 Michael Snyder <msnyder@redhat.com>
12547
502fd408
MS
12548 * breakpoint.c (break_at_finish_command): Export.
12549 (break_at_finish_at_depth_command): Export.
12550 (tbreak_at_finish_command): Export.
d6020d45 12551 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12552 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12553 "txbreak" commands, which are HPPA specific.
502fd408 12554
7d35e135
MS
12555 * printcmd.c (disassemble_command): Remove an ancient
12556 artifact of an old merge.
12557
aaa38bb5 12558 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12559 Define enum constant values for overlay mode.
12560 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12561 (overlay_is_mapped, overlay_auto_command,
12562 overlay_manual_command): Ditto.
d874f1e2 12563
aaa38bb5
AJ
12564 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12565 breakpoint_here_p, breakpoint_inserted_here_p,
12566 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12567 describe_other_breakpoints, check_duplicates, clear_command):
12568 Coding standard fixes.
12569
8add0441 12570 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12571 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12572 code: check bfd SEC_READONLY flag for section.
12573
e351066e
AC
125742002-01-31 Andrew Cagney <ac131313@redhat.com>
12575
7d35e135 12576 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12577
8a48e967
DJ
125782002-01-30 Daniel Jacobowitz <drow@mvista.com>
12579
12580 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12581 data symbols, since we search based on textlow and texthigh.
12582 (find_pc_sect_symtab): Likewise.
12583
f5a96129
AC
125842002-01-30 Andrew Cagney <ac131313@redhat.com>
12585
12586 * defs.h (vwarning): Declare.
f5a96129
AC
12587 * utils.c (vwarning): New function.
12588 (warning): Call vwarning.
12589 (warning_begin): Delete function.
12590
12591 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12592 the warning message.
12593 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12594 warning_begin.
12595
cefd4ef5
MS
125962002-01-30 Michael Snyder <msnyder@redhat.com>
12597
1a703748
MS
12598 * NEWS: Mention "set trust-readonly-sections" command.
12599 Mention generate-core-file command.
cefd4ef5 12600
3a11626d
MS
126012002-01-15 Michael Snyder <msnyder@redhat.com>
12602
12603 * target.c: New command, "set trust-readonly-sections on".
12604 (do_xfer_memory): Honor the suggestion to trust readonly sections
12605 by reading them from the object file instead of from the target.
12606 (initialize_targets): Register command "set trust-readonly-sections".
12607
d1c7e53b
AC
126082002-01-29 Andrew Cagney <ac131313@redhat.com>
12609
12610 * parse.c (target_map_name_to_register): Simplify, search regs and
12611 pseudo-regs using a single loop.
12612
e2c9a72c
AC
126132002-01-30 Andrew Cagney <ac131313@redhat.com>
12614
12615 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12616
69824b4e
MK
126172002-01-15 Rodney Brown <rbrown64@csc.com.au>
12618
12619 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12620 * config/i386/i386v42mp.mh: Add i387-nat.o .
12621 * i386v4-nat.c: Include i387-nat.h.
12622 (supply_fpregset): Use i387_supply_fsave.
12623 (fill_fpregset): Use i387_fill_fsave.
12624
6eb69eab
RE
126252002-01-30 Richard Earnshaw <rearnsha@arm.com>
12626
12627 * arm-tdep.c (arm_call_dummy_words): Define.
12628 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12629 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12630 (CALL_DUMMY_WORDS): Define.
12631 (arm_call_dummy_words): Declare.
12632 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12633 (arm_linux_call_dummy_words): Declare.
12634
9852326a
AS
126352002-01-30 Andreas Schwab <schwab@suse.de>
12636
12637 * m68klinux-nat.c: Fix last change to use regcache_collect
12638 instead of referencing registers[] directly.
12639
977a3030
AC
126402002-01-29 Andrew Cagney <ac131313@redhat.com>
12641
12642 * parse.c (target_map_name_to_register): Delete code wrapped in
12643 #ifdef REGISTER_NAME_ALIAS_HOOK.
12644
2076c72b
MS
126452002-01-28 Michael Snyder <msnyder@redhat.com>
12646
12647 * regcache.c (legacy_read_register_gen): Need to be able to
12648 read pseudo-register as well as real register.
12649 (legacy_write_register_gen): Ditto.
12650
8fcc723b
AC
126512002-01-28 Andrew Cagney <ac131313@redhat.com>
12652
12653 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12654 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12655 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12656 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12657 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12658 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12659 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12660 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12661 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12662 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12663 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12664 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12665 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12666 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12667 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12668 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12669 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12670 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12671 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12672 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12673
afe64c1a
AC
126742002-01-28 Andrew Cagney <ac131313@redhat.com>
12675
12676 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12677 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12678 (initialize_current_architecture): Update target_byte_order using
12679 information from BFD.
aaa38bb5 12680 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12681 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12682
75bc7ddf
AC
126832002-01-28 Andrew Cagney <ac131313@redhat.com>
12684
12685 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12686 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12687
12688 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12689 #ifdef INVALID_FLOAT.
12690 * infcmd.c (do_registers_info): Ditto.
12691 * values.c (unpack_double): Ditto. Add comment.
12692
12693 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12694 already commented out.
12695
0280a90a
AS
126962002-01-26 Andreas Schwab <schwab@suse.de>
12697
12698 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12699 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12700 registers and add support for PTRACE_GETREGS.
12701
7072a954
AC
127022002-01-24 Andrew Cagney <ac131313@redhat.com>
12703
12704 GDB 5.1.1 released from 5.1 branch.
12705 * NEWS: Add 5.1.1 news.
12706 * README: Sync with 5.1 branch.
12707
86f902e0
FF
127082002-01-23 Fred Fish <fnf@redhat.com>
12709
12710 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12711 stabstring on initial malloc. Reallocing will copy it for us,
12712 if necessary.
12713
8af51c36
EZ
127142002-01-23 Elena Zannoni <ezannoni@redhat.com>
12715
aaa38bb5 12716 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12717 (HFILES_NO_SRCDIR): Remove hpread.h.
12718 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12719 (hpread.o): Update dependencies.
12720 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12721
12722 * hp-psymtab-read.c: Remove file.
12723 * hp-symtab-read.c: Remove file.
12724 * hpread.h: Remove file.
12725
12726 * hpread.c: Merge all contents of hp-psymtab-read.c,
12727 hp-symtab-read.c and hpread.h into this file, as it was prior to
12728 January 1999.
12729
12730 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12731 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12732 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12733 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12734
dc5cfeb6
EZ
127352002-01-23 Elena Zannoni <ezannoni@redhat.com>
12736
12737 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12738 fill_gregset): Call gdbarch_tdep() just once, assign result to
12739 variable and use that, instead of calling the function several
12740 times.
12741
ea87b71b
AO
127422002-01-24 Alexandre Oliva <aoliva@redhat.com>
12743
12744 * configure.host: Accept sparcv9 as alias for sparc64.
12745 * configure.tgt: Likewise.
12746
13fc0c2f
KB
127472002-01-22 Kevin Buettner <kevinb@redhat.com>
12748
12749 * solib-aix5.c (build_so_list_from_mapfile)
12750 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12751 arguments is not reversed.
12752 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12753 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12754
7bd872fe
EZ
127552002-01-22 Elena Zannoni <ezannoni@redhat.com>
12756
12757 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12758 modified version of obsolete sh_fetch_pseudo_register.
12759 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12760 (sh4_register_read): New function.
12761 (sh_pseudo_register_write): New function. Renamed and modified
12762 version of obsolete sh_store_pseudo_register.
12763 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12764 (sh4_register_write): New function.
12765 (sh_gdbarch_init): Remove setting of gdbarch function
12766 fetch_pseudo_register and store_pseudo_register. Remove setting of
12767 register_convert_to_raw, register_convert_to_virtual,
12768 register_convertible.
12769 (sh_sh4_register_convertible): Delete. No longer needed. All is
12770 taken care by architecture specific functions
12771 register_read/register_write.
12772 (sh_sh4_register_convert_to_virtual): Make static.
12773 (sh_sh4_register_convert_to_raw): Ditto.
12774
069e84fd
AC
127752002-01-22 Andrew Cagney <ac131313@redhat.com>
12776
12777 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12778 (floatformat_is_nan, floatformat_mantissa): Ditto.
12779
12780 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12781 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12782 builtin_type_ieee_double_little,
12783 builtin_type_ieee_double_littlebyte_bigword,
12784 builtin_type_m68881_ext, builtin_type_i960_ext,
12785 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12786 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12787 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12788 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12789
211a4f69
CV
127902002-01-22 Corinna Vinschen <vinschen@redhat.com>
12791
12792 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12793 parameter. Set frameless flag if it exists and depended of
12794 whether the scanned function is frameless or not.
12795 (xstormy16_skip_prologue): If function is frameless, return
12796 result of xstormy16_scan_prologue().
12797 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12798 call.
12799
f81353e4
EZ
128002002-01-21 Elena Zannoni <ezannoni@redhat.com>
12801
12802 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12803 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12804 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12805 sh_sh4_register_byte, sh_sh4_register_raw_size,
12806 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12807 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12808 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12809 sh_store_pseudo_register, sh_do_pseudo_register): Call
12810 gdbarch_tdep() just once, assign result to variable and use that,
12811 instead of calling the function several times.
12812
63c73a17
MK
128132002-01-20 Mark Kettenis <kettenis@gnu.org>
12814
12815 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12816 macros instead of LAST_FPU_CTRL_REGNUM.
12817 (store_register): Likewise.
12818
39ad761d
JB
128192002-01-21 Jim Blandy <jimb@redhat.com>
12820
12821 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12822 is up-to-date before running the program, not just when a program
12823 exits.
12824
3d74b771
FF
128252002-01-21 Fred Fish <fnf@redhat.com>
12826
12827 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12828 when we have found all instructions we are looking for.
12829
966fbf70
RE
128302002-01-21 Richard Earnshaw <rearnsha@arm.com>
12831
12832 * arm-tdep.c (arm_register_name): New function.
12833 (arm_registers_names): Make static.
12834 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12835 (arm_register_name): Declare.
12836 (REGISTER_NAME): Use it.
12837
c3b4394c
RE
128382002-01-21 Richard Earnshaw <rearnsha@arm.com>
12839 Kevin Buettner <kevinb@redhat.com>
12840
12841 Convert arm targets to new FRAME interface.
12842 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12843 (arm_frame_find_save_regs): Delete.
12844 (arm_frame_init_saved_regs): New.
12845 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12846 Allocate extra_info as required. Convert all uses of fsr.regs
12847 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12848 to use extra_info.
12849 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12850 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12851 (check_prologue_cache, save_prologue_cache): Likewise.
12852 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12853 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12854 (FRAME_FIND_SAVED_REGS): Delete.
12855 (arm_frame_find_saved_regs): Delete prototype.
12856 (arm_frame_init_saved_regs): New prototype.
12857 (FRAME_INIT_SAVED_REGS): Define.
12858
61d99182
AC
128592002-01-20 Andrew Cagney <ac131313@redhat.com>
12860
12861 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12862
6aaea291
AC
128632002-01-20 Andrew Cagney <ac131313@redhat.com>
12864
12865 From Jeff Law <law@redhat.com>:
12866 * infttrace.c: Include <sys/pstat.h>.
12867 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12868 exec file if the ttrace equivalent fails.
12869
15f698d2
AC
128702002-01-20 Andrew Cagney <ac131313@redhat.com>
12871
12872 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12873 (closeLogFile): Ditto.
12874
f86ddd7c
MC
128752002-01-20 Michael Chastain <mec@shout.net>
12876
12877 * top.c (print_gdb_version): Bump copyright year to 2002.
12878
904507ce
AC
128792002-01-20 Andrew Cagney <ac131313@redhat.com>
12880
12881 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12882 Zannoni and Eli Zaretskii.
12883
d7f0b9ce
DJ
128842002-01-20 Daniel Jacobowitz <drow@mvista.com>
12885
12886 * buildsym.c: Update copyright years.
12887 * c-typeprint.c: Likewise.
12888 * dwarf2read.c: Likewise.
12889 * f-typeprint.c: Likewise.
12890 * gdbtypes.c: Likewise.
12891 * gdbtypes.h: Likewise.
12892 * hp-symtab-read.c: Likewise.
12893 * hpread.c: Likewise.
12894 * mdebugread.c: Likewise.
12895 * p-typeprint.c: Likewise.
12896
3fd3d7d2
AC
128972002-01-20 Andrew Cagney <ac131313@redhat.com>
12898
12899 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12900 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12901 byte-order selectable.
12902 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12903 * arch-utils.c: Ditto.
12904 (set_endian): Ditto.
12905 (set_endian_from_file): Ditto.
12906 * gdbserver/low-sim.c (create_inferior): Ditto.
12907 * gdbarch.sh: Ditto.
12908 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12909 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12910 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12911 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12912 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12913 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12914 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12915 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12916 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12917 macro definition.
12918 * config/mips/tm-wince.h: Remove #undef of macro
12919 TARGET_BYTE_ORDER_SELECTABLE.
12920 * config/sh/tm-wince.h: Ditto.
12921
b02dede2
DJ
129222002-01-20 Daniel Jacobowitz <drow@mvista.com>
12923
12924 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12925 member function fields. Add accessor macro
12926 TYPE_FN_FIELD_ARTIFICIAL.
12927 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12928 * c-typeprint.c (c_type_print_base): Skip artificial member
12929 functions.
12930
c3643761
DJ
129312002-01-20 Daniel Jacobowitz <drow@mvista.com>
12932
12933 * f-typeprint.c: Delete unused function f_type_print_args.
12934 * p-typeprint.c: Delete unused function pascal_type_print_args.
12935
8176bb6d
DJ
129362002-01-20 Daniel Jacobowitz <drow@mvista.com>
12937
12938 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12939 comment. Add ``artificial'' to ``union field_location''.
12940
12941 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12942
12943 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12944 * mdebugread.c (parse_symbol): Likewise.
12945 * stabsread.c (define_symbol): Likewise.
12946 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12947 initializing TYPE_FIELD_BITPOS to n (obsolete).
12948 (hpread_doc_function_type): Likewise.
12949 * hpread.c (hpread_function_type): Likewise.
12950
7fd60527
AC
129512002-01-20 Andrew Cagney <ac131313@redhat.com>
12952
12953 * configure.in (host_makefile_frag): Only require a host makefile
12954 fragment when a native build.
12955 * configure: Re-generate.
12956
c2f05ac9
AC
129572002-01-20 Andrew Cagney <ac131313@redhat.com>
12958
12959 * doublest.h (floatformat_from_type): Declare.
12960 * doublest.c (floatformat_from_type): New function.
12961 (convert_typed_floating): Use.
12962
12963 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12964 call to function floatformat_from_type.
12965
12966 * gdbarch.sh (IEEE_FLOAT): Delete.
12967 * gdbarch.h, gdbarch.c: Re-generate.
12968 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12969 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12970 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12971 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12972 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12973 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12974 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12975 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12976 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12977 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12978 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12979 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12980
12981 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12982 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12983 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12984 * sh-tdep.c (sh_gdbarch_init): Ditto.
12985 * mips-tdep.c (mips_gdbarch_init): Ditto.
12986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12987 * cris-tdep.c (cris_gdbarch_init): Ditto.
12988
abf22e64
AJ
129892002-01-20 Jiri Smid <smid@suse.cz>
12990
12991 * configure.host, configure.tgt: Support x86-64.
12992 * NEWS: Note new target x86-64.
12993
b7c4cbf8
AJ
12994 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12995 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12996 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12997 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12998 x86-64-linux-nat.o): Fix dependencies.
12999
82600034
AC
130002002-01-19 Andrew Cagney <ac131313@redhat.com>
13001
13002 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13003 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13004 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13005 * config/sparc/xm-sun4os4.h: Delete file.
13006 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13007
bbe5c628
AC
130082002-01-19 Andrew Cagney <ac131313@redhat.com>
13009
13010 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13011 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13012 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13013 * config/i386/i386lynx.mh (XM_FILE): Delete.
13014 * config/rs6000/xm-rs6000ly.h: Delete file.
13015 * config/sparc/xm-sparclynx.h: Delete file.
13016 * config/m68k/xm-m68klynx.h: Delete file.
13017 * config/i386/xm-i386lynx.h: Delete file.
13018 * config/xm-lynx.h: Delete file.
13019 * config/djgpp/fnchange.lst: Update.
13020
f8453e34
JT
130212002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13022
13023 * alpha-tdep.c (alpha_register_byte): New function.
13024 (alpha_register_raw_size): Ditto.
13025 (alpha_register_virtual_size): Ditto.
13026 (alpha_skip_prologue_internal): Renamed from
13027 alpha_skip_prologue.
13028 (alpha_skip_prologue): New version that calls
13029 alpha_skip_prologue_internal.
13030 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13031 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13032 second argument from alpha_skip_prologue.
13033 (REGISTER_BYTE): Use alpha_register_byte.
13034 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13035 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13036 (FRAMELESS_FUNCTION_INVOCATION): Use
13037 generic_frameless_function_invocation_not.
13038 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13039 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13040
52d9e613
AC
130412002-01-19 Andrew Cagney <ac131313@redhat.com>
13042
13043 * config/mips/xm-news-mips.h: Delete file.
13044 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13045
13046 * config/m88k/xm-m88k.h: Delete file.
13047 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13048 * config/m88k/xm-delta88v4.h: Ditto.
13049 * config/m88k/xm-delta88.h: Ditto.
13050
13051 * config/alpha/xm-fbsd.h: Delete file.
13052 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13053
13054 * config/sparc/xm-sparc.h: Delete file.
13055 * Makefile.in (xm-sun4os4.h): Delete dependency.
13056 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13057 * config/sparc/xm-sun4os4.h: Ditto.
13058 * config/sparc/xm-linux.h: Ditto.
13059
13060 * config/i386/xm-windows.h: Delete file.
13061
2d1b2124
AC
130622002-01-19 Andrew Cagney <ac131313@redhat.com>
13063
13064 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13065 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13066
ee1f65f0
JT
130672002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13068
13069 * alpha-tdep.c (alpha_call_dummy_words): New.
13070 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13071 (CALL_DUMMY_P): Define.
13072 (CALL_DUMMY_WORDS): Define.
13073 (SIZEOF_CALL_DUMMY_WORDS): Define.
13074
98081e55
PB
130752002-01-19 Per Bothner <per@bothner.com>
13076
13077 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13078 isn't NULL, which can happen with some gcj-3.x-produced code.
13079
0d056799
JT
130802002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13081
13082 * alpha-tdep.c (alpha_register_virtual_type): New function.
13083 (alpha_init_frame_pc_first): Ditto.
13084 (alpha_fix_call_dummy): Ditto.
13085 (alpha_store_struct_return): Ditto.
13086 (alpha_extract_struct_value_address): Ditto.
13087 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13088 alpha_register_virtual_type.
13089 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13090 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13091 alpha_extract_struct_value_address.
13092 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13093 (INIT_FRAME_PC): Use init_frame_pc_noop.
13094 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13095
4604bcad
MK
130962002-01-19 Mark Kettenis <kettenis@gnu.org>
13097
13098 * i386gnu-nat.c: Include "i386-tdep.h".
13099 (fetch_fpregs): Simplify code dealing with uninitialized floating
13100 point states such that it doesn't require FP7_REGNUM.
13101
140f9984
JT
131022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13103
abf22e64
AJ
13104 * alpha-tdep.c (frame_extra_info): New.
13105 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13106 frame->extra_info.
13107 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13108 (alpha_frame_saved_pc): Use frame->extra_info.
13109 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13110 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13111 (init_extra_frame_info): Rename to...
13112 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13113 (alpha_print_extra_frame_info): New function.
140f9984
JT
13114 (alpha_frame_locals_address): Ditto.
13115 (alpha_frame_args_address): Ditto.
abf22e64 13116 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13117 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13118 alpha_frame_args_address.
abf22e64 13119 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13120 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13121 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13122 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13123 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13124 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13125
d734c450
JT
131262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13127
13128 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13129 (alpha_cannot_fetch_register): Ditto.
13130 (alpha_cannot_store_register): Ditto.
13131 (alpha_register_convertible): Ditto.
13132 (alpha_use_struct_convention): Ditto.
13133 * config/alpha/tm-alpha.h: Update copyright years.
13134 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13135 (INNER_THAN): Use core_addr_lessthan.
13136 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13137 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13138 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13139 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13140 (FRAME_CHAIN): Remove unnecessary cast.
13141
b4ceaee6
AC
131422002-01-18 Andrew Cagney <ac131313@redhat.com>
13143
13144 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13145 obsolete.
13146
0a65a603
AC
131472002-01-18 Andrew Cagney <ac131313@redhat.com>
13148
13149 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13150 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13151 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13152 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13153 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13154 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13155 * x86-64-linux-nat.c: Ditto.
13156
636a6dfc
JT
131572002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13158
abf22e64 13159 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13160 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13161 (REGISTER_NAME): Define.
13162
acceddb6
JT
131632002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13164
13165 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13166
ec32e4be
JT
131672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13168
13169 * alpha-tdep.c: Update copyright years.
13170 (alpha_next_pc): New function.
13171 (alpha_software_single_step): Ditto.
13172 * config/alpha/tm-alpha.h: Add prototype for
13173 alpha_software_single_step.
13174
e771a871
JT
131752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13176
13177 * alphabsd-nat.c: Update copyright years.
13178 (fill_gregset): Use regcache_collect.
13179 (fill_fpregset): Likewise.
13180 (fetch_inferior_registers): Only fetch integer registers
13181 if requested to do so.
13182 (store_inferior_registers): Only store integer registers
13183 if requested to do so.
13184
7708fa01
AC
131852002-01-17 Andrew Cagney <ac131313@redhat.com>
13186
13187 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13188 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13189 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13190 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13191 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13192 * config/arm/linux.mh (XDEPFILES): Delete.
13193 * config/arm/nbsd.mh (XDEPFILES): Delete.
13194 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13195 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13196 * config/i386/i386m3.mh (XDEPFILES): Delete.
13197 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13198 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13199 * config/i386/fbsd.mh (XDEPFILES): Delete.
13200 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13201 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13202 * config/i386/i386v4.mh (XDEPFILES): Delete.
13203 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13204 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13205 * config/i386/i386aix.mh (XDEPFILES): Delete.
13206 * config/i386/go32.mh (XDEPFILES): Delete.
13207 * config/i386/cygwin.mh (XDEPFILES): Delete.
13208 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13209 * config/i386/i386mach.mh (XDEPFILES): Delete.
13210 * config/i386/i386v32.mh (XDEPFILES): Delete.
13211 * config/i386/linux.mh (XDEPFILES): Delete.
13212 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13213 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13214 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13215 * config/i386/i386sco.mh (XDEPFILES): Delete.
13216 * config/i386/i386v.mh (XDEPFILES): Delete.
13217 * config/i386/nbsd.mh (XDEPFILES): Delete.
13218 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13219 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13220 * config/i386/symmetry.mh (XDEPFILES): Delete.
13221 * config/i386/obsd.mh (XDEPFILES): Delete.
13222 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13223 * config/ia64/linux.mh (XDEPFILES): Delete.
13224 * config/ia64/aix.mh (XDEPFILES): Delete.
13225 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13226 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13227 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13228 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13229 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13230 * config/m68k/linux.mh (XDEPFILES): Delete.
13231 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13232 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13233 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13234 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13235 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13236 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13237 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13238 * config/m88k/delta88.mh (XDEPFILES): Delete.
13239 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13240 * config/m88k/m88k.mh (XDEPFILES): Delete.
13241 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13242 * config/mips/linux.mh (XDEPFILES): Delete.
13243 * config/mips/irix6.mh (XDEPFILES): Delete.
13244 * config/mips/irix5.mh (XDEPFILES): Delete.
13245 * config/mips/irix4.mh (XDEPFILES): Delete.
13246 * config/mips/irix3.mh (XDEPFILES): Delete.
13247 * config/mips/decstation.mh (XDEPFILES): Delete.
13248 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13249 (NATDEPFILES): Move core-aout.o to here.
13250 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13251 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13252 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13253 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13254 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13255 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13256 * config/pa/hpux11.mh (XDEPFILES): Delete.
13257 * config/powerpc/aix.mh (XDEPFILES): Delete.
13258 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13259 * config/powerpc/linux.mh (XDEPFILES): Delete.
13260 * config/romp/rtbsd.mh: Rename XDEPFILES.
13261 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13262 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13263 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13264 * config/s390/s390.mh (XDEPFILES): Delete.
13265 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13266 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13267 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13268 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13269 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13270 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13271 * config/sparc/linux.mh (XDEPFILES): Delete.
13272 * config/vax/vaxult.mh (XDEPFILES): Delete.
13273 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13274 * Makefile.in (DEPFILES): Remove XDEPFILES.
13275
375fc983
AC
132762002-01-17 Andrew Cagney <ac131313@redhat.com>
13277
13278 * utils.c (internal_verror): Fix comments, default is yes not no.
13279 Update queries to match. Default to quit and dump core.
13280
8926118c
AC
132812002-01-17 Andrew Cagney <ac131313@redhat.com>
13282
13283 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13284 copyright.
13285 * defs.h, event-top.c, gdbcmd.h: Ditto.
13286 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13287 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13288 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13289 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13290 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13291 * mi/mi-main.c:Ditto.
13292
13293 * stack.c, symfile.c: Update copyright.
13294
45b7b345
DJ
132952002-01-17 Daniel Jacobowitz <drow@mvista.com>
13296
db728ff7
DJ
13297 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13298 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13299 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13300 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13301
db728ff7
DJ
133022002-01-17 Daniel Jacobowitz <drow@mvista.com>
13303
13304 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13305 * gdbserver/low-lynx.c (myattach): Likewise.
13306 * gdbserver/low-nbsd.c (myattach): Likewise.
13307 * gdbserver/low-sim.c (myattach): Likewise.
13308 * gdbserver/low-sparc.c (myattach): Likewise.
13309 * gdbserver/low-sun3.c (myattach): Likewise.
13310
13311 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13312
db728ff7 13313 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13314 (main): Handle "--attach".
13315
8de3c354
AC
133162002-01-16 Andrew Cagney <ac131313@redhat.com>
13317
13318 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13319 maintainer.
13320
b0129042
DJ
133212002-01-15 Daniel Jacobowitz <drow@mvista.com>
13322
13323 * c-typeprint.c (is_type_conversion_operator): Add additional
13324 check for non-conversion operators.
13325
ba8679fb 133262002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13327
13328 * linux-proc.c: Add "info proc" command, a la procfs.c.
13329 (read_mapping): New function, abstract and re-use code.
13330 (linux_find_memory_regions): Use new func read_mapping.
13331 (linux_info_proc_cmd): New function, implement "info proc".
13332 (_initialize_linux_proc): Add new command "info proc".
13333
e4f9b4d5
MS
133342002-01-15 Michael Snyder <msnyder@redhat.com>
13335
13336 * symfile.c (generic_load): Use bfd_map_over_sections method
13337 instead of manipulating bfd structure members directly.
13338 (add_section_size_callback): New function, bfd sections callback
13339 used by generic_load.
13340 (load_sections_callback): New function, bfd sections callback
13341 used by generic_load.
13342
08cf96df
EZ
133432002-01-15 Elena Zannoni <ezannoni@redhat.com>
13344
abf22e64 13345 [Based on work by Jim Blandy]
08cf96df
EZ
13346 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13347 (builtin_type_vec128): Export.
13348 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13349 types.
13350 (builtin_type_vec128): New builtin type for 128 bit vector
13351 registers.
13352 (build_gdbtypes): Initialize builtin_type_v16qi and
13353 builtin_type_v8hi. Create the vec128 register builtin type
13354 structure.
13355 (build_builtin_type_vec128): New function.
abf22e64 13356 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13357 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13358 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13359 AltiVec register to new builtin type.
13360
d7242108
DJ
133612001-01-15 Daniel Jacobowitz <drow@mvista.com>
13362
13363 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13364 to make_cv_type.
13365
4ee3352d
AC
133662002-01-14 Andrew Cagney <ac131313@redhat.com>
13367
13368 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13369 CLEAN_UP_REGISTER_VALUE.
13370 * regcache.c (supply_register): Update only call.
13371
f015b2e7
AC
133722002-01-14 Andrew Cagney <ac131313@redhat.com>
13373
13374 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13375 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13376 a29k-*-vxworks* targets as obsolete.
13377
356ae49d
MS
133782002-01-14 Michael Snyder <msnyder@redhat.com>
13379
13380 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13381 until we can resolve portability issues.
13382 * gregset.h: Remove references to fpxregs.
13383 * gcore.c (gcore_command): Initialize note_sec to NULL.
13384
ade8f45e
AC
133852002-01-13 Andrew Cagney <ac131313@redhat.com>
13386
13387 * signals.c (target_signal_to_name): Rewrite. Only use
13388 signals[].name when in bounds and non-NULL.
abf22e64 13389
89c49e7a
AC
133902002-01-13 Andrew Cagney <ac131313@redhat.com>
13391
13392 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13393 * signals.c (target_signal_to_name): Verify that SIG is within the
13394 bounds of the signals array.
13395
4daa9f9f
AC
133962002-01-13 Andrew Cagney <ac131313@redhat.com>
13397
13398 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13399
ba4bbdcb
KS
134002002-01-13 Keith Seitz <keiths@redhat.com>
13401
13402 * stack.c (print_frame_info_base): Print the frame's pc
13403 only if when print_frame_info_listing_hook is not defined.
13404
575bbeb6
KS
134052002-01-13 Keith Seitz <keiths@redhat.com>
13406
13407 * varobj.c (varobj_set_value): Make sure that there were no
13408 errors evaluating the object before attempting to set its
13409 value.
13410 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13411 so this offset adjustment is no longer necessary.
13412 (create_child): Don't set the error flag if the child is
13413 a CPLUS_FAKE_CHILD.
13414 (value_of_child): If value_fetch_lazy fails, return NULL
13415 so that callers will be notified that an error occurred.
13416 (c_value_of_variable): Delay check of variable's validity
13417 until later. We actually want all structs and unions to have
13418 the value "{...}".
13419 Do not return "???" for variables which could not be evaluated.
13420 This error condition must be returned to the caller so that it
13421 can get the error condition from gdb.
13422 (cplus_name_of_child): Adjust index for vptr before figuring
13423 out the name of the child.
13424 (cplus_value_of_child): If a child's (real) parent is not valid,
13425 don't even bother trying to give a value for it. Just return
13426 an error. Change all instances in this function.
13427 (cplus_type_of_child): If our parent is one of the "fake"
13428 parents, we need to get at the type of the real parent, and
13429 derive the child's true type using this information.
13430
b76898ab
AC
134312002-01-13 Andrew Cagney <ac131313@redhat.com>
13432
13433 From 2002-01-09 John Marshall <johnm@falch.net>:
13434 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13435 sources.redhat.com, and tweak some related URLs which had
13436 suffered from linkrot.
13437
b6649e88
AC
134382002-01-13 Andrew Cagney <ac131313@redhat.com>
13439
13440 From Jeff law:
13441 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13442 structures passed in registers.
13443
82cc5033
EZ
134442002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13445
13446 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13447 white space which prevented compilation. Reported by DSK
13448 <dsk@student.unsw.edu.au>.
13449
ba5f2f8a
MS
134502002-01-11 Michael Snyder <msnyder@redhat.com>
13451
fbd35540
MS
13452 * symfile.c (build_section_addr_info_from_section_tab):
13453 Use bfd access method instead of manipulating bfd directly.
13454 (syms_from_objfile): Ditto.
13455 (simple_overlay_update_1): Ditto.
13456 (simple_overlay_update): Ditto.
13457 (generic_load): Ditto.
13458 (overlay_unmapped_address): FIXME comment, bfd access methods.
13459 (sections_overlap): FIXME comment, bfd access methods.
13460 (pc_in_mapped_range): FIXME comment, bfd access methods.
13461 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13462 (section_is_mapped): FIXME comment, bfd access methods.
13463 (section_is_overlay): FIXME comment, bfd access methods.
13464
ba5f2f8a
MS
13465 * symfile.c (generic_load): Whitespace and long line cleanups.
13466 Remove duplicate variable, change several local variables to
13467 more appropriate data types.
13468 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13469
17df2af6
AC
134702002-01-12 Andrew Cagney <ac131313@redhat.com>
13471
13472 From Peter Schauer:
13473 * language.c (longest_local_hex_string_custom): Use phex_nz to
13474 convert NUM to a hex string.
13475
ec920329
EZ
134762002-01-12 Elena Zannoni <ezannoni@redhat.com>
13477
13478 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13479 the function.
538a76d6 13480 Update Copyright year.
ec920329 13481
3abd2e01
AC
134822002-01-12 Andrew Cagney <ac131313@redhat.com>
13483
13484 * language.c (longest_raw_hex_string): Delete unused function.
13485
b21b22e0
PS
134862002-01-11 Petr Sorfa <petrs@caldera.com>
13487
13488 * MAINTAINERS (write-after-approval): Add myself.
13489 * dwarf2read.c (read_tag_string_type): Handling of
13490 DW_AT_byte_size.
13491 (read_tag_string_type): FORTRAN fix to prevent propagation of
13492 first string size.
13493 (set_cu_language): Handling of DW_LANG_Fortran95
13494
747fe712
RE
134952002-01-11 Richard Earnshaw <rearnsha@arm.com>
13496
13497 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13498 GETPID(inferior_ptid).
13499 (store_inferior_registers): Likewise.
13500
f1bea926
JM
135012002-01-10 Jason Merrill <jason@redhat.com>
13502
13503 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13504 Fix DW_OP_minus.
13505
ae940673
AC
135062002-01-10 Andrew Cagney <ac131313@redhat.com>
13507
13508 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13509 and bfd/elf32-sh-nbsd.c.
13510
00546b04
MS
135112002-01-10 Michael Snyder <msnyder@redhat.com>
13512
352ed7b4
MS
13513 * NEWS: Mention --pid and corefile/proc-id behavior change.
13514
c18be923
MS
13515 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13516 * gcore.c: Include cli/cli-decode.h instead of command.h.
13517
00546b04
MS
13518 * main.c (captured_main): Add new command line option "--pid".
13519 If the second command line argument (following the symbol-file)
13520 begins with a digit, try to attach to it before trying to open
13521 it as a corefile.
13522 (print_gdb_help): Document the "--pid" argument.
13523
db60ec62
EZ
135242002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13525
13526 * completer.c (command_completer): New function.
13527
13528 * completer.h <command_completer>: Add prototype.
13529
13530 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13531 completer for the "help" command.
13532
39c22d1a
JM
135332002-01-09 Jason Merrill <jason@redhat.com>
13534
13535 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13536
c564377f
MS
135372002-01-09 Michael Snyder <msnyder@redhat.com>
13538
975aec09
MS
13539 * i386-linux-nat.c (fill_fpxregset): Make global.
13540 (store_fpxregset): Ditto.
13541
db4a10fa
MS
13542 * gregset.h (gdb_fpxregset_t): Define.
13543 (supply_fpxregset): Prototype.
13544 (fill_fpxregset): Prototype.
13545
c564377f
MS
13546 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13547
c3d45d70
RE
135482002-01-09 Richard Earnshaw <rearnsha@arm.com>
13549
13550 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13551 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13552 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13553
fcc87af1
AC
135542002-01-09 Andrew Cagney <ac131313@redhat.com>
13555
13556 * MAINTAINERS: Update target maintainer rules so that any
13557 Maintainer can approve a tested patch for a maintenance-only
13558 target.
13559
dd96c05b
RE
135602002-01-09 Richard Earnshaw <rearnsha@arm.com>
13561
d4297db9 13562 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13563
d4297db9 13564 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13565 IN_SIGTRAMP.
13566
145fdc6e
MS
135672002-01-08 Michael Snyder <msnyder@redhat.com>
13568
13569 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13570 real name of the executable, rather than the /proc name.
13571
be4d1333
MS
135722002-01-03 Michael Snyder <msnyder@redhat.com>
13573
13574 Implement a "generate-core-file" command in gdb, save target state.
13575 * gcore.c: New file. Implement new command 'generate-core-file'.
13576 Save a corefile image of the current state of the inferior.
13577 * linux-proc.c: Add linux-specific code for saving corefiles.
13578 * target.h (struct target_ops): Add new target vectors for saving
13579 corefiles; to_find_memory_regions and to_make_corefile_notes.
13580 (target_find_memory_regions): New macro.
13581 (target_make_corefile_notes): New macro.
13582 * target.c (update_current_target): Inherit new target methods.
13583 (dummy_find_memory_regions): New place-holder method.
13584 (dummy_make_corefile_notes): New place-holder method.
13585 (init_dummy_target): Initialize new dummy target vectors.
13586 * exec.c (exec_set_find_memory_regions): New function.
13587 Allow the exec_ops vector for memory regions to be taken over.
13588 (exec_make_note_section): New function, target vector method.
13589 * defs.h (exec_set_find_memory_regions): Export prototype.
13590 * procfs.c (proc_find_memory_regions): New function, corefile method.
13591 (procfs_make_note_section): New function, corefile method.
13592 (init_procfs_ops): Set new target vector pointers.
13593 (find_memory_regions_callback): New function.
13594 (procfs_do_thread_registers): New function.
13595 (procfs_corefile_thread_callback): New function.
13596 * sol-thread.c (sol_find_memory_regions): New function.
13597 (sol_make_note_section): New function.
13598 (init_sol_thread_ops): Initialize new target vectors.
13599 * inftarg.c (inftarg_set_find_memory_regions): New function.
13600 Allow to_find_memory_regions vector to be taken over.
13601 (inftarg_set_make_corefile_notes): New function.
13602 Allow to_make_corefile_notes vector to be taken over.
13603 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13604 interface layer if not target_has_execution (may be a corefile).
13605 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13606 * config/sparc/sun4sol2.mh: Ditto.
13607 * config/alpha/alpha-linux.mh: Ditto.
13608 * config/arm/linux.mh: Ditto.
13609 * config/i386/x86-64linux.mh: Ditto.
13610 * config/ia64/linux.mh: Ditto.
13611 * config/m68k/linux.mh: Ditto.
13612 * config/mips/linux.mh: Ditto.
13613 * config/powerpc/linux.mh: Ditto.
13614 * config/sparc/linux.mh: Ditto.
13615
c6b92abd
MS
136162002-01-07 Michael Snyder <msnyder@redhat.com>
13617
13618 * arm-linux-nat.c: Remove references to regcache.c internal data
13619 (registers[] and register_valid[]).
13620
4b09dc8c
MS
136212002-01-07 Michael Snyder <msnyder@redhat.com>
13622
abf22e64
AJ
13623 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13624 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13625 symbol file and shlibs.
13626 * Makefile.in: Add rule for linux-proc.o.
13627 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13628 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13629 * config/arm/linux.mh: Ditto.
13630 * config/i386/linux.mh: Ditto.
13631 * config/i386/x86-64linux.mh: Ditto.
13632 * config/ia64/linux.mh: Ditto.
13633 * config/m68k/linux.mh: Ditto.
13634 * config/mips/linux.mh: Ditto.
13635 * config/powerpc/linux.mh: Ditto.
13636 * config/sparc/linux.mh: Ditto.
13637
c25b74ac
PM
136382002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13639
13640 * win32-nat.c: Add i386-tdep.h dependency.
13641
94cd915f
MS
136422002-01-07 Michael Snyder <msnyder@redhat.com>
13643
c7cccb76
MS
13644 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13645 instead of bfd_get_arch_size. Don't bail out just because
13646 there's no exec_bfd.
abf22e64 13647
34c0bd93
MS
13648 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13649 * p-valprint.c (pascal_object_print_value): Ditto.
13650 * somread.c (som_symtab_read): Ditto.
13651 * symfile.c (simple_free_overlay_region_table): Ditto.
13652 * valops.c (value_assign): Ditto.
13653
21c1c920
MS
13654 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13655 use tilde_expand and strerror for opening save-tracepoints file.
13656
5bbd998e
MS
13657 * thread-db.c (thread_db_new_objfile): Indendation fix.
13658
94cd915f
MS
13659 * infptrace.c (GDB_MAX_ALLOCA): New define.
13660 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13661 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13662 can be overridden with whatever value is appropriate to the host).
13663 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13664 alloca to allocate potentially large buffer.
13665 * rs6000-nat.c (child_xfer_memory): Ditto.
13666 * symm-nat.c (child_xfer_memory): Ditto.
13667 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13668
494e8a93
JSC
136692002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13670
13671 From Nick Clifton <nickc@redhat.com>
13672 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13673
d0e1d48e
MS
136742002-01-07 Michael Snyder <msnyder@redhat.com>
13675
abf22e64 13676 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13677 Don't use exec_bfd if it's NULL.
13678
290b2c7a
MK
136792002-01-06 Mark Kettenis <kettenis@gnu.org>
13680
abf22e64 13681 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13682
aef21287
AC
136832002-01-06 Andrew Cagney <ac131313@redhat.com>
13684
13685 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13686 * gnu-nat.c: Ditto.
13687
30efa627
AC
136882002-01-06 Andrew Cagney <ac131313@redhat.com>
13689
13690 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13691 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13692 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13693 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13694 z8k-coff have not been multi-arched. Update z8k-coff build
13695 status.
13696
9b4ff276
AC
136972002-01-06 Andrew Cagney <ac131313@redhat.com>
13698
13699 * MAINTAINERS: Mark a29k target as obsolete.
13700 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13701 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13702 comments.
13703 * NEWS: Note that a29k targets are obsolete.
13704 * a29k-tdep.c: Mark as obsolete.
13705 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13706 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13707 a29k-*-vxworks* targets as obsolete.
13708 * remote-adapt.c: Obsolete.
13709 * remote-eb.c: Obsolete.
13710 * remote-mm.c: Obsolete.
13711 * remote-udi.c: Obsolete.
13712 * config/a29k/a29k-udi.mt: Obsolete.
13713 * config/a29k/a29k.mt: Obsolete.
13714 * config/a29k/tm-a29k.h: Obsolete.
13715 * config/a29k/tm-vx29k.h: Obsolete.
13716 * config/a29k/vx29k.mt: Obsolete.
13717
a9011d31
AC
137182002-01-05 Andrew Cagney <ac131313@redhat.com>
13719
13720 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13721 with BFD_ENDIAN_BIG.
13722
9299404e
AC
137232002-01-05 Andrew Cagney <ac131313@redhat.com>
13724
13725 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13726 * configure, config.in: Re-generate.
13727 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13728 * defs.h: Do not include <endian.h>.
13729
7e89e357
JT
137302002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13731
13732 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13733 * config.in: Regenerate.
13734 * configure.in: Update copyright years.
13735 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13736 * configure: Regenerate.
13737 * i386bsd-nat.c: Update copyright years.
13738 (fill_gregset): Use regcache_collect.
13739 (fetch_inferior_registers): Only fetch integer registers
13740 if requested to do so. Add support for XMM registers
13741 using PT_GETXMMREGS.
13742 (store_inferior_registers): Only store integer registers
13743 if requested to do so. Add support for XMM registers
13744 using PT_SETXMMREGS.
13745 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13746 (store_inferior_registers): Remove.
13747 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13748 (fetch_elfcore_registers): New function.
13749 (i386nbsd_elfcore_fns): New.
13750 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13751 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13752 i386bsd-nat.o.
13753 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13754 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13755 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13756 * config/i386/tm-nbsd.h: Update copyright years.
13757 (HAVE_SSE_REGS): Define.
13758 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13759 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13760 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13761 (SIGCONTEXT_PC_OFFSET): Remove.
13762 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13763
a752853e
AC
137642002-01-05 Andrew Cagney <ac131313@redhat.com>
13765
13766 * configure.tgt: Remove powerpc-*-macos* target.
13767 * config/m68k/xm-mpw.h: Delete file.
13768 * config/xm-mpw.h: Delete file.
13769 * ser-mac.c: Delete file.
13770 * mpw-make.sed: Delete file.
13771 * mpw-config.in: Delete file.
13772 * mac-xdep.c: Delete file.
13773 * mac-gdb.r: Delete file.
13774 * mac-defs.h: Delete file.
13775 * mac-nat.c: Delete file.
13776 * config/powerpc/macos.mh: Delete file.
13777 * config/powerpc/macos.mt: Delete file.
13778 * config/powerpc/nm-macos.h: Delete file.
13779 * config/powerpc/tm-macos.h: Delete file.
13780 * source.c (openp, open_source_file): Remove obsolete code.
13781 * top.c (gdb_readline): Ditto.
13782 * utils.c (query): Ditto.
13783 * event-top.c (display_gdb_prompt): Ditto.
13784 * Makefile.in (ser-mac.o): Delete obsolete target.
13785 * NEWS: Update.
13786
d7449b42
AC
137872002-01-04 Andrew Cagney <ac131313@redhat.com>
13788
13789 * defs.h (BIG_ENDIAN): Delete macro definition.
13790 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13791 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13792 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13793 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13794 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13795 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13796 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13797 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13798 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13799 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13800 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13801 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13802 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13803 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13804 * gdbarch.c: Re-generate.
13805
356374e8
DJ
138062002-01-04 Daniel Jacobowitz <drow@mvista.com>
13807
13808 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13809 for core files.
13810
a2b8f8f8
JT
138112002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13812
13813 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13814
12466af9
AC
138152002-01-04 Andrew Cagney <ac131313@redhat.com>
13816
13817 * value.h (value_ptr): Delete typedef.
13818
3549ab40
JT
138192002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13820
13821 * i386nbsd-nat.c: Update copyright years.
13822 Include i386-tdep.h.
13823
fedbd091
EZ
138242002-01-04 Elena Zannoni <ezannoni@redhat.com>
13825
13826 * stabsread.c: Update copyright years.
13827
13828 From Debashis Mahata <debashis.mahata@wipro.com>:
13829 (read_struct_fields): Deal with Sun C compiler erroneous stab
13830 output for structs and unions.
fec8b34f 13831 Fix PR gdb/269.
fedbd091 13832
eb43544b
DJ
138332002-01-04 Daniel Jacobowitz <drow@mvista.com>
13834
13835 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13836 prototype.
13837
1514d34e
DJ
138382002-01-04 Daniel Jacobowitz <drow@mvista.com>
13839
13840 * cp-abi.c: Fix whitespace.
13841 (baseclass_offset): New wrapper function.
13842 * cp-abi.h (baseclass_offset): Add prototype.
13843 (struct cp_abi_ops): Add baseclass_offset pointer.
13844
13845 * valops.c (vb_match): Move to...
13846 * gnu-v2-abi.c (vb_match): here.
13847 * valops.c (baseclass_offset): Move to...
13848 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13849
13850 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13851
13852 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13853 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13854 * hpacc-abi.c (init_hpacc_ops): Likewise.
13855
7f8c9282
DJ
138562002-01-04 Daniel Jacobowitz <drow@mvista.com>
13857
13858 * valops.c (find_overload_match): Accept obj as a
13859 reference parameter. Update it before returning.
13860 * value.h (find_overload_match): Update prototype.
13861 * eval.c (evaluate_subexp_standard): Pass object to
13862 find_overload_match by reference.
13863
f23631e4
AC
138642002-01-03 Andrew Cagney <ac131313@redhat.com>
13865
13866 * valarith.c: Replace value_ptr with struct value pointer. Remove
13867 register attribute from value declarations.
13868 * valops.c: Ditto.
13869 * value.h: Ditto.
13870 * scm-lang.c (scm_lookup_name): Ditto.
13871
79e10fab 138722002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13873
79e10fab
AC
13874 Abstract the functionality of iterating over mapped memory
13875 regions into a general purpose iterator function.
abf22e64 13876 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13877 iterator for memory sections.
13878 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13879 (solib_mappings_callback): New function, callback for above.
13880 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13881 (info_mappings_callback): New function, callback for above.
13882
13883 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13884
c5ad026a
MK
138852002-01-01 Mark Kettenis <kettenis@gnu.org>
13886
d2a7c97a
MK
13887 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13888 * i386-tdep.c: Include "elf-bfd.h".
13889 (process_note_abi_tag_sections): New function.
13890 (i386_gdbarch_init): Add code to recognize various OS/ABI
13891 combinations.
13892
c5ad026a
MK
13893 * maint.c (_initialize_maint_cmds): Add missing \ in
13894 string-literal.
13895
a1a5b71e 13896For older changes see ChangeLog-2001
c906108c
SS
13897\f
13898Local Variables:
13899mode: change-log
13900left-margin: 8
13901fill-column: 74
13902version-control: never
13903End: