* osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a09a320d
JB
12002-12-02 J. Brobecker <brobecker@gnat.com>
2
3 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
4 * osabi.c (gdb_osabi_name): Add strings images for the two new
5 enum values.
6 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
7
8a81a99e
AC
82002-12-02 Andrew Cagney <ac131313@redhat.com>
9
10 * MAINTAINERS (Java): Global maintainers are responible for Java.
11 (Past Maintainers): Mention both Anthony Green and Per Bothner as
12 part Java maintainers.
13
7af35dad
JB
142002-12-02 J. Brobecker <brobecker@gnat.com>
15
16 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
17 Fixes a compilation failure on AiX.
18
f4ede9bc
JB
192002-12-02 J. Brobecker <brobecker@gnat.com>
20
21 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
22 why aix-thread.o is not listed.
23
ae45cd16
AC
242002-12-01 Andrew Cagney <ac131313@redhat.com>
25
26 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
27 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
28 * gdbarch.h, gdbarch.c: Re-generate.
29 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
30 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
31 * config/pa/tm-hppa.h, frame.h: Update.
32 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
33 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
34 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
35 * cris-tdep.c, alpha-tdep.c: Update.
36 * frame.c (set_unwind_by_pc, create_new_frame): Use either
37 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
38 (get_prev_frame): Ditto.
39
020cc13c
AC
402002-11-30 Andrew Cagney <cagney@redhat.com>
41
42 * exec.c (xfer_memory): Replace boolean with int.
43 * p-exp.y: Use 0 instead of false.
44 * corelow.c (gdb_check_format): Change return type to int from
45 boolean.
46 * utils.c: Don't include <curses.h> or <term.h> first.
47
1d9b2aa8
SC
482002-11-29 Stephane Carrez <stcarrez@nerim.fr>
49
50 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
51 (m68hc11_register_byte): Remove.
52 (m68hc11_gdbarch_init): Don't set the above.
53
a193e397
AC
542002-11-29 Andrew Cagney <cagney@redhat.com>
55
56 * remote-mips.c (mips_initialize): Force a selected frame rebuild
57 by calling get_selected_frame.
58 * ocd.c (ocd_start_remote): Use get_selected frame instead of
59 set_current_frame, create_new_frame, select_frame and
60 get_current_frame.
61 * remote-e7000.c (e7000_start_remote): Ditto.
62 * remote-mips.c (common_open): Ditto
63 * remote-rdp.c (remote_rdp_open): Ditto.
64
b5fc49aa
AS
652002-11-29 Andreas Schwab <schwab@suse.de>
66
67 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
68 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
69 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
70 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
71 read_memory_unsigned_integer instead of read_memory_integer when
72 dealing with addresses and instruction opcodes.
73 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
74 (m68k_linux_frame_saved_pc): Likewise.
75
6e7f8b9c
AC
762002-11-29 Andrew Cagney <ac131313@redhat.com>
77
78 * stack.c (selected_frame, select_frame): Move from here ...
79 * frame.c (selected_frame, select_frame): ... to here. Include
80 "language.h".
81 * Makefile.in (frame.o): Update dependencies.
82 * frame.c (get_selected_frame): New function.
83 * frame.h (get_selected_frame): Declare.
84 (deprecated_selected_frame): Rename selected_frame.
85 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
86 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
87 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
88 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
89 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
90 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
91 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
92 * z8k-tdep.c, cli/cli-cmds.c: Update.
93
805e2818
AC
942002-11-29 Andrew Cagney <ac131313@redhat.com>
95
96 * frame.h (get_selected_block): Add comments.
97
1058bca7
AC
982002-11-28 Andrew Cagney <ac131313@redhat.com>
99
100 * frame.c (pc_notcurrent): New function.
101 (find_frame_sal): New function.
102 * frame.h (find_frame_sal): Declare.
103 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
104 * stack.c (print_frame_info_base): Use find_frame_sal instead of
105 find_pc_line.
1058bca7
AC
106 (frame_info): Ditto.
107 * ada-lang.c (find_printable_frame): Ditto.
108
d92419e5
JB
1092002-11-28 J. Brobecker <brobecker@gnat.com>
110
111 * configure.in: Check that the pthdebug library is recent enough
112 before enabling thread support on native AiX.
113 * configure: Regenerate.
114
115 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
116 from the list of object files as it is now appended by configure
117 if thread support is enabled.
118 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
119 if thread support is enabled.
120
8c69fc49
AC
1212002-11-28 Andrew Cagney <cagney@redhat.com>
122
123 * stack.c (get_selected_block): In-line get_current_block.
124 * frame.h (get_current_block): Delete declaration.
125 * blockframe.c (get_current_block): Delete function.
126
07555a72
AC
1272002-11-28 Andrew Cagney <ac131313@redhat.com>
128
129 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
130 USE_GENERIC_DUMMY_FRAMES.
131 * gdbarch.h, gdbarch.c: Regenerate.
132 * valops.c, frame.c: Update.
133 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
134 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
135 * config/pa/tm-hppa.h, blockframe.c: Update.
136 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
137 * m68k-tdep.c, alpha-tdep.c: Ditto.
138
139 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
140 * mips-tdep.c: Ditto.
141
b99fa2d2
AC
1422002-11-27 Andrew Cagney <ac131313@redhat.com>
143
144 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
145 (USE_GENERIC_DUMMY_FRAMES): Default to true.
146 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
147 * gdbarch.c, gdbarch.h: Re-generate.
148 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
149 (CALL_DUMMY_LOCATION): Delete macro definition.
150 (PC_IN_CALL_DUMMY): Delete macro definitions.
151
152 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
153 default is already generic_pc_in_call_dummy.
154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
155 * v850-tdep.c (v850_gdbarch_init): Ditto.
156 * sh-tdep.c (sh_gdbarch_init): Ditto.
157 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
158 * mips-tdep.c (mips_gdbarch_init): Ditto.
159 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
161 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
162 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
163 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
164 * avr-tdep.c (avr_gdbarch_init): Ditto.
165
166 * arm-tdep.c (arm_gdbarch_init): Do not set
167 use_generic_dummy_frames, default is already 1.
168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
169 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
170 * v850-tdep.c (v850_gdbarch_init): Ditto.
171 * sh-tdep.c (sh_gdbarch_init): Ditto.
172 * s390-tdep.c (s390_gdbarch_init): Ditto.
173 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
174 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
175 * mips-tdep.c (mips_gdbarch_init): Ditto.
176 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
178 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
179 * i386-tdep.c (i386_gdbarch_init): Ditto.
180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
181 * frv-tdep.c (frv_gdbarch_init): Ditto.
182 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
183 * cris-tdep.c (cris_gdbarch_init): Ditto.
184 * avr-tdep.c (avr_gdbarch_init): Ditto.
185
186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
187 call_dummy_location, default is already AT_ENTRY_POINT.
188 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
189 * v850-tdep.c (v850_gdbarch_init): Ditto.
190 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
191 * sh-tdep.c (sh_gdbarch_init): Ditto.
192 * s390-tdep.c (s390_gdbarch_init): Ditto.
193 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
195 * mips-tdep.c (mips_gdbarch_init): Ditto.
196 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
198 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
199 * i386-tdep.c (i386_gdbarch_init): Ditto.
200 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
201 * frv-tdep.c (frv_gdbarch_init): Ditto.
202 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
203 * cris-tdep.c (cris_gdbarch_init): Ditto.
204 * avr-tdep.c (avr_gdbarch_init): Ditto.
205 * arm-tdep.c (arm_gdbarch_init): Ditto.
206 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
207
abc0af47
AC
2082002-11-28 Andrew Cagney <cagney@redhat.com>
209
210 * frame.h: Update comments on set_current_frame, create_new_frame,
211 flush_cached_frames, reinit_frame_cache, select_frame and
212 selected_frame.
213
ed5cedc5
AC
2142002-11-27 Andrew Cagney <cagney@redhat.com>
215
216 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
217 deprecated pc_in_call_dummy function.
218 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
219 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
220 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
221 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
222 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
223
b2a1bd4f
MH
2242002-11-26 Martin M. Hunt <hunt@redhat.com>
225
226 * Makefile.in: Remove Tix dependencies.
227 * acinclude.m4: Ditto.
228 * aclocal.m4: Ditto.
229 * configure.in: Ditto.
230 * configure: Regenerated.
231
f09cffaa
AC
2322002-11-26 Andrew Cagney <ac131313@redhat.com>
233
234 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
235 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
236 * gdbarch.c: Re-generate.
237
e92b0cc9
AC
2382002-11-26 Andrew Cagney <ac131313@redhat.com>
239
240 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
241 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
242 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
243 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
244 pc_in_call_dummy_at_entry_point.
245 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
246 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
247 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
248 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
249 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
250 pc_in_call_dummy_on_stack.
251 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
252 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
253 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
254 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
255 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
256
b4b88177
AC
2572002-11-26 Andrew Cagney <ac131313@redhat.com>
258
259 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
260 pc_in_call_dummy_before_text_end
261 (deprecated_pc_in_call_dummy_after_text_end): Rename
262 pc_in_call_dummy_after_text_end.
263 (deprecated_pc_in_call_dummy_on_stack): Rename
264 pc_in_call_dummy_on_stack.
265 (deprecated_pc_in_call_dummy_at_entry_point): Rename
266 pc_in_call_dummy_at_entry_point.
267 * m68k-tdep.c (m68k_gdbarch_init): Update.
268 * s390-tdep.c (s390_gdbarch_init): Update.
269 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
270 * vax-tdep.c (vax_gdbarch_init): Update.
271 * sparc-tdep.c (sparc_gdbarch_init): Update.
272 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
273 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
274 * i386-tdep.c (i386_gdbarch_init): Update.
275 * frv-tdep.c (frv_gdbarch_init): Update.
276 * cris-tdep.c (cris_gdbarch_init): Update.
277 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
278 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
279 (deprecated_pc_in_call_dummy_after_text_end)
280 (deprecated_pc_in_call_dummy_on_stack)
281 (deprecated_pc_in_call_dummy_at_entry_point): Update.
282 * alpha-tdep.c (alpha_gdbarch_init): Update.
283
eb784848
DJ
2842002-11-25 Daniel Jacobowitz <drow@mvista.com>
285
286 * acconfig.h (HAVE_PREAD64): Add.
287 * configure.in: Check for pread64.
288 * config.in: Regenerated.
289 * configure: Regenerated.
290 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
291 * linux-proc.c (linux_proc_xfer_memory): New function.
292 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
293
933c6fe4
DC
2942002-11-25 David Carlton <carlton@math.stanford.edu>
295
296 * dwarf2read.c (scan_partial_symbols): Descend into namespace
297 pdi's with no name.
298
158a8022
AC
2992002-11-25 Andrew Cagney <ac131313@redhat.com>
300
301 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
302 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
303
481d0f41
JB
3042002-11-25 Jim Blandy <jimb@redhat.com>
305
e8289572
JB
306 * symfile.c (init_objfile_sect_indices): New function.
307 (default_symfile_offsets): Move the section-index-initializing
308 stuff into init_objfile_sect_indices, and call that.
309
b29c9944
JB
310 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
311 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
312
13de58df
JB
313 * symfile.c (syms_from_objfile): Adjust indentation.
314
481d0f41
JB
315 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
316 || info_verbose isn't true.
317
7d6a26a7
AC
3182002-11-24 Andrew Cagney <ac131313@redhat.com>
319
320 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
321 default to get_frame_base.
322 * gdbarch.h, gdbarch.c: Regenerate.
323 * arch-utils.c (default_frame_address): Delete function.
324 * arch-utils.h (default_frame_address): Delete declaration
325
6abe1021
PM
3262002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
327
328 * varobj.c (find_frame_addr_in_frame_chain):
329 Use get_frame_base instead of FRAME_FP,
330 obvious fix.
331
c193f6ac
AC
3322002-11-19 Andrew Cagney <ac131313@redhat.com>
333
334 * frame.h (FRAME_FP): Delete macro.
335 (get_frame_base): New function declaration.
336 * frame.c (get_frame_base): New function.
337 (get_frame_id): Use ->frame.
338 (frame_find_by_id): Rewrite to use get_frame_id.
339 * blockframe.c: Use get_frame_base instead of FRAME_FP.
340 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
341 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
342 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
343 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
344 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
345 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
346
e5d2af14
AC
3472002-11-24 Andrew Cagney <ac131313@redhat.com>
348
349 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
350
931d12c6
AC
3512002-11-24 Andrew Cagney <ac131313@redhat.com>
352
353 * frame.c (set_unwind_by_pc): Revert change below, use
354 PC_IN_CALL_DUMMY.
355 (get_prev_frame): Ditto.
356
5e0f933e
AC
3572002-11-24 Andrew Cagney <ac131313@redhat.com>
358
359 * dummy-frame.c (pc_in_dummy_frame): New function.
360 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
361 (find_dummy_frame): Update comment.
362 (generic_pop_current_frame): Use get_frame_type.
363 * dummy-frame.h (pc_in_dummy_frame): Declare.
364 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
365 (create_new_frame): Use pc_in_dummy_frame.
366 (get_prev_frame): Use pc_in_dummy_frame.
367 (frame_saved_regs_register_unwind): Use get_prev_frame.
368 (deprecated_generic_get_saved_register): Use get_prev_frame.
369
7d8547c9
AC
3702002-11-23 Andrew Cagney <ac131313@redhat.com>
371
372 * blockframe.c (find_frame_addr_in_frame_chain): Move function
373 from here ...
374 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
375 (varobj_create): Note that frame ID should be used.
376 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
377
0225421b
AC
3782002-11-23 Andrew Cagney <ac131313@redhat.com>
379
380 * breakpoint.c: Include "gdb_assert.h".
381 (deprecated_frame_in_dummy): Assert that generic dummy frames are
382 not being used.
383 * Makefile.in (breakpoint.o): Update dependencies.
384 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
385 deprecated_frame_in_dummy.
386 * stack.c (print_frame_info_base): Ditto.
387 (frame_info): Ditto.
388 (print_frame_info_base): Ditto. Delete dead code.
389
32eeb91a
AS
3902002-11-23 Andreas Schwab <schwab@suse.de>
391
392 * Makefile.in (m68k_tdep_h): Define.
393 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
394 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
395 * m68k-tdep.c: Move register number enum ...
396 * m68k-tdep.h: ... to this new file and rename the constants from
397 E_* to M68K_*. All uses changed.
398 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
399 * abug-rom.c: Include "m68k-tdep.h". Use
400 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
401 * cpu32bug-rom.c: Likewise.
402 * dbug-rom.c: Likewise.
403 * m68k-tdep.c: Likewise.
404 * m68klinux-nat.c: Likewise.
405 * remote-est.c: Likewise.
406 * rom68k-rom.c: Likewise.
407 * config/m68k/tm-linux.h: Likewise.
408
9648bac8
AC
4092002-11-23 Andrew Cagney <ac131313@redhat.com>
410
411 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
412 dummy frame initialization code.
413 * mips-tdep.c (mips_gdbarch_init): Ditto.
414
91a175b3
CF
4152002-11-22 Christopher Faylor <cgf@redhat.com>
416
417 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
418 attach will hang.
419
f4ded5b1
AC
4202002-11-22 Andrew Cagney <ac131313@redhat.com>
421
422 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
423 to default_frame_address.
424 * gdbarch.h, gdbarch.c: Re-generate.
425
426 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
427 or frame_locals_address to default_frame_address.
428 * m68k-tdep.c (m68k_gdbarch_init): Update.
429 * i386-tdep.c (i386_gdbarch_init): Update.
430 * frv-tdep.c (frv_gdbarch_init): Update.
431 * sh-tdep.c (sh_gdbarch_init): Update.
432 * v850-tdep.c (v850_gdbarch_init): Update.
433 * sparc-tdep.c (sparc_gdbarch_init): Update.
434 * mips-tdep.c (mips_gdbarch_init): Update.
435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
436 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
438
439 * cris-tdep.c (cris_frame_args_address): Delete function.
440 (cris_frame_locals_address): Delete function.
441 (cris_gdbarch_init): Do not set frame_args_address or
442 frame_locals_address.
443
f7c1e0f3
MS
4442002-11-22 Michael Snyder <msnyder@redhat.com>
445
446 * thread-db.c (thread_db_load): Tell the user what's going on
447 if dlopen fails on libthread_db.
448
03dac896
AS
4492002-11-23 Andreas Schwab <schwab@suse.de>
450
451 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
452 invariant return values.
453
7a67d0fe
AS
4542002-11-22 Andreas Schwab <schwab@suse.de>
455
456 * valops.c (value_slice): Move declaration of `offset' to avoid
457 warning.
458
5633f842
CF
4592002-11-22 Christopher Faylor <cgf@redhat.com>
460
461 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
462 (struct so_stuff): Add end_addr field.
463 (register_loaded_dll): Calculate and store end address of loaded dll.
464 (solib_address): New function.
465 (child_solib_loaded_library_pathname): Pass carefully constructed
466 section info to safe_symbol_file_add rather than ignoring it.
467 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
468 DLL is loaded.
469 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
470 (child_create_inferior): Fix a compiler warning.
471 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
472 (solib_address): Declare new function.
473
d85fe7f7
AS
4742002-11-22 Andreas Schwab <schwab@suse.de>
475
476 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
477 and FPS registers.
478
8308e54c
DJ
4792002-11-21 Daniel Jacobowitz <drow@mvista.com>
480
481 * maint.c (_initialize_maint_cmds): Fix typo. From
482 Francesco Potorti` <pot@gnu.org>.
483
8997bd5e
AC
4842002-11-21 Andrew Cagney <cagney@redhat.com>
485
486 * mips-tdep.c (mips_dump_tdep): Delete references to
487 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
488 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
489 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
490 * printcmd.c (build_address_symbolic): Delete calls to
491 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
492 (address_info): Ditto.
493 Fix PR gdb/773.
494
4e87b832
KD
4952002-11-19 Klee Dienes <kdienes@apple.com>
496 Adam Fedor <fedor@gnu.org>
497
498 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
499 the ability to explicitly specify the quote characters and word
500 break characters; if NULL is specified for either, use the old
501 behavior of using the characters used by the completer.
502 (skip_chars): New function. Convenience wrapper around
503 skip_quoted_chars to provide the original skip_chars behavior.
504 * completer.h (skip_quoted_chars): Add prototype.
505
9ba8d803
AC
5062002-11-19 Andrew Cagney <ac131313@redhat.com>
507
508 Problems reported by Paul Eggert.
509 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
510
0a595803
AS
5112002-11-19 Andreas Schwab <schwab@suse.de>
512
513 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
514 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
515 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
516 (m68k_linux_frame_saved_pc): Move to ...
517 * m68klinux-tdep.c: ... here. New file.
518 * Makefile.in (m68klinux-tdep.o): Add dependencies.
519 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
520
e8afa4d7
AF
5212002-11-19 Adam Fedor <fedor@gnu.org>
522
523 * objc-exp.y: Revert to old skip_quoted usage.
524
a76c9d72
AF
5252002-11-19 Adam Fedor <fedor@gnu.org>
526
527 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
528 (objc_lang_h): Define.
529 (YYFILES): Add objc-exp.tab.c.
530 (local-maintainer-clean): Remove objc-exp.tab.c.
531 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
532
fd0e9d45
PM
5332002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
534
535 * p-exp.y (typecast rule): Add automatic dereference of
536 pascal classes if needed.
537 (THIS): Set current_type.
538 Automatically dereference pascal classes.
539 (typebase rule): Add ^typebase recognition.
540
82eeeb94
AF
5412002-11-18 Adam Fedor <fedor@gnu.org>
542
543 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
544 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
545 (op_name): Handle OP_OBJC_SELF.
546 * Makefile.in (expprint.o): Add additional depends.
547
646df18d
AF
5482002-11-18 Adam Fedor <fedor@gnu.org>
549
550 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
551 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
552 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
553 * objc-exp.y: Likewise.
554
379b85df
AF
5552002-11-18 Adam Fedor <fedor@gnu.org>
556
557 * gdb/parser-defs.h: (struct objc_class_str): New structure
558 for parsing ObjC classes.
559
85cf597a
AC
5602002-11-18 Andrew Cagney <ac131313@redhat.com>
561
562 * stack.c (frame_relative_level): Copy function from here ...
563 * frame.c (frame_relative_level): ...to here.
564
5a203e44
AC
5652002-11-18 Andrew Cagney <ac131313@redhat.com>
566
567 * frame.h (enum frame_type): Define.
568 (get_frame_type): Declare.
569 (struct frame_info): Add field `type'. Delete field
570 signal_handler_caller.
571 (deprecated_set_frame_signal_handler_caller): Declare.
572 * frame.c (get_frame_type): New function.
573 (deprecated_set_frame_type): New function.
574 (create_new_frame): Set the frame's type.
575 (get_prev_frame): Similar.
576 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
577 * s390-tdep.c: Ditto.
578 * m68klinux-nat.c: Ditto.
579 * ns32k-tdep.c: Ditto.
580 * x86-64-linux-tdep.c: Ditto.
581 * vax-tdep.c: Ditto.
582 * rs6000-tdep.c: Ditto.
583 * ppc-linux-tdep.c: Ditto.
584 * i386-interix-tdep.c: Ditto.
585 * mips-tdep.c: Ditto.
586 * m68k-tdep.c: Ditto.
587 * hppa-tdep.c: Ditto.
588 * ia64-tdep.c: Ditto.
589 * cris-tdep.c: Ditto.
590 * arm-tdep.c: Ditto.
591 * alpha-tdep.c: Ditto.
592 * i386-tdep.c: Ditto.
593 * stack.c: Ditto.
594 * ada-lang.c: Ditto.
595 * blockframe.c: Update.
596 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
597 deprecated_set_frame_type instead of signal_handler_caller.
598 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
599 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
600 * breakpoint.h: Delete FIXME suggesting get_frame_type.
601
bf4ae8b2
KD
6022002-11-18 Klee Dienes <kdienes@apple.com>
603
604 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
605
a672ef13
KD
6062002-11-18 Klee Dienes <kdienes@apple.com>
607
608 * buildsym.c (pop_context): Add comment.
609
0c5e171a
KD
6102002-11-18 Klee Dienes <kdienes@apple.com>
611
612 * buildsym.h (pop_context): Convert to function, defined in
613 buildsym.c.
614 * buildsym.c: Include gdb_assert.h.
615 (pop_context): Implement as C function. Add check for stack
616 underflow.
617 * dbxread.c (process_one_symbol): Complain and stop processing
618 that symbol if we are already at the top of the context stack for
619 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
620 when processing N_RBRAC.
621
8a1f4c4c
DJ
6222002-11-16 Daniel Jacobowitz <drow@mvista.com>
623
624 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
625 define.
626 (struct target_waitstatus): Add opaque definition.
627 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
628 * exec.c (init_exec_ops): Likewise.
629 * fork-child.c (clone_and_follow_inferior): Remove.
630 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
631 * inferior.h (clone_and_follow_inferior): Remove prototype.
632 * infrun.c (follow_fork_mode_both): Remove.
633 (follow_fork_mode_kind_names): Remove commented out "both".
634 (follow_inferior_fork): Remove follow_fork_mode_both support.
635 * inftarg.c (child_clone_and_follow_inferior): Remove.
636 (child_post_follow_inferior_by_clone): Remove.
637 (init_child_ops): Don't set to_clone_and_follow_inferior
638 or to_post_follow_inferior_by_clone.
639 * target.c (default_clone_and_follow_inferior): Remove.
640 (cleanup_target): Don't set to_clone_and_follow_inferior
641 or to_post_follow_inferior_by_clone.
642 (find_default_clone_and_follow_inferior): Remove.
643 (init_dummy_target): Don't set to_clone_and_follow_inferior.
644 (debug_to_clone_and_follow_inferior): Remove.
645 (debug_to_post_follow_inferior_by_clone): Remove.
646 (setup_target_debug): Don't set to_clone_and_follow_inferior
647 or to_post_follow_inferior_by_clone.
648 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
649 and to_post_follow_inferior_by_clone.
650 (child_clone_and_follow_inferior): Remove prototype.
651 (child_post_follow_inferior_by_clone): Remove prototype.
652 (target_clone_and_follow_inferior): Remove macro.
653 (target_post_follow_inferior_by_clone): Remove macro.
654 (find_default_clone_and_follow_inferior): Remove prototype.
655
47932f85
DJ
6562002-11-16 Daniel Jacobowitz <drow@mvista.com>
657
658 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
659 inferior_has_vforked, and inferior_has_execd instead of
660 target_has_forked, target_has_vforked, and target_has_execd.
661 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
662 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
663 (CHILD_WAIT): Define.
664 (child_wait): Add prototype.
665 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
666 Add prototype.
667 (hpux_has_vforked): Likewise, from child_has_vforked.
668 (hpux_has_execd): Likewise, from child_has_execd.
669 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
670 (not_same_real_pid, child_wait): New, copied from inftarg.c.
671 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
672 and hpux_has_syscall_event instead of the target hooks.
673 * infrun.c (inferior_has_forked, inferior_has_vforked)
674 (inferior_has_execd): New functions.
675 * inftarg.c (not_same_real_pid): Remove.
676 (child_wait): Remove references to not_same_real_pid,
677 target_has_forked, target_has_vforked, target_has_execd,
678 and target_has_syscall_event.
679 (child_has_forked, child_has_vforked, child_has_execd)
680 (child_has_syscall_event): Remove.
681 (init_child_ops): Remove references to child_has_forked,
682 child_has_vforked, child_has_execd, and child_has_syscall_event.
683 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
684 (hpux_has_vforked): Likewise, from child_has_vforked.
685 (hpux_has_execd): Likewise, from child_has_execd.
686 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
687 * target.c (cleanup_target): Remove references to
688 to_has_forked, to_has_vforked, to_has_execd, and
689 to_has_syscall_event.
690 (update_current_target): Likewise.
691 (setup_target_debug): Likewise.
692 (debug_to_has_forked): Remove.
693 (debug_to_has_vforked): Remove.
694 (debug_to_has_execd): Remove.
695 (debug_to_has_syscall_event): Remove.
696 * target.h (struct target_ops): Remove to_has_forked.
697 to_has_vforked, to_has_execd, and to_has_syscall_event.
698 (child_has_forked, child_has_vforked, child_has_execd)
699 (child_has_syscall_event): Remove prototypes.
700 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
701 prototypes.
702 (target_has_forked, target_has_vforked, target_has_execd)
703 (target_has_syscall_event): Remove macros.
704
4088142a
DJ
7052002-11-16 Daniel Jacobowitz <drow@mvista.com>
706
707 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
708 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
709 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
710 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
711 * target.c (cleanup_target): Remove reference to
712 to_can_follow_vfork_prior_to_exec.
713 (update_current_target): Likewise.
714 (debug_to_can_follow_vfork_prior_to_exec): Remove.
715 (setup_target_debug): Remove reference to
716 to_can_follow_vfork_prior_to_exec.
717 * target.h (struct target_ops): Remove
718 to_can_follow_vfork_prior_to_exec.
719 (child_can_follow_vfork_prior_to_exec): Remove prototype.
720 (target_can_follow_vfork_prior_to_exec): Remove definition.
721 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
722 define.
723 * infrun.c (follow_vfork_when_exec): Remove.
724 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
725 (follow_exec): Likewise.
726 (handle_inferior_event): Likewise.
727 (keep_going): Likewise.
728
18cde8d5
AC
7292002-11-15 Andrew Cagney <cagney@redhat.com>
730
731 * frame.c (generic_unwind_get_saved_register): Make static.
732 * frame.h (generic_unwind_get_saved_register): Delete declaration.
733 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
734 defaults to generic_unwind_get_saved_register.
735 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
736 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
737 * frv-tdep.c (frv_gdbarch_init): Ditto.
738 * i386-tdep.c (i386_gdbarch_init): Ditto.
739 * s390-tdep.c (s390_gdbarch_init): Ditto.
740 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
741 * v850-tdep.c (v850_gdbarch_init): Ditto.
742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
743 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
744 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
745
a6b063af
AC
7462002-11-15 Andrew Cagney <cagney@redhat.com>
747
748 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
749 i386-tdep.c.
750
f407986f
AC
7512002-11-15 Andrew Cagney <cagney@redhat.com>
752
753 * frame.h (sigtramp_saved_pc): Delete declaration.
754 * blockframe.c (sigtramp_saved_pc): Delete function.
755 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
756 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
757 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
758 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
759
f18c5a73
AC
7602002-11-15 Andrew Cagney <ac131313@redhat.com>
761
762 * frame.c (frame_pc_unwind): New function.
763 (frame_saved_regs_pc_unwind): New function.
764 (frame_register_unwind): Pass unwind_cache instead of
765 register_unwind_cache.
766 (set_unwind_by_pc): Add unwind_pc parameter, set.
767 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
768 (get_prev_frame): Ditto.
769 * frame.h (frame_pc_unwind_ftype): Declare.
770 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
771 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
772 (frame_pc_unwind): Declare.
773 * dummy-frame.c (dummy_frame_pc_unwind): New function.
774 (struct dummy_frame): Add comment mentioning that values are for
775 previous frame.
776 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
777 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
778 (generic_file_frame_chain_valid): Ditto.
779 * stack.c (frame_info): Ditto.
780
d9285969 7812002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
782
783 * linespec.c (locate_first_half): New function.
784 (decode_line_1): Move code into locate_first_half.
785
d741b867
AC
7862002-11-15 Andrew Cagney <ac131313@redhat.com>
787
788 * complaints.h: Add comment explaining how to eliminate a
789 deprecated_complain call.
24382c5c 790 * complaints.h: Fix spelling errors.
d741b867 791
82d03c99
DC
7922002-11-15 David Carlton <carlton@math.stanford.edu>
793
794 * printcmd.c: Remove #include "disasm.h".
795
c97eb5d9
AC
7962002-11-14 Andrew Cagney <ac131313@redhat.com>
797
798 * frame.h: Move the most relevant interface functions to the start
799 of the file.
800
524d7c18
AC
8012002-11-14 Andrew Cagney <ac131313@redhat.com>
802
803 * regcache.h (deprecated_registers): Rename registers.
804 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
805 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
806 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
807 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
808 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
809 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
810 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
811 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
812 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
813 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
814 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
815 * v850ice.c: Update.
816
6411e720
AC
817Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
818
819 * utils.c (gdb_realpath): Add comment mentioning realpath with a
820 NULL buffer.
821
73937e03
AC
8222002-11-13 Andrew Cagney <cagney@redhat.com>
823
824 * regcache.h (deprecated_read_register_bytes): Rename
825 read_register_bytes.
826 (deprecated_write_register_bytes): Rename write_register_bytes.
827 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
828 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
829 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
830 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
831 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
832 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
833 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
834 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
835 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
836 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
837 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
838 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
839 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
840 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
841
fb0cd46e
JB
8422002-11-13 Jim Blandy <jimb@redhat.com>
843
844 * findvar.c (read_var_value): Doc fix.
845
2d28509a
AC
8462002-11-13 Andrew Cagney <cagney@redhat.com>
847
848 * regcache.c (struct regcache): Replace passthough_p with
849 readonly_p.
850 (regcache_xmalloc): Initialize readonly_p.
851 (build_regcache): Initialize readonly_p.
852 (regcache_save): New function.
853 (regcache_restore): New function.
854 (regcache_cpy): Re-implement using regcache_save and
855 regcache_restore.
856 (regcache_raw_read): Update.
857 (regcache_cooked_read): When a read-only cache, checked for cached
858 pseudo register values.
859 (regcache_raw_write): Assert that the cache is not read-only.
860 Remove code handling a non-passthrough cache.
861 * regcache.h (regcache_save): Declare.
862 (regcache_restore): Declare.
863
067df2e5
AC
8642002-11-13 Andrew Cagney <cagney@redhat.com>
865
866 * regcache.c (struct regcache_descr): Add fields
867 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
868 (init_legacy_regcache_descr): Compute the size of a cooked
869 register cache and then assign that to sizeof_raw_registers. Set
870 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
871 (init_legacy_regcache_descr): Ditto.
872
51b1fe4e
AC
8732002-11-13 Andrew Cagney <cagney@redhat.com>
874
875 * regcache.c (register_buffer): Move to near start of file, update
876 description.
877 (regcache_raw_read): Use.
878 (regcache_raw_write): Use.
879 (struct regcache): Rename raw_registers to registers and
880 raw_register_valid_p to register_valid_p.
881 (regcache_xmalloc): Update.
882 (regcache_xfree): Update.
883 (register_buffer): Update.
884 (regcache_cpy): Update.
885 (regcache_cpy_no_passthrough): Update.
886 (regcache_valid_p): Update.
887 (deprecated_grub_regcache_for_registers): Update.
888 (deprecated_grub_regcache_for_register_valid): Update.
889 (set_register_cached): Update.
890 (regcache_raw_write): Update.
891
80b4c677
PM
8922002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
893
894 * p-exp.y (name_not_typename): Use copy_name to
895 set current_type variable for fields of THIS.
896
0f3fafde
DJ
8972002-11-12 Daniel Jacobowitz <drow@mvista.com>
898
899 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
900 * monitor.c (init_base_monitor_ops): Likewise.
901 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
902 * remote-array.c (init_array_ops): Likewise.
903 * remote-e7000.c (init_e7000_ops): Likewise.
904 * remote-es.c (init_es1800_ops): Likewise.
905 (init_es1800_child_ops): Likewise.
906 * remote-rdp.c (init_remote_rdp_ops): Likewise.
907 * remote-sim.c (init_gdbsim_ops): Likewise.
908 * remote-st.c (init_st2000_ops): Likewise.
909 * sol-thread.c (init_sol_core_ops): Likewise.
910 (init_sol_thread_ops): Likewise.
911 * v850ice.c (init_850ice_ops): Likewise.
912 * win32-nat.c (init_child_ops): Likewise.
913 * wince.c (init_child_ops): Likewise.
914
82c0260e
AC
9152002-11-12 Andrew Cagney <ac131313@redhat.com>
916
917 * utils.c (gdb_realpath): Make rp a constant pointer.
918
70d35819
AC
9192002-11-12 Andrew Cagney <ac131313@redhat.com>
920
921 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
922 a constant buffer; cannonicalize_file_name(); realpath() with a
923 pathconf() defined buffer, xstrdup().
924
9835a8b0
AC
9252002-11-12 Andrew Cagney <ac131313@redhat.com>
926
927 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
928 to hang2.C; hang3.c to hang3.C.
929
3f47be5c
EZ
9302002-11-11 Elena Zannoni <ezannoni@redhat.com>
931
932 * findvar.c (read_var_value): Reenable TLS code.
933
9342002-11-11 Elena Zannoni <ezannoni@redhat.com>
935 Jim Blandy <jimb@redhat.com>
936
937 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
938 * target.c (update_current_target): Add
939 to_get_thread_local_address.
940 * target.h (to_get_thread_local_address): Export.
941 (target_get_thread_local_address): Define.
942 (target_get_thread_local_address_p): Define.
943 * thread-db.c: Include solib-svr4.h.
944 (td_thr_tls_get_addr_p): Define.
945 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
946 (thread_db_get_thread_local_address): New function.
947 (init_thread_db_ops): Initialize to_get_thread_local_address.
948 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
949 * configure: Regenerate.
950 * config.in: Regenerate.
951
636b1a6d
DC
9522002-11-11 David Carlton <carlton@math.stanford.edu>
953
954 * linespec.c (set_flags): New function.
955 (decode_line_1): Move code into set_flags.
956
44fe14ab
DC
9572002-11-11 David Carlton <carlton@math.stanford.edu>
958
959 * linespec.c (decode_line_1): Move chunks of code to separate
960 functions.
961 (initialize_defaults): New function.
962 (decode_indirect): New function.
963
e6f181f5
AC
9642002-11-11 Andrew Cagney <ac131313@redhat.com>
965
8971b011
AC
966 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
967 instead of void_code_ptr.
968 (sigtramp_saved_pc): Ditto.
969
e6f181f5
AC
970 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
971 i386_fp_regnum_p.
972
01ad7f36
DJ
9732002-11-10 Daniel Jacobowitz <drow@mvista.com>
974
975 * gdbtypes.h (struct main_type): Move artificial flag out of
976 loc. New member of ``struct field'' named static_kind. Reduce
977 overloaded meaning of bitsize.
978 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
979 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
980 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
981
982 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
983 new fields.
984 (template_to_fixed_record_type, template_to_static_fixed_type)
985 (to_record_with_fixed_variant_part): Likewise.
986 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
987 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
988 * dwarfread.c (struct_type, enum_type): Likewise.
989 * hpread.c (hpread_read_enum_type)
990 (hpread_read_function_type, hpread_read_doc_function_type)
991 (hpread_read_struct_type): Likewise.
992 * mdebugread.c (parse_symbol): Likewise.
993
bf1e52be
AC
9942002-11-10 Andrew Cagney <ac131313@redhat.com>
995
996 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
997 * stack.c (print_frame_info_base): Update.
998 (print_frame_info_base, frame_info): Update.
999 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1000 (sparc_frame_saved_pc): Update.
1001 * ada-lang.c (find_printable_frame): Update.
1002 * breakpoint.c (deprecated_frame_in_dummy): Update.
1003
ce556f85
MK
10042002-11-09 Mark Kettenis <kettenis@gnu.org>
1005
1006 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1007 defined.
1008 (regmap): Extend to cover all registers.
1009 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1010 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1011 definitions.
1012 (fetch_register, sore_register): Simplify.
1013 (old_fetch_inferior_registers, old_store_inferior_registers):
1014 Remove functions.
1015 (cannot_fetch_register, cannot_store_register): Change
1016 implementation to use regmap array to decide which registers
1017 cannot be fetched/stored. This removes $orig_eax from the
1018 registers that cannot be fetched/stored.
1019 (fetch_inferior_registers): Call fetch_register directly instead
1020 of calling old_fetch_inferior_registers.
1021 (store_inferior_registers): Call store_register directly instead
1022 of calling old_store_inferior_registers.
1023 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1024 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1025 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1026
932bb524
KD
10272002-11-09 Klee Dienes <kdienes@apple.com>
1028
1029 * i387-tdep.c (i387_supply_register): When called with NULL as a
1030 buffer, mark the register as not provided (to mirror the behavior
1031 of supply_register).
1032 (i387_supply_fxsave): Ditto.
1033 (i387_supply_fsave): Ditto (inherits the behavior from
1034 i387_supply_register).
1035
ebe68b27
KD
10362002-11-09 Klee Dienes <kdienes@apple.com>
1037
1038 * blockframe.c (sigtramp_saved_pc): Use
1039 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1040 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1041 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1042
15220c65
AC
10432002-11-09 Andrew Cagney <ac131313@redhat.com>
1044
1045 * frame.c (get_prev_frame): Test prev_p to identify a previously
1046 unwound frame. Initialize prev_p.
1047 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1048 comment.
1049
95adb866
AC
10502002-11-09 Andrew Cagney <ac131313@redhat.com>
1051
1052 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1053 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1054 more comments. Zap dead code.
1055
e71ecd70
MK
10562002-11-09 Mark Kettenis <kettenis@gnu.org>
1057
1058 * infcmd.c (print_vector_info, print_float_info): Move code that
1059 checks whether the target has any registers and whether there is a
1060 selected frame up, such that it is also used if a target provides
1061 multi-arch definitions of these functions.
1062
c525330d
AC
10632002-11-08 Andrew Cagney <ac131313@redhat.com>
1064
72bdd927
AC
1065 * Makefile.in (DESTDIR): Define.
1066 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1067 prefix.
1068
c525330d
AC
1069 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1070 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1071
38c968cf
AC
10722002-11-08 Andrew Cagney <ac131313@redhat.com>
1073
1074 * i386-linux-tdep.c: Include "reggroups.h".
1075 (i386_linux_register_reggroup_p): New function.
1076 (i386_linux_init_abi): Set register_reggroup_p to
1077 i386_linux_register_reggroup_p.
1078 * i386-tdep.h (i386_register_reggroup_p): Declare.
1079 * i386-tdep.c: Include "reggroups.h".
1080 (i386_init_reggroups): New function.
1081 (i386_add_reggroups): New function.
1082 (i386_register_reggroup_p): New function.
1083 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1084 (_initialize_i386_tdep): Call i386_init_reggroups.
1085 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1086 specific reggroups.
1087
19e33363
MK
10882002-11-09 Mark Kettenis <kettenis@gnu.org>
1089
371a6e84
MK
1090 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1091 request that's available in *BSD.
1092
94ba925a
MK
1093 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1094
19e33363
MK
1095 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1096 FDOFF_REGNUM.
1097
8779790c
AC
10982002-11-08 Andrew Cagney <ac131313@redhat.com>
1099
1100 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1101 * dummy-frame.c (find_dummy_frame): Rename
1102 generic_find_dummy_frame, make static. Return the dummy frame
1103 instead of the regcache.
1104 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1105 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1106 (dummy_frame_register_unwind): Rename
1107 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1108 * dummy-frame.h (dummy_frame_register_unwind): Rename
1109 generic_call_dummy_register_unwind.
1110
8674b74f
MK
11112002-11-08 Mark Kettenis <kettenis@gnu.org>
1112
1113 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1114 except the inclusion of "i386/tm-i386.h", to...
1115 * config/i386/nm-i386v42mp.h: ...here.
1116 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1117
4c1e7e9d
AC
11182002-11-08 Andrew Cagney <ac131313@redhat.com>
1119
1120 * Makefile.in (frame.o): Update dependencies.
1121 * blockframe.c (current_frame, frame_obstack_alloc)
1122 (frame_saved_regs_zalloc, get_current_frame)
1123 (set_current_frame, create_new_frame)
1124 (set_unwind_by_pc, get_next_frame)
1125 (flush_cached_frames, reinit_frame_cache)
1126 (frame_saved_regs_register_unwind)
1127 (deprecated_generic_get_saved_register)
1128 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1129 (_initialize_blockframe): Move frame code from here...
1130 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1131 "annotate.h" and "dummy-frame.h".
1132 (_initialize_frame): New function.
1133
921e78cf
JB
11342002-11-08 Jim Blandy <jimb@redhat.com>
1135
1136 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1137 when we finish a function a context.
1138 * buildsym.h (outermost_context_p): New macro.
1139 (Bug analyzed by David Edelsohn.)
1140
9c1412c1
AC
11412002-11-08 Andrew Cagney <ac131313@redhat.com>
1142
1143 * blockframe.c: Include "dummy-frame.h".
1144 (struct dummy_frame, dummy_frame_stack)
1145 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1146 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1147 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1148 (generic_save_call_dummy_addr, generic_pop_current_frame)
1149 (generic_pop_dummy_frame, generic_fix_call_dummy)
1150 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1151 dummy frame code from here...
1152 * dummy-frame.c: ...to here. New file.
1153 * dummy-frame.h: New file.
1154 (generic_call_dummy_register_unwind): Declare.
1155 (generic_find_dummy_frame): Declare.
1156 * Makefile.in (SFILES): Add dummy-frame.c.
1157 (dummy-frame.o): Specify dependencies.
1158 (dummy_frame_h): Define.
1159 (COMMON_OBS): Add dummy-frame.o.
1160 (blockframe.o): Update dependencies.
1161
208d8187
JB
11622002-11-08 Jim Blandy <jimb@redhat.com>
1163
1164 * dwarf2read.c (read_func_scope): Restore local_symbols and
1165 param_symbols after we finish the function context. (Based on a
1166 patch from David Edelsohn.)
1167
413dad4d
DC
11682002-11-08 David Carlton <carlton@math.stanford.edu>
1169
1170 * linespec.c (symbol_found): New function.
1171 (minsym_found): New function.
1172 (decode_line_1): Separate out some code into separate functions.
1173
5512c44a
JB
11742002-11-08 Joel Brobecker <brobecker@gnat.com>
1175
1176 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1177 the benefit of the interix target.
1178 * i386-tdep.h (i386_frameless_signal_p): Declare.
1179
1b33ef47
AC
11802002-11-08 Andrew Cagney <ac131313@redhat.com>
1181
1182 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1183 declaration that snuck in from change below.
1184
23a34459
AC
11852002-11-06 Andrew Cagney <cagney@redhat.com>
1186
1187 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1188 all callers.
1189 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1190 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1191 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1192 (i386_mxcsr_regnum_p): new function. Use instead of
1193 MXCSR_REGNUM_P.
1194 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1195 (i386_sse_regnum_p): Declare.
1196 (i386_mxcsr_regnum_p): Declare.
1197 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1198 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1199 (IS_FP_REGNUM): Update definition.
1200 (IS_FPU_CTRL_REGNUM): Update definition..
1201 (IS_SSE_REGNUM): Update definition..
1202 * i386v-nat.c (register_u_addr): Update.
1203 * go32-nat.c (fetch_register): Update.
1204 (store_register): Update.
1205
d709c020
JB
12062002-11-07 Joel Brobecker <brobecker@gnat.com>
1207
1208 Preparation work to convert the hppa targets to multiarch partial.
1209
1210 * hppa-tdep.c: Add new functions replacing macro bodies from
1211 config/pa/tm-hppa.h. These function will be used to initialize
1212 the gdbarch structure. Import some comments from tm-hppa.h,
1213 and place them where appropriate, to avoid loosing them when
1214 we cleanup this file.
1215 (hppa_reg_struct_has_addr): New function.
1216 (hppa_inner_than): New function.
1217 (hppa_stack_align): New function.
1218 (hppa_pc_requires_run_before_use): New function.
1219 (hppa_instruction_nullified): New function.
1220 (hppa_register_byte): New function.
1221 (hppa_register_virtual_type): New function.
1222 (hppa_store_struct_return): New function.
1223 (hppa_cannot_store_register): New function.
1224 (hppa_frame_args_address): New function.
1225 (hppa_frame_locals_address): New function.
1226 (hppa_smash_text_address): New function.
1227 (hppa_coerce_float_to_double): New function. Requires the inclusion
1228 of "language.h".
1229
1230 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1231
1232 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1233 gdbarch-eligible macro to a call to the new associated function
1234 created in hppa-tdep.c.
1235 (INNER_THAN): Likewise.
1236 (STACK_ALIGN): Likewise.
1237 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1238 (INSTRUCTION_NULLIFIED): Likewise.
1239 (REGISTER_BYTE): Likewise.
1240 (REGISTER_VIRTUAL_TYPE): Likewise.
1241 (STORE_STRUCT_RETURN): Likewise.
1242 (CANNOT_STORE_REGISTER): Likewise.
1243 (FRAME_ARGS_ADDRESS): Likewise.
1244 (FRAME_LOCALS_ADDRESS): Likewise.
1245 (SMASH_TEXT_ADDRESS): Likewise.
1246 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1247 (ABOUT_TO_RETURN): Delete, as no longer used.
1248
83c31e7d
FN
12492002-11-07 Fernando Nasser <fnasser@redhat.com>
1250
1251 * printcmd.c (disassemble_command): Remove obsolete function.
1252 (_initialize_printcmd): Do not create disassemble command here.
1253 * cli/cli-cmds.c (disassemble_command): New function. Implements
1254 disassemble command.
1255 (init_cli_cmds): Create disassemble command here instead.
1256
0ec30a36
AC
12572002-11-07 Andrew Cagney <ac131313@redhat.com>
1258
1259 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1260
e600bd34
AC
12612002-11-07 Andrew Cagney <ac131313@redhat.com>
1262
1263 * regcache.h (regcache_cooked_read_using_offset_hack)
1264 (regcache_cooked_write_using_offset_hack): Delete declarations.
1265 (register_changed): Delete declaration.
1266 * regcache.c (regcache_cooked_read_using_offset_hack)
1267 (regcache_cooked_write_using_offset_hack): Delete functions.
1268 (cooked_xfer_using_offset_hack): Delete function.
1269 (register_changed): Delete function.
1270
568f8739
JB
12712002-11-07 Jim Blandy <jimb@redhat.com>
1272
1273 * macroscope.c: #include "complaints.h".
1274 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1275 but not in the macro table.
1276 * Makefile.in (macroscope.o): Record dependency.
1277
b0718b7b
JB
12782002-11-07 Joel Brobecker <brobecker@gnat.com>
1279
1280 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1281
2b9e5f3f
AC
12822002-11-07 Andrew Cagney <ac131313@redhat.com>
1283
1284 * regcache.c (deprecated_registers_fetched): Update.
1285 * regcache.h (deprecated_registers_fetched): Rename
1286 registers_fetched.
1287 * remote-vxsparc.c (vx_read_register): Update.
1288 * remote-vxmips.c (vx_read_register): Update.
1289 * remote-vx68.c (vx_read_register): Update.
1290 * irix5-nat.c (fetch_core_registers): Update.
1291 * mipsm3-nat.c (fetch_inferior_registers): Update.
1292 * sun3-nat.c (fetch_inferior_registers): Update.
1293 * symm-nat.c (fetch_inferior_registers): Update.
1294 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1295 (fetch_core_registers): Update.
1296 (fetch_kcore_registers): Update.
1297 * mips-nat.c (fetch_inferior_registers): Update.
1298 * corelow.c (get_core_registers): Update.
1299 * a68v-nat.c (fetch_inferior_registers): Update.
1300
e6e68f1f
JB
13012002-11-06 Joel Brobecker <brobecker@gnat.com>
1302
1303 Put in place the framework necessary for multiarching the hppa targets.
1304 * hppa-tdep.c (hppa_gdbarch_init): New function.
1305 (hppa_dump_tdep): New function.
1306 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1307 tdep structure dumper.
1308 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1309 until the multi-arching conversion has partially been completed.
1310
492254e9
AC
13112002-11-06 Andrew Cagney <ac131313@redhat.com>
1312
1313 * valops.c (value_assign): Merge lval_register case into
1314 lval_reg_frame_relative. Use frame_register and
1315 regcache_cooked_write instead of get_saved_register and
1316 write_register_bytes. After flushing the register cache, try to
1317 re-select the selected frame.
1318
8262ee23
AC
13192002-11-06 Andrew Cagney <ac131313@redhat.com>
1320
1321 * regcache.h (deprecated_register_valid): Rename register_valid.
1322 * regcache.c: Update.
1323 * ia64-aix-nat.c: Update.
1324 * i386gnu-nat.c: Update.
1325 * alpha-nat.c: Update.
1326 * sparc-nat.c: Update.
1327 * lynx-nat.c: Update.
1328 * remote-mips.c: Update.
1329
4facf7e8
JB
13302002-11-06 Joel Brobecker <brobecker@gnat.com>
1331
1332 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1333 to end of file, to be more consistent with the pratice followed
1334 by other targets.
1335
f9418c0f
AC
13362002-11-06 Andrew Cagney <ac131313@redhat.com>
1337
1338 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1339 (print_float_info): Print registers in float_reggroup.
1340 (print_vector_info): Print registers in vector_reggroup.
1341 (default_print_registers_info): When all, print registers in
1342 all_reggroup. Otherwize, print registers in general_reggroup.
1343 (registers_info): Rewrite. Add support for register groups.
1344 Eliminate a goto.
1345
3fe235a7
EZ
13462002-11-06 Elena Zannoni <ezannoni@redhat.com>
1347
1348 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1349 ages.
1350 (symtab_symbol_info): Remove eons old ifdeffed out code.
1351 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1352 command.
1353
ef944135
TR
13542002-11-06 Theodore A. Roth <troth@openavr.org>
1355
1356 * c-exp.y: Add missing semi-colons.
1357 * f-exp.y: Add missing semi-colons.
1358 * m2-exp.y: Add missing semi-colons.
1359 * p-exp.y: Add missing semi-colons.
1360 Add empty action to start rule to avoid a type clash error when
1361 building with bison >= 1.50.
1362
f8302a57
JB
13632002-11-06 Jim Blandy <jimb@redhat.com>
1364
1365 * macrotab.h (struct macro_source_file): Doc fix.
1366
6e382aa3
JJ
13672002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1368
1369 * varobj.c (child_exists, cplus_number_of_children): Change
1370 STREQ macro references to strcmp.
1371 (cplus_name_of_child): Change code to handle the fact that
1372 fields are not necessarily contiguous with regards to their
1373 access control. This is a fix for PR gdb/792.
1374
a216a322
AC
13752002-11-05 Andrew Cagney <ac131313@redhat.com>
1376
1377 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1378 * gdbarch.h, gdbarch.c: Regnerate.
1379 * frame.h (frame_register): Declare.
1380 * frame.c (frame_register): New function.
1381 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1382 GET_SAVED_REGISTER, otherwize call
1383 generic_unwind_get_saved_register.
1384 (frame_register_read): Use frame_register instead of
1385 get_saved_register.
1386
7d5b6fdd
EZ
13872002-11-05 Elena Zannoni <ezannoni@redhat.com>
1388
1389 From Jim Ingham <jingham@apple.com>:
1390 * event-top.c (gdb_disable_readline): New function.
1391 (_initialize_event_loop): Move comment.
1392
b7c64260
EZ
13932002-11-05 Elena Zannoni <ezannoni@redhat.com>
1394
1395 * event-loop.c (start_event_loop): Add comment.
1396 Update copyright.
1397
c2e1b8f2
AC
13982002-11-05 Andrew Cagney <ac131313@redhat.com>
1399
1400 * infcmd.c (default_print_registers_info): Do not call
1401 PRINT_REGISTER_HOOK.
1402
87647bb0
AC
14032002-11-05 Andrew Cagney <ac131313@redhat.com>
1404
1405 * sparc-tdep.c (sparc_print_register_hook): Make static.
1406 (sparc_print_registers_info): New function.
1407 (sparc_do_registers_info): New function.
1408 (sparclet_print_registers_info): New function.
1409 (sparclet_do_registers_info): New function.
1410 (do_sparc_print_registers_info): New function.
1411 (sparc_print_registers): New static function, clone of infcmd.c's
1412 default_print_registers_info.
1413 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1414 (sparclet_do_registers_info): Declare.
1415 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1416 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1417 Re-define.
1418 (sparc_do_registers_info): Declare.
1419 (PRINT_REGISTER_HOOK): Delete macro.
1420 (sparc_print_register_hook): Delete declaration.
1421
8155455b
DC
14222002-11-05 David Carlton <carlton@math.stanford.edu>
1423
1424 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1425 functions.
1426 (lookup_symbol_aux_local): New function.
1427 (lookup_symbol_aux_symtabs): New function.
1428 (lookup_symbol_aux_psymtabs): New function.
1429
29924310
DC
14302002-11-05 David Carlton <carlton@math.stanford.edu>
1431
1432 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1433 previous values of 'objfile' and 'block'.
1434
cc303028
PM
14352002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1436
1437 * values.c (value_change_enclosing_type): Set
1438 enclosing_type field correctly also for the case where
1439 more memory needs to be allocated.
1440
1d70089a
MK
14412002-11-03 Mark Kettenis <kettenis@gnu.org>
1442
f16a25ae
MK
1443 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1444 of puts_filtered.
1445
1d70089a
MK
1446 * i387-tdep.c (i387_print_float_info): Replace calls to
1447 register_read and deprecated_read_register_gen with calls to
1448 frame_register_read, and make the necessary adjustments to the
1449 surrounding code.
1450
7e20f3fb
AC
14512002-11-02 Andrew Cagney <ac131313@redhat.com>
1452
1453 * gdbarch.sh (register_reggroup_p): Allow default value.
1454 * gdbarch.h, gdbarch.c: Regenerate.
1455
192dbe33
AC
14562002-11-02 Andrew Cagney <ac131313@redhat.com>
1457
1458 * regcache.h: Add coment indicating replacements for deprecated
1459 functions.
1460
b59ff9d5
AC
14612002-11-02 Andrew Cagney <cagney@redhat.com>
1462
1463 * reggroups.h, reggroups.c: New files.
1464 * regcache.c: Include "reggroups.h".
1465 (enum regcache_dump_what): Add `regcache_dump_groups'.
1466 (regcache_dump): Contract size of the "Type" column. When
1467 specified, dump the register's groups.
1468 (maintenance_print_register_groups): New function.
1469 (_initialize_regcache): Add command `maint print register-groups'.
1470 * Makefile.in (COMMON_OBS): Add reggroups.o
1471 (SFILES): Add reggroups.c.
1472 (reggroups_h): Define.
1473 (regcache.o, gdbarch.o): Update dependencies.
1474 (reggroups.o): Specify dependencies.
1475 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1476 Add opaque declaration for `struct reggroup' in generated .h file.
1477 Include "reggroups.h" in generated .c file.
1478 gdbarch.h, gdbarch.c: Re-generate.
1479
4caf0990
AC
14802002-11-02 Andrew Cagney <cagney@redhat.com>
1481
1482 * regcache.h (deprecated_read_register_gen): Rename
1483 read_register_gen.
1484 (deprecated_write_register_gen): Rename write_register_gen.
1485 * i387-tdep.c: Update.
1486 * x86-64-linux-nat.c: Update
1487 * wince.c: Update.
1488 * thread-db.c: Update.
1489 * win32-nat.c: Update.
1490 * mips-tdep.c: Update.
1491 * d10v-tdep.c: Update.
1492 * cris-tdep.c: Update.
1493 * remote-sim.c: Update.
1494 * remote-rdi.c: Update.
1495 * remote-rdp.c: Update.
1496 * frame.c: Update.
1497 * target.c: Update.
1498 * blockframe.c: Update.
1499 * x86-64-tdep.c: Update.
1500 * xstormy16-tdep.c: Update.
1501 * sh-tdep.c: Update.
1502 * s390-tdep.c: Update.
1503 * rs6000-tdep.c: Update.
1504 * sparc-tdep.c: Update.
1505 * i386-tdep.c: Update.
1506 * dwarf2cfi.c: Update.
1507 * regcache.c: Update.
1508
7a7adcdf
JB
15092002-11-01 Joel Brobecker <brobecker@gnat.com>
1510
1511 New interix-specific files:
1512 * config/i386/nm-interix.h: New file.
1513 * config/i386/interix.mh: New file.
1514 * config/i386/interix.mt: New file.
1515 * i386-interix-nat.c: New file.
1516 * i386-interix-tdep.c: New file.
1517
bdcdd535
AC
15182002-11-01 Andrew Cagney <cagney@redhat.com>
1519
1520 * frame.h (deprecated_generic_get_saved_register): Rename
1521 generic_get_saved_register.
1522 * blockframe.c (deprecated_generic_get_saved_register): Update.
1523 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1524 (xstormy16_frame_saved_register): Update.
1525 * sh-tdep.c (sh_gdbarch_init): Update.
1526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1527 * ia64-tdep.c (ia64_get_saved_register): Update.
1528 * cris-tdep.c (cris_gdbarch_init): Update.
1529 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1530 * arm-tdep.c (arm_gdbarch_init): Update.
1531
2a4b7c45
DJ
15322002-10-31 Daniel Jacobowitz <drow@mvista.com>
1533
1534 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1535
ef17e74b
DJ
15362002-10-31 Daniel Jacobowitz <drow@mvista.com>
1537
1538 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1539 trampolines in sigaction.
1540
4904ba5b
AC
15412002-10-31 Andrew Cagney <cagney@redhat.com>
1542
1543 * h8300-tdep.c: Include "gdb_assert.h".
1544 (h8300_print_register): Add gdbarch, file and frame parameters.
1545 Use frame_read_unsigned_register to read the register's value.
1546 Use fprintf_filtered to display output.
1547 (h8300_print_registers_info): Replace h8300_do_registers_info.
1548 (h8300_gdbarch_init): Set print_registers_info.
1549
f908a0eb
AC
15502002-10-31 Andrew Cagney <cagney@redhat.com>
1551
1552 * frame.c (frame_read_unsigned_register): New function.
1553 (frame_read_signed_register): New function.
1554 * frame.h (frame_read_unsigned_register): Declare.
1555 (frame_read_signed_register): Declare.
1556
c5646e11
AC
15572002-10-31 Andrew Cagney <cagney@redhat.com>
1558
1559 * h8500-tdep.c (h8500_print_registers_info): New static function,
1560 clone of infcmd.c's default_print_registers_info.
1561 (h8500_do_registers_info): New funtion.
1562 (h8500_print_register_hook): Rename print_register_hook, make
1563 static.
1564
1565 * config/h8500/tm-h8500.h: Update copyright.
1566 (DEPRECATED_DO_REGISTERS_INFO): Define.
1567 (h8500_do_registers_info: Declare.
1568 (PRINT_REGISTER_HOOK): Delete macro.
1569 (print_register_hook): Delete function.
1570
0bdd672b
AC
15712002-10-31 Andrew Cagney <cagney@redhat.com>
1572
1573 * z8k-tdep.c (z8k_print_register_hook): Make static.
1574 (z8k_print_registers_info): New static function, clone of
1575 infcmd.c's default_print_registers_info.
1576 (z8k_do_registers_info): New function. Wrap
1577 z8k_print_registers_info.
1578 * config/z8k/tm-z8k.h: Update copyright.
1579 (PRINT_REGISTER_HOOK): Delete macro.
1580 (z8k_print_register_hook): Delete declaration.
1581 (DEPRECATED_DO_REGISTERS_INFO): Define.
1582 (z8k_do_registers_info): Declare.
1583
bf9c25dc
JB
15842002-10-30 Joel Brobecker <brobecker@gnat.com>
1585
1586 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1587 as this is already provided by value.h, and was actually causing
1588 a compilation error because of a conflict in parameter type
1589 declaration due to a missing const keyword.
1590 (low_text_segment_addres): Fix a compilation warning.
1591
2c665b51
DJ
15922002-10-29 Daniel Jacobowitz <drow@mvista.com>
1593
1594 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1595 registers without a name.
1596 (mips_linux_cannot_store_register): Don't store registers without
1597 a name.
1598
e70ea697
DC
15992002-10-28 David Carlton <carlton@math.stanford.edu>
1600
1601 * symtab.c (find_addr_symbol): Delete. (It was already commented
1602 out.)
1603 * symtab.h: Delete prototype for find_addr_symbol.
1604
903ad3a6
AC
16052002-10-26 Andrew Cagney <cagney@redhat.com>
1606
1607 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1608 DO_REGISTERS_INFO.
1609 gdbarch.h, gdbarch.c: Re-generate.
1610 * infcmd.c (default_print_registers_info): Update reference.
1611 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1612 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1613 * sh-tdep.c (sh_gdbarch_init): Ditto.
1614 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1615 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1616
ab91194c
MK
16172002-10-26 Mark Kettenis <kettenis@gnu.org>
1618
e3033f15
MK
1619 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1620 cfi_init_extra_frame_info.
1621 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1622 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1623
b83b026c
MK
1624 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1625 target where necessary. Add more comments and remove the ones
1626 that don't provide any useful information.
1627
267bf4bb
MK
1628 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1629 deprecated_read_register_dummy with
1630 frame_unwind_unsigned_register.
1631
751f1375
MK
1632 * i386-tdep.c (i386_extract_struct_value_address): Use
1633 regcache_raw_read_unsigned instead of
1634 regcache_cooked_read_unsigned since we know that the register
1635 we're reading isn't a pseudo register. Rename variable 'val' into
1636 the more descriptive 'addr'.
1637
26abbdc4
MK
1638 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1639 (x86_64_push_return_address): Add comment.
1640 (x86_64_pop_frame): Make static.
1641 (examine_argument): Clarify comment.
1642 (x86_64_skip_prologue): Make prolog_expact variable static.
1643
9f1549cc
MK
1644 * dwarf2cfi.c: Fix some formatting problems.
1645 (context_cpy, read_encoded_pointer): Clarify comments.
1646
ab91194c
MK
1647 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1648 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1649 i386 target back into x86_64_gdbarch_init. Add some comments and
1650 remove meaningless ones.
1651
72367fb4
AC
16522002-10-25 Andrew Cagney <cagney@redhat.com>
1653
1654 * complaints.h (struct deprecated_complaint): Rename `struct
1655 complaint'.
1656 * complaints.c (complain): Update.
1657 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1658 incorrect comment indicating that "symfile.h" was being included
1659 for the `struct complaint' definition.
1660 * remote-vx.c: Update.
1661 * objc-lang.c: Update.
1662 * xcoffread.c: Update.
1663 * hpread.c: Update.
1664 * mdebugread.c: Update.
1665 * stabsread.c: Update.
1666 * dwarf2read.c: Update.
1667 * dwarfread.c: Update.
1668 * elfread.c: Update.
1669 * coffread.c: Update.
1670 * stabsread.h: Update.
1671 * dbxread.c: Update.
1672 * buildsym.c: Update.
1673 * gdbtypes.c: Update.
1674 * macrotab.c: Update.
1675
1f2baacc
MK
16762002-10-25 Mark Kettenis <kettenis@gnu.org>
1677
0c1a73d6
MK
1678 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1679 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1680 (x86_64_init_abi): ...new function.
1681
6aee4d54 1682 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1683 * i386v-nat.c: Include "i386-tdep.h".
1684
8f9cbe01
AC
16852002-10-25 Andrew Cagney <cagney@redhat.com>
1686
5f11f355
AC
1687 * gdbtypes.c (address_space_name_to_int): Update.
1688 (address_space_int_to_name): Update.
1689 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1690 multi-arch predicate.
1691 (address_class_name_to_type_flags): Ditto.
1692 * gdbarch.h, gdbarch.c: Re-generate.
1693
8f9cbe01
AC
1694 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1695
e8d96a5d
MH
16962002-10-24 Martin M. Hunt <hunt@redhat.com>
1697
1698 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1699
fe39c653
EZ
17002002-10-24 Elena Zannoni <ezannoni@redhat.com>
1701
1702 * symtab.h (INIT_SAL): Delete macro.
1703 (init_sal): Export.
1704 * symtab.c (init_sal): New function.
1705
1706 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1707 to init_sal function call.
1708 (find_sal_from_funcs_and_line): Ditto.
1709 (all_sals_for_line): Ditto.
1710 * breakpoint.c (create_internal_breakpoint): Ditto.
1711 (create_fork_vfork_event_catchpoint): Ditto.
1712 (create_exec_event_catchpoint): Ditto.
1713 (parse_breakpoint_sals): Ditto.
1714 (watch_command_1): Ditto.
1715 (handle_gnu_4_16_catch_command): Ditto.
1716 (clear_command): Ditto.
1717 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1718 * infcmd.c (run_stack_dummy): Ditto.
1719 * infrun.c (process_event_stop_test): Ditto.
1720 (check_sigtramp2): Ditto.
1721 (step_over_function): Ditto.
1722 * linespec.c (decode_line_2): Ditto.
1723 (decode_line_1): Ditto.
1724 * source.c (line_info): Ditto.
1725 * symtab.c (find_pc_sect_line): Ditto.
1726
baed091b
ML
17272002-10-24 Michal Ludvig <mludvig@suse.cz>
1728
1729 * dwarf2cfi.c (struct context)
1730 (struct context_reg): Moved to dwarf2cfi.h
1731 (context_alloc, frame_state_alloc, context_cpy):
1732 Made extern instead of static, removed prototypes.
1733 * dwarf2cfi.h (struct context)
1734 (struct context_reg): New, moved from dwarf2cfi.c
1735 (context_alloc, frame_state_alloc, context_cpy):
1736 New prototypes.
1737 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1738 Changed from static to extern.
1739 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1740 (LINUX_SIGCONTEXT_FP_OFFSET)
1741 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1742 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1743 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1744 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1745 set_gdbarch_*() calls now use x86-64 specific functions
1746 instead of DWARF2 CFI ones.
1747 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1748 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1749 (x86_64_init_extra_frame_info): New prototypes.
1750
c38da1af
DC
17512002-10-23 David Carlton <carlton@math.stanford.edu>
1752
1753 * linespec.c: #include "parser-defs.h".
1754 Delete prototype for find_template_name_end.
1755 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1756
fb9b6b35
JJ
17572002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1758
1759 * NEWS: add recent mi fixes.
1760 * varobj.c (struct varobj): Add new "updated" flag.
1761 (new_variable): Default "updated" flag to 0.
1762 (varobj_set_value): Set "updated" flag to 1 if value
1763 changes.
1764 (varobj_update): Check varobj "updated" flag before
1765 comparing old and refreshed values. Fix for
1766 PR gdb/702.
1767
8da065d5
DC
17682002-10-23 David Carlton <carlton@math.stanford.edu>
1769
1770 * parse.c (parse_exp_1): Use BLOCK_START.
1771 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1772 SYMBOL_BLOCK_VALUE.
1773 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1774
87f2f08c
DC
17752002-10-23 David Carlton <carlton@math.stanford.edu>
1776
1777 * symtab.c: Delete cplusplus_hint.
1778 Delete prototype for find_template_name_end.
1779
88cda038
EZ
17802002-10-23 Elena Zannoni <ezannoni@redhat.com>
1781
1782 * symtab.h: Update comment.
1783
2625d86c
MS
17842002-10-23 Michael Snyder <msnyder@redhat.com>
1785
1786 * printcmd.c (address_info): Restore quotes in output.
1787 * valops.c (value_of_local): Restore quotes in error message.
1788
9cc0d196
EZ
17892002-10-23 Elena Zannoni <ezannoni@redhat.com>
1790
1791 * symtab.c (symbol_demangled_name): New function.
1792 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1793 turning most of it into a function.
1794 (symbol_demangled_name): Export.
1795
19de93d0
MS
17962002-10-23 Michael Snyder <msnyder@redhat.com>
1797
1798 * valops.c (value_of_local): Restore quotes in error message.
1799
89aad1f9
EZ
18002002-10-23 Elena Zannoni <ezannoni@redhat.com>
1801
1802 * symtab.c (symbol_init_language_specific): New function.
1803 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1804 turning most of it into a function.
1805 (symbol_init_language_specific): Export.
1806
d9fa45fe
DC
18072002-10-23 David Carlton <carlton@math.stanford.edu>
1808
1809 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1810 (dwarf_attr_name): Ditto.
1811 (dwarf_type_encoding_name): Ditto.
1812 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1813 (process_die): Handle DW_TAG_namespace,
1814 DW_TAG_imported_declaration, DW_TAG_imported_module.
1815 (read_namespace): New function.
1816
1045b512
JB
18172002-10-22 Joel Brobecker <brobecker@gnat.com>
1818
1819 * configure.in: Define NEW_PROC_API on Interix too.
1820 * configure: Regenerate.
1821
18222002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1823
1824 * configure: Regenerate using the proper version of autoconf.
1825
3987b9d4
EZ
18262002-10-21 Elena Zannoni <ezannoni@redhat.com>
1827
1828 * findvar.c (read_var_value): Temporarily disable TLS code, until
1829 complete TLS support is added.
1830
9d774e44
EZ
18312002-10-21 Jim Blandy <jimb@redhat.com>
1832 Elena Zannoni <ezannoni@redhat.com>
1833
1834 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1835 for thread local storage locations.
1836 (struct symbol): Add objfile field.
1837 (SYMBOL_OBJFILE): Define.
1838 * dwarf2read.c (is_thread_local): New static variable.
1839 (new_symbol): If variable is in thread local fill in address class
1840 and objfile appropriately.
1841 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1842 stack operation.
1843 * printcmd.c (address_info): Print the information for thread
1844 local storage variable.
1845 * findvar.c (read_var_value): In case of thread local variable,
1846 defer to the target vector code to compute address.
1847
bc4a16ae
EZ
18482002-10-21 Elena Zannoni <ezannoni@redhat.com>
1849
1850 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1851 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1852
407caf07
EZ
18532002-10-21 Elena Zannoni <ezannoni@redhat.com>
1854
1855 * symtab.h (address_class): Rename
1856 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1857 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1858 * printcmd.c (address_info): Ditto.
1859 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1860
005328e3
MK
18612002-10-20 Mark Kettenis <kettenis@gnu.org>
1862
afdb036a
MK
1863 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1864 DBREG_DRX macro to acces debug registers.
1865
ca02e098
MK
1866 * Makefile.in (i386obsd-tdep.o): New target.
1867
03cc47f7
MK
1868 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1869 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1870
005328e3
MK
1871 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1872 * config/i386/obsd.mt: New file.
1873 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1874 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1875 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1876 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1877 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1878 * i386obsd-tdep.c: New file.
1879
9c96f9f2
AF
18802002-10-19 Adam Fedor <fedor@gnu.org>
1881
1882 * objc-exp.y (name_not_typename): Fix invalid comment.
1883
ce1ed485
MK
18842002-10-20 Mark Kettenis <kettenis@gnu.org>
1885
1886 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1887 to allocate partial syms and macro byte caches.
1888
1efc7aaa
DC
18892002-10-18 David Carlton <carlton@math.stanford.edu>
1890
1891 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1892
7e1d63ec
AF
18932002-10-18 Adam Fedor <fedor@gnu.org>
1894
1895 * stabsread.c (find_name_end): New function.
1896 (define_symbol): Use it.
1897
6e8d29a9
DJ
18982002-10-18 Daniel Jacobowitz <drow@mvista.com>
1899
1900 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1901 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1902 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1903 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1904
1efc7aaa 19052002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1906
1907 * symfile.h: Add opaque declaration for struct obstack.
1908 Declare obsavestring to take a const char *.
1909 * symfile.c (obsavestring): Make first argument a const char *.
1910
1aeae86e
AF
19112002-10-16 Adam Fedor <fedor@gnu.org>
1912
1913 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1914 names when matching breakpoints in current file.
1915
8b2dbe47
KB
19162002-10-16 Kevin Buettner <kevinb@redhat.com>
1917
1918 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1919 (read_tag_pointer_type): Add address class support.
1920 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1921 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1922 New methods.
1923 * gdbarch.h, gdbarch.c: Regenerate.
1924 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1925 (make_type_with_address_space, recursive_type_dump): Add address
1926 class support.
1927 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1928 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1929 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1930
74451869
KD
19312002-10-16 Klee Dienes <kdienes@apple.com>
1932
1933 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1934 to get the last character of a char[] buffer, not
1935 name[sizeof(vptr_name)-1].
1936
ff4cb3e8
AF
19372002-10-14 Adam Fedor <fedor@gnu.org>
1938
1939 * symtab.h: New objc_specific struct.
1940 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1941 (SYMBOL_DEMANGLED_NAME): Likewise.
1942
da2cf7e0
AF
19432002-10-14 Adam Fedor <fedor@gnu.org>
1944
1945 * symfile.c (init_filename_language_table): Add ObjC file extension.
1946
4a351cef
AF
19472002-10-14 Adam Fedor <fedor@gnu.org>
1948
1949 * utils.c (puts_filtered_tabular): New function.
1950 (fprintf_symbol_filtered): Get ObjC demangled name.
1951 * defs.h (puts_filtered_tabular): Declared.
1952
9750e763
KB
19532002-10-14 Kevin Buettner <kevinb@redhat.com>
1954
1955 * c-lang.h (c_type_print_varspec_prefix): Delete.
1956 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1957 ``need_post_space'' parameter. Adjust all callers.
1958
eee771c1
DJ
19592002-10-14 Daniel Jacobowitz <drow@mvista.com>
1960
1961 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1962 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1963 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1964 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1965
46c82446
AF
19662002-10-13 Adam Fedor <fedor@gnu.org>
1967
1968 * source.c (print_source_lines): Update comments.
1969
d069f99d
AF
19702002-10-13 Adam Fedor <fedor@gnu.org>
1971
1972 * valops.c (value_of_local): New function.
1973 (value_of_this): Use it.
1974 * value.h (value_of_local): Declared.
1975
53c551b7
AF
19762002-10-13 Adam Fedor <fedor@gnu.org>
1977
1978 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1979 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1980
eb392fbf
AF
19812002-10-12 Adam Fedor <fedor@gnu.org>
1982
1983 * language.c (binop_result_type): Add language_objc to case.
1984 (integral_type): Likewise.
1985 (character_type): Likewise.
1986 (string_type): Likewise.
1987 (boolean_type): Likewise.
1988 (structured_type): Likewise.
1989 (binop_type_check): Likewise.
1990
e2b23ee9
AF
19912002-10-11 Adam Fedor <fedor@gnu.org>
1992
1993 * printcmd.c (address_info): Print 'self' for ObjC.
1994
b01ab485
AF
19952002-10-11 Adam Fedor <fedor@gnu.org>
1996
1997 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1998 OP_SELF.
1999
806e6073
AF
20002002-10-11 Adam Fedor <fedor@gnu.org>
2001
2002 * language.h (CAST_IS_CONVERSION): Add language_objc.
2003
50f85cdf
AF
20042002-10-11 Adam Fedor <fedor@gnu.org>
2005
2006 * defs.h (enum language): Add language_objc.
2007
0d540cdf
KD
20082002-10-11 Klee Dienes <kdienes@apple.com>
2009
69266111 2010 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2011 * gdbcore.h (read_memory_typed_address): Add prototype.
2012 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2013 to read a value destined for a CORE_ADDR, not read_memory_integer.
2014 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2015 (f77_get_dynamic_lowerbound): Ditto.
2016
d5dc7960
MH
20172002-10-11 Martin M. Hunt <hunt@redhat.com>
2018
2019 * utils.c (string_to_core_addr): After turning string into
2020 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2021 which will do necessary sign-extension, etc.
2022
8343f86c
DJ
20232002-10-11 Daniel Jacobowitz <drow@mvista.com>
2024
2025 * c-exp.y (THIS): Delete token and grammar rule.
2026 (yylex): Don't return THIS.
2027 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2028 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2029 * demangle.c (cplus_markers): Update comment. Put '$'
2030 first. Remove CPLUS_MARKER.
2031 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2032 * jv-exp.y (THIS): Delete token and grammar rule.
2033 (yylex): Don't return THIS.
2034 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2035 * objc-exp.y (THIS): Delete token and grammar rule.
2036 (yylex): Don't return THIS.
2037 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2038 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2039 (read_member_functions): Likewise for opname.
2040 (read_tilde_fields): Use is_cplus_marker.
2041
2042 * defs.h (CPLUS_MARKER): Don't define.
2043 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2044 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2045 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2046 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2047 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2048
2049 * config/i386/tm-i386v4.h: Delete file.
2050 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2051 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2052 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2053 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2054 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2055 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2056 * config/i386/i386v4.mt (TM_FILE): Likewise.
2057 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2058
967c0d83
MM
20592002-10-10 Marko Mlinar <markom@opencores.org>
2060
2061 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2062 accidentially not commited 2002-10-09
2063 * gdbarch.h, gdbarch.c: Re-generate.
2064
f74fa174
MM
20652002-10-09 Marko Mlinar <markom@opencores.org>
2066
2067 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2068 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2069 * gdbarch.h, gdbarch.c: Re-generate.
2070
57349743
JB
20712002-10-08 Petr Sorfa <petrs@caldera.com>
2072
2073 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2074
2075 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2076 so we can work on more than one compilation unit at a time. This
2077 helps prepare GDB to handle inter-CU die references.
2078 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2079 the code to be defined before struct comp_unit_head.
2080 (comp_unit_head): Added new members - offset, cu_head,
2081 begin_die, next and dwarf2_abbrevs.
2082 (dwarf2_abbrevs): Removed single static var; now member of
2083 struct comp_unit_head.
2084 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2085 members.
2086 (psymtab_to_symtab_1): Changed to work with the new
2087 struct comp_unit_head.
2088 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2089 constructs the dwarf2_abbrevs[] inside the cu_header.
2090 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2091 dwarf2_abbrev table to clean up.
2092 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2093 handling of dwarf2_abbrevs inside the cu_header.
2094 (read_partial_die): Now supports the call to the new
2095 dwarf2_lookup_abbrev.
2096 (read_full_die): Now supports the call to the new
2097 dwarf2_lookup_abbrev.
2098
4092aadb
CF
20992002-10-06 Christopher Faylor <cgf@redhat.com>
2100
2101 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2102 insure that shell variables, such as "transformed_name" are propagated
2103 to later shell statements in rule.
2104
af0b2512
MK
21052002-10-06 Mark Kettenis <kettenis@gnu.org>
2106
2107 * config/i386/nm-i386sco.h: Add protection against
2108 multiple-inclusion. Include "i386/nm-i386v.h".
2109 (REGISTER_U_ADDR): Remove define.
2110 (i386_register_u_addr): Remove prototype.
2111
d6020d45
MS
21122002-10-04 Michael Snyder <msnyder@redhat.com>
2113
2114 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2115 before treating it as a single-step event.
2116
7248f48e
AF
21172002-10-03 Adam Fedor <fedor@gnu.org>
2118
2119 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2120 (objc_demangle): Remove assignment in if statements, Replace
2121 free with xfree.
2122 (add_msglist): Likewise.
2123 (end_msglist): Likewise.
2124 (complare_selectors): Likewise.
2125 (selectors_info): Likewise.
2126 (compare_classes): Likewise.
2127 (classes_info): Likewise.
2128 (print_object_command): Likewise.
2129 (find_objc_msgcall_submethod): Replace PTR with void *.
2130 * objc-lang.h: Remove check for __STDC__.
2131
52c6a6ac
JJ
21322002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2133
2134 * ui-out.h (ui_out_field_fmt_int): New prototype.
2135 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2136 of field width and alignment.
2137 * stack.c (print_frame_info_base): When printing frame level, use
2138 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2139 PR gdb/192
2140
7e3cec17
JJ
21412002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2142
2143 * MAINTAINERS: Add self to Write After Approval list.
2144
a58dd373
EZ
21452002-10-02 Elena Zannoni <ezannoni@redhat.com>
2146
2147 * infcmd.c (interrupt_target_command_wrapper): Delete.
2148 (interrupt_target_command): Make non static.
2149 (nofp_registers_info): Make static.
2150 * stack.c (return_command_wrapper): Delete.
2151 (return_command): Make non static.
2152
cee6ddeb
EZ
21532002-10-02 Elena Zannoni <ezannoni@redhat.com>
2154
2155 * event-top.c (gdb_setup_readline): New function. Code moved from
2156 _initialize_event_loop().
2157 (_initialize_event_loop): Call gdb_setup_readline().
2158
c4ed33b9
AC
21592002-10-02 Andrew Cagney <ac131313@redhat.com>
2160
2161 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2162 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2163 * gdbarch.h, gdbarch.c: Re-generate.
2164
cef4f5dd
DJ
21652002-10-02 Daniel Jacobowitz <drow@mvista.com>
2166
2167 Fix PR gdb/778
2168 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2169 before recursing.
2170 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2171 of fill_in_vptr_fieldno.
2172
36dc181b 21732002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2174
36dc181b
EZ
2175 * inferior.h (registers_info, stepi_command, nexti_command,
2176 continue_command, interrupt_target_command): Export from infcmd.c.
2177 * frame.h (args_info, selected_frame_level_changed_hook,
2178 return_command): Export from stack.c.
2179 * v850ice.c (stepi_command, nexti_command, continue_command): use
2180 prototypes from inferior.h.
2181 * tracepoint.c (registers_info, args_info, locals_info): Use
2182 prototypes from frame.h and inferior.h.
2183 * Makefile.in (mi-main.o): Add dependency on frame.h.
2184
6f99cb26
AC
21852002-10-02 Andrew Cagney <ac131313@redhat.com>
2186
da3eff49
AC
2187 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2188 value in register 3 adjusted by ppc_gp0_regnum.
2189
6f99cb26
AC
2190 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2191
da615bee
MM
21922002-10-02 Marko Mlinar <markom@opencores.org>
2193
2194 * MAINTAINERS: Add myself to the Write After Approval list.
2195
d154bee2
AO
21962002-10-01 Alexandre Oliva <aoliva@redhat.com>
2197
62a49b2c
AO
2198 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2199 of the section for the N64 ABI, fixed.
2200
d154bee2
AO
2201 * config/mips/tm-irix6.h: Include solib.h.
2202
ed348acc
EZ
22032002-10-01 Elena Zannoni <ezannoni@redhat.com>
2204
2205 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2206 GNU operators.
2207
da0f9dcd
AC
22082002-10-01 Andrew Cagney <ac131313@redhat.com>
2209
2210 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2211 and that "mi0" syntax has been removed.
2212
bdf64bac
DC
22132002-09-30 David Carlton <carlton@math.stanford.edu>
2214
2215 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2216 * ppc-sysv-tdep.c: #include "gdb_string.h".
2217 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2218 pacify GCC.
2219
54c2a1e6
AC
22202002-10-01 Andrew Cagney <ac131313@redhat.com>
2221
2222 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2223 "vrsave"'s register number.
2224
cedea778
AC
22252002-09-30 Andrew Cagney <ac131313@redhat.com>
2226
2227 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2228 use frame_unwind_signed_register to obtain the PC.
2229 (mips_frame_chain): Handle a generic dummy frame.
2230 (mips_init_extra_frame_info): When a generic dummy frame, don't
2231 re-compute the frame base.
2232 (mips_pop_frame): Handle generic dummy frames.
2233 (mips_gdbarch_init): When generic dummy frames, set
2234 use_generic_dummy_frames, push_dummy_frame to
2235 generic_push_dummy_frame, pc_in_call_dummy to
2236 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2237 generic_save_dummy_frame_tos.
2238
68315eb8
AC
22392002-09-30 Andrew Cagney <ac131313@redhat.com>
2240
2241 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2242 against TOP when TOP was explictly set.
2243 (generic_push_dummy_frame): Set TOP to zero.
2244
3b8630c3
EZ
22452002-09-30 Elena Zannoni <ezannoni@redhat.com>
2246
2247 * event-loop.c (start_event_loop): Rename variable 'result' to
2248 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2249
28ee05e9
KS
22502002-09-30 Keith Seitz <keiths@redhat.com>
2251
2252 * gdb-events.sh (selected_thread_changed): New event.
2253 * gdb-events.c: Regenerated.
2254 * gdb-events.h: Regenerated.
2255
6eecb1c8
HPN
22562002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2257
2258 * MAINTAINERS: Add self to Write After Approval list.
2259
92df71f0
FN
22602002-09-30 Fernando Nasser <fnasser@redhat.com>
2261
3b8630c3
EZ
2262 * disasm.c: New file.
2263 * disasm.h: New file.
92df71f0
FN
2264 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2265 (compare_lines): Ditto.
2266 (dump_insns): Ditto.
3b8630c3
EZ
2267 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2268 argument.
92df71f0 2269 (do_assembly_only): Ditto.
3b8630c3
EZ
2270 (do_disassembly): Renamed to gdb_disassembly and moved to
2271 disasm.c. Sdded uiout argument.
2272 * Makefile.in: Add new files. Reorder SFILES list. Update
2273 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2274
0c22854d
AC
22752002-09-29 Andrew Cagney <ac131313@redhat.com>
2276
2277 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2278 bfd/elf64-alpha-fbsd.c.
2279
e67f2023
AC
22802002-09-29 Andrew Cagney <ac131313@redhat.com>
2281
2282 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2283 i386gnu-tdep.c.
2284
89396210
AC
22852002-09-29 Andrew Cagney <ac131313@redhat.com>
2286
2287 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2288 __FUNCTION__.
2289 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2290 function name.
2291 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2292 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2293 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2294 (S_msg_sig_post_reply): Ditto.
2295
7079c36c
CV
22962002-09-28 Corinna Vinschen <vinschen@redhat.com>
2297
89396210
AC
2298 * sh-tdep.c (sh_use_struct_convention): Use definition according
2299 to ABI.
7079c36c
CV
2300 (sh_push_arguments): Store in register with correct endianess.
2301 (sh_default_store_return_value): Ditto.
2302 (sh_gdbarch_init): Set sizeof long double to 8.
2303
975ac915
MK
23042002-09-27 Mark Kettenis <kettenis@gnu.org>
2305
2306 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2307 Fix some whitespace problems.
2308
9bbe19fb
DC
23092002-09-27 David Carlton <carlton@math.stanford.edu>
2310
2311 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2312 (mcore-tdep.o): Ditto.
2313 (ns32k-tdep.o): Ditto.
2314 (ns32knbsd-tdep.o): Ditto.
2315 (sh3-rom.o): Ditto.
2316 (vax-tdep.o): Ditto.
2317 * cris-tdep.c: #include "gdb_string.h"
2318 * mcore-tdep.c: Ditto.
2319 * ns32k-tdep.c: Ditto.
2320 * ns32knbsd-tdep.c: Ditto.
2321 * sh3-rom.c: Ditto.
2322 * vax-tdep.c: Ditto.
2323
43b2fdc7
DC
23242002-09-27 David Carlton <carlton@math.stanford.edu>
2325
2326 * config/djgpp/fnchange.lst: Add entries for
2327 gdb/testsuite/gdb.c++/m-static files.
2328
e8cfbbd9
JW
23292002-09-27 Jim Wilson <wilson@redhat.com>
2330
2331 * MAINTAINERS: Add myself to the Write After Approval list.
2332
43b2fdc7 23332002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2334
2335 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2336
2337
9f3b7f07
AC
23382002-09-26 Andrew Cagney <ac131313@redhat.com>
2339
2340 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2341 frame.
2342
11269d7e
AC
23432002-09-26 Andrew Cagney <ac131313@redhat.com>
2344
2345 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2346 (rs6000_struct_return_address): Delete variable.
2347 (rs6000_store_struct_return): Update.
2348 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2349 deprecated_extract_struct_value_address.
2350 (rs6000_frame_align): New function.
2351 (rs6000_gdbarch_init): Set frame_align.
2352
f15ab4a7
AC
23532002-09-26 Andrew Cagney <ac131313@redhat.com>
2354
2355 From Grace Sainsbury <graces@redhat.com>:
2356 * Makefile.in (gdbtk-main.o): New target.
2357 (gdb.o): New target.
2358 (main_h): Define.
2359 (main.o): Update dependencies.
2360 (gdb$(EXEEXT)): Add gdb.o.
2361 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2362 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2363 (SUBDIR_GDBTK_CLEAN): Set.
2364 (install-gdbtk): Install the insight binary.
2365 (uninstall-gdbtk): New target.
2366 (all-gdbtk, clean-gdbtk): New rule.
2367 * top.c (use_windows): Default to zero.
2368 * main.c: Include "main.h".
2369 (main): Delete.
2370 (struct captured_main_args): Delete.
2371 (gdb_main): New function.
2372 * main.h: New file.
2373 * gdb.c: New File.
2374
e36180d7
AC
23752002-09-25 Andrew Cagney <cagney@redhat.com>
2376
2377 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2378 (frame_map_regnum_to_name): New function.
2379 (frame_map_name_to_regnum): New function.
2380 * frame.h (frame_map_name_to_regnum): Declare.
2381 (frame_map_regnum_to_name): Declare.
2382 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2383 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2384 * parse.c: Do not include "builtin-regs.h".
2385 (target_map_name_to_register): Delete function.
2386 (write_dollar_variable): Use frame_map_name_to_regnum.
2387 * parser-defs.h (target_map_name_to_register): Delete declaration.
2388 * expprint.c: Include "frame.h".
2389 (print_subexp): Use frame_map_regnum_to_name.
2390 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2391 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2392
8b69000d
AC
23932002-09-25 Andrew Cagney <ac131313@redhat.com>
2394
2395 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2396 wasn't saved, and the next innermost frame is a dummy, return the
2397 dummy frame's link register.
2398
046ca86a
JB
23992002-09-24 Jim Blandy <jimb@redhat.com>
2400
2401 Fix from Paul Breed:
2402 * main.c (captured_main): Add a `break' after the case for 'b'.
2403
94b66fa7
KS
24042002-09-24 Keith Seitz <keiths@redhat.com>
2405
2406 * varobj.c (c_type_of_child): Use get_target_type instead
2407 of TYPE_TARGET_TYPE.
2408
c214a6fd
FN
24092002-09-22 Fernando Nasser <fnasser@redhat.com>
2410
53cb0458
FN
2411 * source.c (get_current_or_default_source_symtab_and_line): Remove
2412 function.
2413 (set_default_source_symtab_and_line): New function. Attempts to
2414 determine a source file to list lines from if one is not currently
2415 defined.
2416 (get_current_source_symtab_and_line): Initialize sal.pc and
2417 sal.end fields.
2418 (set_current_source_symtab_and_line): Mark argument as const.
2419 * source.h: Update declarations and comments.
2420 * linespec.c (decode_line_1): Replace call to removed routine above.
2421 * stack.c (print_frame_info_base): Ditto.
2422 * cli/cli-cmds.c (edit_command): Ditto.
2423 (list_command): Ditto.
2424
24252002-09-22 Fernando Nasser <fnasser@redhat.com>
2426
d6020d45 2427 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2428 sal.pc and sal.end fields.
c214a6fd
FN
2429 (get_current_or_default_source_symtab_and_line): Ditto.
2430 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2431 so we do not cause a new source symtab to be searched for (reverting an
2432 unintentional change from the 2002-09-20 patch).
2433 * scm-lang.c (scm_unpac): Ditto.
2434
cc3b68a5
AC
24352002-09-21 Andrew Cagney <cagney@redhat.com>
2436
2437 * complaints.c (symfile_explanations): Remove new-line from
2438 ``isolated_message''.
2439 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2440 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2441
5835abe7
NC
24422002-09-20 Nick Clifton <nickc@redhat.com>
2443
2444 * NEWS: Announce that V850EA ISA is no longer supported.
2445 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2446
a15ef5f5
DC
24472002-09-20 David Carlton <carlton@math.stanford.edu>
2448
06ba1b39
DC
2449 * Makefile.in (c-lang.o): Correct dependencies.
2450 (utils.o): Gather dependencies.
2451 (charset.o): Move.
a15ef5f5
DC
2452 * c-lang.c: #include "gdb_string.h"
2453
87885426
FN
24542002-09-20 Fernando Nasser <fnasser@redhat.com>
2455
2456 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2457 * cli/cli-cmds.c (list_command): New function. Implements the new
2458 cli edit command.
2459 (_init_cli_cmds): Add new command definition.
2460 * gdb.1: Document edit command.
2461 * doc/gdb.texinfo: Document edit command.
2462
24632002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2464
2465 * source.c: Make global variables current_source_symtab and
2466 current_source_line static.
2467 (list_command): Moved to cli/cli-cmds.c.
2468 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2469 (get_first_line_listed): New accessor function.
2470 (get_lines_to_list): New accessor function.
2471 (get_current_source_symtab_and_line): New function. Retrieves the
2472 position in the source code that we consider current.
2473 (get_current_or_default_source_symtab_and_line): New function.
2474 Like the above but attempts to determine a default position if one
2475 is not currently defined.
2476 (set_current_source_symtab_and_line): New function. Sets the source
2477 code position considered current and returns the previously set one.
2478 (clear_current_source_symtab_and_line): Reset stored information about
2479 a current source line.
2480 (_initialize_source): Remove registration for the "list" command and
2481 its alias.
2482 * source.h: Add declarations for the new functions above.
2483 * symtab.h: Remove declarations for the global variables mentioned
2484 above.
2485 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2486 obtain current source line.
2487 * linespec.c (decode_line_1): Ditto.
2488 * macroscope.c (default_macro_scope): Ditto.
2489 * scm-lang.c (scm_unpac): Ditto.
2490 * stack.c (print_frame_info_base): Ditto.
2491 * symfile.c (clear_symtab_users): Ditto.
2492 * symtab.c (decode_line_spec): Ditto.
2493 * cli/cli-cmds.c (list_command): Moved here from source.c.
2494 (ambiguous_line_spec): Moved here from source.c.
2495 (_init_cli_cmds): Add definition for "list" and its alias.
2496 * Makefile.in: Update dependencies.
2497
ddd216ea
CV
24982002-09-20 Corinna Vinschen <vinschen@redhat.com>
2499
2500 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2501 with what gcc thinks is correct.
2502
6d305052
CV
25032002-09-20 Corinna Vinschen <vinschen@redhat.com>
2504
2505 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2506 multiple register push instruction.
2507
234b45d4
KB
25082002-09-19 Jim Blandy <jimb@redhat.com>
2509
2510 Add support for distinct host and target character sets.
2511 * charset.c, charset.h: New files.
2512 * c-exp.y: #include "charset.h".
2513 (yylex): Convert character and string literals to the target
2514 character set, before returning them as the semantic value of the
2515 token.
2516 * c-lang.c: #include "charset.h".
2517 (c_emit_char): Use charset-specific methods to recognize
2518 characters with backslash escape forms, to decide which characters
2519 to print literally and which to print using numeric escape
2520 sequences, and to convert target characters to host characters
2521 before printing.
2522 * utils.c: #include "charset.h".
2523 (no_control_char_error): New function.
2524 (parse_escape): Use charset-specific methods to recognize
2525 backslash escapes, parse `control character' notation, and convert
2526 characters from the host character set to the target character set.
2527 * configure.in: Set the default host character set.
2528 Check where to find iconv, and what its argument types might be.
2529 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2530 * Makefile.in (SFILES): List charset.c.
2531 (COMMON_OBS): List charset.o.
2532 (charset.o): New rule.
2533 (charset_h): New header dependency variable.
2534 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2535 (LIBICONV): New variable, set by configure.
2536 (CLIBS): Include $(LIBICONV) here.
2537 * aclocal.m4, config.in, configure: Regenerated.
2538
525d6a61
JB
25392002-09-19 Joel Brobecker <brobecker@gnat.com>
2540
2541 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2542 bison 1.35 warning.
2543
3ed93867
RE
25442002-09-19 Richard Earnshaw <rearnsha@arm.com>
2545
2546 * gdb_mbuild.sh: New file.
2547
437666f8
AC
25482002-09-19 Andrew Cagney <ac131313@redhat.com>
2549
2550 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2551
389e51db
AC
25522002-09-18 Andrew Cagney <ac131313@redhat.com>
2553
2554 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2555 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2556 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2557 valops.c, value.h: Revert previous change.
2558
3b4efeaa
MS
25592002-09-18 Michael Snyder <msnyder@redhat.com>
2560
2561 Preliminary support for Objective-C:
2562 * defs.h (language_objc): New enum value.
2563 (puts_filtered_tabular): Declaration only, exported from utils.c.
2564 (skip_quoted): Delete, declared in completer.h.
2565 * c-exp.y: Include completer.h.
2566 * p-exp.y: Ditto.
2567 * jv-exp.y: Ditto.
2568 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2569 New operator enum values.
2570 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2571 * language.c (binop_result_type): Handle language_objc case.
2572 (integral_type, character_type, string_type, boolean_type,
2573 structured_type, binop_type_check): Ditto.
2574 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2575 (struct objc_specific): Add to general_symbol_info.
2576 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2577 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2578 * parser-defs.h (struct objc_class_str): New struct type.
2579 (start_msglist, end_msglist, add_msglist): Declaration only,
2580 exported from objc-lang.c.
2581 * value.h (value_of_local, value_nsstring,
2582 call_function_by_hand_expecting_type): Exported from valops.c.
2583 * valops.c (find_function_addr): Export.
2584 (call_function_by_hand_expecting_type): New function.
2585 (value_of_local): New function.
2586 * symfile.c (init_filename_language_table): Add ".m" extension
2587 for Objective-C.
2588 * utils.c (puts_filtered_tabular): New function.
2589 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2590 (set/show demangle): Extend help-string to refer to ObjC.
2591 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2592 * stabsread.c (symbol_reference_defined): Objective-C symbols
2593 may contain colons: make allowances when scanning stabs strings
2594 for colons.
2595 (objc_find_colon): New function.
2596 * printcmd.c (address_info): If language == objc then print
2597 "self" instead of "this".
2598 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2599 OP_NSSTRING, and OP_SELF.
2600 (prefixify_subexp): Ditto.
2601 * source.c (print_source_lines): Mention objc in comment.
2602 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2603 method names.
2604
b9caf505
AC
26052002-09-18 Andrew Cagney <ac131313@redhat.com>
2606
2607 * complaints.h: Update copyright.
2608 (struct complaints): Declare.
2609 (struct complaint): Make `message' constant.
2610 (internal_complaint): Declare.
2611 (complaint): Declare.
2612 (complaint_root): Delete declaration.
2613 (symfile_complaints): Delete declaration.
2614 (struct complaints): Add opaque declaration.
2615 (clear_complaints): Add a complaints parameter.
2616 * complaints.c: Update copyright.
2617 (enum complaint_series): Define.
2618 (complaint_root): Delete.
2619 (struct complaints): Define.
2620 (complaint_sentinel, symfile_complaint_book): New variables.
2621 (symfile_explanations, symfile_complaints): New variables.
2622 New variables.
2623 (get_complaints): New function.
2624 (vcomplaint): New function.
2625 (complaint): New function.
2626 (internal_complaint): New function.
2627 (complain): Call vcomplain with symfile_complaint.
2628 (clear_complaints): Rewrite.
2629 (_initialize_complaints): Use add_setshow_command.
2630 * Makefile.in (complaints.o): Update dependencies.
2631 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2632 to call to clear_complaints.
2633 (new_symfile_objfile, reread_symbols): Ditto.
2634 (oldsyms_complaint): Delete.
2635 (empty_symtab_complaint, unknown_option_complaint): Delete.
2636 (free_named_symtabs): Use complaint instead of complain.
2637
d2e6263c
MS
26382002-09-18 Michael Snyder <msnyder@redhat.com>
2639
5fb2031a
AC
2640 Contributed by Apple Computer, Inc. Merged with current sources
2641 by Adam Fedor <fedor@doc.com> [cagney].
2642
d2e6263c
MS
2643 * objc-lang.c: First clean-up round: comments, indentation.
2644 * objc-lang.h: Ditto.
2645 * objc-lang.y: Ditto.
2646
dec43320
AC
26472002-09-18 Andrew Cagney <ac131313@redhat.com>
2648
2649 * maint.c (maintenance_internal_error): Print the parameter as the
2650 error message.
2651 (maintenance_internal_warning): New function.
2652 (_initialize_maint_cmds): Add command `maint internal-warning'.
2653
2654 * defs.h (internal_warning, internal_vwarning): Declare.
2655 * utils.c (struct internal_problem): Define.
2656 (internal_vproblem): New function.
2657 (internal_warning): New function.
2658 (internal_vwarning): New function.
2659 (internal_warning_problem, internal_error_problem): New variables.
2660 (internal_verror): Just call internal_vproblem.
2661
b81654f1
MS
26622002-09-18 Michael Snyder <msnyder@redhat.com>
2663
2664 * objc-lang.c: New file, support for Objective-C.
2665 Preliminary check-in, not yet integrated into gdb.
2666 * objc-lang.h: New file.
2667 * objc-exp.y: New file.
2668
0542c381
AC
26692002-09-18 Andrew Cagney <ac131313@redhat.com>
2670
7bda5e4a
AC
2671 * infrun.c (signal_stop_update): Convert definition to ISO C.
2672 (signal_print_update): Ditto.
2673 (signal_pass_update): Ditto.
2674 * inflow.c (terminal_save_ours): Ditto.
2675
5247b418
AC
2676 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2677 comments.
2678
fc60962c
AC
2679 * config/djgpp/fnchange.lst: Handle name clashes between
2680 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2681 bfd/coff-tic80.c.
2682
0542c381
AC
2683 * i386-linux-tdep.h: Fix tipo.
2684
5b924b9b
AF
26852002-09-18 Adam Fedor <fedor@gnu.org>
2686
2687 * MAINTAINERS: Add myself to the Write After Approval list.
2688
5afc051b
JB
26892002-09-18 Jim Blandy <jimb@redhat.com>
2690
2691 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2692 texthigh and textlow to reader-specific structs caused
2693 objfile_relocate to miss them. This is fixable, but the work that
2694 the change was supposed to prepare GDB for never got done anyway.
2695
eb944380
DC
26962002-09-18 David Carlton <carlton@math.stanford.edu>
2697
2698 * MAINTAINERS: Alphabetize Write After Approval list.
2699
948e66d9
DJ
27002002-09-18 Daniel Jacobowitz <drow@mvista.com>
2701
2702 Fix PR gdb/709
2703 * values.c (value_static_field): Call read_var_value.
2704
dc604539
AC
27052002-09-18 Andrew Cagney <ac131313@redhat.com>
2706
2707 * valops.c (hand_function_call): Align the initial stack pointer
2708 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2709 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2710 return value.
2711 * mips-tdep.c (mips_frame_align): New function.
2712 (mips_gdbarch_init): Set frame_align.
2713 * gdbarch.sh (FRAME_ALIGN): New method.
2714 * gdbarch.h, gdbarch.c: Re-generate.
2715
cb7e422f
ML
27162002-09-18 Michal Ludvig <mludvig@suse.cz>
2717
2718 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2719 registers.
2720
a094c6fb
AC
27212002-09-17 Andrew Cagney <ac131313@redhat.com>
2722
2723 * NEWS: Mention that MIPS $fp behavior changed.
2724 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2725 reference to FP_REGNUM.
2726 (mipsnbsd_cannot_store_register): Ditto.
2727 * mips-linux-nat.c: Update copyright.
2728 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2729 (mips_linux_cannot_store_register): Ditto.
2730 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2731 * config/mips/tm-mips.h: Update copyright.
2732 (FP_REGNUM): Delete macro.
2733 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2734 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2735 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2736 (mips_r3041_reg_names, mips_r3051_reg_names)
2737 (mips_r3081_reg_names): Replace "fp" with "".
2738 Fix PR gdb/480.
2739
45cf40d1
TR
27402002-09-17 Theodore A. Roth <troth@verinet.com>
2741
2742 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2743 generic_read_register_dummy() (PR gdb/703).
2744 (avr_push_return_address): #if 0 out unused vars.
2745 (avr_gdbarch_init): Enable use of avr_push_return_address().
2746
c7e701b5
MS
27472002-09-17 Michael Snyder <msnyder@redhat.com>
2748
d76ba2a5 2749 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2750 RTE will take care of it.
2751
20bcf01c
AC
27522002-09-17 Andrew Cagney <ac131313@redhat.com>
2753
2754 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2755 invalid, return SP_REGNUM.
2756
009a9971 27572002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2758
2759 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2760 point registers without sign extension.
2761
135c175f
AC
27622002-09-17 Andrew Cagney <cagney@redhat.com>
2763
2764 * blockframe.c (deprecated_read_register_dummy): Rename
2765 generic_read_register_dummy.
2766 * frame.c (frame_unwind_signed_register): New function.
2767 (frame_unwind_unsigned_register): New function.
2768 * frame.h (frame_unwind_signed_register): Declare.
2769 (frame_unwind_unsigned_register): Declare.
2770 (deprecated_read_register_dummy): Rename
2771 generic_read_register_dummy.
2772
2773 * h8300-tdep.c (h8300_frame_chain): Update.
2774 (h8300_frame_saved_pc): Update.
2775 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2776 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2777 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2778 (s390_frame_chain): Update.
2779 * v850-tdep.c (v850_find_callers_reg): Update.
2780 (v850_frame_saved_pc): Update.
2781 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2782 (m32r_find_callers_reg): Update.
2783 (m32r_frame_saved_pc): Update.
2784 * sh-tdep.c (sh_find_callers_reg): Update.
2785 (sh64_get_saved_pr): Update.
2786 (sh_init_extra_frame_info): Update.
2787 (sh_init_extra_frame_info): Update.
2788 (sh64_init_extra_frame_info): Update.
2789 (sh64_init_extra_frame_info): Update.
2790 * mcore-tdep.c (mcore_find_callers_reg): Update.
2791 (mcore_frame_saved_pc): Update.
2792 (mcore_init_extra_frame_info): Update.
2793 * i386-tdep.c (i386_frame_saved_pc): Update.
2794 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2795 (ia64_init_extra_frame_info): Update.
2796 (ia64_init_extra_frame_info): Update.
2797 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2798 * cris-tdep.c (cris_init_extra_frame_info): Update.
2799 * avr-tdep.c (avr_frame_chain): Update.
2800 (avr_init_extra_frame_info): Update.
2801 (avr_frame_saved_pc): Update.
2802 * arm-tdep.c (arm_find_callers_reg): Update.
2803 (arm_init_extra_frame_info): Update.
2804 (arm_frame_saved_pc): Update.
2805
a741e514
TT
28062002-09-17 Tom Tromey <tromey@redhat.com>
2807
2808 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2809 is "'".
2810
d1a8e808
CV
28112002-09-17 Corinna Vinschen <vinschen@redhat.com>
2812
2813 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2814 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2815 NEXT_PROLOGUE_INSN.
2816 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2817 NEXT_PROLOGUE_INSN.
2818
d9025a18
JB
28192002-09-16 Joel Brobecker <brobecker@gnat.com>
2820
2821 * osfsolib.c: Remove file, replaced by solib-osf.c.
2822 * Makefile.in: Remove compilation rules for osfsolib.c.
2823
1b2ef1b6
DC
28242002-09-16 David Carlton <carlton@math.stanford.edu>
2825
2826 * cp-valprint.c (cp_print_class_method): Correct args to
2827 check_stub_method_group.
2828
928e48af
CV
28292002-09-16 Corinna Vinschen <vinschen@redhat.com>
2830
2831 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2832 `set architecture'. Unify naming convention of functions.
2833 (h8300_skip_prologue): Improve prologue analysis.
2834 (h8300_push_arguments): Rewritten to more closely match GCC's
2835 bizarre argument-passing behavior, along with the comment describing
2836 said behavior.
2837 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2838 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2839 sim, remote-e7000.c, remote-hms.c and remote.c
2840
5e3397bb
MK
28412002-09-15 Mark Kettenis <kettenis@gnu.org>
2842
2843 * i386-tdep.c (gdb_print_insn_i386): Removed.
2844 (i386_print_insn): New function.
2845 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2846 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2847 tm_print_insn_info.
2848
f710f4fc
MK
28492002-09-14 Mark Kettenis <kettenis@gnu.org>
2850
2851 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2852 zero.
2853
db54fef4
CV
28542002-09-14 Corinna Vinschen <vinschen@redhat.com>
2855
2856 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2857 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2858 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2859
2becadee
CF
28602002-09-13 Christopher Faylor <cgf@redhat.com>
2861
2862 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2863
de17c821
DJ
28642002-09-13 Daniel Jacobowitz <drow@mvista.com>
2865
2866 * gdbtypes.c (check_stub_method): Make static.
2867 (check_stub_method_group): New function.
2868 * gdbtypes.h: Update prototypes.
2869 * cp-support.c: New file.
2870 * cp-support.h: New file.
2871
2872 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2873 (update_method_name_from_physname): New function.
2874 (read_member_functions): Correct method names for operators
2875 and v3 constructors/destructors. Separate v2 constructors and
2876 destructors.
2877 * Makefile.in (stabsread.o): Update dependencies.
2878 (SFILES): Add cp-support.c.
2879 (COMMON_OBS): Add cp-support.o.
2880 (cp_support_h, cp-support.o): Add.
2881
2882 * cp-valprint.c (cp_print_class_method): Call
2883 check_stub_method_group instead of check_stub_method. Remove
2884 extraneous QUITs.
2885 * p-valprint.c (pascal_object_print_class_method): Likewise.
2886 * valops.c (search_struct_method): Likewise.
2887 (find_method_list, value_struct_elt_for_reference): Likewise.
2888
e76cff22
AC
28892002-09-13 Andrew Cagney <cagney@redhat.com>
2890
2891 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2892 * gdbarch.h, gdbarch.c: Regenerate.
2893
905abb3f
AC
28942002-09-13 Andrew Cagney <ac131313@redhat.com>
2895
2896 * frame.c (find_saved_register): Delete function.
2897 * frame.h (find_saved_register): Delete declaration.
2898 Fix PR gdb/631.
2899
64159455
AC
2900Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2901
2902 * mips-tdep.c (read_next_frame_reg): Re-hack using
2903 frame_register_unwind.
2904
795e1e11
AC
2905Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2906
2907 * mips-tdep.c (mips_get_saved_register): Re-hack using
2908 frame_register_unwind.
2909
5720643c
JB
29102002-09-12 Joel Brobecker <brobecker@gnat.com>
2911
2912 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2913 vector. Will be useful for Interix.
2914 * gdbarch.h, gdbarch.c: Regenerate.
2915
2916 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2917 name of the malloc function by NAME_OF_MALLOC.
2918
3bada2a2
JB
29192002-09-12 Joel Brobecker <brobecker@gnat.com>
2920
2921 * value.h (find_function_in_inferior): Add const keyword to
2922 one of the parameters. Allows us to invoke this function with
2923 a const char *.
2924 * valops.c (find_function_in_inferior): Likewise.
2925
3db26b01
JB
29262002-09-12 Joel Brobecker <brobecker@gnat.com>
2927
2928 * exec.c (xfer_memory): Fix compilation warning with old versions
2929 of GCC.
2930 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2931
17c5ed2c
DC
29322002-09-12 David Carlton <carlton@math.stanford.edu>
2933
2934 * symtab.h: Run through gdb_indent.h.
2935 Add 2002 to Copyright year list.
2936
ecd1107e
AM
29372002-09-12 Alan Modra <amodra@bigpond.net.au>
2938
2939 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2940 mach constants.
2941 * MAINTAINERS: Add myself to write after approval list.
2942
e64f66d1
JB
29432002-09-11 J. Brobecker <brobecker@gnat.com>
2944
2945 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2946
f9395794
JB
29472002-09-11 J. Brobecker <brobecker@gnat.com>
2948
2949 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2950 Interix.
2951
1a303dec
MS
29522002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2953
2954 * procfs.c (do_detach): Clear current signal, not just fault.
2955 Corrects problem with breakpoint trap signal leaking to detached
2956 process on Tru64.
2957
c0219d42
MS
29582002-09-10 Michael Snyder <msnyder@redhat.com>
2959
2960 * buildsym.c (finish_block): Protect against null pointer.
2961
9d84ac84
AC
29622002-09-10 Andrew Cagney <cagney@redhat.com>
2963
2964 * infcmd.c (default_print_registers_info): Send all output to
2965 ``file'' instead of ``gdb_stdout''.
2966
77d8f2b4
MS
29672002-09-10 Michael Snyder <msnyder@redhat.com>
2968
2969 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2970 LONGEST, and use signed register read (addresses are sign-
2971 extended for mips).
2972
99656a61
SC
29732002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2974
2975 * event-loop.c (gdb_do_one_event): Make public.
2976 * event-loop.h (gdb_do_one_event): Declare.
2977
da12f4d8
JL
29782002-09-10 Jeff Law <law@redhat.com>
2979
2980 * infttrace.c (child_resume): Simplify and rework to avoid
2981 TT_PROC_CONTINUE.
2982
d0aee0c4
FF
29832002-09-09 Fred Fish <fnf@intrinsity.com>
2984
2985 * printcmd.c (print_scalar_formatted): "len" is the number of
2986 target bytes, NOT the number of target bits.
2987
7cb3ec5e
EZ
29882002-09-09 Elena Zannoni <ezannoni@redhat.com>
2989
2990 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2991 * top.c (init_main): Set rl_terminal_name.
2992
4dc81987
AS
29932002-09-08 Aidan Skinner <aidan@velvet.net>
2994
2995 * ada-lang.c (ada_array_bound, ada_type_match,
2996 _initialize_ada_language): Fix K&R definitions.
2997 * ada-tasks.c (get_current_task): Fix K&R definitions.
2998 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2999
842330b4
CF
30002002-09-07 Christopher Faylor <cgf@redhat.com>
3001
3002 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3003 Add XP.
3004
43156d82
MK
30052002-09-06 Mark Kettenis <kettenis@gnu.org>
3006
66da5fd8
MK
3007 * i386-tdep.c (i386_register_virtual_type,
3008 i386_register_convertible, i386_register_convert_to_virtual,
3009 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3010 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3011 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3012 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3013 Don't set push_arguments twice.
3014
4b218c18
MK
3015 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3016 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3017 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3018 sigtramp_end to NULL.
3019 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3020 defines.
3021 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3022
4cc314d5
MK
3023 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3024 whitespace.
3025
43156d82
MK
3026 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3027 * gdbarch.h, gdbarch.c: Re-generate.
3028 * blockframe.c (find_pc_sect_partial_function): Convert to use
3029 SIGTRAMP_START_P predicate.
3030
6672060b
MS
30312002-09-05 Michael Snyder <msnyder@redhat.com>
3032
a90c3637
MS
3033 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3034 generic_dummy_frame method and old method. Also distinguish
3035 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3036 (arm_extract_return_value): Use new regcache method.
a90c3637 3037
6672060b
MS
3038 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3039 adjustment that doesn't conform to the ABI.
3040 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3041 saved regcache, not from current regcache.
3042
299ffc64
AC
30432002-09-05 Andrew Cagney <ac131313@redhat.com>
3044
3045 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3046 * README: Update.
3047
a3a2ee65
JT
30482002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3049
3050 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3051 if arm_apcs_32 is false.
3052
2bc7eea9
AC
30532002-09-04 Andrew Cagney <ac131313@redhat.com>
3054
3055 GDB 5.3 branch created.
3056
8a55a7c5
TR
30572002-09-03 Theodore A. Roth <troth@verinet.com>
3058
3059 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3060 generic_unwind_get_saved_register.
3061
e26fb1d7
DC
30622002-09-03 David Carlton <carlton@math.stanford.edu>
3063
3064 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3065 argument (PR gdb/653). Update call to smash_to_method_type.
3066 (read_structure_scope): Update call to dwarf2_add_member_fn.
3067
30d52491
ML
30682002-09-03 Michal Ludvig <mludvig@suse.cz>
3069
3070 * x86-64-linux-tdep.c: Include gdb_string.h
3071 * x86-64-linux-nat.c: Ditto.
3072
06891d83
JT
30732002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3074
3075 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3076 when YYDEBUG is set to 1.
3077 * c-exp.y: Likewise.
3078 * f-exp.y: Likewise.
3079 * jv-exp.y: Likewise.
3080 * m2-exp.y: Likewise.
3081 * p-exp.y: Likewise.
3082
7d400e77
JT
30832002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3084
3085 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3086 dependency list.
3087 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3088 solib_svr4_fetch_link_map_offsets to
3089 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3090 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3091 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3092 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3093 solib-svr4.o, and solib-legacy.o.
3094 * config/i386/tm-nbsd.h: Include solib.h.
3095
704a27c4
JT
30962002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3097
3098 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3099 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3100 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3101 comment noting that this needs its own target configuration.
3102 * config/i386/nbsd.mt: New file.
3103 * config/i386/nbsdaout.mt: Remove.
3104 * config/i386/nbsdelf.mt: Ditto.
3105 * config/i386/tm-nbsdaout.h: Ditto.
3106
d66198e1
JT
31072002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3108
3109 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3110 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3111 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3112 tdep->sigtramp_end.
3113 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3114 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3115 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3116
3cac699e
JT
31172002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3118
3119 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3120 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3121 * i386-tdep.h (i386bsd_init_abi): New prototype.
3122 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3123 function declaration.
3124 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3125 for NetBSD-a.out or NetBSD-ELF.
3126 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3127 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3128 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3129 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3130 and nbsd-tdep.h.
3131 (i386nbsd_pc_in_sigtramp): New function.
3132 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3133 i386nbsd_pc_in_sigtramp.
3134 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3135 and i386nbsdelf_init_abi OS ABI handlers.
3136 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3137 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3138
7010ca0a
MK
31392002-09-02 Mark Kettenis <kettenis@gnu.org>
3140
3141 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3142 registers if the target really has them.
3143
6dd93b72
JT
31442002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3145
3146 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3147 than nbsd-tdep.h.
3148
2ca8ae21
JT
31492002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3150
3151 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3152 list.
3153 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3154 (alphanbsd_skip_sigtramp_frame): New functions.
3155 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3156 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3157 to alphanbsd_sigcontext_addr.
3158
3d9b49b0
JT
31592002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3160
3161 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3162 list.
3163 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3164 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3165 nbsd_pc_in_sigtramp.
3166 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3167 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3168 * nbsd-tdep.c: Include gdb_string.h.
3169 (nbsd_pc_in_sigtramp): New function.
3170 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3171 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3172 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3173 ppcnbsd_pc_in_sigtramp.
3174 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3175 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3176 shnbsd_pc_in_sigtramp.
3177 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3178 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3179 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3180
c860120c
PM
31812002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3182
3183 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3184 watchpoints to NULL.
3185 (insert_breakpoints): set val field of watchpoints if NULL.
3186
3187
c7612d53
JB
31882002-08-29 Jim Blandy <jimb@redhat.com>
3189
3190 * symtab.c (lookup_symbol_aux): In the cases where we find a
3191 minimal symbol of an appropriate name and use its address to
3192 select a symtab to read and search, use `name' (as passed to us)
3193 as the demangled name when searching the symtab's global and
3194 static blocks, not the minsym's name.
3195
66609862
KS
31962002-08-29 Keith Seitz <keiths@redhat.com>
3197
3198 * stack.c (print_frame_info_base): Always set current_source_symtab
3199 and current_source_line.
3200
151fefe2
JB
32012002-08-29 Donn Terry <donnte@microsoft.com>
3202
3203 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3204
bfb3754e
KS
32052002-08-28 Keith Seitz <keiths@redhat.com>
3206
3207 * stack.c (select_frame): Add FIXME concerning selected-frame
3208 events.
3209 (select_frame_command): Send selected-frame-level-changed
3210 event notification, but only if the level actually changed.
3211 (up_silently_base): Add selected-frame-level-changed event
3212 notification.
3213 (down_silently_base): Likewise.
3214
e822a2a0
AC
32152002-08-28 Andrew Cagney <ac131313@redhat.com>
3216
3217 * Makefile.in: Update dependencies for all gdb/*.c files.
3218
309367d4
TT
32192002-08-27 Tom Tromey <tromey@redhat.com>
3220
3221 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3222 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3223 Update dependencies.
3224 * i387-tdep.c: Include gdb_string.h.
3225 * osabi.c: Likewise.
3226 * i386-linux-nat.c: Likewise.
3227 * lin-lwp.c: Likewise.
3228 * ax-gdb.c: Likewise.
3229 * signals/signals.c: Likewise.
3230 * jv-valprint.c: Likewise.
3231 * p-lang.c: Likewise.
3232 * c-valprint.c: Likewise.
3233 * cp-abi.c: Likewise.
3234
e1507482
EZ
32352002-08-27 Elena Zannoni <ezannoni@redhat.com>
3236
3237 * cli/cli-script.h (copy_command_lines): Export.
3238 * breakpoint.c: Include cli/cli-script.h.
3239 * Makefile.in (breakpoint.o): Update dependencies.
3240
c6510018
MS
32412002-08-26 Michael Snyder <msnyder@redhat.com>
3242
3243 * breakpoint.c (insert_breakpoints): Protect all references
3244 to 'process_warning'. Shorten long lines.
3245
c2b8ed2c
MS
32462002-08-26 Joel Brobecker <brobecker@gnat.com>
3247
3248 * cli/cli-script.c (copy_command_lines): New function.
3249 * defs.h (copy_command_lines): Export.
3250 * testsuite/gdb.base/commands.exp: New tests for commands
3251 attached to a temporary breakpoint, and for commands that
3252 delete the breakpoint they are attached to.
3253
32542002-08-26 Michael Snyder <msnyder@redhat.com>
3255
3256 * breakpoint.c (bpstat_stop_status): Instead of copying the
3257 pointer to the breakpoint commands struct, make a new copy
3258 of the struct and point to that.
3259 (bpstat_clear): Free the commands struct.
3260 (bpstat_clear_actions): Free the commands struct.
3261 (bpstat_do_actions): Free the command actions. Also execute
3262 the local cleanups, instead of deleting them.
3263 (delete_breakpoint): Leave the commands field of the bpstat
3264 chain alone -- it will be freed later.
3265
64b84175
KB
32662002-08-26 Kevin Buettner <kevinb@redhat.com>
3267
3268 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3269 deleted in 2002-08-20 commit. This function is still used by
3270 ppc-linux-nat.c.
3271
55970da6
KS
32722002-08-26 Keith Seitz <keiths@redhat.com>
3273
3274 * gdb-events.sh: Add selected-frame-level-changed event.
3275 * gdb-events.c: Regenerated.
3276 * gdb-events.h: Regenerated.
3277
a790ad35
SC
32782002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3279
3280 Fix PR gdb/393:
3281 * inflow.c (terminal_save_ours): New function to save terminal
3282 settings.
3283 * inferior.h (terminal_save_ours): Declare.
3284 * target.c (debug_to_terminal_save_ours): New function.
3285 (cleanup_target): Defaults to_terminal_save_ours.
3286 (update_current_target): Inherit to_terminal_save_ours.
3287 (setup_target_debug): Set to_terminal_save_ours.
3288 * target.h (target_terminal_save_ours): New to save terminal settings.
3289 (target_ops): New member to_terminal_save_ours.
3290 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3291 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3292 * inftarg.c (init_child_ops): Likewise.
3293 * m3-nat.c (init_m3_ops): Likewise.
3294 * procfs.c (init_procfs_ops): Likewise.
3295 * wince.c (init_child_ops): Likewise.
3296 * win32-nat.c (init_child_ops): Likewise.
3297 * sol-thread.c (init_sol_thread_ops): Likewise.
3298
c00dcbe9
MK
32992002-08-26 Mark Kettenis <kettenis@gnu.org>
3300
3d7f4f49
MK
3301 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3302 use regcache_* functions.
3303 (i386_gdbarch_init): Set store_return_value instead of
3304 deprecated_store_return_value.
3305
c00dcbe9
MK
3306 * regcache.c (regcache_raw_write_signed,
3307 regcache_raw_write_unsigned): New functions.
3308 * regcache.h (regcache_raw_write_signed,
3309 regcache_raw_write_unsigned): New prototypes.
3310
0e0d15ca
AC
33112002-08-25 Andrew Cagney <ac131313@redhat.com>
3312
3313 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3314 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3315 source file dependencies. Cleanup corresponding generator rules.
3316
d3b22ed5
AC
33172002-08-25 Andrew Cagney <ac131313@redhat.com>
3318
3319 * regcache.h (register_offset_hack): Declare.
3320 (regcache_cooked_read_using_offset_hack): Declare.
3321 (regcache_cooked_write_using_offset_hack): Declare.
3322
3323 * regcache.c (register_offset_hack): New function.
3324 (regcache_cooked_read_using_offset_hack): New function.
3325 (regcache_cooked_write_using_offset_hack): New function.
3326 (regcache_dump): Check that the registers, according to their
3327 offset, are packed hard against each other.
3328 (cooked_xfer_using_offset_hack): New function.
3329
bb425013
AC
33302002-08-25 Andrew Cagney <ac131313@redhat.com>
3331
3332 * regcache.c (struct regcache_descr): Add field register_type.
3333 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3334 in as a parameter
3335 (init_regcache_descr): Initialize register_type. Pass the descr
3336 to init_legacy_regcache_descr. Use register_type instead of
3337 REGISTER_VIRTUAL_TYPE.
3338 (register_type): New function.
3339 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3340 * regcache.h (register_type): Declare.
3341
d0403e00
AC
33422002-08-25 Andrew Cagney <ac131313@redhat.com>
3343
3344 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3345 instead of deprecated_store_return_value. Fix fallout from
3346 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3347
0ed04cce
AC
33482002-08-25 Andrew Cagney <ac131313@redhat.com>
3349
3350 * regcache.c (max_register_size): New function.
3351 (init_legacy_regcache_descr): Ensure that max_register_size is
3352 large enough for REGISTER_VIRTUAL_SIZE.
3353 * regcache.h (max_register_size): Declare.
3354
46d79c04
AC
33552002-08-24 Andrew Cagney <ac131313@redhat.com>
3356
3357 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3358 store_return_value.
3359 (e500_extract_return_value): Change type of valbuf pointer to
3360 void.
3361
853c7bd0
MK
33622002-08-24 Mark Kettenis <kettenis@gnu.org>
3363
cd87e769
MK
3364 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3365 workaround.
3366
853c7bd0
MK
3367 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3368 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3369 long long) to prevent compiler warning on 64-bit systems.
3370
ebba8386
AC
33712002-08-23 Andrew Cagney <cagney@redhat.com>
3372
3373 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3374 (DEPRECATED_STORE_RETURN_VALUE): New method.
3375 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3376 * gdbarch.h, gdbarch.c: Re-generate.
3377
3378 * values.c (set_return_value): Pass current_regcache to
3379 STORE_RETURN_VALUE.
3380 * arch-utils.h (legacy_store_return_value): Declare.
3381 * arch-utils.c (legacy_store_return_value): New function.
3382 (legacy_extract_return_value): Update parameters.
3383
3384 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3385 STORE_RETURN_VALUE.
3386 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3387 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3388 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3389 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3390 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3391 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3392 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3393 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3394 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3395 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3396
3397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3398 * i386-tdep.c (i386_extract_return_value): Update.
3399 * arch-utils.c (legacy_extract_return_value): Update.
3400 * frv-tdep.c (frv_gdbarch_init): Update.
3401 * cris-tdep.c (cris_gdbarch_init): Update.
3402 * d10v-tdep.c (d10v_gdbarch_init): Update.
3403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3404 * m68k-tdep.c (m68k_gdbarch_init): Update.
3405 * mcore-tdep.c (mcore_gdbarch_init): Update.
3406 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3407 * s390-tdep.c (s390_gdbarch_init): Update.
3408 * sparc-tdep.c (sparc_gdbarch_init): Update.
3409 * sh-tdep.c (sh_gdbarch_init): Update.
3410 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3411 * v850-tdep.c (v850_gdbarch_init): Update.
3412 * avr-tdep.c (avr_gdbarch_init): Update.
3413 * ia64-tdep.c (ia64_gdbarch_init): Update.
3414 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3415 * vax-tdep.c (vax_gdbarch_init): Update.
3416 * alpha-tdep.c (alpha_gdbarch_init): Update.
3417 * arm-tdep.c (arm_gdbarch_init): Update.
3418 * mips-tdep.c (mips_gdbarch_init): Update.
3419 * i386-tdep.c (i386_gdbarch_init): Update.
3420
5bd8c6d0
AC
34212002-08-23 Andrew Cagney <ac131313@redhat.com>
3422
3423 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3424 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3425
e73e1724
MK
34262002-08-24 Mark Kettenis <kettenis@gnu.org>
3427
3428 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3429 problems.
3430
3e6564e1
JB
34312002-08-23 Joel Brobecker <brobecker@gnat.com>
3432
3433 * infrun.c (handle_inferior_event): Move a comment outside of a
3434 function call, in order to avoid indent reformatting this part
3435 of the code in an unreadable way.
3436
81d0cc19
GS
34372002-08-23 Grace Sainsbury <graces@redhat.com>
3438
3439 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3440 when breakpoints fail. Move general breakpoint error messages to
3441 insert_breakpoints.
3442 * breakpoint.c (insert_breakpoints): Change warnings when
3443 breakpoints are nto inserted to specify the type. Remove call to
3444 memory_error when hardware breakpoints can't be inserted. Remove
3445 multiple calls to warning so all messages are sent to the user at
3446 once.
3447 (delete_breakpoints): Make insert error messsages more explicit.
3448
17574093
DJ
34492002-08-23 Daniel Jacobowitz <drow@mvista.com>
3450
3451 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3452 gdbserver/ChangeLog.
3453
8acc2935
MK
34542002-08-23 Mark Kettenis <kettenis@gnu.org>
3455
dfe01d39
MK
3456 * i386-tdep.c: Include "objfiles.h".
3457 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3458 skip_trampoline_code.
3459 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3460 (CPLUS_MARKER): Define to '.'.
3461
8acc2935
MK
3462 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3463 member.
3464 (linux_corefile_thread_callback): Increase args->num_notes.
3465 (linux_make_note_section): Initialize thread_args.num_notes, and
3466 use it to determine whether notes for any threads were created.
3467
151fefe2 34682002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3469
3470 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3471 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3472 and PCUNKILL.
3473 (write_with_trace): Conditionalize out the switch branch handling
3474 PCSHOLD if the corresponding macro is not defined. Likewise for
3475 PRSABORT and PRSTOP.
3476 This change will be needed by the Interix port.
3477
e1507482
EZ
34782002-08-22 Elena Zannoni <ezannoni@redhat.com>
3479
3480 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3481 write_register wherever possible instead of manipulating the
3482 register bytes directly.
3483 Assign VALUE_CONTENTS to a variable and use that.
3484 The GPR numbers are now dependent on the architecture.
3485
96ff0de4
EZ
34862002-08-22 Elena Zannoni <ezannoni@redhat.com>
3487
3488 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3489 ev_offset fields.
3490 (skip_prologue): Add support for BookE/e500 instructions.
3491 (e500_extract_return_value): New function.
3492 (frame_get_saved_regs): Add support for saving ev registers and
3493 pseudo gpr's.
3494 (e500_store_return_value): New function.
3495 (rs6000_gdbarch_init): Move up default intializations of
3496 deprecated_extract_return_value and store_return_value. Overwrite
3497 init of store_return_value with e500 specific version.
3498 Set extract_return_value for e500.
3499
fbefca5b
EZ
35002002-08-22 Elena Zannoni <ezannoni@redhat.com>
3501
3502 * blockframe.c (generic_call_dummy_register_unwind): Use
3503 regcache_cooked_read to catch cases in which the variable is
3504 stored in a pseudo register.
3505
4d210288
AC
35062002-08-22 Andrew Cagney <cagney@redhat.com>
3507
3508 * NEWS: Mention that the i960 has been made obsolete.
3509 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3510 i960-tdep.c
3511 (remote-nrom.o): Obsolete target.
3512 (remote-nindy.o, i960-tdep.o): Ditto.
3513 * remote-nrom.c: Make file obsolete.
3514 * remote-nindy.c, remote-vx960.c: Ditto.
3515 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3516 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3517 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3518 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3519 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3520 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3521 i960-*-vxworks* obsolete.
3522 * MAINTAINERS: Note that the i960 is obsolete.
3523
6c0c456d
CV
35242002-08-21 Corinna Vinschen <vinschen@redhat.com
3525
3526 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3527 detach to allow reinitialization.
3528
9f9d12b3
AC
35292002-08-22 Andrew Cagney <ac131313@redhat.com>
3530
3531 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3532 attempt).
3533
ebeb39fe
JB
35342002-08-22 Jim Blandy <jimb@redhat.com>
3535
3536 * coffread.c (coff_symfile_read): Don't try to read the line
3537 number table from disk if the image file doesn't have a symbol
3538 table; we'll never actually look at the info anyway, and Windows
3539 ships DLL's with bogus file offsets for the line number data.
3540
5bf1c677
EZ
35412002-08-21 Elena Zannoni <ezannoni@redhat.com>
3542
3543 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3544 an e500 executable.
3545
71b8ef93
MS
35462002-08-21 Michael Snyder <msnyder@redhat.com>
3547
3548 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3549 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3550 (DEFAULT_MIPS_TYPE): Delete unused macro.
3551 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3552 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3553
d174216d
JB
35542002-08-21 Jim Blandy <jimb@redhat.com>
3555
3556 * valops.c (value_cast): Simplify and correct logic for doing a
3557 static cast from a pointer to a base class to a pointer to a
3558 derived class.
3559
0ab7a791
AC
35602002-08-21 Andrew Cagney <ac131313@redhat.com>
3561
3562 * infcmd.c (default_print_registers_info): Replace
3563 do_registers_info.
3564 (registers_info): Use gdbarch_print_registers_info instead of
3565 DO_REGISTERS_INFO.
3566 * inferior.h (default_print_registers_info): Replace
3567 do_registers_info.
3568 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3569 (DO_REGISTERS_INFO): Change to a predicate function.
3570 * gdbarch.h, gdbarch.c: Regenerate.
3571
e23792cc
KS
35722002-08-21 Keith Seitz <keiths@redhat.com>
3573
3574 * gdb-events.sh: Add target-changed event.
3575 * gdb-events.c: Regenerated.
3576 * gdb-events.c: Regenerated.
3577 * valops.c (value_assign): Add target-changed event notification
3578 to inlval_register, lval_memory, and lval_reg_frame_relative.
3579
9fb14e79
JB
35802002-08-21 Joel Brobecker <brobecker@gnat.com>
3581
3582 * NEWS: Add an entry regarding the improvement of the next/step
3583 operation on Alpha Tru64 multi-processor machines.
3584
6d39a69f
AC
35852002-08-21 Andrew Cagney <ac131313@redhat.com>
3586
72acd513
AC
3587 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3588 directores.
342af04b 3589 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3590 * Makefile.in (install-gdbtk): Move to install section.
3591 (rdi-share/libangsd.a): Move to end of file.
3592
fa5f27c7
AC
35932002-08-19 Andrew Cagney <ac131313@redhat.com>
3594
3595 * frame.c (frame_register_unwind): When a register, set addrp to
3596 the register's byte.
3597
5a89d8aa
MS
35982002-08-20 Michael Snyder <msnyder@redhat.com>
3599
3600 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3601 used locally, so move them from the target machine header to here.
3602 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3603 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3604 Make static.
3605 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3606
822e978b
AC
36072002-08-20 Andrew Cagney <cagney@redhat.com>
3608
3609 * NEWS: Mention that the Apollo line was made obsolete.
3610 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3611 m68*-hp-hpux* obsolete.
3612 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3613 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3614 * buildsym.c (make_blockvector): Make static.
3615 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3616 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3617 (ALLDEPFILES): Remove dstread.c.
3618 (dstread.o): Obsolete make rule.
3619 * dstread.c: Makefile obsolete.
3620 * dst.h: Ditto.
3621 * config/m68k/hp300hpux.mt: Ditto.
3622 * config/m68k/hp300hpux.mh: Ditto.
3623 * config/m68k/hp300bsd.mt: Ditto.
3624 * config/m68k/hp300bsd.mh: Ditto.
3625 * config/m68k/apollo68b.mt: Ditto.
3626 * config/m68k/apollo68v.mh: Ditto.
3627 * config/m68k/apollo68b.mh: Ditto.
3628
e41b17f0
MS
36292002-08-20 Michael Snyder <msnyder@redhat.com>
3630
3631 * mips-tdep.c (mips_in_return_stub): Make static.
3632 (mips_gdbarch_init): Set in_solib_return_trampoline.
3633 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3634
d50355b6
MS
36352002-08-20 Michael Snyder <msnyder@redhat.com>
3636
3637 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3638 * gdbarch.c, gdbarch.h: Regenerate.
3639 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3640 Add.
3641 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3642
757a7cc6
MS
36432002-08-20 Michael Snyder <msnyder@redhat.com>
3644
3645 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3646 (mips_gdbarch_init): Set skip_trampoline_code,
3647 in_solib_call_trampoline.
3648 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3649 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3650
c8001721
EZ
36512002-08-20 Elena Zannoni <ezannoni@redhat.com>
3652
3653 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3654
3655 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3656 vector type for ev registers.
3657 (e500_pseudo_register_read): New function.
3658 (e500_pseudo_register_write): New function.
3659 (e500_dwarf2_reg_to_regnum): New function.
3660 (PPC_UISA_NOFP_SPRS): New macro.
3661 (PPC_EV_REGS): New macro.
3662 (PPC_GPRS_PSEUDO_REGS): New macro.
3663 (registers_e500): New register set for e500.
3664 (variants): Add e500 variant.
3665 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3666 before setting architectural dependent variations. Initialize ev
3667 registers numbers. Add case for e500 architecture. Set the
3668 number of pseudo registers.
3669
64366f1c
EZ
36702002-08-20 Elena Zannoni <ezannoni@redhat.com>
3671
3672 * rs6000-tdep.c: Clean up comments.
3673
7e78f0ca
AC
36742002-08-20 Andrew Cagney <cagney@redhat.com>
3675
3676 * h8300-tdep.c: Re-indent file.
3677
697f7479
JB
36782002-08-20 Jim Blandy <jimb@redhat.com>
3679
3680 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3681 default for this.
697f7479 3682
e86ae29f
KS
36832002-08-20 Keith Seitz <keiths@redhat.com>
3684
3685 * breakpoints.c (watch_command_1): Use internal breakpoint
3686 when setting a watchpoint_scope breakpoint.
3687
216b504f
EZ
36882002-08-20 Elena Zannoni <ezannoni@redhat.com>
3689
3690 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3691 (build_builtin_type_vec64i): Ditto.
3692 (build_builtin_type_vec128): Ditto.
3693 (build_builtin_type_vec128i): Ditto.
3694
f7ab6ec6
MS
36952002-08-19 Michael Snyder <msnyder@redhat.com>
3696
3697 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3698 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3699 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3700 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3701 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3702 CALL_DUMMY_ADDRESS): Delete.
3703 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3704 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3705 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3706 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3707 push_return_address.
3708 (mips_register_raw_size, mips_eabi_use_struct_convention,
3709 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3710 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3711 mips_init_extra_frame_info, mips_eabi_push_arguments,
3712 mips_n32n64_push_arguments, mips_push_return_address,
3713 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3714 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3715
b5d1566e
MS
37162002-08-19 Michael Snyder <msnyder@redhat.com>
3717
3718 * mips-tdep.c (mips_frame_num_args): New function.
3719 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3720 frame_saved_pc, frame_args_address, frame_locals_address,
3721 frame_num_args, and frame_args_skip.
3722 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3723 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3724 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3725 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3726
2f1488ce
MS
37272002-08-20 Michael Snyder <msnyder@redhat.com>
3728
3729 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3730 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3731 * mips-tdep.c (mips_store_struct_return): New function.
3732 (mips_extract_struct_value_address): New function.
3733 (mips_gdbarch_init): Set store_struct_return and
3734 extract_struct_value_address.
3735
41ff2da1
DC
37362002-08-20 David Carlton <carlton@math.stanford.edu>
3737
3738 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3739 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3740 (read_file_scope): Check that line_header is nonzero before
3741 decoding macro information.
3742
e5451d58
MK
37432002-08-20 Mark Kettenis <kettenis@gnu.org>
3744
3745 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3746 flag the general-purpose registers as floating-point on targets
3747 that don't support the floating-point registers.
3748
4a6daafa
EZ
37492002-08-20 Elena Zannoni <ezannoni@redhat.com>
3750
3751 * rs6000-tdep.c (altivec_register_p): Delete.
3752 (rs6000_do_altivec_registers): Delete.
3753 (rs6000_altivec_registers_info): Delete.
3754 (rs6000_do_registers_info): Delete.
3755 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3756 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3757
ab4327e0
EZ
37582002-08-20 Elena Zannoni <ezannoni@redhat.com>
3759
3760 * infcmd.c (do_registers_info): Print vector registers in hex
3761 format only.
3762 (print_vector_info): Check that printing registers
3763 makes sense.
3764 (print_float_info): Ditto.
3765
cb1d2653
AC
37662002-08-20 Andrew Cagney <ac131313@redhat.com>
3767
3768 * mips-tdep.c (mips_gdbarch_init): Update.
3769 (mips_o32_extract_return_value): Rewrite.
3770 (mips_o32_store_return_value): Rewrite.
3771 (mips_o32_xfer_return_value): New function.
3772 (mips_xfer_register): Tweak debug print message. Allow for
3773 buf_offset when dumping the value transfered.
3774
dfc3d9b2
AC
37752002-08-20 Andrew Cagney <ac131313@redhat.com>
3776
3777 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3778 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3779 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3780 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3781 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3782
7807aa61
MS
37832002-08-14 Michael Snyder <msnyder@redhat.com>
3784
3785 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3786
489461e2
EZ
37872002-08-19 Elena Zannoni <ezannoni@redhat.com>
3788
3789 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3790 register.
3791 (P): New macro to define a register as a pseudo register.
3792 (R, R4, R8, R16, FR32, R64, R0): Updated.
3793 (struct variant): Add new fields for number of pseudo registers
3794 and number of total registers.
3795 (tot_num_registers): New macro replacing....
3796 (num_registers): ...deleted macro.
3797 (num_registers): New function.
3798 (num_pseudo_registers): New function.
3799 (variants): Update all variants to intialize new fields correctly.
3800 Postpone initialization of number of pseudo regs and real regs.
3801 (init_variants): New function.
3802 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3803 registers offsets.
3804
fcaffe4c
DC
38052002-08-19 David Carlton <carlton@math.stanford.edu>
3806
2c2738a0
DC
3807 * valops.c (search_struct_field): Change error message to treat
3808 return value of 0 from value_static_field as meaning that field is
3809 optimized out.
3810 (value_struct_elt_for_reference): Ditto.
3811 * values.c (value_static_field): Treat an unresolved location the
3812 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3813 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3814 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3815 * MAINTAINERS: Add self to Write After Approval list.
3816
88658117
AC
38172002-08-19 Andrew Cagney <ac131313@redhat.com>
3818
3819 * mips-tdep.c (mips_xfer_register): New function.
3820 (mips_n32n64_extract_return_value): Rewrite.
3821 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3822 instead of deprecated_extract_return_value.
3823
21283beb
EZ
38242002-08-19 Elena Zannoni <ezannoni@redhat.com>
3825
3826 * rs6000-tdep.c (TDEP): Delete macro.
3827 (branch_dest): Replace use of TDEP macro with its body.
3828 (rs6000_pop_frame): Ditto.
3829 (rs6000_push_arguments): Ditto.
3830 (rs6000_skip_trampoline_code): Ditto.
3831 (rs6000_frame_saved_pc): Ditto.
3832 (rs6000_frame_chain): Ditto.
3833 (rs6000_register_name): Ditto.
3834 (rs6000_register_byte): Ditto.
3835 (rs6000_register_raw_size): Ditto.
3836 (rs6000_register_virtual_type): Ditto.
3837 (rs6000_register_convertible): Ditto.
3838 (rs6000_convert_from_func_ptr_addr): Ditto.
3839
bf072999
DJ
38402002-08-19 Daniel Jacobowitz <drow@mvista.com>
3841
3842 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3843 conditionally.
3844 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3845 MIPS_LINUX_JB_ELEMENT_SIZE.
3846 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3847 for MAX_REGISTER_RAW_SIZE arrays.
3848 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3849 MIPS_LINUX_JB_ELEMENT_SIZE.
3850
9b949a49
PM
38512002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3852
3853 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3854
6d3e79c6
AS
38552002-08-19 Aidan Skinner <aidan@velvet.net>
3856
3857 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3858 ada-valprint.c ada-tasks.c.
3859 (YYFILES): Add ada-exp.y.
3860 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3861 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3862 (ada-exp.tab.o): New target.
3863
06c0b04e
AC
38642002-08-18 Andrew Cagney <ac131313@redhat.com>
3865
3866 * regcache.c (regcache_xfer_part): New function.
3867 (regcache_raw_read_part): New function.
3868 (regcache_raw_write_part): New function.
3869 (regcache_cooked_read_part): New function.
3870 (regcache_cooked_write_part): New function.
3871 * regcache.h (regcache_raw_read_part): Declare.
3872 (regcache_raw_write_part): Declare.
3873 (regcache_cooked_read_part): Declare.
3874 (regcache_cooked_write_part): Declare.
3875
92d1e331
DJ
38762002-08-18 Daniel Jacobowitz <drow@mvista.com>
3877
3878 * remote.c (remote_open_1): Add async_p.
3879 (remote_async_open_1): Delete.
3880 (open_remote_target): Delete.
3881 (remote_open, extended_remote_open): Update calls to remote_open_1.
3882 (remote_async_open, extended_remote_async_open): Call
3883 remote_open_1 instead of remote_async_open_1.
3884
247055de
MK
38852002-08-19 Mark Kettenis <kettenis@gnu.org>
3886
3887 * blockframe.c: Fix a few coding standard violations.
3888
641eda39
MK
38892002-08-19 Mark Kettenis <kettenis@gnu.org>
3890
0b717710
MK
3891 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3892 here from ...
3893 * config/i386/tm-i386sco5.h: ... here. File removed.
3894 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3895
26d28e12 3896 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3897 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3898 (TM_FILE): Set to tm-i386.h.
3899 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3900 * config/i386/tm-i386v.h: Remove file.
3901 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3902 instead of "i386/tm-i386v.h".
3903 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3904 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3905 "i386/tm-i386v.h".
3906 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3907 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3908 "i386/tm-i386.h".
3909
d4e0bab4
MK
39102002-08-18 Mark Kettenis <kettenis@gnu.org>
3911
3912 * config/i386/nm-i386v.h: Add protection against
3913 multiple-inclusion.
3914 (i386_register_u_addr): Remove prototype.
3915 (register_u_addr): New prototype.
3916 (REGISTER_U_ADDR): Redefine accordingly.
3917 * i386v-nat.c: Improve several comments.
3918 (i386_register_u_addr): Change signature and rename to
3919 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3920 ubase variable.
3921
46cac009
AC
39222002-08-18 Andrew Cagney <ac131313@redhat.com>
3923
3924 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3925 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3926 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3927 deprecated_extract_return_value.
3928 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3929 rename mips_o32o64_push_arguments.
3930 (mips_gdbarch_init): Update.
3931 (mips_extract_return_value): Delete.
3932 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3933 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3934 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3935 (mips_n32n64_extract_return_value): Clone
3936 mips_extract_return_value.
3937 (mips_store_return_value): Delete.
3938 (mips_o32_store_return_value): Clone mips_store_return_value.
3939 (mips_o64_store_return_value): Clone mips_store_return_value.
3940 (mips_eabi_store_return_value): Clone mips_store_return_value.
3941 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3942
d2e4a39e
AS
39432002-08-18 Aidan Skinner <aidan@velvet.net>
3944
0c30c098
AS
3945 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3946 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3947
39482002-08-18 Aidan Skinner <aidan@velvet.net>
3949
3950 * ada-lang.c: Run through gdb_indent.sh.
3951 * ada-lang.h: Run through gdb_indent.sh.
3952 * ada-tasks.c: Run through gdb_indent.sh.
3953 * ada-typeprint.c: Run through gdb_indent.sh.
3954 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3955
01fc4e33
AC
39562002-08-18 Andrew Cagney <ac131313@redhat.com>
3957
3958 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3959 ABI.
3960
d8ee244c
MK
39612002-08-18 Mark Kettenis <kettenis@gnu.org>
3962
c38d8261
MK
3963 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3964
222db64c
MK
3965 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3966 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3967
c2848c82
MK
3968 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3969 write_register_gen instead of write_register_bytes.
3970
d8ee244c
MK
3971 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3972 i[3456]-*-osf1mk* configurations have been made obsolete.
3973 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3974 i[3456]86-*-osf1mk* hosts obsolete.
3975 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3976 targets obsolete.
3977 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3978 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3979 config/i386/i386m3.mt, config/i386/nm-m3.h,
3980 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3981 config/i386/i386mk.mh, config/i386/i386mk.mt,
3982 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3983 obsolete.
3984 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3985 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3986 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3987
61d8d407
AC
39882002-08-18 Andrew Cagney <ac131313@redhat.com>
3989
3990 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3991 (hppa_value_returned_from_stack): Declare.
3992 (hppa_extract_return_value): Declare.
3993 * config/pa/hppa.mt: New file.
3994 * configure.tgt: Recognize hppa*-*-*.
3995 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3996
0c52bd59
MK
39972002-08-18 Mark Kettenis <kettenis@gnu.org>
3998
3999 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4000 comment.
4001
b5686e99
MK
40022002-08-17 Mark Kettenis <kettenis@gnu.org>
4003
4004 * top.c (gdb_rl_operate_and_get_next): Make sure
4005 operate-and-get-next functions correctly even when the history
4006 list is completely filled.
4007
c1bab85b
AC
40082002-08-18 Andrew Cagney <ac131313@redhat.com>
4009
4010 * MAINTAINERS (Target Instruction Set Architectures): Rename
4011 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4012 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4013 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4014 already listed under Host/Native.
4015
4016 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4017 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4018 mips*-*-*.
4019
32089c7c
AC
40202002-08-17 Andrew Cagney <ac131313@redhat.com>
4021
4022 * config/ia64/ia64.mt: New file.
4023 * config/alpha/alpha.mt: New file.
4024 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4025 ia64-linux-gnu. Mention that ia64-elf is broken.
4026 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4027
b4671f85
MK
40282002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4029
4030 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4031 generic_func_frame_valid instead of func_frame_valid.
4032
c8edd8b4
JB
40332002-08-16 Joel Brobecker <brobecker@gnat.com>
4034
4035 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4036 procfs appears to be broken when debugging on multi-processor
4037 machines. So enable software single stepping in order to avoid
4038 using the procfs interface to do next/step operations, using
4039 internal breakpoints instead.
4040
4041 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4042 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4043 make this pc address equal to the value it would have if the
4044 system stepping capability was used. Also set a new flag used
4045 to ensure that we don't readjust the PC one more time later.
4046
4047 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4048 address by DECR_PC_AFTER_BREAK when software single step is
4049 in use for this architecture, as this has already been taken
4050 care of in handle_inferior_event().
4051
238617f6
JB
40522002-08-16 Joel Brobecker <brobecker@gnat.com>
4053
4054 * infrun.c (handle_inferior_event): Minor reformatting, to make
4055 a rather long condition expression easier to read.
4056
541a7aac
AC
40572002-08-16 Andrew Cagney <ac131313@redhat.com>
4058
4059 * Makefile.in (gdbtk.o): Move to end of file.
4060 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4061 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4062 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4063 (gdbtk-wrapper.o, gdbres.o): Ditto.
4064
f92d4a7b
AC
40652002-08-16 Andrew Cagney <ac131313@redhat.com>
4066
4067 * Makefile.in (copying.o): Separate out compile rule.
4068 (hpux-thread.o, procfs.o, signals.o): Ditto.
4069 (v850ice.o, z8k-tdep.o): Ditto.
4070 (tui-file.o): Move to TUI section.
4071 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4072 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4073
1cce71eb
JB
40742002-08-16 Joel Brobecker <brobecker@gnat.com>
4075
4076 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4077 skip_trampoline_code, for better namespace-proofing.
4078
4079 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4080
0851f23d
JB
40812002-08-16 Joel Brobecker <brobecker@gnat.com>
4082
4083 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4084
f8d40ec8
JB
40852002-08-16 Joel Brobecker <brobecker@gnat.com>
4086
4087 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4088 signal, check whether we hit a breakpoint before checking for a
4089 single step breakpoint. Otherwise, GDB fails to notice that a
4090 breakpoint has been hit when stepping onto a breakpoint.
4091
63d022e0
KS
40922002-08-16 Keith Seitz <keiths@redhat.com>
4093
4094 * gdb-events.sh (clear_gdb_event_hooks): New function.
4095 * gdb-events.c: Regenerate.
4096 * gdb-events.h: Regenerate.
4097
6e31adb3
AC
40982002-08-16 Andrew Cagney <ac131313@redhat.com>
4099
4100 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4101 not_a_sw_breakpoint.
4102 * breakpoint.h (bpstat_stop_status): Add parameter names.
4103
c8189ed1
GS
41042002-08-16 Grace Sainsbury <graces@redhat.com>
4105
4106 * remote.c (remote_insert_hw_breakpoint)
4107 (remote_remove_hw_breakpoint): Fix calculation of length field
4108 for Z-packet.
4109
d05285fa
MS
41102002-08-15 Michael Snyder <msnyder@redhat.com>
4111
466d7106
MS
4112 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4113 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4114 (supply_fpregset): Ditto.
4115
d05285fa
MS
4116 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4117 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4118 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4119 (TARGET_READ_SP): Delete.
bf1f5b4c 4120 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4121 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4122 Delete.
4123 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4124 from macros to functions.
bf1f5b4c 4125
d05285fa
MS
4126 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4127 (mips_register_convertible, mips_register_convert_to_virtual,
4128 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4129 (mips_read_sp): New function.
4130 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4131 (mips_do_registers_info): Make static.
4132 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4133 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4134 (mips_register_convert_from_type, mips_register_convert_to_type):
4135 New functions.
4136 (mips_gdbarch_init): Set up function_start_offset,
4137 register_virtual_size, pc_in_sigtramp.
d05285fa 4138
e76f1f2e
AC
41392002-08-15 Andrew Cagney <ac131313@redhat.com>
4140
4141 * infcmd.c (vector_info): New function.
4142 (_initialize_infcmd): Add command "info vector".
4143 (print_vector_info): New function.
4144
4145 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4146 * gdbarch.h, gdbarch.c: Regenerate.
4147
4782dc19
AC
41482002-08-15 Andrew Cagney <ac131313@redhat.com>
4149
4150 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4151 ``print_all''. Only print vector registers when ``print_all''.
4152
23e3a7ac
AC
41532002-08-15 Andrew Cagney <ac131313@redhat.com>
4154
8e186fd6
AC
4155 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4156 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4157
23e3a7ac
AC
4158 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4159 Add `args' parameter.
4160 * gdbarch.h, gdbarch.c: Regenerate.
4161
4162 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4163
4164 * infcmd.c (float_info): Call print_float_info.
4165 (print_float_info): New function. By default, print the
4166 floating-point registers.
4167
4168 * arch-utils.h (default_print_float_info): Delete declaration.
4169 * arch-utils.c (default_print_float_info): Delete function.
4170
e0ca2bb9
MK
41712002-08-16 Mark Kettenis <kettenis@gnu.org>
4172
3f733acc
MK
4173 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4174 out define.
4175
7d8d2918
MK
4176 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4177 FRAME.
4178
1c7cc583
MK
4179 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4180 * configure.host: Make i[3456]86-*-aix host obsolete.
4181 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4182 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4183 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4184 config/i386/xm-i386aix.h: Make files obsolete.
4185 * i386aix-nat.c: Make file obsolete.
4186 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4187 (i386aix-nat.o): Make target obsolete.
4188
e0ca2bb9
MK
4189 * config/i386/nm-gnu.h: Removed.
4190 * config/i386/nm-i386gnu.h: New file.
4191 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4192 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4193 Moved here from ...
4194 * config/i386/tm-i386gnu.h: ... here. Removed.
4195 * config/i386/xm-i386gnu.h: Removed.
4196 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4197 (NAT_FILE): Set to nm-i386gnu.h.
4198 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4199 * i386-tdep.c: New file.
4200 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4201 (i386gnu-tdep.o): Specify dependencies.
4202
16057ec7 42032002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4204
6b99ee2e
MK
4205 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4206 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4207 Adjust a few comments to reflect reality a bit closer.
4208 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4209 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4210 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4211 target_insert_watchpoint, target_remove_watchpoint):
4212 Move defines to ...
4213 * config/i386/nm-i386sco5.h: ... here.
4214 (kernel_u_size): Add prototype. Improve a few comments and add
4215 protection against multiple inclusion.
4216
d9a6f65c
MK
4217 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4218 out define.
4219
047eff6a
MK
4220 * uw-thread.c (SP_ARG0): Define if not already defined.
4221 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4222
dcdb1290
MK
4223 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4224
5d2d0b2a
MK
4225 * config/i386/tm-i386.h: Don't include "regcache.h".
4226
61113f8b
MK
4227 * i387-tdep.h (i387_print_float_info): New prototype.
4228 * i387-tdep.c (print_i387_value, print_i387_ext,
4229 print_i387_status_word, print_i387_control_word): Add `struct
4230 ui_file *' argument and use it for output.
4231 (i387_print_float_info): Renamed from i387_float_info. Add
4232 `struct gdbarch *' and `struct ui_file *' arguments and use the
4233 latter for output.
4234 * i386-tdep.c: Include "i387-tdep.h".
4235 (i386_gdbarch_init): Set print_float_info.
4236 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4237 (FLOAT_INFO): Remove define.
4238
46e0f506
MS
42392002-08-13 Michael Snyder <msnyder@redhat.com>
4240
4241 * mips-tdep.c (mips_push_arguments): Rename to
4242 mips_eabi_push_arguments, and tune for EABI.
4243 (MIPS_REGS_HAVE_HOME_P): Delete.
4244 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4245 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4246 Delete references to mips_regs_have_home_p.
4247
409268de
KS
42482002-08-14 Keith Seitz <keiths@redhat.com>
4249
4250 * Makefile.in (install-gdbtk): Create insight plugin directory.
4251 Install plugins.tcl file.
4252
ffc6a242
KS
42532002-08-14 Keith Seitz <keiths@redhat.com>
4254
4255 * configure.in: Move SUBDIRS to near top of the file so that
4256 --enable options may add things to it.
4257 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4258 * configure: Regenerate.
4259
ebafbe83
MS
42602002-08-13 Michael Snyder <msnyder@redhat.com>
4261
4262 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4263 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4264 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4265
32f6f25d
AC
42662002-08-13 Andrew Cagney <ac131313@redhat.com>
4267
4268 * vax-tdep.c (vax_get_saved_register): Delete function.
4269 (vax_gdbarch_init): Update.
4270 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4271 (ns32k_gdbarch_init): Update.
4272 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4273 (alpha_gdbarch_init): Update.
4274
53826de9
AC
42752002-08-13 Andrew Cagney <cagney@redhat.com>
4276
4277 * regcache.c (init_regcache_descr): Overallocate the
4278 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4279 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4280 nr_raw_registers.
4281 (set_register_cached): Add range checking assertions. Use
4282 current_regcache.
4283
16057ec7 42842002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4285
4286 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4287 numbers for MMX registers.
4288
7b4c2dce
AC
42892002-08-13 Andrew Cagney <cagney@redhat.com>
4290
4291 * i386-tdep.c (i386_gdbarch_init): Use
4292 generic_unwind_get_saved_register.
4293
1e03ad20
KB
42942002-08-13 Kevin Buettner <kevinb@redhat.com>
4295
4296 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4297 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4298 target vector.
4299 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4300 Delete. Add comment regarding this now-deleted target method.
4301
548bcbec
SC
43022002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4303
4304 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4305 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4306 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4307 real PC and the page number (if it's within the memory bank window).
4308 (m68hc11_pseudo_register_write): Likewise when saving.
4309 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4310 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4311 (m68hc11_register_raw_size): And use 32-bit for it.
4312 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4313 16K memory bank is used by the prog; also use the virtual pc.
4314
7df11f59
SC
43152002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4316
4317 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4318 (m68hc11_gdbarch_init): Install it in gdbarch.
4319 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4320 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4321 (MSYMBOL_SIZE): New for documentation.
4322 (insn_return_kind): Enum to specify how a function returns.
4323 (frame_extra_info): Cleanup and record the return mode.
4324 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4325 register in address computation.
4326 (m68hc11_get_return_insn): New to obtain the return instruction used
4327 by the function.
4328 (m68hc11_frame_init_saved_regs): Take into account the return
4329 instruction used by the function for far and interrupt functions.
4330 (m68hc11_init_extra_frame_info): Take into account page register.
4331 (m68hc11_frame_args_address): Adjust according to the return mode.
4332 (show_regs): Print page register only when it's used.
4333
5706502a
SC
43342002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4335
4336 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4337 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4338 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4339 registers.
4340 (m68hc11_register_raw_size): Likewise.
4341
28fc6740
AC
43422002-08-13 Andrew Cagney <cagney@redhat.com>
4343
4344 * i386-tdep.c (i386_register_name): Handle mmx registers.
4345 (mmx_regnum_p): New function.
4346 (i386_mmx_names): New array.
4347 (mmx_num_regs): New variable.
4348 (i386_pseudo_register_read): New function.
4349 (i386_pseudo_register_write): New function.
4350 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4351
4352 * regcache.c (regcache_raw_read_unsigned): New function.
4353 (regcache_raw_read_signed): New function.
4354 * regcache.h (regcache_raw_read_unsigned): Declare.
4355 (regcache_raw_read_signed): Declare.
4356
a378f419
AC
43572002-08-13 Andrew Cagney <cagney@redhat.com>
4358
4359 * regcache.c (regcache_raw_read_as_address): Delete function.
4360 (regcache_cooked_read_signed): New function.
4361 (regcache_cooked_read_unsigned): New function.
4362 * regcache.h (regcache_cooked_read_signed): Declare.
4363 (regcache_cooked_read_unsigned): Declare.
4364 (regcache_raw_read_as_address): Delete declaration.
4365
4366 * blockframe.c (generic_read_register_dummy): Use
4367 regcache_cooked_read_unsigned.
4368 * i386-tdep.c (i386_extract_struct_value_address): Use
4369 regcache_cooked_read_unsigned.
4370
81967506
SC
43712002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4372
4373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4374 double sizes according to ELF ABI flags.
4375 (gdbarch_tdep): Record elf_flags.
4376
ffe1f3ee
SC
43772002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4378
4379 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4380 (m6812_prolog): They can appear in 68HC12 function prologue.
4381 (m68hc11_frame_chain): Cleanup.
4382
98216c5d
AC
43832002-08-12 Andrew Cagney <cagney@redhat.com>
4384
4385 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4386 declarations.
4387 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4388 (i386_linux_register_raw_size): Delete function.
4389 (i386_linux_init_abi): Update.
4390 * i386-tdep.c (i386_register_raw_size): Delete function.
4391 (i386_register_byte): Delete function.
4392 (i386_gdbarch_init): Update.
4393 (i386_register_size): Delete array.
4394 (i386_register_offset): Delete array.
4395
4396 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4397 (REGISTER_RAW_SIZE): Delete macro.
4398 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4399 (REGISTER_BYTE): Delete macro.
4400
3b19021e
AS
44012002-08-11 Aidan Skinner <aidan@velvet.net>
4402
4403 * ada-lang.c (ada_lookup_partial_symbol)
4404 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4405 prototype names so that grep ^func works properly.
4406
4407 * ada-lang.c (ada_array_element_type)
4408 (ada_lookup_partial_symbol): Fix typos in parameter list.
4409
4410 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4411 Fix prototype names so that grep ^func works properly.
4412
b063e7a2
AC
44132002-08-10 Andrew Cagney <cagney@redhat.com>
4414 Elena Zannoni <ezannoni@redhat.com>
4415 Martin M. Hunt <hunt@redhat.com>
4416
4417 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4418 (build_builtin_type_vec128i): Set the vector bit.
4419 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4420 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4421 (build_builtin_type_vec64): New function.
4422 (build_builtin_type_vec64i): New function.
4423 (build_gdbtypes): Initialize builtin_type_vec64 and
4424 builtin_type_vec64i.
4425
a7e3c2ad
AC
44262002-08-09 Andrew Cagney <cagney@redhat.com>
4427
4428 * regcache.c (regcache_dump): Compare the register offset
4429 with REGISTER_BYTE.
4430 * arch-utils.c (generic_register_byte): New function.
4431 * arch-utils.h (generic_register_byte): Declare.
4432 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4433 * gdbarch.h, gdbarch.c: Regenerate.
4434
af030b9a
AC
44352002-08-09 Andrew Cagney <cagney@redhat.com>
4436
4437 * regcache.c: Include "gdbcmd.h"
4438 (_initialize_regcache): Add commands "maintenance print
4439 registers", "maintenance print raw-registers" and "maintenance
4440 print cooked-registers".
4441 (enum regcache_dump_what): Define.
4442 (dump_endian_bytes): New function.
4443 (regcache_dump): New function.
4444 (regcache_print): New function.
4445 (maintenance_print_registers): New function.
4446 (maintenance_print_raw_registers): New function.
4447 (maintenance_print_cooked_registers): New function.
4448 * Makefile.in (regcache.o): Update dependencies.
4449
cb3d25d1
MS
44502002-08-09 Michael Snyder <msnyder@redhat.com>
4451
4452 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4453 (mips_push_arguments): Correct some comments. Use paddr_nz
4454 for printing addresses in debug output. Replace static
4455 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4456 (mips_n32n64_push_arguments): New function, cloned from
4457 mips_push_arguments and tuned for the n32/n64 ABI.
4458 (mips_push_register): Buffer needs dynamic allocation.
4459 (mips_print_register): Ditto.
4460 (do_gp_register_row): Ditto.
4461 (mips_store_return_value): Ditto.
4462 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4463
2163ab9d
DH
44642002-08-09 Don Howard <dhoward@redhat.com>
4465
4466 * memattr.c (mem_info_command): Print special case of upper bound
4467 as max CORE_ADDR + 1.
4468
b78bcb18
MS
44692002-08-08 Michael Snyder <msnyder@redhat.com>
4470
4471 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4472 returns structs by ref if they're too big to fit in two registers.
4473
ffabd70d
KB
44742002-08-09 Kevin Buettner <kevinb@redhat.com>
4475
4476 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4477 saved regs value.
4478 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4479 mips_find_saved_regs().
4480 (mips_pop_frame): Likewise.
4481
fbcdb4a3
KB
44822002-08-09 Kevin Buettner <kevinb@redhat.com>
4483
4484 * blockframe.c (frame_saved_regs_register_unwind): Revise
4485 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4486 frames are in use.
4487
3c3bea1c
GS
44882002-08-09 Grace Sainsbury <graces@redhat.com>
4489
4490 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4491 T-packets; the 'a' is not taken as a register number.
4492 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4493 (remote_stopped_data_address): New functions; add to target
4494 vector.
4495 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4496 prototypes to match other implementations of this
4497 function. replace integer argument with pointer -- the length
4498 field in the Z-packet is the length of what is pointed to or 1 if
4499 pointer is null. Add to target vector.
4500 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4501 target vector.
4502
4503 From Mark Salter:
4504 * remote.c (remote_wait): Add support to extract optional
4505 watchpoint information from T-packet. Ignore unrecognized
4506 optional info in T-packet.
4507 (remote_async_wait): Ditto.
4508
5d1d95de
CV
45092002-08-09 Corinna Vinschen <vinschen@redhat.com>
4510
4511 * cli/cli-dump.c: Change fopen modes to use binary open modes
4512 as defined in include/fopen-bin.h throughout.
4513
c86b5b38
MS
45142002-08-08 Michael Snyder <msnyder@redhat.com>
4515
4516 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4517
b30590dc
KB
45182002-08-08 Kevin Buettner <kevinb@redhat.com>
4519
4520 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4521 assertion failure by returning early after a warning.
4522
498868ed
KB
45232002-08-08 Kevin Buettner <kevinb@redhat.com>
4524
4525 * mips-tdep.c (mips_find_saved_regs): Make static.
4526 (mips_frame_init_saved_regs): New function.
4527 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4528 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4529 (mips_find_saved_regs): Delete declaration.
4530
b2dd6311
GS
45312002-08-08 Grace Sainsbury <graces@redhat.com>
4532
3c3bea1c
GS
4533 * remote.c (remote_wait, remote_async_wait): Change
4534 thread_num from int to ULONGEST.
4535 (unpack_varlen_hex): Change result parameter from
4536 int * to ULONGEST *.
b2dd6311 4537
ea47855f
AC
45382002-08-08 Andrew Cagney <ac131313@redhat.com>
4539
4540 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4541 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4542 powerpc*-*-*.
4543 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4544
69db8bae
AC
45452002-08-08 Andrew Cagney <cagney@redhat.com>
4546
4547 * gcore.c (override_derive_stack_segment): Delete variable.
4548 (preempt_derive_stack_segment): Delete function.
4549 (derive_stack_segment): Delete function.
4550 (default_derive_stack_segment): Renamed to derive_stack_segment.
4551 (override_derive_heap_segment): Delete variable.
4552 (preempt_derive_heap_segment): Delete function.
4553 (derive_heap_segment): Delete function.
4554 (default_derive_heap_segment): Rename to derive_heap_segment.
4555
cb811fe7
MS
45562002-08-06 Michael Snyder <msnyder@redhat.com>
4557
4558 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4559 * mips-tdep.c (mips_EABI_use_struct_convention,
4560 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4561 New functions. (mips_use_struct_convention): Delete.
4562 (mips_gdbarch_init): set use_gdbarch_convention.
4563
8b389c40
MS
45642002-08-06 Michael Snyder <msnyder@redhat.com>
4565
4566 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4567 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4568 mips_o32_reg_struct_has_addr): New functions.
4569 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4570
5c27f28a
AC
45712002-08-07 Andrew Cagney <ac131313@redhat.com>
4572
4573 * regcache.c (pseudo_register): Delete function.
4574 (fetch_register): Delete function.
4575 (store_register): Delete function.
4576 (regcache_raw_read, legacy_read_register_gen): Use
4577 target_fetch_registers instead of fetch_register.
4578 (legacy_write_register_gen, regcache_raw_write): Use
4579 target_store_register instead of store_register.
4580 (write_register_bytes): Ditto.
4581
4582 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4583 (STORE_PSEUDO_REGISTER): Delete.
4584 * gdbarch.h, gdbarch.c: Regenerate.
4585
5b331675
CV
45862002-08-06 Corinna Vinschen <vinschen@redhat.com>
4587
4588 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4589 write dump file binary.
4590
6acdf5c7
MS
45912002-08-05 Michael Snyder <msnyder@redhat.com>
4592
4593 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4594 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4595 (mips_gdbarch_init): Set N32 target to be mips64.
4596
b2f01c35
KB
45972002-08-06 Kevin Buettner <kevinb@redhat.com>
4598
4599 * frame.c (find_saved_register): Break out of loop once saved
4600 register address is found. Don't mention sparc in loop comment
4601 anymore.
4602
63db5580
KB
46032002-08-06 Kevin Buettner <kevinb@redhat.com>
4604
4605 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4606 mips_default_saved_regsize to 8.
4607
5e34e75e
AC
46082002-08-06 Andrew Cagney <ac131313@redhat.com>
4609
4610 * gcore.c: Do not include <sys/procfs.h>.
4611 * Makefile.in (gcore.o): Update dependencies.
4612
eb4c54a2
AC
46132002-08-06 Andrew Cagney <cagney@redhat.com>
4614
4615 * configure.tgt: Make arc-*-* obsolete.
4616 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4617 * MAINTAINERS: Make arc-elf obsolete.
4618 * arc-tdep.c: Make file obsolete.
4619 * config/arc/arc.mt: Ditto.
4620 * config/arc/tm-arc.h: Ditto.
4621
ced15480
TR
46222002-08-05 Theodore A. Roth <troth@verinet.com>
4623
c1bab85b 4624 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4625
b4743822
AC
46262002-08-05 Andrew Cagney <ac131313@redhat.com>
4627
4628 * mcore-tdep.c (mcore_gdbarch_init): Use
4629 generic_unwind_get_saved_register instead of
4630 generic_get_saved_register.
4631 * v850-tdep.c (v850_gdbarch_init): Ditto.
4632 * frv-tdep.c (frv_gdbarch_init): Ditto.
4633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4634 * s390-tdep.c (s390_gdbarch_init): Ditto.
4635 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4636 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4637 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4638
3956d554
JB
46392002-08-05 Joel Brobecker <brobecker@gnat.com>
4640
4641 * objfiles.h: Add missing #include "symfile.h"
4642
4643 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4644
8249c0d6
AC
46452002-08-04 Andrew Cagney <ac131313@redhat.com>
4646
4647 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4648 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4649 of FIELD_BITSIZE.
4650
b9d14705
DJ
46512002-08-04 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * NEWS: Cleanup and nitpick.
4654
dd73b9bb
AC
46552002-08-03 Andrew Cagney <ac131313@redhat.com>
4656
4657 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4658
043a27f8
AC
46592002-08-03 Andrew Cagney <ac131313@redhat.com>
4660
4661 * Makefile.in (gdbtk-bp.o): Update dependencies.
4662 (gdbtk-register.o): Ditto.
4663 (gdbtk-varobj.o): Ditto.
4664
46ce284d
AC
46652002-08-03 Andrew Cagney <cagney@redhat.com>
4666
4667 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4668 m68hc11_fetch_pseudo_register.
4669 (m68hc11_pseudo_register_write): Replace
4670 m68hc11_store_pseudo_register.
4671 (m68hc11_gdbarch_init): Update.
4672
b66d6d2e
AC
4673Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4674
4675 * gdbarch.sh: Include "gdb_string.h".
4676 * gdbarch.c: Regenerate.
4677
4678 * regcache.c: Include "gdb_string.h".
4679 * ax-general.c: Ditto.
4680 * varobj.c: Ditto.
4681 * std-regs.c: Ditto.
4682 * fbsd-proc.c: Ditto.
4683 * thread.c: Ditto.
4684
4685 * Makefile.in (regcache.o): Update dependencies.
4686 (thread.o, gdbarch.o): Ditto.
4687 (ax-general.o, gdbarch.o): Ditto.
4688 (varobj.o, std-regs.o): Ditto.
4689 (fbsd-proc.o): Specify dependencies.
4690
29e1842b
AC
46912002-08-02 Andrew Cagney <cagney@redhat.com>
4692
4693 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4694 regnum.
4695 (regcache_cooked_write): Ditto.
4696
68365089
AC
46972002-08-02 Andrew Cagney <ac131313@redhat.com>
4698
4699 * regcache.c (regcache_cooked_read): New function.
4700 (regcache_cooked_write): New function.
4701 (read_register_gen): Rewrite using regcache_cooked_read.
4702 (write_register_gen): Rewrite using regcache_cooked_write.
4703
4704 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4705 Declare.
4706
d8124050
AC
47072002-08-02 Andrew Cagney <cagney@redhat.com>
4708
4709 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4710 Replace the architecture methods register_read and register_write.
4711 * gdbarch.h, gdbarch.c: Regenerate.
4712 * regcache.c (init_regcache_descr): Update.
4713 (read_register_gen): Update.
4714 (write_register_gen): Update.
4715 (supply_register): Update comment.
4716
4717 * sh-tdep.c (sh_gdbarch_init): Update.
4718 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4719 `regcache' and `gdbarch' parameters. Make `buffer' a void
4720 pointer. Update code.
4721 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4722 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4723 void pointer. Update code.
4724 (sh64_register_write): Delete.
4725 (sh4_register_read): Delete.
4726 (sh64_register_read): Delete.
4727 (sh4_register_write): Delete.
4728 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4729 void pointer, `to' parameter a void pointer.
4730 (sh_sh64_register_convert_to_raw): Ditto.
4731
a6425924
KB
47322002-08-01 Kevin Buettner <kevinb@redhat.com>
4733
4734 * mips-tdep.c (mips_register_virtual_type): Use architecture
4735 invariant return values.
4736
ff5922b5
AC
47372002-08-01 Andrew Cagney <cagney@redhat.com>
4738
4739 * linux-proc.c: Include "gdb_string.h".
4740 * Makefile.in (linux-proc.o): Update dependency list.
4741
32a6503c
KB
47422002-08-01 Kevin Buettner <kevinb@redhat.com>
4743
4744 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4745 comment.
4746
ccaa32c7
GS
47472002-08-01 Grace Sainsbury <graces@redhat.com>
4748
4749 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4750 to_insert_watchpoint, to_remove_watchpoint,
4751 to_stopped_by_watchpoint, to_stopped_data_address,
4752 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4753 target vecctor. Define their corresponding macros so they call
4754 them.
4755
4756 * target.c: Add default and debug versions of for
4757 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4758 to_insert_watchpoint, to_remove_watchpoint,
4759 to_stopped_by_watchpoint, to_stopped_data_address,
4760 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4761
78fde5f8
KB
47622002-08-01 Kevin Buettner <kevinb@redhat.com>
4763
4764 * mips-tdep.c (mips_register_virtual_type): New function.
4765 (mips_gdbarch_init): Register mips_register_virtual_type()
4766 with gdbarch machinery.
4767 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4768 this file instead of tm-bigmips.h.
4769 (MIPS_REGSIZE): Delete this macro.
4770 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4771 multiarch version in mips-tdep.c will be found.
4772
db034ac5
AC
47732002-08-01 Andrew Cagney <cagney@redhat.com>
4774
4775 * NEWS: Menion that CHILL has been made obsolete.
4776
4777 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4778 * stabsread.c (read_range_type): Ditto.
4779 * gdbtypes.h: Ditto.
4780 * language.c (binop_type_check): Ditto.
4781 (binop_result_type): Ditto.
4782 (integral_type): Ditto.
4783 (character_type): Ditto.
4784 (string_type): Ditto.
4785 (boolean_type): Ditto.
4786 (structured_type): Ditto.
4787 (lang_bool_type): Ditto.
4788 (binop_type_check): Ditto.
4789 * language.h (_LANG_chill): Ditto.
4790 * dwarfread.c (set_cu_language): Ditto.
4791 * dwarfread.c (CHILL_PRODUCER): Ditto.
4792 * dwarfread.c (handle_producer): Ditto.
4793 * expression.h (enum exp_opcode): Ditto.
4794 * eval.c: Ditto for comments.
4795 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4796 * expprint.c (print_subexp): Ditto.
4797 (print_subexp): Ditto.
4798 * valops.c (value_cast): Ditto.
4799 (search_struct_field): Ditto.
4800 * value.h (COERCE_VARYING_ARRAY): Ditto.
4801 * symfile.c (init_filename_language_table): Ditto.
4802 (add_psymbol_with_dem_name_to_list): Ditto.
4803 * valarith.c (value_binop): Ditto.
4804 (value_neg): Ditto.
4805 * valops.c (value_slice): Ditto.
4806 * symtab.h (union language_specific): Ditto.
4807 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4808 (SYMBOL_DEMANGLED_NAME): Ditto.
4809 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4810 * defs.h (enum language): Ditto.
4811 * symtab.c (got_symtab): Ditto.
4812 * utils.c (fprintf_symbol_filtered): Ditto.
4813
4814 * ch-typeprint.c: Make file obsolete.
4815 * ch-valprint.c: Make file obsolete.
4816 * ch-lang.h: Make file obsolete.
4817 * ch-exp.c: Make file obsolete.
4818 * ch-lang.c: Make file obsolete.
4819
4820 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4821 CHILL_LIB.
4822 (TARGET_FLAGS_TO_PASS): Ditto.
4823 (CHILLFLAGS): Obsolete.
4824 (CHILL): Obsolete.
4825 (CHILL_FOR_TARGET): Obsolete.
4826 (CHILL_LIB): Obsolete.
4827 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4828 ch-valprint.c.
4829 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4830 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4831 ch-lang.o.
4832 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4833 targets.
4834
8aaf0b47
JB
48352002-07-31 Joel Brobecker <brobecker@gnat.com>
4836
4837 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4838 This does not change anything at the moment, but will be helpful
4839 later when full Ada support is integrated.
4840
f3a7b3a5
KB
48412002-07-31 Kevin Buettner <kevinb@redhat.com>
4842
4843 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4844 help message.
4845
fb850278
KB
48462002-07-31 Kevin Buettner <kevinb@redhat.com>
4847
4848 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4849 and save it in a local variable. Use variable in later test.
4850
e3bddbfa
KB
48512002-07-31 Kevin Buettner <kevinb@redhat.com>
4852
4853 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4854 test. (Thanks to Daniel Jacobowitz.)
4855
28d169de
KB
48562002-07-31 Kevin Buettner <kevinb@redhat.com>
4857
4858 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4859 (mips_abi_strings): Add "n64".
4860 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4861
7fe7e44e
KB
48622002-07-31 Kevin Buettner <kevinb@redhat.com>
4863
4864 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4865 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4866
c6caf090
KB
48672002-07-31 Kevin Buettner <kevinb@redhat.com>
4868
4869 * utils.c (host_pointer_to_address, address_to_host_pointer):
4870 Use gdb_assert() instead of explicit call to internal_error().
4871
c41669e0
KB
48722002-07-30 Kevin Buettner <kevinb@redhat.com>
4873
4874 * Makefile.in (rs6000-nat.o): Update dependencies.
4875
4876 From Nicholas Duffek:
4877 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4878 (aix-thread.o): New rule.
4879 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4880 * config/powerpc/aix432.mh: New file.
4881
2fda4977
DJ
48822002-07-30 Daniel Jacobowitz <drow@mvista.com>
4883
4884 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4885 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4886 (fetch_core_registers, ppc_linux_supply_gregset)
4887 (ppc_linux_supply_fpregset): New functions.
4888 (ppc_linux_regset_core_fns): New.
4889 (_initialize_ppc_linux_tdep): Call add_core_fns.
4890 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4891 and ppc_linux_supply_gregset.
4892 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4893 (supply_fpregset): Call ppc_linux_supply_fpregset.
4894 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4895 corelow.o.
4896 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4897
729051e6
DJ
48982002-07-30 Daniel Jacobowitz <drow@mvista.com>
4899
4900 * symtab.c (lookup_symbol): Demangle before lowercasing.
4901
5f8a3188
AC
49022002-07-30 Andrew Cagney <ac131313@redhat.com>
4903
4904 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4905 declaration.
4906 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4907 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4908 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4909 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4910 "gdb_string.h".
4911 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4912 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4913 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4914 (avr-tdep.o, mon960-rom.o): Ditto.
4915 (aout_stabs_gnu_h): Define.
4916 (symtab_h): Remove $(gdb_obstack_h).
4917
67f07146
JB
49182002-07-30 Jim Blandy <jimb@redhat.com>
4919
4920 Patch from David Carlton <carlton@math.stanford.edu>:
4921 * gdbinit.in: Move the `dir' commands that add GDB's own source
4922 directory to the search path to the end, so that the `gdb' source
4923 directory will be searched first.
4924
04ea0df1
AC
49252002-07-29 Andrew Cagney <ac131313@redhat.com>
4926
4927 * gdb_obstack.h: New file.
4928 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4929 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4930 * objfiles.h: Include "gdb_obstack.h".
4931 * Makefile.in (gdb_obstack_h): Define.
4932 (symtab_h): Add $(gdb_obstack_h).
4933 (objfiles_h): Add $(gdb_obstack_h).
4934
4935 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4936 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4937 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4938 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4939 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4940 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4941 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4942 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4943
4944 * Makefile.in (bcache.o): Update dependencies.
4945 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4946 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4947 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4948 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4949 (stabsread.o, symfile.o, symmisc.o): Ditto.
4950 (symtab.o, typeprint.o, macroexp.o): Ditto.
4951 (macrotab.o, mdebugread.o): Ditto.
4952 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4953 (coff_ecoff_h, aout_aout64_h): Define.
4954 (aout_stabs_gnu_h, libaout_h): Define.
4955
d138e37a
AC
49562002-07-29 Andrew Cagney <cagney@redhat.com>
4957
4958 * regcache.c (struct regcache_descr): Rename nr_registers to
4959 nr_cooked_registers. Revise comments describing the structure
4960 member fields.
4961 (init_regcache_descr): Update.
4962 (init_legacy_regcache_descr): Update.
4963 (read_register_gen, write_register_gen): When a cooked register in
4964 the raw register range, directly access the value from the raw
4965 register cache.
4966
460e6ec3
AC
49672002-07-29 Andrew Cagney <ac131313@redhat.com>
4968
4969 * z8k-tdep.c: Do not include "obstack.h".
4970 * h8300-tdep.c, h8500-tdep.c: Ditto.
4971 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4972 * valprint.c, v850-tdep.c: Ditto.
4973 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4974 * mn10200-tdep.c: Ditto.
4975
4976 * Makefile.in (z8k-tdep.o): Update dependencies.
4977 (m68hc11-tdep.o, valprint.o): Ditto.
4978 (v850-tdep.o, d10v-tdep.o): Ditto.
4979 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4980 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4981 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4982 (sh_opc_h, gdb_sim_sh_h): Define.
4983 (elf_sh_h, elf_bfd_h): Define.
4984 (opcode_m68hc11_h): Define.
4985 (OPCODES_SRC, OPCODES_DIR): define.
4986 (OPCODES): Use $(OPCODES_DIR).
4987 (gdb_sim_d10v_h): Rename sim_d10v_h.
4988 (gdb_sim_arm_h): Rename sim_arm_h.
4989
790c9cf0
KB
49902002-07-26 Kevin Buettner <kevinb@redhat.com>
4991
4992 * utils.c (host_pointer_to_address, address_to_host_pointer):
4993 Change internal_error() message to indicate function responsible
4994 for the error.
4995
9647fa49
KB
49962002-07-26 Kevin Buettner <kevinb@redhat.com>
4997
4998 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4999 calls to local_hex_string_custom().
5000
dabbe2c0
KB
50012002-07-26 Kevin Buettner <kevinb@redhat.com>
5002
5003 * irix5-nat.c: Move IRIX shared library support from here...
5004 * solib-irix.c: ...to here. Revised substantially to work with
5005 generic solib framework.
5006
b96d0a4e
KB
5007 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5008 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5009 * mips-irix-tdep.c: New file.
5010
313fb2f6
KB
5011 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5012 (mips-irix-tdep.o, solib-irix.o): New rules.
5013 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5014 solib-irix.o.
5015 * config/mips/irix6.mt (TDEPFILES): Likewise.
5016 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5017
ab2eaf26
KB
50182002-07-26 Kevin Buettner <kevinb@redhat.com>
5019
177e4768 5020 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5021 disabled (via ``#if 0'') includes.
5022
7244546a
KB
50232002-07-26 Kevin Buettner <kevinb@redhat.com>
5024
5025 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5026 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5027 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5028 Add support for the fpscr register.
5029 * rs6000-nat.c (regmap, fetch_inferior_registers)
5030 (store_inferior_registers, fetch_core_registers): Likewise.
5031
dd7be90a
KB
50322002-07-26 Kevin Buettner <kevinb@redhat.com>
5033
5034 * rs6000-nat.c (language.h): Include.
5035 (special_regs): Delete this array.
5036 (regmap): New function.
5037 (fetch_register, store_register): Use regmap() to map gdb
5038 register numbers to ptrace register numbers. Also, use
5039 outputs from regmap() to make decisions regarding type of
5040 ptrace() call to make. In particular, don't compare against
5041 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5042 (fetch_inferior_registers, store_inferior_registers): Where
5043 possible, obtain register numbers from tdep struct. Don't
5044 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5045 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5046 (LAST_UISA_SP_REGNUM): Delete.
5047
11bf77db
KB
50482002-07-25 Kevin Buettner <kevinb@redhat.com>
5049
5050 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5051 (fetch_registers, store_register, fetch_core_registers): Don't
5052 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5053 regcache_collect() as appropriate.
5054 (find_toc_address): Format hex address with local_hex_string().
5055
06afebeb
AC
50562002-07-25 Andrew Cagney <ac131313@redhat.com>
5057
5058 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5059 bfd/elf32-frv.c.
5060
8c554d79
TT
50612002-07-24 Tom Tromey <tromey@redhat.com>
5062
5063 * jv-exp.y: Marked all strings with _().
5064 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5065 internal_error.
5066 (MethodInvocation, CastExpression, parse_number, yyerror,
5067 java_type_from_name, push_expression_name, yylex): Typo fixes.
5068
e4c242d9
DJ
50692002-07-24 Daniel Jacobowitz <drow@mvista.com>
5070
5071 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5072 (tee_file_flush, tee_file_write, tee_file_fputs)
5073 (tee_file_isatty): New.
5074 * ui-file.h (tee_file_new): Add prototype.
5075
ebf56fd3
AS
50762002-07-24 Aidan Skinner <aidan@velvet.net>
5077
5078 * ada-lang.c: Change k&r style function definitions to prototyped
5079 form.
5080 * ada-typeprint.c: Change k&r style function definitions to prototyped
5081 form.
5082 * ada-valprint.c: Change k&r style function definitions to prototyped
5083 form.
5084
7fb623f7
AC
50852002-07-24 Andrew Cagney <cagney@redhat.com>
5086
5087 * README: Remove reference to remote-bug.
5088 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5089 remote-bug.c.
5090 (m88k-nat.o): Delete rule.
5091 (m88k-tdep.o): Delete rule.
5092 (remote-bug.o): Delete rule.
5093 * MAINTAINERS: Mark as obsolete.
5094 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5095 * m88k-tdep.c: Make file obsolete.
5096 * config/m88k/m88k.mh: Ditto.
5097 * config/m88k/delta88v4.mh: Ditto.
5098 * config/m88k/delta88v4.mt: Ditto.
5099 * config/m88k/delta88.mt: Ditto.
5100 * config/m88k/delta88.mh: Ditto.
5101 * remote-bug.c: Ditto.
5102 * config/m88k/tm-delta88.h: Ditto.
5103 * config/m88k/nm-delta88v4.h: Ditto.
5104 * config/m88k/xm-delta88.h: Ditto.
5105 * config/m88k/xm-dgux.h: Ditto.
5106 * config/m88k/tm-m88k.h: Ditto.
5107 * config/m88k/nm-m88k.h: Ditto.
5108 * config/m88k/tm-delta88v4.h: Ditto.
5109 * m88k-nat.c: Ditto.
5110 * cxux-nat.c: Ditto.
5111 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5112 and m88*-*-* obsolete.
5113 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5114 m88*-*-* obsolete.
5115
37611a2b
AC
51162002-07-24 Andrew Cagney <cagney@redhat.com>
5117
5118 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5119 constant. Same for local pointer variables.
5120 (extract_signed_integer): Ditto.
5121 * defs.h (extract_unsigned_integer): Update.
5122 (extract_signed_integer): Update.
5123
1aaa5f99
AC
51242002-07-24 Andrew Cagney <cagney@redhat.com>
5125
5126 * regcache.c (regcache_raw_write): Change buf parameter to a
5127 constant void pointer.
5128 (regcache_raw_read): Change buf parameter to a void pointer.
5129 (legacy_write_register_gen): Change myaddr parameter a constant
5130 void pointer.
5131 (supply_register): Change val parameter to a const void pointer.
5132 * regcache.h (regcache_raw_write): Update declaration.
5133 (regcache_raw_read): Update declaration.
5134 (supply_register): Update declaration.
5135
b4f5539f
TT
51362002-07-24 Tom Tromey <tromey@redhat.com>
5137
5138 * defs.h (gdb_readline_wrapper): Declare.
5139 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5140 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5141 * top.c (gdb_readline_wrapper): New function.
5142 (command_line_input): Use it.
5143
0818c12a
AC
51442002-07-24 Andrew Cagney <cagney@redhat.com>
5145
5146 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5147 regcache_read and regcache_write.
5148 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5149 * regcache.c: Update.
5150 * sh-tdep.c (sh64_push_arguments): Update comment.
5151 (sh_pseudo_register_read): Update.
5152 (sh_pseudo_register_write): Update.
5153 (sh4_register_read): Update.
5154 (sh4_register_write): Update.
5155 (sh64_pseudo_register_read): Update.
5156 (sh64_pseudo_register_write): Update.
5157 (sh64_register_read): Update.
5158 (sh64_register_write): Update.
5159 * i386-tdep.c (i386_extract_return_value): Update.
5160 (i386_extract_struct_value_address): Update.
5161 (i386_extract_return_value): Update.
5162 * blockframe.c (generic_read_register_dummy): Update.
5163 (generic_call_dummy_register_unwind): Update
5164 * infrun.c (write_inferior_status_register): Update.
5165
f7321c06
JB
51662002-07-23 Jim Blandy <jimb@redhat.com>
5167
5168 * parser-defs.h (expression_context_pc): Make this extern.
5169 (Thanks to Michael Snyder.)
5170
2037aebb
AC
51712002-07-23 Andrew Cagney <ac131313@redhat.com>
5172
5173 GDB 5.2.1 released from 5.2 branch.
5174 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5175 * README: Update to mention 5.2.1.
5176
66504d44
MS
51772002-07-23 Mark Salter <msalter@redhat.com>
5178
5179 * remote.c (remote_read_bytes): Fix check for error.
5180
27bae383
KB
51812002-07-22 Kevin Buettner <kevinb@redhat.com>
5182
5183 * aix-thread.c (language.h): Include.
5184 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5185 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5186 Print newlines at end of debug messages.
5187 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5188 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5189
51902002-07-22 Kevin Buettner <kevinb@redhat.com>
5191
5192 * aix-thread.c (ppc-tdep.h): Include.
5193 (special_register_p): New function.
5194 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5195 (store_regs_user_thread): Use register number information from
5196 gdbarch_tdep struct instead of hardcoded offsets relative to
5197 FIRST_UISA_SP_REGNUM.
5198 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5199 special_register_p() instead of using FPLAST_REGNUM and
5200 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5201 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5202 will be MQ's register number.
5203
52042002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5205
5206 * aix-thread.c (ops): Rename to aix_thread_ops.
5207 (base_ops): Rename to base_target.
5208 (ops_attach): Rename to aix_thread_attach.
5209 (ops_detach): Rename to aix_thread_detach.
5210 (ops_resume): Rename to aix_thread_detach.
5211 (ops_wait): Rename to aix_thread_wait.
5212 (ops_kill): Rename to aix_thread_kill.
5213 (init_ops): Rename to init_aix_thread_ops.
5214 (ops_fetch_register): Rename to aix_thread_fetch_register.
5215 (ops_store_register): Rename to aix_thread_store_register.
5216 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5217 (ops_thread_alive): Rename to aix_thread_thread_alive.
5218 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5219 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5220 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5221 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5222 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5223 (store_regs_lib): Rename to store_regs_user_thread.
5224 (store_regs_kern): Rename to store_regs_kernel_thread.
5225
27bae383 52262002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5227
5228 * aix-thread.c (ops_prepare_to_store): Eliminate.
5229 (init_ops): Don't initialize ops.prepare_to_store.
5230 (store_regs_kern): Pre-fetch register buffers from child,
5231 because some registers may not be in the cache. Copy
5232 regs from register cache only if they are cached.
5233 (store_regs_lib): Copy regs from register cache only
5234 if they are cached.
5235 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5236 fill_gprs64): Ditto.
5237
61c5da0b
KB
52382002-07-22 Kevin Buettner <kevinb@redhat.com>
5239
5240 * aix-thread.c (gdb_assert.h): Include.
5241 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5242 register sizes (from register cache) match size of buffer holding
5243 register data.
5244 (fill_sprs32): Change parameter types to match those in the ptrace()
5245 buffer.
5246 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5247 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5248
52492002-07-22 Michael Snyder <msnyder@redhat.com>
5250
5251 * aix-thread.c (supply_sprs64): Cosmetic change.
5252 (supply_sprs32): Cosmetic change.
5253 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5254 (fill_sprs64): Use regcache_collect instead of read_register.
5255 (store_regs_lib): Use regcache_collect instead of
5256 read_register. Use fill_sprs32 instead of fill_sprs64,
5257 if debugging a 32-bit architecture.
5258 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5259 out of the register cache, instead of passing a pointer into
5260 the register cache directly to ptrace. Use regcache_collect
5261 insteaad of read_register.
5262 (ops_prepare_to_store): Use target_read_registers instead
5263 of read_register_bytes.
5264
36479eb1
AS
52652002-07-20 Aidan Skinner <aidan@velvet.net>
5266
5267 * MAINTAINERS: Add self under write after approval.
5268
80ae6ee2
AS
52692002-07-20 Aidan Skinner <aidan@velvet.net>
5270
5271 * ada-tasks.c: Change k&r style function definitions to prototyped
5272 form.
5273
8a8ab2b9
AC
52742002-07-19 Andrew Cagney <ac131313@redhat.com>
5275
5276 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5277 * x86-64-tdep.c: Include "objfiles.h".
5278 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5279 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5280
fb16b900
ML
52812002-07-17 Michal Ludvig <michal@suse.cz>
5282
5283 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5284 (update_context): Initialise cfa variable.
5285
0fe7bf7b
MS
52862002-07-17 Michael Snyder <msnyder@redhat.com>
5287
5288 * aix-thread.c: Shorten some long lines.
5289 Bring comments into line with code spec.
5290
488f131b
JB
52912002-07-18 Joel Brobecker <brobecker@gnat.com>
5292
5293 * infrun.c: Re-indent using gdb_indent.sh.
5294
46c415d2
JB
52952002-07-18 Joel Brobecker <brobecker@gnat.com>
5296
5297 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5298 Leave the indentation temporarily untouched, to minimize the diffs.
5299
cdecafbe
EZ
53002002-07-18 Elena Zannoni <ezannoni@redhat.com>
5301
5302 * stabsread.c: Make os9k sections of the code obsolete,
5303 for real this time.
5304 * stabsread.h: Make os9k sections of the code obsolete.
5305
7b6aa020
ML
53062002-07-18 Michal Ludvig <mludvig@suse.cz>
5307
09ec9b38
ML
5308 * linux-low.c (regsets_store_inferior_registers): Add free()
5309 at the end of a loop to prevent memory leak.
5310 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5311 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5312 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5313 line a comment.
4894ac5d 5314 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5315
233282cd
JB
53162002-07-17 Jim Blandy <jimb@redhat.com>
5317
5318 * macrocmd.c (info_macro_command): Remove newline from error
5319 message.
5320
7b6aa020 53212002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5322
5323 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5324 (sh_gdbarch_init): Use it for sh-dsp.
5325
f7ef9339
KB
53262002-07-16 Kevin Buettner <kevinb@redhat.com>
5327
5328 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5329 64-bit DWARF2 format.
5330
8dd72958
JB
53312002-07-16 Joel Brobecker <brobecker@gnat.com>
5332
5333 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5334 <sys/proc.h> when not available.
5335
a99a9e1b
AC
53362002-07-16 Andrew Cagney <ac131313@redhat.com>
5337
5338 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5339 * stabsread.c: Make os9k sections of the code obsolete.
5340 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5341 * config/i386/i386os9k.mt: Make file obsolete.
5342 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5343 (COMMON_OBS): Remove os9kread.o
5344 (SFILES): Remove os9kread.c.
5345 (os9kread.o, remote-os9k.o): Make target obsolete.
5346 * remote-os9k.c: Make file obsolete.
5347 * os9kread.c: Make file obsolete.
5348 * Makefile.in
5349
7a3085c1
AC
53502002-07-16 Andrew Cagney <ac131313@redhat.com>
5351
5352 * NEWS: Mention that the FR30 has been made obsolete.
5353 * fr30-tdep.c: Make file obsolete.
5354 * config/fr30/tm-fr30.h: Ditto.
5355 * config/fr30/fr30.mt: Ditto.
5356 * configure.tgt: Make fr30-*-elf obsolete.
5357 * MAINTAINERS: Make fr30-elf obsolete.
5358
28a93f5a
PM
53592002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5360
5361 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5362 found is not inside a section.
5363
be006b8b
KB
53642002-07-15 Kevin Buettner <kevinb@redhat.com>
5365
5366 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5367 strerror().
5368 (pdc_realloc): Use xrealloc() instead of realloc().
5369
14fa3751
KB
53702002-07-15 Kevin Buettner <kevinb@redhat.com>
5371
5372 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5373 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5374 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5375 macros.
5376
42cc437f
KB
53772002-07-15 Kevin Buettner <kevinb@redhat.com>
5378
5379 * aix-thread.c (ptrace_check): Eliminate goto.
5380 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5381 problem.
5382
8e2c28d4
KB
53832002-07-15 Kevin Buettner <kevinb@redhat.com>
5384
5385 * aix-thread.c (gdbcmd.h): Include.
5386 (DEBUG, DBG, DBG2, dbg): Eliminate.
5387 (debug_aix_thread): New static global.
5388 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5389 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5390 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5391 invocations to DBG and DBG2 macros to test against
5392 ``debug_aix_thread'' and call fprintf_unfiltered().
5393 (_initialize_aix_thread): Add new command "set debug aix-thread".
5394
30413464
AC
53952002-07-15 Andrew Cagney <ac131313@redhat.com>
5396
5397 From Gerhard Tonn <TON@de.ibm.com>:
5398 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5399 instead of supply_register.
5400
7c43edc1
AC
54012002-07-15 Andrew Cagney <ac131313@redhat.com>
5402
5403 * dwarf2cfi.c: Include "gdb_assert.h".
5404 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5405 non-NULL.
5406 (update_context): Do not use __func__. Add missing ``break''.
5407 (update_context): Do not use __func__.
5408
9364a0ef
EZ
54092002-07-15 Elena Zannoni <ezannoni@redhat.com>
5410
5411 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5412 and its setting. Set gdbarch instruction printing functions
5413 directly. For non-rs6000 case use new function
5414 gdb_print_insn_powerpc.
5415 (gdb_print_insn_powerpc): New function.
5416
3fbeef0b
AC
54172002-07-13 Andrew Cagney <ac131313@redhat.com>
5418
92eb23c5 5419 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5420 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5421 * configure.tgt: Mark d30v-*-* as obsolete.
5422 * d30v-tdep.c: Mark file as obsolete.
5423 * config/d30v/d30v.mt: Ditto.
5424 * config/d30v/tm-d30v.h: Ditto.
5425
aacb1f0a
AS
54262002-07-13 Aidan Skinner <aidan@velvet.net>
5427
5428 * ada-tasks.c (add_task_entry): replace calls to
5429 malloc() with xmalloc
5430 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5431
5432 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5433 ada_finish_decode_line_1, all_sals_for_line
5434 ada_breakpoint_rewrite): replace calls to free() with xfree()
5435
c11d79f2
KB
54362002-07-12 Kevin Buettner <kevinb@redhat.com>
5437
5438 From Nicholas Duffek (with minor changes by Martin Hunt,
5439 Louis Hamilton, and Kevin Buettner):
5440 * aix-thread.c: New file.
5441
8e19ed76
PS
54422002-07-12 Petr Sorfa <petrs@caldera.com>
5443
5444 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5445 complaint for invalid attribute class or form.
5446 (read_func_scope): DW_AT_frame_base
5447 better handling of DW_AT_block*.
5448 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5449 better handling of DW_AT_block*.
5450 (read_common_block): DW_AT_location
5451 better handling of DW_AT_block*.
5452 (read_partial_die): DW_AT_location better handling
5453 of DW_AT_block*.
5454 (new_symbol): DW_AT_external better handling of
5455 DW_AT_block*. Proper initialization of variable
5456 "addr".
5457 (attr_form_is_block): New function that returns true
5458 if the attribute's form is of DW_FORM_block*.
5459
295401f7
DJ
54602002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5461
5462 * valops.c (find_method_list): Remove comment about
5463 removed STATIC_MEMFUNCP argument.
5464 (value_find_oload_method_list): Likewise.
5465
e42dc924
KB
54662002-07-12 Kevin Buettner <kevinb@redhat.com>
5467
5468 From Nicholas Duffek:
5469 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5470 target_new_objfile_hook.
5471
6904b546
KB
54722002-07-12 Kevin Buettner <kevinb@redhat.com>
5473
5474 From Nicholas Duffek:
5475 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5476 csect.
5477
53fe9346
AC
54782002-07-12 Andrew Cagney <cagney@redhat.com>
5479
5480 * MAINTAINERS: Mention --enable-sim-build-warnings.
5481 (m68hc11-elf): Disable sim build warnings.
5482 (m32r-elf): Mark as broken obsolete candidate.
5483 (x86_64-linux-gnu): Mark as buildable with -Werror.
5484 (arm-elf): Change -w to ``,'' which enables warnings but not
5485 -Werror.
5486
af5f3db6
AC
54872002-07-12 Andrew Cagney <ac131313@redhat.com>
5488
5489 * bcache.h: Update copyright.
5490 (struct bstring, struct bcache): Move definition to "bcache.c".
5491 Replaced by opaque declaration.
5492 (bcache_xfree): Replace free_bcache.
5493 (bcache_xmalloc, bcache_memory_used): Declare.
5494
5495 * bcache.c: Update copyright.
5496 (struct bstring, struct bcache): Moved to here from "bcache.h".
5497 Update comments.
5498 (bcache_xmalloc, bcache_memory_used): New functions.
5499 (bcache_xfree): Replace function free_bcache.
5500
5501 * Makefile.in (objfiles.o): Add $(bcache_h).
5502 (objfiles_h): Remove $(bcache_h).
5503 (symfile.o): Add $(bcache_h).
5504
5505 * symmisc.c: Update copyright.
5506 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5507 (print_objfile_statistics): Use bcache_memory_used.
5508
5509 * symfile.c: Include "bcache.h".
5510 (reread_symbols): Use bcache_xfree.
5511 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5512 (add_psymbol_to_list): Pass psymbol_cache by value.
5513 (add_psymbol_with_dem_name_to_list): Ditto.
5514
5515 * objfiles.h: Update copyright.
5516 (struct bcache): Declare opaque. Do not include "bcache.h".
5517 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5518 bcache'' pointers.
5519 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5520
5521 * objfiles.c: Include "bcache.h". Update copyright.
5522 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5523 macro_cache.
5524 (free_objfile): Use bcache_xfree.
5525
444199e7
GS
55262002-07-11 Grace Sainsbury <graces@redhat.com>
5527
5528 * monitor.c (monitor_fetch_register): Make name a constant.
5529 (monitor_store_register): Same.
5530
261397f8
DJ
55312002-07-11 Daniel Jacobowitz <drow@mvista.com>
5532
5533 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5534 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5535 (finish_block) For non-function blocks, hash the symbol table. For
5536 function blocks, mark the symbol table as unhashed.
5537 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5538 (msymbol_hash_iw): Likewise.
5539 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5540 value.
5541 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5542 (lookup_minimal_symbol): Likewise for both.
5543 * symtab.h (struct block): Add `hashtable' flag. Comment the
5544 hashtable.
5545 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5546 (ALL_BLOCK_SYMBOLS): Update.
5547 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5548 (struct symbol): Add `hash_next' pointer.
5549 * symtab.c (lookup_block_symbol): Search using the hash table when
5550 possible.
5551 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5552 (search_symbols, find_addr_symbol): Likewise.
5553
5554 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5555 (read_dst_symtab): Likewise.
5556 * jv-lang.c (get_java_class_symtab): Likewise.
5557 * mdebugread.c: Include "gdb_assert.h".
5558 (shrink_block): Assert that the block being modified is not hashed.
5559 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5560 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5561 symbols.
5562 (dump_symtab): Recognize hashed blocks.
5563 * printcmd.c (print_frame_args): Assert that function blocks do not
5564 have hashed symbol tables.
5565 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5566 (fill_in_ada_prototype, debug_print_block): Likewise.
5567 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5568
6f0eaa01
CV
55692002-07-11 Corinna Vinschen <vinschen@redhat.com>
5570
5571 * stack.c (print_frame): Use result of frame_address_in_block()
5572 instead of fi->pc when evaluating symbols.
5573 (backtrace_command_1): Ditto.
5574
a208b0cb
AC
55752002-07-11 Andrew Cagney <cagney@redhat.com>
5576
5577 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5578 Make static.
5579
5580 * arm-tdep.c (arm_register_name): Make return type constant.
5581
a6b6b089
AC
55822002-07-10 Andrew Cagney <ac131313@redhat.com>
5583
5ae5f592
AC
5584 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5585 prototype.
5586 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5587 * s390-tdep.c (s390_fp_regnum): Ditto.
5588 (s390_read_fp): Ditto.
5589 (s390_pop_frame): Ditto.
5590 (_initialize_s390_tdep): Ditto.
5591 * remote.c (get_remote_state): Ditto.
5592 * procfs.c (mappingflags): Ditto.
5593 * memattr.c (_initialize_mem): Ditto.
5594 * mcore-tdep.c (mcore_pop_frame): Ditto.
5595 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5596 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5597 * language.c (set_case_str): Ditto.
5598 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5599 * frv-tdep.c (new_variant): Ditto.
5600 (frv_stopped_data_address): Ditto.
5601 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5602 (context_alloc): Ditto.
5603 (frame_state_alloc): Ditto.
5604 (unwind_tmp_obstack_init): Ditto.
5605 (unwind_tmp_obstack_free): Ditto.
5606 (cfi_read_fp): Ditto.
5607 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5608 (cris_pop_frame): Ditto.
5609 * c-lang.c (scanning_macro_expansion): Ditto.
5610 (finished_macro_expansion): Ditto.
5611 (c_preprocess_and_parse): Ditto.
5612 * gdbarch.sh: Ditto.
5613 * gdbarch.h, gdbarch.c: Regenerate.
5614 * config/mn10200/tm-mn10200.h: Adjust indentation.
5615 * target.c: Adjust indentation.
5616 * symtab.h: Adjust indentation.
5617 * stabsread.h: Adjust indentation.
5618 * remote-es.c: Adjust indentation.
5619 * os9kread.c: Adjust indentation.
5620
56212002-07-10 Andrew Cagney <ac131313@redhat.com>
5622
a6b6b089
AC
5623 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5624 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5625
a1789893
GS
56262002-07-10 Grace Sainsbury <graces@redhat.com>
5627
5628 * NEWS: Mention m68k, mcore multi-arching.
5629 * MAINTAINERS: Change status of m68k, mcore to reflect
5630 multi-arching.
5631
02f0d45d
DJ
56322002-07-10 Daniel Jacobowitz <drow@mvista.com>
5633
5634 * valops.c (find_overload_match): Free oload_syms.
5635
f15f768e
JB
56362002-07-09 Joel Brobecker <brobecker@gnat.com>
5637
5638 Define HAVE_SYS_PROC_H if sys/proc.h exists
5639 * configure.in: Add check for sys/proc.h
5640 * config.in: Regenerate.
5641 * configure: Regenerate.
5642
902a7139
GS
56432002-07-09 Grace Sainsbury <graces@redhat.com>
5644
5645 * config/m68k/tm-m68k.h: Remove macros wrapped in
5646 #if !GDB_MULTI_ARCH.
5647
a534e424
AC
56482002-07-08 Andrew Cagney <ac131313@redhat.com>
5649
5650 * config.in, configure: Regenerate.
5651
9b94f7bf
MK
56522002-07-08 Mark Kettenis <kettenis@gnu.org>
5653
5654 * dwarf2cfi.c: Include "gcore.h".
5655 (execute_stack_op): Fix implementation of the
5656 DW_OP_deref and DW_OP_deref_size operators by letting do their
5657 lookup in the target.
5658
1d34db41
MK
56592002-07-07 Mark Kettenis <kettenis@gnu.org>
5660
5661 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5662 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5663 tdep->sc_sp_offset.
5664
79d5b63a
DJ
56652002-07-05 Daniel Jacobowitz <drow@mvista.com>
5666
5667 Fix PR gdb/595, gdb/602
5668 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5669 Don't call value_cast, just read the vtable pointer; update comments
5670 to match.
5671
3bb912e8
GS
56722002-07-05 Grace Sainsbury <graces@redhat.com>
5673
5674 * config/mcore/tm-mcore.h: Remove file.
5675 * config/mcore/mcore.mt: Remove definition of TM_FILE
5676 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5677
ca39387d
MK
56782002-07-05 Mark Kettenis <kettenis@gnu.org>
5679
5680 * i386bsd-tdep.c: Include "gdb_string.h".
5681
efdc1108
GS
56822002-07-04 Grace Sainsbury <graces@redhat.com>
5683
5684 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5685 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5686 mcore-tdep.
5687 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5688 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5689 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5690 (RETVAL_REGNUM): Move macros from tm-mcore.h
5691 (mcore_reg_struct_has_addr): New function.
5692 (mcore_gdbarch_init): Added initializations for the macros removed
5693 from tm-mcore.h.
5694
bb21884d
MK
56952002-07-04 Mark Kettenis <kettenis@gnu.org>
5696
5697 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5698 traditonal string branding within the ELF header.
5699
228c6d41
DJ
57002002-07-04 Daniel Jacobowitz <drow@mvista.com>
5701
5702 * symtab.c (remove_params): New function.
5703 (make_symbol_overload_list): Use it instead of cplus_demangle.
5704 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5705
2404952e
MK
57062002-07-04 Mark Kettenis <kettenis@gnu.org>
5707
e5e4acad
MK
5708 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5709
baadce09
MK
5710 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5711 New variables.
5712 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5713 and tdep->sigtramp_end.
5714 * i386obsd-nat.c: New file.
5715 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5716
2404952e
MK
5717 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5718 Don't call get_current_frame().
5719
9b4f1ba7
PM
57202002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5721
5722 * i386-nat.c (child_post_startup_inferior): New function
5723 calling i386_cleanup_dregs if
5724 I386_USE_GENERIC_WATCHPOINTS is defined.
5725 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5726 conditional to acknowledge that i386-nat.c has its
5727 own child_post_startup_inferior function.
5728
c0d1d883
MK
57292002-07-04 Mark Kettenis <kettenis@gnu.org>
5730
00f8375e
MK
5731 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5732 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5733 instead of MAX_REGISTER_RAW_SIZE.
5734 (i386_extract_return_value, i386_extract_struct_value_address):
5735 Convert to use regcache.
5736 (i386_gdbarch_init): Set max_register_raw_size and
5737 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5738 Set extract_return_value and extract_struct_value_address instead
5739 of their deprecated variants.
5740
c0d1d883
MK
5741 Convert i386 target to generic dummy frames.
5742 * i386-tdep.c: Include "symfile.h".
5743 (i386_frameless_signal_p): Consider a function to be frameless if
5744 the pc points at the first instruction of the function.
5745 (i386_frame_chain): Handle (generic) call dummies.
5746 (i386_frame_saved_pc): Likewise.
5747 (i386_frame_init_saved_regs): Remove code dealing with call
5748 dummies on the stack.
5749 (i386_push_dummy_frame): Removed.
5750 (i386_call_dummy_words): Removed.
5751 (i386_fix_call_dummy): Removed.
5752 (i386_push_return_address): New function.
5753 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5754 parameter, and don't call get_current_frame.
5755 (i386_pop_frame): New function.
5756 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5757 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5758 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5759 call_dummy_length to 0, set call_dummy_words to NULL, set
5760 sizeof_call_dummy_words to 0, set fix_call_dummy to
5761 generic_fix_call_dummy, set pc_in_call_dummy to
5762 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5763 generic_push_dummy_frame, set push_return_address to
5764 i386_push_return_address and set frame_chain_valid to
5765 generic_file_frame_chain_valid.
5766
049ee0e4
AC
57672002-07-03 Andrew Cagney <ac131313@redhat.com>
5768
5769 * gdbarch.sh (struct regcache): Add opaque declaration.
5770 (EXTRACT_RETURN_VALUE): New architecture method.
5771 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5772 * gdbarch.h, gdbarch.c: Regenerate.
5773 * arch-utils.c (legacy_extract_return_value): New function.
5774 * arch-utils.h (legacy_extract_return_value): Declare.
5775 * values.c (value_being_returned): Re-enable code handling
5776 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5777 deprecated_grub_regcache_for_registers call to block handling
5778 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5779 (EXTRACT_RETURN_VALUE): Do not define.
5780
4e0d9804
GS
57812002-07-03 Grace Sainsbury <graces@redhat.com>
5782
5783 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5784 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5785 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5786 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5787 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5788 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5789 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5790 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5791 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5792 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5793 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5794 argument so the function fits the prototype in the architecture
5795 vector.
5796 (mcore_pop_frame): Remove argument so the function fits the
5797 prototype. Use get_current_frame instead of the argument.
5798 (mcore_push_arguments): Change type of struct_return so the
5799 function can be used in the architecture vector.
5800 (mcore_store_struct_return): Add.
5801 (mcore_frame_init_saved_regs): Add.
5802 (mcore_gdbarch_init): Add function calls to replace the macros
5803 removed from tm-mcore.h
5804
36160dc4
AC
58052002-07-03 Andrew Cagney <ac131313@redhat.com>
5806
5807 * infcmd.c (print_return_value): Remove compatibility code calling
5808 deprecated_grub_regcache_for_registers.
5809
5810 * values.c: Include "regcache.h".
5811 (value_being_returned): Update. Use
5812 deprecated_grub_regcache_for_registers to extract the register
5813 buffer address.
5814 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5815 ``struct regcache''.
5816 * Makefile.in (values.o): Add dependency on $(regcache_h).
5817
5818 * inferior.h (run_stack_dummy): Change type of second parameter to
5819 a ``struct regcache''.
5820 * valops.c (hand_function_call): Change type of retbuf to ``struct
5821 regcache''. Allocate using regcache_xmalloc, clean using
5822 make_cleanup_regcache_xfree.
5823 * infcmd.c (run_stack_dummy): Update. Use
5824 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5825
5826 * regcache.c (do_regcache_xfree): New function.
5827 (make_cleanup_regcache_xfree): New function.
5828 * regcache.h (make_cleanup_regcache_xfree): Declare.
5829
e64d9b3d
MH
58302002-07-03 Martin M. Hunt <hunt@redhat.com>
5831
4dd79c29
MH
5832 * event-top.c (command_line_handler): Don't read past
5833 beginning of buffer.
e64d9b3d 5834
4dd79c29
MH
58352002-07-03 Martin M. Hunt <hunt@redhat.com>
5836
e64d9b3d
MH
5837 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5838 struct frame_id.
5839 (varobj_create): Store frame_id for root.
5840 (varobj_gen_name): Use xasprintf.
5841 (varobj_update): Save and restore frame using get_frame_id() and
5842 frame_find_by_id().
5843 (create_child): Use xasprintf.
5844 (new_root_variable): Initialize frame_id.
5845 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5846 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5847 to prevent memory leak.
5848
26e6c56a
AC
58492002-07-03 Andrew Cagney <ac131313@redhat.com>
5850
5851 * valops.c (hand_function_call): Move declaration of retbuf to
5852 start of function, allocate using malloc, add a cleanup but before
5853 the inf_status cleanup, cleanup the buffer. Rename local variable
5854 old_chain to inf_status_cleanup.
5855
f436dd25
MH
58562002-07-03 Martin M. Hunt <hunt@redhat.com>
5857
5858 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5859
5860 * cli/cli-decode.c (cmd_func_p): New function.
5861 (cmd_func): New function.
5862
5863 * command.h: Add cmd_func() and cmd_func_p().
5864
4cfe2084
GS
58652002-07-03 Grace Sainsbury <graces@redhat.com>
5866
5867 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5868 (REGISTER_SIZE): Remove.
5869 (MAX_REGISTER_RAW_SIZE): Remove.
5870 (REGISTER_VIRTUAL_TYPE): Remove.
5871 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5872 (REGISTER_NAME): Remove.
5873 (USE_GENERIC_DUMMY_FRAMES): Remove.
5874 (CALL_DUMMY): Remove.
5875 (CALL_DUMMY_START_OFFSET): Remove.
5876 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5877 (CALL_DUMMY_LOCATION): Remove.
5878 (FIX_CALL_DUMMY): Remove.
5879 (CALL_DUMMY_ADDRESS): Remove.
5880 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5881 (SAVE_DUMMY_FRAME_TOS): Remove.
5882 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5883 (mcore_register_virtual_type): New function.
5884 (mcore_register_byte): New function.
5885 (mcore_register_size): New function.
5886 (mcore_register_name): New function.
5887 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5888 macros removed from tm-mcore.h.
5889 (mcore_dump_tdep): Add.
5890 (_initialize_mcore_tdep): Add gdbarch_register call.
5891
4fd667e9
MK
58922002-07-03 Mark Kettenis <kettenis@gnu.org>
5893
5894 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5895 frameless_look_for_prologue, such that we actually call this
5896 function.
5897
42f99ac2
JB
58982002-07-02 Joel Brobecker <brobecker@gnat.com>
5899
5900 * frame.h (frame_address_in_block): New function.
5901
5902 * blockframe.c (frame_address_in_block): New function extracted
5903 from get_frame_block().
5904 (get_frame_block): Use frame_address_in_block().
5905 (block_innermost_frame): Use frame_address_in_block() to match
5906 the frame pc address against the block boundaries rather than
5907 the frame pc directly. This prevents a failure when a frame pc
5908 is actually a return-address pointing immediately after the end
5909 of the given block.
5910
103a1597 59112002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5912
5913 * MAINTAINERS: Add self under write after approval.
5914
59152002-07-02 Grace Sainsbury <graces@redhat.com>
5916
103a1597
GS
5917 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5918 used in architecture vector. The default is
5919 m68k_local_breakpoint_from_pc.
5920 (m68k_local_breakpoint_from_pc): Add.
5921 (enum): Add register numbers from tm-m68k.h.
5922 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5923 vector.
5924 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5925 GDB_MULTI_ARCH_PARTIAL.
5926 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5927 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5928 m68k-tdep.c.
5929 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5930 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5931 to enum in m68k-tdep.c
5932
7a5a0534
JB
59332002-07-02 Joel Brobecker <brobecker@gnat.com>
5934
5935 * solib-osf.c (open_map): Compute the list of shared libraries
5936 loaded by the inferior, rather than the list of libraries loaded
5937 by GDB itself. Otherwise, GDB ends up reading the symbols from
5938 the wrong shared libraries...
5939
6f558d74
MK
59402002-07-02 Mark Kettenis <kettenis@gnu.org>
5941
b7d15bf7
MK
5942 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5943 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5944 macros.
5945 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5946 Remove functions.
5947 (FRAMELESS_SIGNAL): Remove function.
5948 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5949 i386_linux_saved_pc_after_call): Removed.
5950 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5951 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5952 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5953
6bff26de
MK
5954 * i386-tdep.c (i386_frameless_signal_p): New function.
5955 (i386_frame_chain): Deal with frameless signals.
5956 (i386_sigtramp_saved_sp): New function.
5957 (i386_frame_saved_pc): Deal with frameless signals.
5958 (i386_saved_pc_after_call): Make sure the correct value is
5959 returned just after entry into a sigtramp.
5960 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5961 i386fbsd4_sc_sp_offset): New variables.
5962 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5963 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5964 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5965 similiar to what we already did for sc_pc_offset.
5966 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5967 tdep->sc_sp_offset.
5968
6f558d74
MK
5969 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5970
145564b7
ML
59712002-07-02 Michal Ludvig <mludvig@suse.cz>
5972
5973 * config/i386/tm-x86-64linux.h: New.
5974 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5975 definitions.
5976 * config/i386/nm-x86-64.h: Rename to ...
5977 * config/i386/nm-x86-64linux.h: ... this one.
5978 * config/i386/x86-64linux.mh: Reflect the above change.
5979
3a1e71e3
MK
59802002-07-01 Mark Kettenis <kettenis@gnu.org>
5981
21d0e8a4
MK
5982 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5983 with sigcontext_addr. Add sc_sp_offset.
5984 (i386bsd_sigtramp_saved_pc): Remove prototype.
5985 (i386bsd_sicontext_addr): Add prototype.
5986 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5987 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5988 (i386_svr4_sigtramp_saved_pc): Removed.
5989 (i386_svr4_sigcontext_addr): New function.
5990 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5991 Initialize tdep->sigcontext_addr instead. Initialize
5992 tdep->sc_pc_offset and tdep->sc_sp_offset.
5993 (i386_gdbarch_init): Likewise.
5994 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5995 any more.
5996 (i386bsd_sigtramp_saved_pc): Remove function.
5997 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5998 Initialize tdep->sigcontext_addr instead. Initialize
5999 tdep->sc_pc_offset.
6000 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6001 of tdep->sigtramp_saved_pc.
6002 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6003 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6004 instead.
6005
3a1e71e3
MK
6006 * i386-tdep.c (i386_frameless_function_invocation,
6007 i386_frame_num_args, i386_frame_init_saved_regs,
6008 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6009 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6010 i386_extract_return_value, i386_store_return_value,
6011 i386_extract_struct_value_address, i386_register_virtual_type,
6012 i386_register_convertible, i386_register_convert_to_virtual,
6013 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6014 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6015 static.
6016
52e9098c
MK
60172002-07-01 Mark Kettenis <kettenis@gnu.org>
6018
77b13a25
MK
6019 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6020
52e9098c
MK
6021 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6022 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6023 this macro. Include "value.h".
6024
1b372fff
AS
60252002-06-30 Aidan Skinner <aidan@velvet.net>
6026
6027 * ada-exp.tab.c: remove as it's a generated file
6028 * ada-lex.c: remove as it's a generated file
6029
9c5045b5
MK
60302002-06-30 Mark Kettenis <kettenis@gnu.org>
6031
4a93c5bb
MK
6032 * config/i386/tm-i386.h (struct frame_info, struct
6033 frame_saved_regs, struct value, struct type): Remove forward
6034 declarations.
6035
322d4fe0
MK
6036 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6037 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6038 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6039 (FILL_FPXREGSET): Define.
6040
fdd8263d
MK
6041 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6042
482e577b
MK
6043 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6044 i[3456]86-*-netbsd* case.
6045 * config/i386/tm-obsd.h: Removed.
6046 * config/i386/obsd.mt: Removed.
6047 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6048 core-aout.o.
6049 (MH_CFLAGS): Add -DYYDEBUG=0.
6050
6916549a
MK
6051 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6052 i386nbsd_sc_pc_offset on OpenBSD too.
6053
9c5045b5
MK
6054 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6055 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6056 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6057 define.
6058 * i386bsd-tdep.c: Include "arch-utils.h".
6059 (i386bsd_aout_in_solib_call_trampoline): New function.
6060 (i386bsd_init_abi): Set in_solib_call_trampoline to
6061 i386bsd_aout_in_solib_call_trampoline.
6062 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6063 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6064
aa84d1bb
AC
60652002-06-28 Andrew Cagney <ac131313@redhat.com>
6066
6067 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6068 (struct obstack, struct bcache): Add opaque declarations.
6069 * Makefile.in (macrotab_h): Update
6070
b4d83933
AC
60712002-06-28 Andrew Cagney <ac131313@redhat.com>
6072
6073 * blockframe.c (generic_find_dummy_frame): Change return type to
6074 ``struct regcache''.
6075 (struct dummy_frame): Replace field ``registers'' with regcache, a
6076 struct regcache object.
6077 (generic_find_dummy_frame): Update.
6078 (generic_push_dummy_frame): Update. Use regcache_xfree,
6079 regcache_xmalloc and regcache_cpy.
6080 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6081 regcache_xfree.
6082 (deprecated_generic_find_dummy_frame): Update.
6083 (generic_read_register_dummy): Update. Use
6084 regcache_read_as_address.
6085 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6086 (generic_get_saved_register): Update. Use regcache_read.
6087
08c0b5bc
AC
60882002-06-28 Andrew Cagney <ac131313@redhat.com>
6089
6090 * Makefile.in (objfiles_h): Add $(bcache_h).
6091 * objfiles.h: Include "bcache.h".
6092
6093 * Makefile.in (symtab_h): Remove $(bcache_h).
6094 * symtab.h: Do not include "bcache.h".
6095
1f89801a
AC
60962002-06-28 Andrew Cagney <ac131313@redhat.com>
6097
6098 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6099 generic_func_frame_chain_valid.
6100
b9644b58
DB
61012002-06-28 David O'Brien <obrien@FreeBSD.org>
6102
6103 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6104 * config/i386/tm-fbsd.h: Likewise.
6105
dd486634
AC
61062002-06-28 Andrew Cagney <ac131313@redhat.com>
6107
6108 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6109 generic_unwind_get_saved_register.
6110
0b434a00
AC
61112002-06-27 Andrew Cagney <ac131313@redhat.com>
6112
6113 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6114 * regcache.c (supply_register): Add missing argument to
6115 register_buffer call.
6116
f30e5a77
AC
61172002-06-27 Andrew Cagney <ac131313@redhat.com>
6118
6119 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6120 Solaris /bin/grep does not not like it. From Peter Schauer.
6121
9f064c95
TT
61222002-06-26 Tom Tromey <tromey@redhat.com>
6123
6124 * command.h (add_setshow_cmd): Declare.
6125 (add_setshow_cmd_full): Declare.
6126 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6127 returns void. Use add_setshow_cmd_full.
6128 (add_setshow_cmd_full): New function.
6129 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6130 (add_setshow_boolean_cmd): Likewise.
6131
099c7589
JT
61322002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6133
6134 * config/vax/tm-vax.h: Protect from multiple inclusion.
6135 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6136 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6137 * config/vax/tm-vaxbsd.h: ...here. New file.
6138 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6139
1d049c5e
JT
61402002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6143 (BELIEVE_PCC_PROMOTION): Remove.
6144 (AP_REGNUM): Move to...
6145 * config/vax/nm-vax.h: ...here.
6146 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6147 (vax_breakpoint_from_pc): New function.
6148 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6149 and gdbarch_believe_pcc_promotion.
6150
4791e091
JT
61512002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6152
6153 * Makefile.in (vax_tdep_h): Define.
6154 (vax-tdep.o): Use $(vax_tdep_h).
6155 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6156 (vax_dump_tdep): New function.
6157 (_initialize_vax_tdep): Register vax_dump_tdep.
6158 * vax-tdep.h: Include osabi.h.
6159 (struct gdbarch_tdep): New.
6160
da130f98
AC
61612002-06-26 Andrew Cagney <cagney@redhat.com>
6162
6163 * frame.h (deprecated_generic_find_dummy_frame): Rename
6164 generic_find_dummy_frame.
6165 * blockframe.c (generic_find_dummy_frame): Make static.
6166 (deprecated_generic_find_dummy_frame): New function.
6167 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6168 generic_find_dummy_frame with deprecated_find_dummy_frame.
6169 (sh64_nofp_frame_init_saved_regs): Ditto.
6170 (sh_fp_frame_init_saved_regs): Ditto.
6171 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6172 (s390_frame_chain): Ditto.
6173 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6174
6300c360
GS
61752002-06-26 Grace Sainsbury <graces@redhat.com>
6176
6177 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6178 gdbarch vector are at the top.
6179 (NUM_REGS): Remove.
6180 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6181 (FRAME_ARGS_ADDRESS): Remove.
6182 (FRAME_LOCALS_ADDRESS): Remove.
6183 (FRAME_NUM_ARGS): Remove.
6184 (FRAME_ARGS_SKIP): Remove.
6185 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6186 (m68k_gdbarch_init): Add gdbarch initializations for macros
6187 undefined in tm-m68k.h
6188
1c617db8
GS
61892002-06-26 Grace Sainsbury <graces@redhat.com>
6190
6191 * monitor.h: Add the function regname to monitor_ops
6192 structure. This way NUM_REGS does not have to be a constant.
6193 * monitor.c (monitor_fetch_register): Added support for regname
6194 function. The function is called if the array regnames is NULL.
6195 (monitor_store_register): Same.
da130f98
AC
6196 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6197 regnames array.
1c617db8
GS
6198 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6199 cpu32bug_cmds.regname to point to new function.
6200 * abug-rom.c (abug_regname): Same as above.
6201 (init_abug_cmds): Same.
6202 * dbug-rom.c (dbug_regname): Same as above.
6203 (init_dbug_cmds): Same.
6204 * remote-est.c (est_regname): Same.
6205 (init_est_cmds): Same.
6206 * rom68k-rom.c (rom68k_regname): Same.
6207 (init_rom68k_cmds): Same.
6208
ea9365bb
TT
62092002-06-25 Tom Tromey <tromey@redhat.com>
6210
6211 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6212
72cec141
AC
62132002-06-25 Andrew Cagney <cagney@redhat.com>
6214
6215 * infrun.c (stop_registers): Change variable's type to ``struct
6216 regcache'''.
6217 (xmalloc_inferior_status): Delete function.
6218 (free_inferior_status): Delete function.
6219 (normal_stop): Use regcache_cpy.
6220 (struct inferior_status): Change type of fields ``stop_registers''
6221 and ``registers'' to ``struct regcache''.
6222 (write_inferior_status_register): Use regcache_write.
6223 (save_inferior_status): Instead of calling
6224 xmalloc_inferior_status, allocate the inf_status buffer directly.
6225 Use regcache_dup_no_passthrough and regcache_dup to save the
6226 buffers.
6227 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6228 Replace the stop_registers regcache instead of overriding it. Use
6229 regcache_xfree. Instead of calling free_inferior_status, xfree
6230 the buffer directly.
6231 (discard_inferior_status): Use regcache_xfree. Instead of calling
6232 free_inferior_status, xfree the buffer directly.
6233 (build_infrun): Use regcache_xmalloc.
6234 (_initialize_infrun): Delete redundant call to build_infrun.
6235
6236 * Makefile.in (infcmd.o): Add $(regcache_h).
6237
6238 * infcmd.c: Include "regcache.h".
6239 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6240 obtain the address of `stop_registers' register buffer.
6241 (print_return_value): Ditto.
6242
6243 * inferior.h (struct regcache): Add opaque declaration.
6244 (stop_registers): Change variable's declared type to ``struct
6245 regcache''.
6246
defc6f8c
TT
62472002-06-24 Tom Tromey <tromey@redhat.com>
6248
c0e624e7
TT
6249 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6250 * target.c (initialize_targets): Fixed typo in
6251 trust-readonly-sections `show' documentation.
6252
defc6f8c
TT
6253 * main.c: Marked all strings with _().
6254
2b236d82
DH
62552002-06-24 Don Howard <dhoward@redhat.com>
6256
6257 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6258 that means max CORE_ADDR+1.
6259 (lookup_mem_region): Ditto.
6260 (mem_info_command): Ditto.
6261
942dc0e9
GS
62622002-06-24 Grace Sainsbury <graces@redhat.com>
6263
6264 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6265 (REGISTER_BYTES_OK): Remove.
6266 (REGISTER_BYTES): Remove.
6267 (STORE_STRUCT_RETURN): Remove.
6268 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6269 (STORE_RETURN_VALUE): Remove.
6270 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6271 (FRAME_CHAIN): Remove.
6272 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6273 (FRAME_SAVED_PC): Remove.
6274 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6275 (m68k_store_struct_return): Add.
6276 (m68k_deprecated_extract_return_value): Add.
6277 (m68k_deprecated_extract_struct_value_address): Add.
6278 (m68k_store_return_value): Add.
6279 (m68k_frame_chain): Add.
6280 (m68k_frameless_function_invocation): Add.
6281 (m68k_frame_saved_pc): Add.
6282 (m68k_gdbarch_init): added set_gdbarch calls for new
6283 functions and deleted macros.
6284
03c30d4d
TT
62852002-06-23 Tom Tromey <tromey@redhat.com>
6286
6287 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6288 (ALLDEPFILES): Likewise.
6289 (udiheaders): Removed.
6290 (udip2soc.o): Likewise.
6291 (udi2go32.o): Likewise.
6292 (udr.o): Likewise.
6293 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6294
37e71372
AC
62952002-06-22 Andrew Cagney <ac131313@redhat.com>
6296
06a6ac57
AC
6297 * infrun.c (_initialize_infrun): Delete unnecessary call to
6298 build_infrun.
6299
37e71372
AC
6300 * regcache.h: Update comments describing the regcache_cpy family
6301 of functions.
6302 (regcache_save, regcache_restore): Delete declaration.
6303 (regcache_save_no_passthrough): Delete declaration.
6304 (regcache_restore_no_passthrough): Delete declaration.
6305 * regcache.c (regcache_save): Delete function.
6306 (regcache_save_no_passthrough): Delete function.
6307 (regcache_restore): Delete function.
6308 (regcache_restore_no_passthrough): Delete function.
6309
78f6d055
AC
63102002-06-21 Andrew Cagney <ac131313@redhat.com>
6311
6312 * config/m68k/tm-m68k.h: Fix typo.
6313 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6314 (m68k_frame_init_saved_regs): Declare.
6315
78b119cb
JB
63162002-06-21 Jim Blandy <jimb@redhat.com>
6317
6318 Remove some vestiges of Harris 88k support.
6319 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6320 register numbering quirk.
6321 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6322 odd symbols occurring in Harris 88k ELF targets.
6323
0fbb3da7
TT
63242002-06-21 Tom Tromey <tromey@redhat.com>
6325
6326 * gdb_locale.h: New file.
6327 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6328 (defs_h): Added gdb_locale.h.
6329 * configure, config.in: Rebuilt.
6330 * configure.in (PACKAGE): Define.
6331 * defs.h: Include gdb_locale.h.
6332 * main.c (captured_main): Call setlocale, bindtextdomain,
6333 textdomain.
6334
456f8b9d
DB
63352002-06-21 Dave Brolley <brolley@redhat.com>
6336
6337 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6338 * config/frv/frv.mt: New file.
6339 * config/frv/tm-frv.h: New file.
6340 * configure.tgt: Support frv-*-*.
6341 * Makefile.in (frv-tdep.o): New target.
6342 * frv-tdep.c: New file.
6343 * NEWS: Mention frv.
6344
cdd463f9
DB
63452002-06-21 Dave Brolley <brolley@redhat.com>
6346
6347 * MAINTAINERS: Add self to "Write After Approval" list.
6348
5d3ed2e3
GS
63492002-06-21 Grace Sainsbury <graces@redhat.com>
6350
6351 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6352 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6353 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6354 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6355 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6356
6357 * m68k-tdep.c: Include arch-utils.h
6358 (m68k_register_raw_size): Add.
6359 (m68k_register_virtual_size): Add.
6360 (m68k_register_virtual_type): Add.
6361 (m68k_register_name): Add.
6362 (m68k_stack_align): Add.
6363 (m68k_register_byte): Add.
6364 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6365 tm-m68k.h.
6366
7f8e7424
GS
63672002-06-21 Grace Sainsbury <graces@redhat.com>
6368
a2c6a6d5 6369 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6370 m68k_find_saved_regs.
6371 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6372 references to it with frame->saved_regs.
7f8e7424
GS
6373 (m68k_gdbarch_init): Added function calls to initialize the
6374 gdbarch structure.
a2c6a6d5
GS
6375 (m68k_fix_call_dummy): Add.
6376 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6377 (CALL_DUMMY): Remove.
6378 (CALL_DUMMY_LENGTH): Remove.
6379 (CALL_DUMMY_START_OFFSET): Remove.
6380 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6381 (FIX_CALL_DUMMY): Remove.
6382 (PUSH_DUMMY_FRAME): Remove.
6383 (POP_FRAME): Remove.
7f8e7424 6384
f461f5cf
PM
63852002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6386
6387 * parse.c (parse_fprintf): New function used to avoid calls to
6388 fprintf in bison parser generated debug code.
6389 * parser-defs.h: Declaration of new parse_fprintf function.
6390 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6391 Set YYDEBUG to 1 by default.
6392 Set YYFPRINTF as parse_fprintf.
6393
7f0c12ed
ML
63942002-06-21 Michal Ludvig <mludvig@suse.cz>
6395
6396 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6397 encoding anymore.
6398 (pointer_encoding, enum ptr_encoding): New.
6399 (execute_cfa_program): Take care about pointer encoding.
6400 (dwarf2_build_frame_info): Only call parse_frame_info for
6401 .debug_frame and .eh_frame.
6402 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6403 fixed augmentation handling, added relative addressing,
6404 ignore duplicate FDEs. Added comments.
19d833a2 6405 * dwarf2cfi.c: Reindented.
7f0c12ed 6406
87c4a039
EZ
64072002-06-20 Elena Zannoni <ezannoni@redhat.com>
6408
6409 * event-top.c (command_handler): Don't use space_at_cmd_start
6410 unless there is sbrk() on the host. Assign time and space data
6411 to union fields of the appropriate length.
6412
1cf877ad
ML
64132002-06-20 Michal Ludvig <mludvig@suse.cz>
6414
6415 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6416 x86_64_register_name. Return type changed to 'const char *'.
6417 (x86_64_register_name2nr): Rename to x86_64_register_number.
6418 (x86_64_gdbarch_init): Update to reflect the change.
6419 * x86-64-tdep.h: Ditto.
6420 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6421 (supply_fpregset): Ditto.
6422
3fadccb3
AC
64232002-06-19 Andrew Cagney <cagney@redhat.com>
6424
6425 * regcache.h: Update copyright.
6426 (struct regcache, struct gdbarch): Add opaque declarations.
6427 (current_regcache): Declare global variable.
6428 (regcache_read, regcache_write): Add gdbarch parameter.
6429 (regcache_save, regcache_save_no_passthrough)
6430 (regcache_restore, regcache_restore_no_passthrough)
6431 (regcache_dup, regcache_dup_no_passthrough)
6432 (regcache_cpy, regcache_cpy_no_passthrough)
6433 (deprecated_grub_regcache_for_registers)
6434 (deprecated_grub_regcache_for_register_valid)
6435 (regcache_valid_p): Add function declarations.
6436
6437 * regcache.c: Update copyright.
6438 (regcache_descr_handle): New global variable.
6439 (struct regcache_descr): Define.
6440 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6441 (regcache_descr, xfree_regcache_descr): New functions.
6442 (struct regcache): Define.
6443 (regcache_xmalloc, regcache_xfree): New functions.
6444 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6445 (regcache_dup, regcache_dup_no_passthrough): New functions.
6446 (regcache_valid_p, regcache_read_as_address): New functions.
6447 (deprecated_grub_regcache_for_registers): New function.
6448 (deprecated_grub_regcache_for_register_valid): New function.
6449 (current_regcache): New global variable.
6450 (register_buffer): Add regcache parameter. Update calls.
6451 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6452 (read_register_gen, write_register_gen): Update register_buffer
6453 call. Test for legacy_p instead of gdbarch_register_read_p or
6454 gdbarch_register_write_p.
6455 (regcache_collect): Update register_buffer call.
6456 (build_regcache): Rewrite. Use deprecated grub functions.
6457 (regcache_save, regcache_save_no_passthrough): New functions.
6458 (regcache_restore, regcache_restore_no_passthrough): New
6459 functions.
6460 (_initialize_regcache): Create the regcache_data_handle. Swap
6461 current_regcache global variable.
6462
6463 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6464 parameter to regcache_read and regcache_write calls.
6465 (sh4_register_read): Ditto.
6466 (sh64_pseudo_register_read): Ditto.
6467 (sh64_register_read): Ditto.
6468 (sh_pseudo_register_write): Ditto.
6469 (sh4_register_write): Ditto.
6470 (sh64_pseudo_register_write): Ditto.
6471 (sh64_register_write): Ditto.
6472
6473 * defs.h (XCALLOC): Define.
6474
152d9db6
GS
64752002-06-19 Grace Sainsbury <graces@redhat.com>
6476
6477 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6478 * m68k-tdep.c (m68k_gdbarch_init): Added.
6479 (m68k_dump_tdep): Added.
6480
170911c7
DJ
64812002-06-19 Daniel Jacobowitz <drow@mvista.com>
6482
6483 * ada-lang.c (fill_in_ada_prototype): Update comment.
6484
2e4ebe70
DJ
64852002-06-19 Daniel Jacobowitz <drow@mvista.com>
6486
6487 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6488 MIPS_ABI_LAST.
6489 (mips_abi_string, mips_abi_strings): New.
6490 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6491 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6492 tdep->mips_abi_string. Honor mips_abi_string. Default to
6493 O32 if no ABI is found.
6494 (mips_dump_tdep): Use mips_abi_strings.
6495 (mips_abi_update): New function.
6496 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6497 ``set mips abi'' and ``show mips abi''. Check the size of
6498 mips_abi_strings.
6499
16775908
AC
65002002-06-19 Andrew Cagney <cagney@redhat.com>
6501
6502 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6503 constant.
6504
5051bfa4 65052002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6506
5051bfa4
JB
6507 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6508 current frame using only the first stack size adjustment. All
6509 subsequent size adjustments are not considered to be part of
6510 the "static" part of the current frame.
6511 Compute the address of the saved registers relative to the
6512 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6513 in use in this frame.
6514
56468235
DH
65152002-06-18 Don Howard <dhoward@redhat.com>
6516
6517 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6518 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6519 suggesting this solution.
6520
0b624158
AC
65212002-06-18 Andrew Cagney <ac131313@redhat.com>
6522
6523 * config/romp/xm-rtbsd.h: Delete file.
6524 * config/romp/rtbsd.mh: Delete file.
6525
221ea385
KS
65262002-06-18 Keith Seitz <keiths@redhat.com>
6527
6528 * breakpoint.c (condition_command): Post breakpoint_modify
6529 when a condition is added to an existing breakpoint.
6530 (commands_command): Likewise for commands.
6531 (set_ignore_count): Likewise for ignore counts.
6532 If no tty, do not simply return, still need to send event
6533 notification.
6534 (ignore_command): Only print a newline if the command came
6535 from a tty.
6536 Don't call breakpoints_changed, since this is now properly
6537 handled by set_ignore_count.
6538
5402eed1
AC
65392002-06-18 Andrew Cagney <cagney@redhat.com>
6540
6541 * MAINTAINERS: Note that cris-elf target can be compiled with
6542 -Werror.
6543 * cris-tdep.c (cris_register_name): Make return type constant.
6544 (cris_breakpoint_from_pc): Ditto.
6545
cc22880b
ML
65462002-06-18 Michal Ludvig <mludvig@suse.cz>
6547
6548 * frame.h (struct frame_info): Change type of context to
6549 'struct context'.
6550
fa88f677
AC
65512002-06-17 Andrew Cagney <cagney@redhat.com>
6552
6553 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6554 pointer.
6555 * gdbarch.h, gdbarch.c: Regenerate.
6556 * config/mips/tm-mips.h (mips_register_name): Update.
6557 * i386-tdep.h (i386_register_name): Update.
6558 * mips-tdep.c (mips_register_name): Update
6559 * alpha-tdep.c (alpha_register_name): Update.
6560 * arch-utils.c (legacy_register_name): Update.
6561 * arch-utils.h (legacy_register_name): Update.
6562 * avr-tdep.c (avr_register_name): Update.
6563 * ia64-tdep.c (ia64_register_name): Update.
6564 * i386-tdep.c (i386_register_name): Update.
6565 * sparc-tdep.c (sparc32_register_name): Update.
6566 (sparc64_register_name): Update.
6567 (sparclite_register_name): Update.
6568 (sparclet_register_name): Update.
6569 * sh-tdep.c (sh_generic_register_name): Update.
6570 (sh_sh_register_name): Update.
6571 (sh_sh3_register_name): Update.
6572 (sh_sh3e_register_name): Update.
6573 (sh_sh_dsp_register_name): Update.
6574 (sh_sh3_dsp_register_name): Update.
6575 (sh_sh4_register_name): Update.
6576 (sh_sh64_register_name): Update.
6577 * s390-tdep.c (s390_register_name): Update.
6578 * rs6000-tdep.c (rs6000_register_name): Update.
6579 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6580 (ns32k_register_name_32382): Update.
6581 * d10v-tdep.c (d10v_ts2_register_name): Update.
6582 (d10v_ts3_register_name): Update.
6583 * xstormy16-tdep.c (xstormy16_register_name): Update.
6584 * vax-tdep.c (vax_register_name): Update.
6585 * v850-tdep.c (v850_register_name): Update.
6586 * m68hc11-tdep.c (m68hc11_register_name): Update.
6587 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6588 (am33_register_name): Update.
6589
ea1e7ef6
GS
65902002-06-17 Grace Sainsbury <graces@redhat.com>
6591
6592 * m68k-tdep.c: Reindented.
6593
9b02dd1b
AC
65942002-06-17 Andrew Cagney <ac131313@redhat.com>
6595
6596 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6597 list of predefined types.
6598
8758dec1
MK
65992002-06-16 Mark Kettenis <kettenis@gnu.org>
6600
b6197528
MK
6601 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6602 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6603 REGISTER_CONVERT_TO_RAW): Remove defines.
6604 (i386_register_virtual_type, i386_register_convertible,
6605 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6606 Remove prototypes.
6607 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6608 macros mentioned above.
6609
82b47e62
MK
6610 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6611 (i386lynx_saved_pc_after_call): Remove prototype.
6612 * i386ly-tdep.c: Include "i386-tdep.h".
6613 (i386lynx_saved_pc_after_call): Make static. Use
6614 read_memory_nobpt instead of read_memory. Use
6615 read_memory_unsigned_integer instead of read_memory_integer.
6616 (i386lynx_init_abi): New function.
6617 (i386lynx_coff_osabi_sniffer): New function.
6618 (_initialize_i386bsd_tdep): New function.
6619
8758dec1
MK
6620 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6621 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6622 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6623 (i386_fix_call_dummy): Remove prototype.
6624 * i386-tdep.c (i386_call_dummy_words): New variable.
6625 (i386_gdbarch_init): Adjust for removal of the
6626 macros mentioned above.
6627
e9e68a56
AC
66282002-06-15 Andrew Cagney <ac131313@redhat.com>
6629
6630 * command.h (add_setshow_auto_boolean_cmd): Replace
6631 add_set_auto_boolean_cmd.
6632 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6633 add_set_auto_boolean_cmd.
6634 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6635 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6636 mask-address'' command.
6637 (show_mask_address): Add cmd parameter.
6638 * remote.c (add_packet_config_cmd): Update. Change type of
6639 set_func and show_func to cmd_sfunc_ftype.
6640 (_initialize_remote): Update `set remote Z-packet'
6641 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6642 (show_remote_protocol_e_packet_cmd): Ditto.
6643 (show_remote_protocol_E_packet_cmd): Ditto.
6644 (show_remote_protocol_P_packet_cmd): Ditto.
6645 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6646 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6647 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6648 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6649 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6650 (show_remote_protocol_Z_packet_cmd): Ditto.
6651 (show_remote_protocol_binary_download_cmd): Ditto.
6652 (show_remote_cmd): Pass NULL to all of above.
6653
fc08ec52
MK
66542002-06-15 Mark Kettenis <kettenis@gnu.org>
6655
6656 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6657 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6658 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6659 POP_FRAME): Remove defines.
6660 (i386_push_arguments, i386_store_struct_return,
6661 i386_extract_return_value, i386_store_return_value,
6662 i386_extract_struct_value_address, i386_push_dummy_frame,
6663 i386_pop_frame): Renove prototypes.
6664 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6665 macros mentioned above.
6666
e707bbc2
AC
66672002-06-15 Andrew Cagney <ac131313@redhat.com>
6668
6669 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6670 add_set_boolean_cmd.
6671 (add_setshow_cmd): New function.
6672 * command.h (add_setshow_boolean_cmd): Replace
6673 add_set_boolean_cmd.
6674 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6675 and ``set rdiromatzero''.
6676 * maint.c (_initialize_maint_cmds): Update commented out code.
6677 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6678 * target.c (initialize_targets): Update `set
6679 trust-readonly-sections'.
6680 * remote.c (_initialize_remote): Update `set remotebreak'.
6681
42fdc8df
MK
66822002-06-15 Mark Kettenis <kettenis@gnu.org>
6683
93924b6b
MK
6684 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6685 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6686 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6687 fit into multi-arch framework.
6688 (i386_breakpoint_from_pc): New function.
6689 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6690 above.
6691
42fdc8df
MK
6692 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6693 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6694 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6695 (i386_frameless_function_invocation, i386_frame_num_args,
6696 i386_frame_init_saved_regs): Remove prototypes.
6697 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6698 macros mentioned above.
6699
9773a94b
AC
67002002-06-15 Andrew Cagney <ac131313@redhat.com>
6701
6702 * cli/cli-decode.c (set_cmd_cfunc): Update.
6703 (set_cmd_sfunc): Update.
6704 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6705 (set_cmd_sfunc, set_cmd_cfunc): Update.
6706 * cli/cli-decode.h: Update.
6707
6e157172
MK
67082002-06-15 Mark Kettenis <kettenis@gnu.org>
6709
6710 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6711 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6712
7f19b9a2
AC
67132002-06-15 Andrew Cagney <ac131313@redhat.com>
6714
6715 * defs.h (auto_boolean): Declare enum.
6716 * command.h (cmd_auto_boolean): Delete enum.
6717 * mips-tdep.c (mask_address_var): Update.
6718 (mips_mask_address_p): Update.
6719 (show_mask_address): Update.
6720 * remote.c (struct packet_config): Update.
6721 (update_packet_config): Update.
6722 (show_packet_config_cmd): Update.
6723 (packet_ok): Update.
6724 (add_packet_config_cmd): Update.
6725 (_initialize_remote):
6726 * command.h: Update.
6727 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6728 (do_setshow_command): Update.
6729 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6730 * cli/cli-decode.h: Update.
6731
1cf88de5
MK
67322002-06-15 Mark Kettenis <kettenis@gnu.org>
6733
22ba8cf2
MK
6734 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6735 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6736 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6737 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6738 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6739 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6740
762c5349
MK
6741 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6742 list of DJGPP COFF targets.
6743
091198bb
MK
6744 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6745 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6746 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6747 (FP0_REGNUM): Remove define.
6748 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6749 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6750 (i386_register_virtual_size): Remove protoype.
6751 * i386-tdep.c (i386_register_virtual_size): Removed.
6752 (i386_extract_return_value, i386_store_return_value): Use
6753 FP0_REGNUM instead of NUM_FREGS to determine whether the
6754 floating-point registers are available.
6755 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6756 Adjust for removal of macros mentioned above.
6757
67582002-06-15 Mark Kettenis <kettenis@gnu.org>
6759
fcc9bf01
MK
6760 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6761 comments.
6762 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6763 Remove prototypes.
6764 (supply_gregset, fill_gregset): Remove use of register keyword and
6765 remove declaration for regmap. Use I386_NUM_GREGS instead of
6766 NUM_REGS and NUM_FREGS.
6767 (FPREGSET_FSAVE_OFFSET): Remove.
6768 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6769 NUM_FREGS to determine whether the floating-point registers are
6770 available.
6771
65e78234
MK
6772 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6773 gnu_store_registers): Replace usage of NUM_GREGS with
6774 I386_NUM_GREGS.
6775
98df6387
MK
6776 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6777 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6778 usage of NUM_GREGS with I386_NUM_GREGS.
6779
099a9414
MK
6780 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6781
57976e88
MK
6782 * i386bsd-nat.c: Include "i386-tdep.h".
6783 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6784 I386_NUM_GREGS.
6785
b335f4a6
MK
6786 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6787 and associated comment. They no longer make any sense, since we
6788 don't use this file anymore on Linux.
6789
1cf88de5
MK
6790 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6791 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6792 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6793 elements in these arrays.
6794 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6795 MAX_NUM_REGS.
6796
daa66587
MK
67972002-06-15 Mark Kettenis <kettenis@gnu.org>
6798
6799 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6800 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6801
26e9b323
AC
68022002-06-14 Andrew Cagney <cagney@redhat.com>
6803
6804 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6805 EXTRACT_RETURN_VALUE.
6806 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6807 EXTRACT_STRUCT_VALUE_ADDRESS.
6808 * gdbarch.h, gdbarch.c: Regenerate.
6809
6810 * values.c (value_being_returned): Handle
6811 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6812 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6813
6814 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6815 * arm-tdep.c (arm_gdbarch_init): Update.
6816 * avr-tdep.c (avr_gdbarch_init): Update.
6817 * cris-tdep.c (cris_gdbarch_init): Update.
6818 * d10v-tdep.c (d10v_gdbarch_init): Update.
6819 * ia64-tdep.c (ia64_gdbarch_init): Update.
6820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6822 * s390-tdep.c (s390_gdbarch_init): Update.
6823 * sh-tdep.c (sh_gdbarch_init): Update.
6824 * s390-tdep.c (s390_gdbarch_init): Update.
6825 * sparc-tdep.c (sparc_gdbarch_init): Update.
6826 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6827 * v850-tdep.c (v850_gdbarch_init): Update.
6828 * vax-tdep.c (vax_gdbarch_init): Update.
6829 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6831
6832 * config/arc/tm-arc.h: Update.
6833 * config/d30v/tm-d30v.h: Update.
6834 * config/fr30/tm-fr30.h: Update.
6835 * config/h8300/tm-h8300.h: Update.
6836 * config/h8500/tm-h8500.h: Update.
6837 * config/i386/tm-i386.h: Update.
6838 * config/i386/tm-ptx.h: Update.
6839 * config/i386/tm-symmetry.h: Update.
6840 * config/i960/tm-i960.h: Update.
6841 * config/m32r/tm-m32r.h: Update.
6842 * config/m68k/tm-delta68.h: Update.
6843 * config/m68k/tm-linux.h: Update.
6844 * config/m68k/tm-m68k.h: Update.
6845 * config/m88k/tm-m88k.h: Update.
6846 * config/mcore/tm-mcore.h: Update.
6847 * config/mips/tm-mips.h: Update.
6848 * config/mn10200/tm-mn10200.h: Update.
6849 * config/pa/tm-hppa.h: Update.
6850 * config/pa/tm-hppa64.h: Update.
6851 * config/sparc/tm-sp64.h: Update.
6852 * config/sparc/tm-sparc.h: Update.
6853 * config/sparc/tm-sparclet.h: Update.
6854 * config/z8k/tm-z8k.h: Update.
6855
5179e78f
AC
68562002-06-14 Andrew Cagney <cagney@redhat.com>
6857
6858 * Makefile.in (i386_linux_tdep_h): Define.
6859 (i386_tdep_h, i387_tdep_h): Define.
6860 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6861 $(i386_tdep_h) and $(i387_tdep_h).
6862 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6863
8201327c
MK
68642002-06-14 Mark Kettenis <kettenis@gnu.org>
6865
edf393ac
MK
6866 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6867 Already covered by the default.
6868
896fb97d
MK
6869 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6870 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6871 (i386_gdbarch_init): Initialize long_double_format and long_double
6872 bit.
6873
8201327c
MK
6874 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6875 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6876 Move these to ...
6877 * config/i386/i386sol2.mh: ... here.
6878 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6879 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6880 (SIGCONTEXT_PC_OFFSET): Remove define.
6881 (IN_SIGTRAMP): Remove define.
6882 * i386-sol2-tdep.c: New file.
6883
6884 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6885 * config/i386/tm-i386nw.h: Removed.
6886
6887 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6888 USE_STRUCT_CONVENTION): Remove defines.
6889 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6890 (get_longjmp_target): Remove prototype.
6891 (IN_SIGTRAMP): Remove define.
6892 (i386bsd_in_sigtramp): Remove prototype.
6893 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6894 function. Update comment accordingly
6895 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6896 (FRAME_SAVED_PC): Remove define.
6897 (i386bsd_frame_saved_pc): Remove prototype.
6898 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6899 GET_LONGJMP_TARGET): Remove defines.
6900 (get_longjmp_target): Remove prototype.
6901 (IN_SIGTRAMP): Remove define.
6902 (i386bsd_in_sigtramp): Remove prototype.
6903 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6904 function. Update comment accordingly
6905 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6906 (FRAME_SAVED_PC): Remove define.
6907 (i386bsd_frame_saved_pc): Remove prototype.
6908 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6909 Remove prototype.
6910 (USE_STRUCT_CONVENTION): Remove prototype.
6911 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6912 declaration.
6913 (_initialize_i386bsd_nat): Revise logic to determine some
6914 constants at compile time when compiling a native GDB. Warn if
6915 things don't match up with what we expect.
6916 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6917 Remove variables.
6918 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6919 to use date stored in `struct gdbarch_tdep'.
6920 (i386bsd_sigcontext_offset): Remove varaible.
6921 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6922 stored in `struct gdbarch_tdep'.
6923 (i386bsd_frame_saved_pc): Make static.
6924 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6925 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6926 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6927 i386fbsd4_sc_pc_offset): New variables.
6928 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6929 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6930 functions.
6931 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6932 functions.
6933 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6934 Modify the value of i386fbsd_sigtramp_start and
6935 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6936 i386fbsd_sigtramp_end.
6937 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6938 function.
6939
6940 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6941 define to i386-linux-tdep.h.
6942 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6943 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6944 defines.
6945 (i386_linux_register_name, i386_linux_register_byte,
6946 i386_linux_register_raw_size): Remove prototypes.
6947 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6948 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6949 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6950 TARGET_WRITE_PC): Remove defines.
6951 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6952 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6953 i386_linux_write_pc): Remove prototypes.
6954 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6955 (get_longjmp_target): Remove prototype.
6956 * i386-linux-tdep.h: New file.
6957 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6958 * i386-linux-tdep.c: Include "i386-tdep.h" and
6959 "i386-linux-tdep.h".
6960 (i386_linux_register_name, i386_linux_register_byte,
6961 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6962 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6963 Make static.
6964 (i386_linux_init_abi): New function.
6965 (_initialize_i386_linux_tdep): New function.
6966
6967 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6968 (i386_saved_pc_after_call): Remove prototype.
6969 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6970 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6971 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6972 (i386_register_name, i386_stab_reg_to_regnum,
6973 i386_dwarf_reg_to_regnum): Remove prototypes.
6974 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6975 SIZEOF_SSE_REGS): Remove defines.
6976 (REGISTER_BYTES): Remove define.
6977 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6978 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6979 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6980 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6981 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6982 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6983 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6984 (get_longjmp_target): Remove prototype.
6985 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6986 (sigtramp_saved_pc): Remove define.
6987 (i386v4_sigtramp_saved_pc): Remove prototype.
6988 * config/i386/tm-go32.h (FRAME_CHAIN,
6989 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6990 (i386go32_frame_saved_pc): Remove prototype.
6991 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6992 (get_longjmp_target): Remove prototype.
6993 * i386-tdep.h: Include "osabi.h".
6994 (enum i386_abi): Removed.
6995 (enum struct_return): New enum.
6996 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6997 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6998 sc_pc_offset members.
6999 (i386_gdbarch_register_os_abi): Remove prototype.
7000 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7001 I386_SSE_NUM_REGS): New defines.
7002 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7003 I386_SSE_SIZEOF_REGS): New defines.
7004 (i386_register_name, i386_register_byte, i386_register_raw_size):
7005 New prototypes.
7006 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7007 (i386bsd_sigtramp_saved_pc): New prototype.
7008 * i386-tdep.c: Don't include "elf-bfd.h".
7009 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7010 i386_frame_chain, i386_saved_pc_after_call): Make static.
7011 (i386_frame_saved_pc): Rewrite to call architecture dependent
7012 function to deal with signal handlers. Make static.
7013 (i386go32_frame_saved_pc): Removed.
7014 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7015 Removed.
7016 (i386_get_longjmp_target): New function.
7017 (default_struct_convention, pcc_struct_convention,
7018 reg_struct_convention, valid_conventions, struct_convention): New
7019 variables.
7020 (i386_use_struct_convention): New function.
7021 (i386v4_sigtramp_saved_pc): Renamed to
7022 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7023 (i386_pc_in_sigtramp): New function.
7024 (i386_abi_names): Removed.
7025 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7026 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7027 Removed.
7028 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7029 i386_gdbarch_register_os_abi): Removed.
7030 (struct i386_abi_handler): Removed.
7031 (i386_abi_handler_list): Removed.
7032 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7033 functions.
7034 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7035 i386_nw_init_abi): New functions.
7036 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7037 Use set_gdbarch_xxx() calls instead of relying on macros for a
7038 number of calls.
7039 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7040 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7041 Register the various architecture variants defined in this file.
7042
ad2f7632
DJ
70432002-06-14 Daniel Jacobowitz <drow@mvista.com>
7044
7045 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7046 (struct main_type): Remove arg_types member. Update comments for
7047 struct field.
7048 (TYPE_ARG_TYPES): Remove.
7049 (TYPE_FN_FIELD_ARGS): Update.
7050 (smash_to_method_type): Update prototype.
7051
7052 * c-typeprint.c (cp_type_print_method_args): Take method type
7053 instead of argument list. Use new argument layout. Simplify.
7054 (c_type_print_args): Use new argument layout. Simplify.
7055 (c_type_print_base): Update call to cp_type_print_method_args.
7056 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7057 argument; use die->type instead. Update call to
7058 smash_to_method_type.
7059 (read_structure_scope): Update call to dwarf2_add_member_fn.
7060 * gdbtypes.c (allocate_stub_method): Update comment.
7061 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7062 Use new argument layout.
7063 (check_stub_method): Use new argument layout. Don't count
7064 void as an argument.
7065 (print_arg_types): Update comments. Use new argument layout.
7066 (recursive_dump_type): Don't print arg_types member.
7067 * hpread.c (hpread_read_struct_type): Use new argument layout.
7068 (fixup_class_method_type): Likewise.
7069 (hpread_type_lookup): Likewise.
7070 * stabsread.c (read_type): Update calls to read_args and
7071 smash_to_method_type.
7072 (read_args): Use new argument layout. Simplify.
7073 * valops.c (typecmp): Use new argument layout. Update parameters
7074 and comments. Simplify.
7075 (hand_function_call): Use new argument layout.
7076 (search_struct_method): Update call to typecmp.
7077 (find_overload_match): Use new argument layout.
7078
6da02953
DJ
70792002-06-13 Daniel Jacobowitz <drow@mvista.com>
7080
7081 * NEWS: Mention multithreaded debug support for gdbserver.
7082
519b2366
DJ
70832002-06-13 Daniel Jacobowitz <drow@mvista.com>
7084
7085 * MAINTAINERS: Mention NEWS.
7086
6c0d6680
DJ
70872002-06-13 Daniel Jacobowitz <drow@mvista.com>
7088
7089 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7090 (struct mips_objfile_private, compare_pdr_entries): New.
7091 (non_heuristic_proc_desc): Read the ".pdr" section if it
7092 is present.
7093
6529d2dd
AC
70942002-06-12 Andrew Cagney <ac131313@redhat.com>
7095
7096 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7097 (arm_debug): New static variable.
7098 (_initialize_arm_tdep): Add ``set debug arm'' command.
7099
26216b98
AC
71002002-06-12 Andrew Cagney <ac131313@redhat.com>
7101
7102 * Makefile.in (sim_arm_h): Define.
7103 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7104 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7105 (arm_register_sim_regno): New function, map an internal REGNUM
7106 onto a simulator register number.
7107 (arm_gdbarch_init): Set register_sim_regno.
7108
814b3ba0
AH
71092002-06-09 Aldy Hernandez <aldyh@redhat.com>
7110
7111 * MAINTAINERS: Add self.
7112
475b0867
JB
71132002-06-11 Jim Blandy <jimb@redhat.com>
7114
919d772c
JB
7115 * source.c (source_info): Mention whether the symtab has
7116 information about preprocessor macros.
7117
475b0867
JB
7118 Call the command `info macro', not `show macro'.
7119 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7120 Fix error message.
7121 (_initialize_macrocmd): Register `info_macro_command' in
7122 `infolist', not `showlist'.
7123
9e364162
DJ
71242002-06-11 Daniel Jacobowitz <drow@mvista.com>
7125
7126 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7127 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7128 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7129 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7130 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7131 unconditionally.
7132 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7133 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7134 (_initialize_mips_tdep): Remove dead code.
7135 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7136 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7137 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7138 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7139 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7140 MIPS_LAST_FP_ARG_REGNUM): Remove.
7141
23aa4c72
ML
71422002-06-11 Michal Ludvig <mludvig@suse.cz>
7143
7144 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7145 (unwind_tmp_obstack_free, parse_frame_info)
7146 (update_context, cfi_read_fp, cfi_write_fp)
7147 (cfi_frame_chain, cfi_init_extra_frame_info)
7148 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7149 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7150
70eb15a4
CV
71512002-06-11 Corinna Vinschen <vinschen@redhat.com>
7152
7153 * v850-tdep.c (v850_type_is_scalar): New function.
7154 (v850_use_struct_convention): Match current gcc implementation
7155 as close as possible.
7156 (v850_push_arguments): Fix stack_offset handling. Don't write
7157 struct_addr into register. This is done by v850_store_struct_return.
7158 (v850_extract_return_value): Care for structs.
7159 (v850_store_return_value): Ditto.
7160 (v850_store_struct_return): Actually write address.
7161
482a4d06
ML
71622002-06-11 Michal Ludvig <mludvig@suse.cz>
7163
7164 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7165 without debug information too.
7166
d855c300
AC
71672002-06-10 Andrew Cagney <ac131313@redhat.com>
7168
7169 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7170 Make multi-arch pure.
7171 * gdbarch.h, gdbarch.c: Re-generate.
7172 * arm-tdep.c (arm_print_float_info): Update.
7173 * arch-utils.h (default_print_float_info): Update.
7174 * arch-utils.c (default_print_float_info): Update.
7175 * infcmd.c (float_info): Update call.
7176
dd12a101
AC
71772002-06-10 Andrew Cagney <ac131313@redhat.com>
7178
7179 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7180 the front of the initialize list.
7181
101dcfbe
AC
71822002-06-10 Andrew Cagney <ac131313@redhat.com>
7183
7184 * infrun.c (struct inferior_status): Replace fields
7185 selected_frame_address and selected_level with field
7186 selected_frame_id.
7187 (save_inferior_status): Update. Use get_frame_id.
7188 (struct restore_selected_frame_args): Delete.
7189 (restore_selected_frame): Update. Use frame_find_by_id.
7190 (restore_inferior_status): Update.
7191
7192 * breakpoint.h (struct breakpoint): Change type of
7193 watchpoint_frame to frame_id.
7194 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7195 call to get_current_frame.
7196 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7197 get_current_frame.
7198 (watchpoint_check): Use frame_find_by_id.
7199
7200 * frame.h (record_selected_frame): Delete declaration.
7201 * stack.c (record_selected_frame): Delete function.
7202
7203 * frame.h (struct frame_id): Define.
7204 (get_frame_id): Declare.
7205 (frame_find_by_id): Declare.
7206 * frame.c (frame_find_by_id): New function.
7207 (get_frame_id): New function.
7208
304270b6
AV
72092002-06-10 Andrey Volkov <avolkov@transas.com>
7210
7211 * ser-e7kpc.c: Fix duplicated define and call of
7212 _initialize_ser_e7000pc
7213
2f2cf184
DJ
72142002-06-09 Daniel Jacobowitz <drow@mvista.com>
7215
7216 * signals/signals.c (target_signal_from_host): Fix #ifdef
7217 SIGRTMIN case.
7218 (do_target_signal_to_host): Likewise.
7219
caaa3122
DJ
72202002-06-09 Daniel Jacobowitz <drow@mvista.com>
7221
7222 * mips-tdep.c (mips_find_abi_section): New function.
7223 (mips_gdbarch_init): Call it.
7224
6ac5df3a
MK
72252002-06-09 Mark Kettenis <kettenis@gnu.org>
7226
7227 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7228 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7229 after Andrew's 2002-06-08 gdbarch change.
7230
82ea117a
MK
72312002-06-09 Mark Kettenis <kettenis@gnu.org>
7232
7233 * i386-linux-nat.c (suppy_gregset): Don't supply
7234 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7235 register cache.
7236 (fill_gregset): Don't fetch it under the same circumstances.
7237
3c25f8c7
AC
72382002-06-09 Andrew Cagney <cagney@redhat.com>
7239
7240 * Makefile.in (callback_h): Define.
7241 (remote_sim_h): Update path to remote-sim.h.
7242 (remote-rdp.o): Add $(callback_h).
7243 (remote-sim.o): Use $(callback_h).
7244 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7245 * remote-rdp.c: Include "gdb/callback.h".
7246
1029b7fa
MK
72472002-06-09 Mark Kettenis <kettenis@gnu.org>
7248
7249 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7250 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7251
616675d3
AC
72522002-06-08 Andrew Cagney <ac131313@redhat.com>
7253
a3efda28
AC
7254 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7255 * rdi-share/serpardr.c: Ditto.
7256 * rdi-share/unixcomm.c: Ditto.
7257 * rdi-share/serdrv.c: Ditto.
7258 * rdi-share/hostchan.h: Ditto.
7259 * rdi-share/hostchan.c: Ditto.
7260 * rdi-share/host.h: Ditto.
7261 * rdi-share/devsw.c: Ditto.
7262
c5f10366
AC
7263 * objfiles.h: Change type of obj_private to void pointer.
7264 * pa64solib.c: Update copyright. Don't include "assert.h", use
7265 strcmp instead of STREQ, use LONGEST, do not use PTR
7266 * somsolib.c: Ditto.
7267
616675d3
AC
7268 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7269 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7270 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7271
e4b415d9
AC
72722002-06-08 Andrew Cagney <ac131313@redhat.com>
7273
7274 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7275 (default_get_saved_register): Delete function.
7276 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7277 generic_unwind_get_saved_register.
7278 * gdbarch.h, gdbarch.c: Re-generate.
7279
ca0d0b52
AC
72802002-06-08 Andrew Cagney <ac131313@redhat.com>
7281
7282 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7283 generic_func_frame_chain_valid.
7284 * gdbarch.h, gdbarch.c: Re-generate.
7285 * blockframe.c (generic_func_frame_chain_valid): Only check
7286 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7287 passing FP to PC_IN_CALL_DUMMY.
7288 Fix PR gdb/360.
7289
76860b5f
AC
72902002-06-08 Andrew Cagney <ac131313@redhat.com>
7291
7292 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7293 (register_gdbarch_data): Initialize init_p.
7294 (gdbarch_data): Initialize data pointer using the init function.
7295 (init_gdbarch_data): Delete function.
7296 (gdbarch_update_p): Update.
7297 (initialize_non_multiarch): Update.
7298 (struct gdbarch): Add field initialized_p.
7299 * gdbarch.h, gdbarch.c: Re-generate.
7300
8dda9770
ML
73012002-06-07 Michal Ludvig <mludvig@suse.cz>
7302
7303 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7304 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7305 better do the things actually here.
7306 * x86-64-tdep.c (x86_64_register_name2nr): New.
7307 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7308 (x86_64_gdbarch_init): Respect the above change.
7309 * x86-64-tdep.h (x86_64_register_name2nr)
7310 (x86_64_register_nr2name): Add prototypes.
7311 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7312
3d79a47c
MS
73132002-06-06 Michael Snyder <msnyder@redhat.com>
7314
7bd91a28
MS
7315 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7316 Delete extra braces and re-indent.
7317 (d10v_store_return_value): Char return values
3d79a47c
MS
7318 must be shifted over by one byte in R0.
7319 (d10v_extract_return_value): Delete extra braces, re-indent.
7320
095a4c96
EZ
73212002-06-06 Elena Zannoni <ezannoni@redhat.com>
7322
7323 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7324 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7325 (d10v_integer_to_address): Rewrite.
7326 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7327 the d10v specific functions which take care of converting to the
7328 correct space.
7329
e8a77ca4
EZ
73302002-06-06 Elena Zannoni <ezannoni@redhat.com>
7331
7332 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7333 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7334
4f2e4a4f
AC
73352002-06-02 Andrew Cagney <ac131313@redhat.com>
7336
7337 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7338 includes.
7339 * config/tm-linux.h: Ditto.
7340 * config/alpha/tm-alphalinux.h: Ditto.
7341 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7342 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7343 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7344 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7345 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7346 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7347 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7348 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7349 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7350 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7351 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7352 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7353 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7354 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7355 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7356 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7357 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7358 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7359 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7360 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7361 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7362 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7363 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7364 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7365 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7366 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7367 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7368 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7369 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7370 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7371 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7372 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7373 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7374 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7375 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7376 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7377 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7378
ae2ab2ce
AS
73792002-05-04 Aidan Skinner <aidan@velvet.net>
7380
7381 * ada-exp.tab.c: New file
7382 * ada-exp.y: New file
7383 * ada-lang.c: New file
7384 * ada-lang.h: New file
7385 * ada-lex.c: New file
7386 * ada-lex.l: New file
7387 * ada-tasks.c: New file
7388 * ada-typeprint.c: New file
7389 * ada-valprint.c: New file
7390
0ddd0135
JT
73912002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7392
7393 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7394 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7395
750fbacc
JT
73962002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7397
7398 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7399 insetead of ppc-linux-tdep.o.
7400 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7401 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7402
df94e18a
AC
74032002-06-02 Andrew Cagney <ac131313@redhat.com>
7404
7405 2002-05-07 Christian Groessler <chris@groessler.org>
7406 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7407 bit register contents for little endian hosts.
7408
1a38ab75
AC
74092002-06-01 Andrew Cagney <ac131313@redhat.com>
7410
7411 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7412 any maintainer.
7413
8b1632ac
AC
74142002-06-01 Andrew Cagney <ac131313@redhat.com>
7415
7416 * gdbarch.h: Regenerate.
7417
627054c8
AC
74182002-06-01 Andrew Cagney <ac131313@redhat.com>
7419
7420 * MAINTAINERS: Add everyone to write-after-approval list.
7421
4f460812
AC
74222002-06-01 Andrew Cagney <ac131313@redhat.com>
7423
7424 * stack.c (frame_info): Use frame_register_unwind instead of
7425 saved_regs. Mention when the SP is on the stack or in a register.
7426
7427 * frame.h (frame_register_unwind_ftype): Define. Document.
7428 (struct frame_info): Add field register_unwind and
7429 register_unwind_cache.
7430 (frame_register_unwind): Declare.
7431 (generic_unwind_get_saved_register): Declare.
7432
7433 * frame.c (frame_register_unwind): New function.
7434 (generic_unwind_get_saved_register): New function.
7435
7436 * blockframe.c (generic_call_dummy_register_unwind): New function.
7437 (frame_saved_regs_register_unwind): New function.
7438 (set_unwind_by_pc): New function.
7439 (create_new_frame): New function.
7440 (get_prev_frame): New function.
7441
de888f76
AC
74422002-05-30 Andrew Cagney <ac131313@redhat.com>
7443
7444 * a29k-share/: Delete directory.
7445 * remote-vx29k.c: Delete file.
7446
2f2c3626
JT
74472002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7448
7449 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7450 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7451
9ce5c36a
JT
74522002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7453
7454 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7455 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7456 (sparc64nbsd-nat.o)
7457 (sparcnbsd-nat.o)
7458 (sparcnbsd-tdep.o): New dependency lists.
7459 * NEWS: Note new UltraSPARC NetBSD native configuration.
7460 * configure.host (sparc64-*-netbsd*): New host.
7461 * configure.tgt (sparc-*-netbsdelf*)
7462 (sparc-*-netbsd*): Set gdb_target to nbsd.
7463 (sparc64-*-netbsd*): New target.
7464 * sparc64nbsd-nat.c: New file.
7465 * sparcnbsd-nat.c: New file.
7466 * sparcnbsd-tdep.c: New file.
7467 * sparcnbsd-tdep.h: New file.
7468 * config/sparc/nbsd.mt: New file.
7469 * config/sparc/nbsd64.mh: New file.
7470 * config/sparc/nbsd64.mt: New file.
7471 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7472 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7473 (HOST_IPC): Remove.
7474 * config/sparc/nbsdaout.mt: Remove.
7475 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7476 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7477 (HOST_IPC): Remove.
7478 * config/sparc/nbsdelf.mt: Remove.
7479 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7480 sparc-nat.c compatiblity defines.
7481 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7482 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7483 * config/sparc/tm-nbsd64.h: New file.
7484 * config/sparc/tm-nbsdaout.h: Remove.
7485 * config/sparc/xm-nbsd.h: Remove.
7486
ef3cf062
JT
74872002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7490 * sparc-tdep.c: Include osabi.h.
7491 (gdbarch_tdep): Add osabi member.
7492 (_initialize_sparc_tdep): Use gdbarch_register.
7493 (sparc_gdbarch_init): Use generic OS ABI framework.
7494 (sparc_dump_tdep): New function.
7495
ee8ff470
KB
74962002-05-30 Kevin Buettner <kevinb@redhat.com>
7497
7498 * corefile.c (do_captured_read_memory_integer): Return non-zero
7499 result.
7500 (safe_read_memory_integer): Copy result of memory read when
7501 status is non-zero. Also, add comments.
7502
7b112f9c
JT
75032002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7504
7505 * Makefile.in (ppc_tdep_h): Define.
7506 (ppc-linux-nat.o)
7507 (ppc-linux-tdep.o)
7508 (rs6000-tdep.o): Use $(ppc_tdep_h).
7509 (ppc-sysv-tdep.o)
7510 (ppcnbsd-nat.o)
7511 (ppcnbsd-tdep.o): New dependency lists.
7512 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7513 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7514 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7515 (ppc_sysv_abi_broken_use_struct_convention)
7516 (ppc_sysv_abi_use_struct_convention)
7517 (ppc_sysv_abi_push_arguments): Move to...
7518 * ppc-sysv-tdep.c: ...here.
7519 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7520 * rs6000-tdep.c (process_note_abi_tag_sections)
7521 (get_elfosabi): Remove.
7522 (rs6000_gdbarch_init): Use generic OS ABI framework.
7523 (rs6000_dump_tdep): New function.
7524 (_initialize_rs6000_tdep): Use gdbarch_register.
7525 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7526 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7527 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7528 of ppc-linux-tdep.o.
7529 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7530 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7531 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7532 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7533 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7534 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7535
480dd42a
JB
75362002-05-29 Jim Blandy <jimb@redhat.com>
7537
7538 * macroscope.c (default_macro_scope): Put `void' in empty argument
7539 list.
7540
4182591f
AC
75412002-05-29 Andrew Cagney <ac131313@redhat.com>
7542
7543 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7544 * arch-utils.c: Include "sim-regno.h".
7545 * gdbarch.sh: Don't include "sim-regno.h".
7546 * gdbarch.h, gdbarch.c: Regenerate.
7547 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7548 here.
7549 * arch-utils.h (legacy_register_sim_regno): To here.
7550 * remote-sim.c (legacy_register_sim_regno): Move function from
7551 here.
7552 * arch-utils.c (legacy_register_sim_regno): To here.
7553
8238d0bf
AC
75542002-05-28 Andrew Cagney <ac131313@redhat.com>
7555
7556 * sim-regno.h: New file.
7557 * Makefile.in (sim_regno_h): Define.
7558 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7559 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7560 (legacy_register_sim_regno): New function.
7561 (one2one_register_sim_regno): New function.
7562 (gdbsim_fetch_register): Rewrite.
7563 (gdbsim_store_register): Only store a register when
7564 REGISTER_SIM_REGNO is valid.
7565 * d10v-tdep.c: Include "sim-regno.h".
7566 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7567 (d10v_ts3_register_sim_regno): Ditto.
7568 * gdbarch.sh: Include "sim-regno.h".
7569 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7570 * gdbarch.h, gdbarch.c: Regenerate.
7571 * arch-utils.h (default_register_sim_regno): Delete declaration.
7572 * arch-utils.c (default_register_sim_regno): Delete function.
7573
485721b1
JT
75742002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7575
7576 * ppcnbsd-nat.c: Rewrite.
7577 * ppcnbsd-tdep.c: New file.
7578 * ppcnbsd-tdep.h: New file.
7579 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7580 solib.o, and solib-svr4.o.
7581 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7582 nbsd-tdep.o, and corelow.o.
7583
697f244d
AC
75842002-05-28 Andrew Cagney <ac131313@redhat.com>
7585
7586 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7587 `tr' and `sed'. Mention that `broken' targets are not expected to
7588 build.
7589
f08caad1 75902002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7591
7592 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7593 Let PC point right after the prologue before looking up symbols.
7594
3139facc
MH
75952002-05-27 Martin M. Hunt <hunt@redhat.com>
7596
7597 * i386-tdep.c (i386_register_virtual_type): Return
7598 builtin_type_vec128i for SSE registers.
7599
7600 * gdbtypes.h (builtin_type_vec128i): Declare.
7601
7602 * gdbtypes.c (build_builtin_type_vec128i): New function.
7603 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7604 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7605 (build_gdbtypes): Initialize new builtin vector types.
7606 (_initialize_gdbtypes): Register new vector types with gdbarch.
7607
6e3ba3b8
JT
76082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7609
7610 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7611 since it has been multi-arch'd.
7612 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7613 Move Alpha and VAX multi-arch news entries to same section
7614 as other multi-arch news.
7615
93d5585d
JT
76162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7617
7618 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7619 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7620 static. Rename some register numbers to put them in ns32k-tdep
7621 private namespace.
7622 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7623 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7624 functions.
7625 (_initialize_ns32k_tdep): Use gdbarch_register.
7626 * ns32k-tdep.h: New file.
7627 * ns32knbsd-tdep.c: New file.
7628 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7629 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7630 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7631 REGISTER_BYTES, REGISTER_BYTE): Remove.
7632 * config/ns32k/tm-ns32k.h: New file.
7633 * config/ns32k/tm-umax.h: Remove.
7634
efb2c70e
JT
76352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7638 ns32k_store_struct_return, ns32k_extract_return_value,
7639 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7640 functions.
7641 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7642 ns32k_saved_pc_after_call.
7643 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7644 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7645 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7646 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7647 ns32k_extract_struct_value_address.
7648
7bcc927b
JT
76492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7650
7651 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7652 ns32k_fix_call_dummy): New.
7653 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7654 ns32k_call_dummy_words.
7655 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7656 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7657 CALL_DUMMY_NARGS): Remove.
7658 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7659
78f9d765
JT
76602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7661
7662 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7663 ns32k_frame_saved_pc, ns32k_frame_args_address,
7664 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7665 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7666 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7667 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7668 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7669 (BREAKPOINT): Remove..
7670 (FRAME_CHAIN): Define as ns32k_frame_chain.
7671 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7672 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7673 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7674 (FRAME_FIND_SAVED_REGS): Remove.
7675 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7676 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7677 (POP_FRAME): Define as ns32k_pop_frame.
7678
f2c762e0
JT
76792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7680
7681 * ns32k-tdep.c (ns32k_register_byte_32082,
7682 ns32k_register_byte_32382, ns32k_register_raw_size,
7683 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7684 functions.
7685 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7686 ns32k_register_byte_32382.
7687 * config/ns32k/tm-umax.h: Update copyright years.
7688 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7689 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7690 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7691 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7692 (ns32k_get_enter_addr): Fix prototype.
7693
af137673
JT
76942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7695
7696 * ns32k-tdep.c: Update copyright years.
7697 (ns32k_register_name_32082): New function.
7698 (ns32k_register_name_32382): Ditto.
7699 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7700 (REGISTER_NAME): Define as ns32k_register_name_32382.
7701 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7702 (REGISTER_NAME): Define as ns32k_register_name_32082.
7703
a8bc7b56
JB
77042002-05-24 Jim Blandy <jimb@redhat.com>
7705
7706 * dwarf2read.c (free_line_header): Use xfree, not free.
7707
83a45910
JT
77082002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7709
7710 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7711 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7712
0db71247
AC
77132002-05-23 Andrew Cagney <ac131313@redhat.com>
7714
7715 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7716
b9e5e4dd
AC
77172002-05-23 Andrew Cagney <ac131313@redhat.com>
7718
7719 From Ross Alexander at NEC Europe:
7720 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7721
de530e84
MS
77222002-05-23 Michael Snyder <msnyder@redhat.com>
7723
7724 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7725 for input, rather than parse_and_eval_address.
7726
b91b96f4
AC
77272002-05-23 Andrew Cagney <ac131313@redhat.com>
7728
7729 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7730 * Makefile.in (sim_d10v_h): Update definition.
7731
8b279e7a
AC
77322002-05-24 Andrew Cagney <cagney@redhat.com>
7733
7734 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7735 change `2002-05-22 Michael Snyder' below.
7736 (d10v_push_arguments): Ditto.
7737 (d10v_extract_return_value): Ditto.
7738
0a3d0425
JB
77392002-05-23 Jim Blandy <jimb@redhat.com>
7740
7741 * macrotab.c (check_for_redefinition): Don't complain if the new
7742 definition is the same as the previous one. Take more arguments
7743 to allow the comparison.
7744 (macro_define_object, macro_define_function): Pass more arguments
7745 to check_for_redefinition.
7746
78eac43e
MS
77472002-05-22 Michael Snyder <msnyder@redhat.com>
7748
7749 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7750 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7751 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7752 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7753 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7754 Add a temp variable to save a call (and a memory read).
7755 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7756 if possible (so that PC_IN_CALL_DUMMY will work).
7757
9bc1edb8
CV
77582002-05-22 Corinna Vinschen <vinschen@redhat.com>
7759
7760 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7761
005ef3d2
ML
77622002-05-22 Michal Ludvig <mludvig@suse.cz>
7763
7764 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7765 fde->cie_ptr.
7766 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7767 (dwarf2_build_frame_info): Add offset to fde->initial_location
7768 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7769 (execute_stack_op): Change type of 'result' from ULONGEST to
7770 CORE_ADDR.
005ef3d2 7771
fcf4f891
JT
77722002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7773
7774 * config/alpha/tm-nbsd.h: Include solib.h.
7775
cfef91e4
JT
77762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7777
7778 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7779 assumptions about the host's byte order.
7780
9964235a
JT
77812002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7782
7783 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7784 to dependency list.
7785 * alphanbsd-tdep.c: Include solib-svr4.h.
7786 * shnbsd-tdep.c: Ditto.
7787
9eeef8ef
JT
77882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7789
7790 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7791 nbsd-tdep.h to dependency list.
7792 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7793 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7794 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7795 nbsdaout.mh and nbsdelf.mh consistently.
7796 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7797 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7798 nbsdaout.mt and nbsdelf.mh consistently.
7799 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7800 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7801 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7802 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7803 a.out shared library stuff from here...
7804 * config/nm-nbsdaout.h: ...to here.
7805 * config/tm-nbsd.h: Remove.
7806 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7807 * config/arm/nbsd.mh: Remove.
7808 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7809 nbsd-tdep.o.
7810 * config/arm/nbsdaout.mh: New file.
7811 * config/arm/nbsdelf.mh: New file.
7812 * config/arm/nm-nbsdaout.h: New file.
7813 * config/i386/nbsd.mh: Remove.
7814 * config/i386/nbsd.mt: Remove.
7815 * config/i386/nbsdaout.mh: New file.
7816 * config/i386/nbsdaout.mt: New file.
7817 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7818 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7819 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7820 i386_register_u_addr): Remove.
7821 * config/i386/nm-nbsdaout.h: New file.
7822 * config/i386/nm-nbsdelf.h: Remove.
7823 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7824 (USE_STRUCT_CONVENTION): Remove.
7825 * config/i386/tm-nbsdaout.h: New file.
7826 * config/i386/tm-nbsdelf.h: Remove.
7827 * config/m68k/nbsd.mh: Remove.
7828 * config/m68k/nbsd.mt: Remove.
7829 * config/m68k/nbsdaout.mh: New file.
7830 * config/m68k/nbsdaout.mt: New file.
7831 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7832 * config/m68k/nm-nbsdaout.h: New file.
7833 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7834 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7835 * config/ns32k/nbsd.mh: Remove.
7836 * config/ns32k/nbsd.mt: Remove.
7837 * config/ns32k/nbsdaout.mh: New file.
7838 * config/ns32k/nbsdaout.mt: New file.
7839 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7840 * config/ns32k/nm-nbsdaout.h: New file.
7841 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7842 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7843 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7844 (SVR4_SHARED_LIBS): Remove.
7845 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7846 * config/sparc/nbsd.mh: Remove.
7847 * config/sparc/nbsd.mt: Remove.
7848 * config/sparc/nbsdaout.mh: New file.
7849 * config/sparc/nbsdaout.mt: New file.
7850 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7851 * config/sparc/nbsdelf.mt: New file.
7852 * config/sparc/nm-nbsdaout.h: New file.
7853 * config/sparc/nm-nbsdelf.h: Remove.
7854 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7855 * config/sparc/tm-nbsdaout.h: New file.
7856
257ce470
JT
78572002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7858
7859 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7860 mipsnbsd-tdep.c
7861 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7862
76a6d5fe
JT
78632002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7866 shnbsd-nat.c.
7867 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7868
45888261
JT
78692002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7870
7871 * NEWS: Note new MIPS NetBSD native configuration.
7872 * configure.host (mips*-*-netbsd*): New host.
7873 * configure.tgt (mips*-*-netbsd*): New target.
7874 * mipsnbsd-nat.c: New file.
7875 * mipsnbsd-tdep.c: New file.
7876 * mipsnbsd-tdep.h: New file.
7877 * config/mips/nbsd.mh: New file.
7878 * config/mips/nbsd.mt: New file.
7879 * config/mips/nm-nbsd.h: New file.
7880 * config/mips/tm-nbsd.h: New file.
7881
70f80edf
JT
78822002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7883
7884 * Makefile.in (SFILES): Add osabi.c.
7885 (COMMON_OBS): Add osabi.o.
7886 (osabi.o): New dependency list.
7887 * osabi.c: New file.
7888 * osabi.h: New file.
7889 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7890
7891 * Makefile.in (alpha_tdep_h): Define and use instead of
7892 alpha-tdep.h.
7893 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7894 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7895 Remove.
7896 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7897 * alpha-tdep.h: Include osabi.h.
7898 (alpha_abi): Remove.
7899 (gdbarch_tdep): Use generic OS ABI framework.
7900 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7901 gdbarch_register_osabi.
7902 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7903 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7904 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7905
7906 * Makefile.in (sh_tdep_h): Add osabi.h.
7907 * sh-tdep.h (sh_osabi): Remove.
7908 (gdbarch_tdep): Use generic OS ABI framework.
7909 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7910 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7911 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7912 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7913
7914 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7915 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7916 gdbarch_register_osabi.
7917 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7918 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7919 (get_elfosabi): Rename to...
7920 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7921 ABI framework support routines.
7922 (arm_gdbarch_init): Use generic OS ABI framework.
7923 (arm_dump_tdep): Likewise.
7924 (_initialize_arm_tdep): Likewise.
7925 * arm-tdep.h: Include osabi.h.
7926 (arm_abi): Remove.
7927 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7928 osabi member.
7929 (arm_gdbarch_register_os_abi): Remove prototype.
7930 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7931 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7932
7933 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7934 * mips-tdep.c: Include osabi.h.
7935 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7936 OS ABI framework.
7937
d194345b
KH
79382002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7939
7940 * h8300-tdep.c: Fix formatting.
7941
70c6b0d1
EZ
79422002-05-20 Elena Zannoni <ezannoni@redhat.com>
7943
7944 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7945 printing vector registers.
7946
165b8e33
AC
79472002-05-19 Andrew Cagney <ac131313@redhat.com>
7948
7949 From Fernando Nasser:
7950 * remote.c (remote_async_open_1): Re-throw the exception when the
7951 connection fails.
7952 (remote_cisco_open): Ditto.
7953 (remote_open_1): Ditto.
7954
36918e70
AC
79552002-05-19 Andrew Cagney <ac131313@redhat.com>
7956
7957 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7958 (remote_start_remote): Add uiout parameter. Pass through to
7959 remote_start_remote_dummy.
7960 (remote_open_1): Use catch_exception instead of catch_errors.
7961 (remote_async_open_1): Ditto.
7962 (remote_cisco_open): Ditto.
7963
ae44c0c4
AC
79642002-05-19 Andrew Cagney <ac131313@redhat.com>
7965
7966 * remote.c (remote_start_remote): Replace PTR with void pointer.
7967 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7968 static.
7969
8efe637d
AC
79702002-05-18 Andrew Cagney <ac131313@redhat.com>
7971
7972 * gdb_indent.sh: Allow the script to be run in the sim directory.
7973
2f1b5984
MK
79742002-05-18 Mark Kettenis <kettenis@gnu.org>
7975
f0f625e2
MK
7976 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7977 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7978
2f1b5984
MK
7979 * corelow.c (core_open): Only call set_gdbarch_from_file if
7980 exec_bfd is NULL.
7981
fc974602
AV
79822002-05-17 Andrey Volkov <avolkov@transas.com>
7983
7984 * h8300-tdep.c: Add support of EXR register
7985 * config/h8300/tm-h8300.h: Ditto.
7986
906709f4
AV
79872002-05-17 Andrey Volkov <avolkov@transas.com>
7988
7989 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7990
6e591d68
AV
79912002-05-17 Andrey Volkov <avolkov@transas.com>
7992
7993 * h8300-tdep.c: Change literal regnums to REGNO.
7994
84f0252a
JB
79952002-05-17 Jim Blandy <jimb@redhat.com>
7996
e0e9281e
JB
7997 * NEWS: Note addition of macro support.
7998
84f0252a
JB
7999 Expand preprocessor macros in C expressions.
8000 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8001 (scan_macro_expansion, scanning_macro_expansion,
8002 finished_macro_expansion): New function declarations.
8003 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8004 variable declarations.
8005 * parser-defs.h (expression_context_pc): New declaration.
8006 * parse.c (expression_context_pc): New variable.
8007 (parse_exp_1): Set expression_context_pc, as well as
8008 expression_context_block.
8009 * c-exp.y (yylex): If we're not already reading the result of a
8010 macro expansion, try to macro-expand the next token. When we're
8011 done scanning a macro expansion, switch back to the mainline text.
8012 Commas and `if's in a macro's expansion don't terminate the input.
8013 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8014 (macro_original_text, macro_expanded_text,
8015 expression_macro_lookup_func, expression_macro_lookup_baton): New
8016 variables.
8017 (scan_macro_expansion, scanning_macro_expansion,
8018 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8019 c_preprocess_and_parse): New functions.
8020 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8021 c_preprocess_and_parse, instead of c_parse.
8022 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8023 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8024
1c509ca8
JR
8025Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8026
8027 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8028 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8029 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8030
2250ee0c
CV
80312002-05-17 Corinna Vinschen <vinschen@redhat.com>
8032
8033 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8034
ab3b8126
JT
80352002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8036
8037 * Makefile.in (sh_tdep_h): Define and use.
8038 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8039 register enum): Move to...
8040 * * sh-tdep.h: ...here.
8041 * sh-tdep.c: Include sh-tdep.h.
8042 * sh3-rom.c: Likewise.
8043 * shnbsd-tdep.c: Likewise.
8044
ed9d4749
MS
80452002-05-16 Michael Snyder <msnyder@redhat.com>
8046
8047 * arm-tdep.c: Spelling fix in comment.
8048
2e276125
JB
80492002-05-16 Jim Blandy <jimb@redhat.com>
8050
6821892e
JB
8051 Add commands for manually expanding macros and showing their
8052 definitions.
8053 * macrocmd.c, macroscope.c, macroscope.h: New files.
8054 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8055 (macroscope_h): New variable.
8056 (HFILES_NO_SRCDIR): Add macroscope.h.
8057 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8058 (macroscope.o, macrocmd.o): New rules.
8059
2e276125
JB
8060 Teach the Dwarf 2 reader to read macro information.
8061 * dwarf2read.c: #include "macrotab.h".
8062 (dwarf_macinfo_buffer): New variable.
8063 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8064 dwarf_macinfo_size.
8065 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8066 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8067 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8068 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8069 dwarf2_macro_spaces_in_definition): New complaints.
8070 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8071 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8072 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8073 the partial symbol table.
8074 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8075 from what's recorded in the partial symbol table.
8076 (read_file_scope): If the compilation unit has a
8077 `DW_AT_macro_info' attribute, read its macro information.
8078 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8079
2f53fe6c
DJ
80802002-05-16 Daniel Jacobowitz <drow@mvista.com>
8081
8082 Fix PR gdb/546
8083 * ser-tcp.c: Don't include <netinet/udp.h>.
8084
2be99286
SC
80852002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8086
8087 * MAINTAINERS: Update my email address.
8088
c9af212b 80892002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8090
8091 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8092 include file of the same name.
8093
bf5f1a52
CV
80942002-05-16 Corinna Vinschen <vinschen@redhat.com>
8095
8096 * configure.tgt: Mark v850 as multi-arched.
8097 * config/v850/tm-v850.h: Remove file.
8098 * config/v850/v850.mt: Eliminate TM_FILE.
8099
435e042a
CV
81002002-05-16 Corinna Vinschen <vinschen@redhat.com>
8101
8102 * v850-tdep.c: Full multi-arch.
8103 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8104 Define GDB_MULTI_ARCH to 2.
8105
9819c6c8
PM
81062002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8107
8108 * p-exp.y (current_type): New static variable.
8109 Carries the type of the expression at the position that is parsed.
8110 (push_current_type, pop_current_type): Two new functions. Used
8111 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8112 (search_field): New static variable. Set to one after parsing a point
8113 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8114 (FIELDNAME): New token. After a point only a token belonging to
8115 current_type type definition is allowed.
8116 (all over token rules): reset and change current_type according
8117 to rules.
8118 (exp '[' rule): insert implicit array index field if
8119 exp is a pascal string type.
8120
3a06899a
CV
81212002-05-16 Corinna Vinschen <vinschen@redhat.com>
8122
8123 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8124 frame info. Use frame_info's saved_regs instead of matching member
8125 in extra_frame_info throughout.
8126 (v850_frame_init_saved_regs): New function.
8127 (v850_init_extra_frame_info): Move most functionality into
8128 v850_frame_init_saved_regs().
8129 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8130 (v850_frame_find_saved_regs): Remove declaration.
8131 (FRAME_FIND_SAVED_REGS): Remove definition.
8132 (v850_frame_init_saved_regs): Add declaration.
8133 (FRAME_INIT_SAVED_REGS): Add definition.
8134
6ed14b0e
CV
81352002-05-16 Corinna Vinschen <vinschen@redhat.com>
8136
8137 * v850-tdep.c: Begin multi-arch'ing v850.
8138 (v850_target_architecture_hook): Remove function.
8139 (v850_gdbarch_init): New function. Add code previously in
8140 v850_target_architecture_hook().
8141 (_initialize_v850_tdep): Don't set target_architecture_hook.
8142 Call register_gdbarch_init() instead.
8143
42725910
DJ
81442002-05-16 Daniel Jacobowitz <drow@mvista.com>
8145
8146 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8147 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8148 (fixup_class_method_type): Likewise.
8149
99d9066e
JB
81502002-05-15 Jim Blandy <jimb@redhat.com>
8151
8152 Add macro structures to GDB's symbol tables. Nobody puts anything
8153 in them yet.
8154 * symtab.h (struct symtab): New member: `macro_table'.
8155 * buildsym.h (pending_macros): New global variable.
8156 * buildsym.c: #include "macrotab.h".
8157 (buildsym_init): Initialize `pending_macros'.
8158 (end_symtab): If we found macro information while reading a CU's
8159 debugging info, do build a symtab structure for it. Make the
8160 symtab point to the macro information, and clear the
8161 `pending_macros' pointer which held it while we were reading the
8162 debug info.
8163 (really_free_pendings): Free any pending macro table.
8164 * objfiles.h (struct objfile): New member: `macro_cache'.
8165 * objfiles.c (allocate_objfile): Set allocate and free functions
8166 for the macro cache's objstack.
8167 (free_objfile): Empty the macro cache's obstack.
8168 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8169 set new allocate and free functions for it.
8170 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8171 free functions for the macro cache's objstack. (Why is this
8172 function building its own objfile?)
8173 * symmisc.c (print_objfile_statistics): Print statistics on the
8174 macro bcache.
8175 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8176
c899585b
RE
81772002-05-15 Richard Earnshaw <rearnsha@arm.com>
8178
8179 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8180 (REGISTER_U_ADDR): Delete definition.
8181 (arm_register_u_addr): Delete declaration.
8182
a6cdd8c5
RE
81832002-05-15 Richard Earnshaw <rearnsha@arm.com>
8184
8185 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8186 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8187
c97dcfc7
AC
81882002-05-14 Andrew Cagney <ac131313@redhat.com>
8189
8190 * regcache.c (register_valid): Revise comments refering to "Not
8191 available" and "unavailable".
8192 * frame.c (frame_register_read): Ditto.
8193 * findvar.c (value_of_register): Ditto.
8194
93021b7d
AC
81952002-05-15 Andrew Cagney <cagney@redhat.com>
8196
8197 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8198 (remote-sim.o): Update dependencies.
8199 (d10v-tdep.o): Specify dependencies.
8200 (sim_d10v_h): Define.
8201
a86bc61c
JB
82022002-05-14 Jim Blandy <jimb@redhat.com>
8203
8204 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8205 * macrotab.c (macro_lookup_inclusion, find_definition,
8206 new_macro_table): Same.
8207
8208 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8209 not `! strcmp ()'. This is a dubious improvement.
8210 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8211
8212 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8213 although it's not necessary, to avoid a warning.
8214
2fdde8f8
DJ
82152002-05-14 Daniel Jacobowitz <drow@mvista.com>
8216
8217 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8218 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8219 TYPE_INSTANCE_FLAGS.
8220 (struct main_type): New.
8221 (struct type): Move most members to struct main_type. Change
8222 cv_type and as_type to new type_chain member. Add instance_flags.
8223 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8224 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8225 (finish_cv_type): Remove prototype.
8226 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8227 Set TYPE_CHAIN.
8228 (alloc_type_instance): New function.
8229 (smash_type): New function.
8230 (make_pointer_type, make_reference_type, make_function_type)
8231 (smash_to_member_type, smash_to_method_type): Call smash_type.
8232 (make_qualified_type): New function.
8233 (make_type_with_address_space): Call make_qualified_type.
8234 (make_cv_type): Likewise.
8235 (finish_cv_type): Remove unnecessary function.
8236 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8237 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8238 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8239 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8240 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8241 * hpread.c (hpread_read_struct_type): Likewise.
8242 * stabsread.c (read_struct_type): Likewise.
8243
843fedf4
EZ
82442002-05-14 Elena Zannoni <ezannoni@redhat.com>
8245
8246 * configure.tgt: Add a catch all sh* target, for cases like
8247 sh[2,3,4]-elf and sh-hms.
8248
05a6c72c
KS
82492002-05-14 Keith Seitz <keiths@redhat.com>
8250
8251 * event-loop.c (create_file_handler): Don't do anything but
8252 update data when we are given a fd which we are already
8253 monitoring.
8254
5d085aaf
ML
82552002-05-14 Michal Ludvig <mludvig@suse.cz>
8256
8257 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8258 (update_context): Use __func__ in warnings.
8259
9db8d71f
DJ
82602002-05-14 Daniel Jacobowitz <drow@mvista.com>
8261
8262 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8263 and tcp_close to net_open and net_close.
8264 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8265 using UDP if requested. Don't try to disable Nagle on UDP
8266 sockets.
8267 * remote.c (remote_serial_open): New function. Warn about UDP.
8268 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8269
5dbc6baa
EZ
82702002-05-13 Elena Zannoni <ezannoni@redhat.com>
8271
8272 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8273
cc3023f7
EZ
82742002-05-13 Elena Zannoni <ezannoni@redhat.com>
8275
8276 * configure.tgt: Remove sh-hms target.
8277 * MAINTAINERS: Don't list sh-hms as a separate target.
8278
ec2bcbe7
JB
82792002-05-13 Jim Blandy <jimb@redhat.com>
8280
8281 Add first preprocessor macro-expansion files.
8282 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8283 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8284 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8285 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8286 (COMMON_OBS): Add macrotab.o, macroexp.o.
8287 (macroexp.o, macrotab.o): New rules.
8288
6d531722
AC
82892002-05-13 Andrew Cagney <ac131313@redhat.com>
8290
8291 * config/m88k/tm-m88k.h: Update copyright.
8292 (m88k_target_write_pc): Declare
8293 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8294 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8295 (SHIFT_INST_REGS): Update definition.
8296 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8297 using old definition of TARGET_WRITE_PC.
8298 * regcache.c (generic_target_write_pc): Delete code handling
8299 NNPC_REGNUM.
8300 * gdbarch.sh (NNPC_REGNUM): Delete.
8301 * gdbarch.h, gdbarch.c: Regenerate.
8302
3e3f2739
RE
83032002-05-13 Richard Earnshaw <rearnsha@arm.com>
8304
8305 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8306 builtin reg number.
8307
0004e5a2
DJ
83082002-05-13 Daniel Jacobowitz <drow@mvista.com>
8309
8310 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8311 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8312 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8313 access macros.
8314 * c-typeprint.c (cp_type_print_method_args): Likewise.
8315 (c_type_print_args): Likewise.
8316 * d10v-tdep.c (d10v_push_arguments): Likewise.
8317 (d10v_extract_return_value): Likewise.
8318 * expprint.c (print_subexp): Likewise.
8319 * gdbtypes.c (lookup_primitive_typename): Likewise.
8320 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8321 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8322 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8323 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8324 (TYPE_VECTOR): Likewise.
8325 * hpread.c (hpread_read_struct_type)
8326 (fix_static_member_physnames, fixup_class_method_type)
8327 (hpread_type_lookup): Likewise.
8328 * mdebugread.c (parse_symbol, parse_type): Likewise.
8329 * p-lang.c (is_pascal_string_type): Likewise.
8330 * valops.c (hand_function_call): Likewise.
8331 * x86-64-tdep.c (classify_argument): Likewise.
8332
8333 * hpread.c (hpread_read_function_type)
8334 (hpread_read_doc_function_type): Call replace_type.
8335 * dstread.c (create_new_type): Delete.
8336 (decode_dst_structure, process_dst_function): Call alloc_type.
8337 Use type access macros.
8338
dff95cc7
MK
83392002-05-12 Mark Kettenis <kettenis@gnu.org>
8340
8341 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8342 the're not supported by the current architecture.
8343 (i387_fill_fxsave): Likewise.
8344
bbcd32ad
FF
83452002-05-12 Fred Fish <fnf@redhat.com>
8346
8347 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8348 sect_index_xxx members to index the first slot in section_offsets
8349 if all of the section_offsets are zero.
8350
89cf4787
MK
83512002-05-12 Mark Kettenis <kettenis@gnu.org>
8352
8353 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8354 checked in with last change.
8355
1f77ffc5
MK
83562002-05-12 Mark Kettenis <kettenis@gnu.org>
8357
8358 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8359 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8360 config.sub.
8361
89b8b4a9
DJ
83622002-05-12 Daniel Jacobowitz <drow@mvista.com>
8363
8364 * Makefile.in: Update dependencies.
8365
14a5e767
AC
83662002-05-11 Andrew Cagney <ac131313@redhat.com>
8367
8368 * language.c (local_hex_string_custom): Simplify. Do not depend
8369 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8370
8371 * memattr.c (mem_info_command): Replace calls to
8372 longest_local_hex_string and longest_local_hex_string_custom.
8373 * buildsym.c (make_blockvector): Ditto.
8374 * solib.c (info_sharedlibrary_command): Ditto.
8375 * tracepoint.c (tracepoints_info): Ditto.
8376 * symtab.c (print_msymbol_info): Ditto.
8377
8378 * language.c (local_hex_string): Delete.
8379 (local_hex_string_custom): Delete.
8380 (longest_local_hex_string): Rename to local_hex_string.
8381 (longest_local_hex_string_custom): Rename to
8382 local_hex_string_custom.
8383 * language.h (local_hex_string): Change parameter type to LONGEST.
8384 (local_hex_string_custom): Ditto.
8385 (longest_local_hex_string): Delete declaration.
8386 (longest_local_hex_string_custom): Ditto.
8387
8388 * solib.c: Update copyright.
8389 * memattr.c: Update copyright.
8390
13d01224
AC
83912002-05-11 Andrew Cagney <ac131313@redhat.com>
8392
8393 * arch-utils.h (legacy_register_to_value): Declare.
8394 (legacy_value_to_register): Declare.
8395 (legacy_convert_register_p): Declare.
8396 * arch-utils.c (legacy_register_to_value): New function.
8397 (legacy_value_to_register): New function.
8398 (legacy_convert_register_p): New function.
8399
8400 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8401 (VALUE_TO_REGISTER): Define.
8402 (CONVERT_REGISTER_P): Define.
8403 * gdbarch.h, gdbarch.c: Regenerate.
8404
8405 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8406 VALUE_TO_REGISTER.
8407 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8408 CONVERT_REGISTER_P.
8409
4a1970e4
DJ
84102005-05-11 Daniel Jacobowitz <drow@mvista.com>
8411 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8412
8413 * Makefile.in: Update dependencies for valops.c.
8414 * valops.c: Include "gdb_assert.h".
8415 (typecmp): Skip THIS parameter to methods.
8416 (find_method_list): Remove static_memfuncp argument,
8417 update callers. Check for stub methods.
8418 (find_value_oload_method_list): Don't set *static_memfuncp.
8419 (find_overload_match): Don't check for stub methods. Assert
8420 that methods are not stubbed. Handle static methods.
8421 (value_find_oload_method_list): Remove static_memfuncp argument.
8422 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8423 to the argument list for static stub methods.
8424 * value.h (value_find_oload_method_list): Update prototype.
8425
b2e75d78
AC
84262002-05-11 Andrew Cagney <ac131313@redhat.com>
8427
8428 * arch-utils.h (generic_register_size): Declare.
8429 (generic_register_raw_size, generic_register_virtual_size): Delete
8430 declarations.
8431 * arch-utils.c (generic_register_raw_size): Delete.
8432 (generic_register_size): New function.
8433 (generic_register_virtual_size): Delete.
8434
8435 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8436 default generic_register_size.
8437 * gdbarch.h, gdbarch.c: Re-generate.
8438
8439 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8440 register_virtual_size.
8441 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8442 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8443
451fbdda
AC
84442002-05-11 Andrew Cagney <ac131313@redhat.com>
8445
8446 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8447 * gdbarch.h, gdbarch.c: Regenerate.
8448 * gnu-v3-abi.c: Update copyright.
8449 (vtable_address_point_offset): Update.
8450 (gnuv3_rtti_type): Update.
8451 (gnuv3_baseclass_offset): Update.
8452 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8453 (init_fetch_link_map_offsets): Update.
8454 * remote.c (get_remote_state): Update.
8455
6d2f5cea
DJ
84562002-05-11 Daniel Jacobowitz <drow@mvista.com>
8457
8458 * TODO: Remove value_headof/value_from_vtable_info comment.
8459 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8460 * values.c (value_headof, value_from_vtable_info): Delete.
8461 * value.h (value_from_vtable_info): Delete prototype.
8462
d2324da4
AC
84632002-05-11 Andrew Cagney <ac131313@redhat.com>
8464
8465 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8466 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8467 $(gdb_regex_h).
8468 (gdb_assert_h): Define.
8469 (gdb_wait_h): Define.
8470 (gdb_regex_h): Define.
8471
5c717440
DJ
84722002-05-11 Daniel Jacobowitz <drow@mvista.com>
8473
8474 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8475 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8476
6c7861b3
JT
84772002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8478
8479 * nbsd-tdep.c: Fix comment.
8480
ea5bc2a6
JT
84812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8482
8483 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8484 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8485 (nbsd-tdep.o): New dependency list.
8486 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8487 nbsd-tdep.h.
8488 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8489 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8490 * nbsd-tdep.c: New file.
8491 * nbsd-tdep.h: New file.
8492 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8493 nbsd-tdep.h.
8494 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8495 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8496 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8497 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8498
b28da865
JT
84992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8500
8501 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8502 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8503 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8504 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8505 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8506 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8507
4b8ff1fa
JT
85082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8509
8510 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8511 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8512 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8513 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8514 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8515 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8516 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8517
dfe6eb1f
JT
85182002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8519
8520 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8521 fetch_elfcore_registers to...
8522 * i386nbsd-tdep.c: ...here.
8523 (i386nbsd_use_struct_convention): Rename to...
8524 (i386nbsd_aout_use_struct_convention): ...this.
8525 (i386nbsd_supply_reg): New function.
8526 (i386nbsd_fill_reg): New function.
8527 (fetch_core_registers): Use i386nbsd_supply_reg.
8528 (fetch_elfcore_registers): Likewise.
8529 (_initialize_i386nbsd_tdep): New function.
8530 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8531 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8532 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8533 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8534 (i386nbsd_aout_use_struct_convention): ...this.
8535
20cb8cda
JT
85362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8537
8538 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8539 (store_inferior_registers): Use shnbsd_fill_reg.
8540 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8541 sh_nbsd_supply_register): Collapse into...
8542 (shnbsd_supply_reg): ...this.
8543 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8544 (shnbsd_fill_reg): ...this.
8545 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8546 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8547 (fetch_core_registers): Use shnbsd_supply_reg.
8548 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8549 (sh_nbsd_core_fns): Rename to...
8550 (shnbsd_core_fns): ...this.
8551 (sh_nbsd_elfcore_fns): Rename to...
8552 (shnbsd_elfcore_fns): ...this.
8553 (sh_nbsd_init_abi): Rename to...
8554 (shnbsd_init_abi): ...this.
8555 (_initialize_sh_nbsd_tdep): Rename to...
8556 (_initialize_shnbsd_tdep): ...this.
8557 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8558 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8559 sh_nbsd_fill_register): Remove prototypes.
8560 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8561
e750d25e
JT
85622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8565 (i387-nat.o): Delete dependency list.
8566 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8567 (x86-64-linux-nat.o): Likewise.
8568 * i387-nat.c: Delete file, moving contents to...
8569 * i387-tdep.c: ...here.
8570 * i387-nat.h: Rename...
8571 * i387-tdep.h: ...to this.
8572 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8573 * i386-linux-nat.c: Likewise.
8574 * i386bsd-nat.c: Likewise.
8575 * i386gnu-nat.c: Likewise.
8576 * i386nbsd-nat.c: Likewise.
8577 * i386v4-nat.c: Likewise.
8578 * x86-64-linux-nat.c: Likewise.
8579 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8580 * config/i386/go32.mh (NATDEPFILES): Likewise.
8581 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8582 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8583 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8584 * config/i386/linux.mh (NATDEPFILES): Likewise.
8585 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8586 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8587 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8588 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8589
1aee598a
JT
85902002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8591
8592 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8593 (alphanbsd-nat.o): Remove dependency list.
8594 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8595 * alphanbsd-nat.c: Delete. Contents moved to...
8596 * alphanbsd-tdep.c: ...here.
8597 (_initialize_alphanbsd_tdep): Register core functions.
8598 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8599
12bcb0fe
JT
86002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8601
8602 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8603 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8604 (alphanbsd-nat.o): Likewise.
8605 (alphabsd-tdep.o): New dependency list.
8606 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8607 (fill_gregset): Use alphabsd_fill_reg.
8608 (supply_fpregset): Use alphabsd_supply_fpreg.
8609 (fill_fpregset): Use alphabsd_fill_fpreg.
8610 (fetch_inferior_registers): Use struct reg and struct fpreg
8611 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8612 and alphabsd_supply_fpreg.
8613 (store_inferior_registers): Use struct reg and struct fpreg
8614 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8615 and alphabsd_fill_fpreg.
8616 * alphabsd-tdep.c: New file.
8617 * alphabsd-tdep.h: New file.
8618 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8619 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8620 alphabsd_supply_fpreg.
8621 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8622 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8623
361d1df0
EC
86242002-05-11 Eric Christopher <echristo@redhat.com>
8625
8626 * mips-tdep.c (mips_double_register_type): Fix thinko.
8627 (mips_single_register_type): Ditto.
8628 * MAINTAINERS: Add self.
8629
92dd7cee
MK
86302002-05-11 Mark Kettenis <kettenis@gnu.org>
8631
8632 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8633 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8634 right thing on architectures with different endianness and/or
8635 integer sizes.
8636
e27da16d
JT
86372002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8638
8639 From Christian Limpach <chris@Pin.LU>
8640 * configure.in: Change sed expression which comments out
8641 NATDEPFILES to also comment out continuation lines.
8642 * configure: Regenerate.
8643
ddde02bd
EZ
86442002-05-10 Elena Zannoni <ezannoni@redhat.com>
8645
8646 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8647 big patch.
8648
1c922164
EZ
86492002-05-10 Elena Zannoni <ezannoni@redhat.com>
8650
8651 * sh-tdep.c: Include correct file.
8652
283150cd
EZ
86532002-05-10 Elena Zannoni <ezannoni@redhat.com>
8654
8655 New support for sh64-elf (sh5) target.
8656
8657 * configure.tgt: For sh64-elf target, default to sh-elf.
8658
8659 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8660 (struct gdbarch_tdep): Add new fields for new registers and ABI
8661 info.
361d1df0 8662
283150cd
EZ
8663 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8664 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8665 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8666 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8667 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8668 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8669 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8670 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8671 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8672 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8673 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8674 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8675 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8676 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8677 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8678 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8679 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8680 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8681 sign_extend, sh64_nofp_frame_init_saved_regs,
8682 sh64_init_extra_frame_info, sh64_get_saved_register,
8683 sh64_extract_struct_value_address, sh64_pop_frame,
8684 sh64_push_arguments, sh64_extract_return_value,
8685 sh64_store_return_value, sh64_show_media_regs,
8686 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8687 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8688 sh_sh64_register_virtual_type,
8689 sh_sh64_register_convert_to_virtual,
8690 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8691 sh64_register_read, sh64_pseudo_register_write,
8692 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8693 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8694 sh64_do_pseudo_register, sh_compact_do_registers_info,
8695 sh64_do_registers_info, sh_gdbarch_init): New functions.
8696
3117ed25
EZ
86972002-05-10 Elena Zannoni <ezannoni@redhat.com>
8698
8699 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8700
2654e6d4
DJ
87012002-05-10 Daniel Jacobowitz <drow@mvista.com>
8702
8703 * linespec.c (decode_line_1): Check for a double quote after
8704 a filename correctly.
8705
9ab3e532
JB
87062002-05-10 Jim Blandy <jimb@redhat.com>
8707
8708 Properly track the size of the current objfile's .debug_line section.
8709 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8710 (DWARF_LINE_SIZE): New macro.
8711 (dwarf2_build_psymtabs_hard): Record the line section's size in
8712 the partial symbol table.
8713 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8714 symbol table.
8715
126fa72d
PS
87162002-05-10 Petr Sorfa <petrs@caldera.com>
8717
8718 * ia64-tdep.c: Handle breakpoints on L instruction type
8719 in MLX instruction bundle by moving the breakpoint to
8720 the third slot (X instruction type) as L holds only data.
8721
1f077a3e
KB
87222002-05-10 Kevin Buettner <kevinb@redhat.com>
8723
8724 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8725 (process_one_symbol): Complain about discarding local symbols
8726 due to a misplaced N_LBRAC entry.
8727
8120c9d5 87282002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8729
8730 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8731 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8732 decrease the depth we are at, in the case of templates.
361d1df0 8733
67b2c998
DJ
87342002-05-09 Daniel Jacobowitz <drow@mvista.com>
8735
8736 * mips-tdep.c (mips_float_register_type): New function.
8737 (mips_double_register_type): New function.
8738 (mips_print_register): Use them.
8739 (do_fp_register_row): Likewise.
8740
fd326606
DJ
87412002-05-09 Daniel Jacobowitz <drow@mvista.com>
8742
6609d9af 8743 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8744 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8745 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8746
bef35864
MS
87472002-05-09 Michael Snyder <msnyder@redhat.com>
8748
8749 * remote-rdp.c (remote_rdp_can_run): Remove.
8750
c55a3f73
TT
87512002-05-09 Tom Tromey <tromey@redhat.com>
8752
8753 * jv-valprint.c (java_val_print): Handle `char' as a special case
8754 of TYPE_CODE_INT.
8755
b8d5e71d
MS
87562002-05-09 Michael Snyder <msnyder@redhat.com>
8757
8758 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8759 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8760 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8761 str r(0123),[sp,#nn].
361d1df0 8762 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8763 order-independent by placing it in a loop.
8764
e2cd42dd
MS
87652002-05-06 Michael Snyder <msnyder@redhat.com>
8766
8767 * stabsread.c (read_type): Add recognition for new attribute:
8768 "@V;" means that an array type is actually a vector.
8769 This is analogous to the vector flag that's been added to dwarf2.
8770
3ce1502b
MK
87712002-05-09 Mark Kettenis <kettenis@gnu.org>
8772
8773 * i386-tdep.h (i386_abi): New enum.
8774 (struct gdbarch_tdep): Replace os_ident member with abi.
8775 (i386_gdbarch_register_os_abi): New prototype.
8776 * i386-tdep.c (i386_abi_names): New array.
8777 (process_note_abi_tag_sections): Removed.
8778 (process_note_sections): New function.
8779 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8780 (struct i386_abi_handler): New struct.
8781 (i386_abi_handler_list): New variable.
8782 (i386_gdbarch_register_os_abi): New function.
8783 (i386_gdbarch_init): Adapt for the changes given above.
8784
084c156a
DJ
87852002-05-08 Daniel Jacobowitz <drow@mvista.com>
8786
8787 * gregset.h: Say "GNU/Linux".
8788
6599f021
EZ
87892002-05-08 Elena Zannoni <ezannoni@redhat.com>
8790
8791 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8792 (build_gdbtypes): Build builtin_type_v2_float.
8793 (_initialize_gdbtypes): Register new builtin type.
8794
40af4b0c
AC
87952002-05-08 Andrew Cagney <ac131313@redhat.com>
8796
8797 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8798 (clear_gdbarch_swap): New function.
8799 (initialize_non_multiarch): Call.
8800 (gdbarch_update_p): Before calling init(), swap out and clear the
8801 existing architecture.
8802 * gdbarch.c: Regenerate.
8803
4fe84f46
JT
88042002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8805
8806 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8807 alphanbsd-tdep.c.
8808
4015edd1
JT
88092002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8810
8811 * sh-nbsd-nat.c: Rename to...
8812 * shnbsd-nat.c: ...this.
8813 * sh-nbsd-tdep.c: Rename to...
8814 * shnbsd-tdep.c: ...this.
8815 * sh-nbsd-tdep.h: Rename to...
8816 * shnbsd-tdep.h: ...this.
8817 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8818 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8819
0e2bd219
RE
88202002-05-08 Richard Earnshaw <rearnsha@arm.com>
8821
8822 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8823 concatenation for command help messages.
8824
13a38d45
JT
88252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8826
8827 * NEWS: Note new sh*-*-netbsdelf* configuration.
8828 * configure.host: Set gdb_host_cpu to sh for all sh*.
8829 (sh*-*-netbsdelf*): New host.
8830 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8831 (sh*-*-netbsdelf*): New target.
8832 * sh-nbsd-nat.c: New file.
8833 * sh-nbsd-tdep.c: New file.
8834 * sh-nbsd-tdep.h: New file.
8835 * config/sh/nbsd.mh: New file.
8836 * config/sh/nbsd.mt: New file.
8837 * config/sh/nm-nbsd.h: New file.
8838 * config/sh/tm-nbsd.h: New file.
8839
d658f924
JT
88402002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8841
8842 * sh-tdep.c (sh_osabi_names): Declare.
8843 (process_note_abi_tag_sections): New function.
8844 (get_elfosabi): Ditto.
8845 (sh_gdbarch_register_os_abi): Ditto.
8846 (sh_dump_tdep): Ditto.
8847 _initialize_sh_tdep): Use gdbarch_register to register
8848 sh_gdbarch_init and sh_dump_tdep.
8849 * config/sh/tm-sh.h (sh_osabi): Declare.
8850 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8851
848cfffb
AC
88522002-05-07 Andrew Cagney <ac131313@redhat.com>
8853
8854 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8855 (thumb_scan_prologue): Ditto.
8856 (arm_find_callers_reg): Ditto.
8857 (arm_frame_chain): Ditto.
8858 (arm_init_extra_frame_info): Ditto.
8859 (arm_frame_saved_pc): Ditto.
8860 (arm_pop_frame): Ditto.
8861 (arm_push_return_address): New function.
8862 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8863 call_dummy_location, call_dummy_breakpoint_offset_p,
8864 call_dummy_breakpoint_offset, call_dummy_p,
8865 call_dummy_stack_adjust_p, call_dummy_words,
8866 sizeof_call_dummy_words, call_dummy_start_offset,
8867 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8868 call_dummy_address, push_return_address and push_dummy_frame for
8869 generic dummy frames.
8870
e7d717c0
JT
88712002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8872
8873 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8874 size computation for alloca.
8875 (sh_fp_frame_init_saved_regs): Likewise.
8876
7bbcf283
RE
88772002-05-07 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8880 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8881 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8882 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8883 * remote-rdp.c (remote_rdp_fetch_register): Use
8884 ARM_MAX_REGISTER_RAW_SIZE.
8885 (remote_rdp_store_register): Likewise.
8886
4657573b
ML
88872002-05-07 Michal Ludvig <mludvig@suse.cz>
8888
361d1df0 8889 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8890 added default labels to switch {} statements.
8891 * x86-64-tdep.c: Ditto.
8892 * x86-64-linux-nat.c: Ditto.
8893
010f3b2f
JT
88942002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8895
8896 * solib.h: Protect against multiple inclusion.
8897
debd256d
JB
88982002-05-06 Jim Blandy <jimb@redhat.com>
8899
9ab3e532
JB
8900 Add first preprocessor macro-expansion files.
8901 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8902 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8903 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8904 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8905 (COMMON_OBS): Add macrotab.o, macroexp.o.
8906 (macroexp.o, macrotab.o): New rules.
8907
debd256d
JB
8908 Separate the job of reading the line number info statement program
8909 header (...expialidocious) out into its own function.
8910 * dwarf2read.c (struct line_head, struct filenames, struct
8911 directories): Replace with...
8912 (struct line_header): New structure, containing the full
8913 contents of the statement program header, including the
8914 include directory and file name tables.
8915 (read_file_scope): If we have line number info, instead of just
8916 calling dwarf_decode_lines to do all the work, call
8917 dwarf_decode_line_header first to get a `struct line_header'
8918 containing the data in the statement program header, and then
8919 pass that to dwarf_decode_lines, which will pick up where that
8920 left off. Be sure to clean up the `struct line_header' object.
8921 (dwarf_decode_line_header, free_line_header, add_include_dir,
8922 add_file_name): New functions.
8923 (dwarf_decode_lines): Move all the code to read the statement
8924 program header into dwarf_decode_line_header. Take the line
8925 header it built as the first argument, instead of the offset to
8926 the compilation unit's line number info. Use the new `struct
8927 line_header' type instead of the old structures. No need to do
8928 cleanups here now, since we don't allocate anything.
8929 (dwarf2_statement_list_fits_in_line_number_section,
8930 dwarf2_line_header_too_long): New complaints.
8931
ac3aafc7
EZ
89322002-05-06 Elena Zannoni <ezannoni@redhat.com>
8933
8934 * gdbtypes.c (init_vector_type): New function.
8935 (build_builtin_type_vec128): Simplify the representation of SIMD
8936 registers.
8937 (build_gdbtypes): Initialize new builtin vector types.
8938 (_initialize_gdbtypes): Register new vector types with gdbarch.
8939 (builtin_type_v4_float, builtin_type_v4_int32,
8940 builtin_type_v8_int16, builtin_type_v16_int8,
8941 builtin_type_v2_int32, builtin_type_v4_int16,
8942 builtin_type_v8_int8): New (renamed) SIMD types.
8943
13e49980
MK
89442002-05-06 Mark Kettenis <kettenis@gnu.org>
8945
8946 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8947 (i387_fill_fxsave): Likewise.
8948
997b20b8
AO
89492002-05-05 Alexandre Oliva <aoliva@redhat.com>
8950
8951 * alpha-tdep.c (alpha_extract_return_value): Don't use
8952 non-constant array size in prototype.
8953
535c96ce
AC
89542002-05-04 Andrew Cagney <ac131313@redhat.com>
8955
8956 From Brian Taylor <briant at model dot com>:
8957 * ui-out.c (ui_out_field_core_addr): Use the function
8958 longest_local_hex_string_custom'to format addresses > 32 bits
8959 wide.
8960
8961 * ui-out.c (ui_out_field_core_addr): Update comment.
8962
bedfa57b
AC
89632002-05-04 Andrew Cagney <ac131313@redhat.com>
8964
8965 * stack.c (select_and_print_frame): Make static. Delete the
8966 parameter `level'.
8967 (func_command): Update call.
8968 (select_frame_command): Delete code computing the frame level.
8969 * frame.h (select_and_print_frame): Delete declaration.
8970
f621c63e
AC
89712002-05-04 Andrew Cagney <ac131313@redhat.com>
8972
8973 * sparc-tdep.c (sparc_get_saved_register): Comment why
8974 get_prev_frame call is safe.
8975
0f7d239c
AC
89762002-05-04 Andrew Cagney <ac131313@redhat.com>
8977
8978 * frame.h (select_frame): Delete level parameter.
8979 * stack.c (select_frame): Update. Use frame_relative_level to
8980 obtain the frame's level.
8981 (select_and_print_frame): Update call.
8982 (select_frame_command): Ditto.
8983 (up_silently_base): Ditto.
8984 (down_silently_base): Ditto.
8985 * ocd.c (ocd_start_remote): Ditto.
8986 * remote-rdp.c (remote_rdp_open): Ditto.
8987 * remote-mips.c (mips_initialize): Ditto.
8988 (common_open): Ditto.
8989 * remote-e7000.c (e7000_start_remote): Ditto.
8990 * m3-nat.c (select_thread): Ditto.
8991 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8992 (child_get_current_exception_event): Ditto.
8993 * varobj.c (varobj_create): Ditto.
8994 (varobj_update): Ditto.
8995 (c_value_of_root): Ditto.
8996 * tracepoint.c (finish_tfind_command): Ditto.
8997 * corelow.c (core_open): Ditto.
8998 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8999 * thread.c (info_threads_command): Ditto.
9000 (switch_to_thread): Ditto.
9001 * infrun.c (normal_stop): Ditto.
9002 (restore_selected_frame): Ditto.
9003 (restore_inferior_status): Ditto.
9004 * breakpoint.c (insert_breakpoints): Ditto.
9005 (watchpoint_check): Ditto.
9006 (bpstat_stop_status): Ditto.
9007 (do_enable_breakpoint): Ditto.
9008 * blockframe.c (flush_cached_frames): Ditto.
9009 (reinit_frame_cache): Ditto.
9010
71d6c7b1
AC
90112002-05-04 Andrew Cagney <ac131313@redhat.com>
9012
9013 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9014 maintainer.
9015
cda6c68a
JB
90162002-05-04 Jim Blandy <jimb@redhat.com>
9017
9018 * gdbtypes.c (replace_type): Doc fix.
9019
5c1c87f0
AC
90202002-05-04 Andrew Cagney <ac131313@redhat.com>
9021
9022 * valprint.c (strcat_longest): Delete commented out function.
9023 Update copyright.
9024
cd9bfe15
AC
90252002-05-04 Andrew Cagney <ac131313@redhat.com>
9026
9027 * MAINTAINERS: Mark a29k as deleted.
9028 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9029 Move new configurations to the top.
9030 * configure.tgt: Remove a29k.
9031 * config/a29k/tm-vx29k.h: Delete.
9032 * config/a29k/vx29k.mt: Delete.
9033 * config/a29k/tm-a29k.h: Delete.
9034 * config/a29k/a29k-udi.mt: Delete.
9035 * config/a29k/a29k.mt: Delete.
9036 * a29k-tdep.c: Delete.
9037 * remote-udi.c: Delete.
9038 * remote-mm.c: Delete.
9039 * remote-eb.c: Delete.
9040 * remote-adapt.c: Delete.
9041 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9042 * config/s390/s390x.mt: Ditto.
9043 * config/s390/s390.mt: Ditto.
9044 * config/sparc/sparclynx.mh: Ditto.
9045 * config/sparc/linux.mh: Ditto.
9046 * config/pa/hppaosf.mh: Ditto.
9047 * config/pa/hppabsd.mh: Ditto.
9048 * config/ns32k/nbsd.mt: Ditto.
9049 * config/mips/vr5000.mt: Ditto.
9050 * config/m68k/sun3os4.mh: Ditto.
9051 * config/m68k/nbsd.mt: Ditto.
9052 * config/m68k/m68klynx.mh: Ditto.
9053 * config/m32r/m32r.mt: Ditto.
9054 * config/i386/x86-64linux.mt: Ditto.
9055 * config/i386/nbsdelf.mt: Ditto.
9056 * config/i386/nbsd.mt: Ditto.
9057 * config/i386/i386lynx.mh: Ditto.
9058
bf0c5130
AC
90592002-05-04 Andrew Cagney <ac131313@redhat.com>
9060
9061 * target.c (debug_print_register): New function. Handle oversize
9062 registers.
9063 (debug_to_fetch_registers): Call.
9064 (debug_to_store_registers): Call.
9065
2ae1c2d2
JB
90662002-05-03 Jim Blandy <jimb@redhat.com>
9067
13a393b0
JB
9068 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9069 (read_type): Doc fix.
9070 * gdbtypes.c (replace_type): Doc fix.
9071
2ae1c2d2
JB
9072 * stabsread.c (multiply_defined_struct): New complaint.
9073 (read_struct_type): If the type we were passed isn't empty, or
9074 incomplete, don't read the new struct type into it; complain,
9075 and return the original type unchanged. Take a new `type_code'
9076 argument, which is the type code for the new type.
9077 (read_type): Rather than storing the type's type code here, pass
9078 it as an argument to read_struct_type, and let that take care of
9079 storing it. That way, we don't overwrite the original type code,
9080 so read_struct_type can use it to decide whether we're overwriting
9081 something we shouldn't.
9082 (complain_about_struct_wipeout): New function.
9083
8de9bdc4
AC
90842002-05-03 Andrew Cagney <ac131313@redhat.com>
9085
9086 * gdbarch.sh: Assert that gdbarch is non-NULL.
9087 * gdbarch.c: Regenerate.
9088
f773fdbb
JM
90892002-05-03 Jason Merrill <jason@redhat.com>
9090
9091 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9092 and return NULL.
9093
0e04a514
ML
90942002-05-03 Michal Ludvig <mludvig@suse.cz>
9095
9096 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9097 (x86_64_dwarf2gdb_regno_map_length),
9098 (x86_64_dwarf2_reg_to_regnum): Added.
9099 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9100 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9101 (_initialize_x86_64_tdep): Synced with the change above.
9102 (x86_64_skip_prologue): Reformulated message.
9103
065432a8
PM
91042002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9105
9106 * f-exp.y: Also use new prev_lexptr variable
9107 to improve error reporting. Based on Michael Snyder
9108 2002-04-24 dated patch to c-exp.y.
9109 * jv-exp.y: Likewise.
9110 * m2-exp.y: Likewise.
9111
a3162708
EZ
91122002-05-02 Elena Zannoni <ezannoni@redhat.com>
9113
9114 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9115 we are dealing with vectors.
9116
03620c38
PM
91172002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9118
9119 * config/m68k/tm-nbsd.h: Obvious fix,
9120 correct machine name.
9121
6604db2e
PM
91222002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9123
9124 * p-typeprint.c (pascal_type_print_base): Add support
9125 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9126
0906b739
PM
91272002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9128
9129 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9130 for fondamental pascal 'char' type.
9131
e2625b33
PM
91322002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9133
9134 * p-lang.h (is_pascal_string_type): Declaration changed,
9135 new sixth argument of type char ** added.
361d1df0 9136 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9137 changed. Args length_pos, length_size, string_pos, char_size
9138 can now be NULL. New argument arrayname set to the field
9139 name of the char array. Return value set to char array
9140 field index plus one.
361d1df0 9141 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9142 is_pascal_string_type function.
9143
cf17c188
AC
91442002-05-02 Andrew Cagney <cagney@redhat.com>
9145
9146 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9147 <cagney@redhat.com> change.
9148 * gdbarch.c: Regenerate.
9149
52bca491
AC
91502002-05-02 Andrew Cagney <cagney@redhat.com>
9151
9152 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9153 before probing for a new one. Detect errorenous gdbarch_init
9154 functions.
9155 * gdbarch.c: Regenerate.
9156
d5e72505
AC
91572002-05-01 Andrew Cagney <cagney@redhat.com>
9158
9159 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9160 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9161 * config/v850/tm-v850.h: Ditto. Update copyright.
9162
af566d9f
AC
91632002-04-30 Andrew Cagney <ac131313@redhat.com>
9164
9165 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9166 current_gdbarch.
9167
880d85fa
MS
91682002-04-30 Michael Snyder <msnyder@redhat.com>
9169
94c30b78
MS
9170 * arm-tdep.c: Whitespace clean-ups.
9171 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9172 should have been removed as part of 4/24 change.
9173
6f5987a6
KB
91742002-04-30 Kevin Buettner <kevinb@redhat.com>
9175
9176 * rs6000-tdep.c: Added comment describing how fpscr register
9177 numbers were chosen.
9178
1a113c93
MS
91792002-04-30 Michael Snyder <msnyder@redhat.com>
9180
9181 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9182
9a6f53fe
EZ
91832002-04-29 Elena Zannoni <ezannoni@redhat.com>
9184
9185 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9186 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9187 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9188
11ed25ac
KB
91892002-04-29 Kevin Buettner <kevinb@redhat.com>
9190
9191 From Louis Hamilton <hamilton@redhat.com>:
9192 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9193 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9194 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9195 not bfd-private xcoff data, to determine wordsize.
9196 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9197
ae232405
AC
91982002-04-29 Andrew Cagney <ac131313@redhat.com>
9199
9200 GDB 5.2 released from 5.2 branch.
9201
91fd20f7
ML
92022002-04-29 Michal Ludvig <mludvig@suse.cz>
9203
9204 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9205 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9206 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9207
2dc5091b
EZ
92082002-04-29 Elena Zannoni <ezannoni@redhat.com>
9209
9210 * rs6000-tdep.c (rs6000_extract_return_value,
9211 rs6000_store_return_value): Handle returning vectors.
9212 (rs6000_gdbarch_init): Use
9213 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9214 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9215 New function.
9216 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9217 vectors.
9218 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9219 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9220
2b9848d8
PM
92212002-04-24 Pierre Muller <ics.u-strasbg.fr>
9222
9223 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9224 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9225 with fprintf_unfiltered (gdb_stderr,...).
9226
f8d17dc5
PM
92272002-04-24 Pierre Muller <ics.u-strasbg.fr>
9228
9229 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9230 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9231 Replace fprintf (stderr,...
9232 with fprintf_unfiltered (gdb_stderr,....
9233 * remote-es.c: Likewise.
9234 * remote-os9k.c: Likewise.
9235 * remote-st.c: Likewise.
9236
2f2f1ad1
AS
92372002-04-28 Andreas Schwab <schwab@suse.de>
9238
9239 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9240 linux-proc.o and gcore.o.
9241
b6779aa2
AC
92422002-04-26 Michal Ludvig <mludvig@suse.cz>
9243
9244 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9245 code without frame pointers.
9246
7e57f5f4
AC
92472002-04-26 Andrew Cagney <ac131313@redhat.com>
9248
9249 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9250 ON_STACK is needed.
9251
2ceb85d0
BE
92522002-04-26 Ben Elliston <bje@redhat.com>
9253
9254 * target.c (do_xfer_memory): Correct reference to the new option
9255 "trust-readonly-sections".
9256
f5f8a009
EZ
92572002-04-26 Elena Zannoni <ezannoni@redhat.com>
9258
9259 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9260 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9261 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9262 vectors.
9263 (read_array_type): Record the fact that this array type is really a
9264 vector (i.e. are passed in by value).
9265
5868c862
JT
92662002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9267
9268 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9269 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9270 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9271 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9272 * alpha-linux-tdep.c: Include frame.h.
9273 (alpha_linux_sigcontext_addr): New function.
9274 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9275 alpha_linux_sigcontext_addr.
9276 * alpha-osf1-tdep.c: Include gdbcore.h.
9277 (alpha_osf1_sigcontext_addr): New function.
9278 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9279 alpha_osf1_sigcontext_addr.
9280 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9281 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9282
bfb01f37
AC
92832002-04-26 Andrew Cagney <ac131313@redhat.com>
9284
361d1df0 9285 * stack.c (selected_frame_level):
bfb01f37
AC
9286 (select_frame): Do not set selected_frame_level.
9287 * frame.h (selected_frame_level): Delete declaration.
9288
15813d3f
AC
92892002-04-26 Andrew Cagney <ac131313@redhat.com>
9290
9291 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9292 convert_from_func_ptr-addr when AIX / PowerOpen.
9293
6096c27a
AC
92942002-04-25 Andrew Cagney <ac131313@redhat.com>
9295
9296 * valops.c (hand_function_call): Call
9297 generic_save_call_dummy_addr.
9298 * frame.h (generic_save_call_dummy_addr): Declare.
9299 * blockframe.c (struct dummy_frame): Add fields call_lo and
9300 call_hi.
9301 (generic_find_dummy_frame): Check for PC in range call_lo to
9302 call_hi instead of entry_point_address.
9303 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9304 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9305 (generic_save_call_dummy_addr): New function.
9306
f510d44e
DM
93072002-04-24 David S. Miller <davem@redhat.com>
9308
9309 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9310 sparc_skip_prologue.
9311 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9312 information to find prologue when possible.
9313 (sparc_prologue_frameless_p): Call examine_prologue directly.
9314 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9315 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9316 second argument.
9317 (SKIP_PROLOGUE): Likewise.
9318
15d72a92
JT
93192002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9320
9321 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9322 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9323 indicate that the condition it was testing is always true.
9324 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9325 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9326 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9327
accc6d1f
JT
93282002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9329
9330 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9331 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9332 tdep->jb_pc and tdep->jb_elt_size.
9333 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9334 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9335 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9336 * alpha-nat.c (get_longjmp_target): Remove.
9337 (JB_ELEMENT_SIZE): Ditto.
9338 (JB_PC): Ditto.
9339 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9340 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9341 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9342 to alpha_get_longjmp_target.
9343 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9344 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9345 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9346
1bfdc549
AC
93472002-04-25 Andrew Cagney <ac131313@redhat.com>
9348
9349 * README: Update to GDB 5.2.
9350
1bd316f0
AC
93512002-04-25 Andrew Cagney <ac131313@redhat.com>
9352
9353 * gdbarch.sh (LC_ALL): Set to `c'.
9354
2e5ff58c
TR
93552002-04-25 Theodore A. Roth <troth@verinet.com>
9356
9357 * avr-tdep.c: Ran through gdb_indent.sh.
9358
e33ce519
TR
93592002-04-25 Theodore A. Roth <troth@verinet.com>
9360
9361 * MAINTAINERS: Add myself as AVR maintainer.
9362 * NEWS: Note new target avr.
9363
8818c391
TR
93642002-04-25 Theodore A. Roth <troth@verinet.com>
9365
9366 * Makefile.in: Add support for AVR target.
9367 * configure.tgt: Add support for AVR target.
9368 * avr-tdep.c: New file
9369 * config/avr/avr.mt: New file.
9370
79509c2d
TR
93712002-04-25 Theodore A. Roth <troth@verinet.com>
9372
9373 * MAINTAINERS: Add myself to write-after-approval.
9374
dac8068e
PM
93752002-04-24 Pierre Muller <ics.u-strasbg.fr>
9376
9377 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9378 with fprintf_unfiltered (gdb_stderr,....
9379
25bf3106
PM
93802002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9381
9382 Fix PR gdb/508.
9383 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9384
24467a86
PM
93852002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9386
9387 * p-exp.y: Also use new prev_lexptr variable
9388 to improve error reporting. Based on Michael Snyder
9389 2002-04-24 dated patch to c-exp.y.
9390
95b80706
JT
93912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9392
9393 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9394 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9395 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9396 to 0.
9397 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9398 and struct value.
9399 (FUNCTION_START_OFFSET): Remove.
9400 (BREAKPOINT): Ditto.
9401
e90cc612
JT
94022002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9403
9404 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9405 * NEWS: Ditto.
9406
6c72f9f9
JT
94072002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9408
9409 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9410 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9411 alpha_linux_pc_in_sigtramp.
9412 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9413 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9414 alpha_osf1_pc_in_sigtramp.
9415 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9416 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9417 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9418 alphafbsd_pc_in_sigtramp.
9419 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9420 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9421 alphanbsd_pc_in_sigtramp.
9422 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9423 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9424
5e4f3379
JT
94252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9426
9427 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9428
da8ca43d
JT
94292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9430
9431 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9432 alphanbsd-tdep.c.
9433 (alphanbsd-nat.o): New dependency list.
9434 (alphanbsd-tdep.o): Ditto.
9435 * NEWS: Note new native NetBSD/alpha configuration.
9436 * alphanbsd-nat.c: New file.
9437 * alphanbsd-tdep.c: Ditto.
9438 * configure.host (alpha*-*-netbsd*): New host.
9439 * configure.tgt (alpha*-*-netbsd*): New target.
9440 * config/alpha/nbsd.mh: New file.
9441 * config/alpha/nbsd.mt: Ditto.
9442 * config/alpha/nm-nbsd.h: Ditto.
9443 * config/alpha/tm-nbsd.h: Ditto.
9444
36a6271d
JT
94452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9446
9447 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9448 (alpha-osf1-tdep.o): New dependency list.
9449 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9450 and skip_sigtramp_frame members.
9451 * alpha-linux-tdep.c: Include gdbcore.h.
9452 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9453 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9454 * alpha-osf1-tdep.c: New file.
9455 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9456 alpha-osf1-dep.c.
9457 (alpha_frame_past_sigtramp_frame): New function.
9458 (alpha_dynamic_sigtramp_offset): Ditto.
9459 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9460 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9461 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9462 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9463 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9464 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9465 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9466 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9467 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9468 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9469 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9470 to find_solib_trampoline_target.
9471 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9472 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9473 (SKIP_TRAMPOLINE_CODE): Remove.
9474 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9475 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9476 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9477 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9478 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9479 (PROC_SIGTRAMP_MAGIC): Ditto.
9480 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9481 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9482 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9483 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9484 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9485
2f4bc57b
JT
94862002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9487
9488 * NEWS: Note that Alpha targets are now multi-arch.
9489
665132f9
MS
94902002-04-24 Michael Snyder <msnyder@redhat.com>
9491
9492 * parser-defs.h (prev_lexptr): New external variable.
9493 * parse.c (parse_exp_1): Set prev_lexptr to null before
9494 calling the language-specific parser.
9495 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9496 (yyerror): Use prev_lexptr in error reporting.
9497
32872fa7
DJ
94982002-04-24 Daniel Jacobowitz <drow@mvista.com>
9499
9500 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9501 * gregset.h: If FILL_FPXREGSET is defined, provide
9502 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9503 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9504 is defined, call fill_fpxregset.
9505
57e76fac
MS
95062002-04-24 Roland McGrath <roland@frob.com>
9507
9508 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9509 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9510 (supply_gregset, supply_fpregset): New functions.
9511
9512 * gnu-nat.c (gnu_find_memory_regions): New function.
9513 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9514 (gnu_xfer_memory): Add a cast.
9515
f43845b3
MS
95162002-04-24 Michael Snyder <msnyder@redhat.com>
9517
361d1df0 9518 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9519 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9520 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9521 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9522 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9523 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9524
a0abec03
AC
9525Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9526
9527 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9528 NUM_PSEUDO_REGS can be used.
9529
d7bd68ca
AC
95302002-04-24 Andrew Cagney <ac131313@redhat.com>
9531
9532 * arch-utils.h: Update copyright.
9533
9534 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9535 * gdbarch.h, gdbarch.c: Re-generate.
9536
9537 * inferior.h (IN_SIGTRAMP): Delete definition.
9538 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9539 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9540
9541 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9542 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9543 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9544 (find_proc_framesize): Ditto.
9545 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9546 (alpha_init_extra_frame_info): Ditto.
9547 * infrun.c (handle_inferior_event): Ditto.
9548 (handle_inferior_event): Ditto.
9549 (check_sigtramp2): Ditto.
9550 * blockframe.c (create_new_frame): Ditto.
9551 (get_prev_frame): Ditto.
9552 * ppc-linux-tdep.c: Update comments.
9553 * i386-linux-tdep.c: Update comments.
9554 * breakpoint.c (bpstat_what): Update comment.
9555
4867e41e
DM
95562002-04-24 David S. Miller <davem@redhat.com>
9557
21d83aa5
DM
9558 * i960-tdep.c (register_in_window_p): New function.
9559 (i960_find_saved_register): Use it instead of
9560 REGISTER_IN_WINDOW_P.
9561 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9562
4867e41e
DM
9563 * symtab.h (find_stab_function_addr): Kill extern.
9564 * minsyms.c (find_stab_function_addr): Remove from here...
9565 * dbxread.c: ... to here, and mark it static.
9566
69cdf6a2
DM
95672002-04-20 David S. Miller <davem@redhat.com>
9568
9569 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9570 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9571
5a595886
DM
95722002-04-21 David S. Miller <davem@redhat.com>
9573
9574 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9575 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9576 (vx_write_register): Likewise.
9577
1da1a192
JB
95782002-04-23 J. Brobecker <brobecker@gnat.com>
9579
9580 * source.c (is_regular_file): New function.
9581 (openp): Check wether file to open is a regular file
9582 to avoid opening directories.
9583
baa6f10b
JT
95842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9585
9586 * findvar.c (extract_signed_integer): Cast printf argument
9587 to suppress format warning.
9588 (extract_unsigned_integer): Likewise.
9589 * infcmd.c (registers_info): Likewise.
9590 * top.c (get_prompt_1): Likewise.
9591 * valops.c (value_assign): Likewise.
9592 * valprint.c (print_decimal): Likewise.
9593
b2c4da81
L
95942002-04-22 H.J. Lu (hjl@gnu.org)
9595
9596 * c-exp.y (typebase): Support
361d1df0 9597
b2c4da81
L
9598 [long|long long|short] [signed|unsigned] [int|]
9599
9600 and
9601
9602 signed [long|long long|short] int
9603
f267bd6a
JT
96042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9605
9606 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9607 and vax-tdep.h.
9608 * vax-tdep.h: New file.
9609 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9610 Make several routines static.
9611 (vax_get_saved_register): New function.
9612 (vax_gdbarch_init): New function.
9613 (_initialize_vax_tdep): Register vax_gdbarch_init.
9614 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9615 Remove macros now under the control of gdbarch.
9616
da3c6d4a
MS
96172002-04-22 Michael Snyder <msnyder@redhat.com>
9618
11d3b27d
MS
9619 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9620 Some whitespace and coding standards tweaks.
da3c6d4a 9621
a33f7558
JT
96222002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9623
9624 * vax-tdep.c: Include regcache.h.
9625 (vax_call_dummy_words): New.
9626 (sizeof_vax_call_dummy_words): New.
9627 (vax_fix_call_dummy): New function.
9628 (vax_saved_pc_after_call): Ditto.
9629 * config/vax/tm-vax.h: Don't include regcache.h.
9630 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9631 (CALL_DUMMY): Remove.
9632 (CALL_DUMMY_WORDS): Define.
9633 (SIZEOF_CALL_DUMMY_WORDS): Define.
9634 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9635
47a73475
MS
96362002-04-18 Michael Snyder <msnyder@redhat.com>
9637
9638 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9639
52efde73
JT
96402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9641
9642 * vax-tdep.c (vax_frame_chain): New function.
9643 (vax_push_dummy_frame): Ditto.
9644 (vax_pop_frame): Ditto.
9645 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9646 (FRAMELESS_FUNCTION_INVOCATION): Use
9647 generic_frameless_function_invocation_not.
9648 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9649 (POP_FRAME): Use vax_pop_frame.
9650
ea74468c
JT
96512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9652
9653 * vax-tdep.c (vax_store_struct_return): New function.
9654 (vax_extract_return_value): Ditto.
9655 (vax_store_return_value): Ditto.
9656 (vax_extract_struct_value_address): Ditto.
9657 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9658 vax_store_struct_return.
9659 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9660 (STORE_RETURN_VALUE): Use vax_store_return_value.
9661 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9662
5516aa92
JT
96632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9664
9665 * vax-tdep.c (vax_frame_saved_pc): New function.
9666 (vax_frame_args_address_correct): Ditto.
9667 (vax_frame_args_address): Ditto.
9668 (vax_frame_locals_address): Ditto.
9669 (vax_frame_num_args): Move code to be in proximity to
9670 other frame-related functions.
9671 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9672 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9673 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9674 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9675 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9676
36af0b35
L
96772002-04-22 H.J. Lu (hjl@gnu.org)
9678
9679 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9680 includedir.
9681
ab62c900
JT
96822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9683
9684 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9685 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9686 (FRAME_INIT_SAVED_REGS): New macro.
9687
7232b100
JT
96882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9689
9690 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9691
b70d2aee
JT
96922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9693
9694 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9695 where needed.
9696 (fetch_osf_core_registers): Likewise.
9697 (supply_gregset): Likewise.
9698
a0e8a2d1 96992002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9700
a0e8a2d1
JB
9701 * symfile.h (get_section_index): Define.
9702 * symfile.c (get_section_index): New function.
9703 * mdebugread.c (SC_IS_SBSS): New macro.
9704 (SC_IS_BSS): Return true for the scBss storage class only, as
9705 the scSBss storage class refers to the .sbss section.
9706 (parse_partial_symbols): Discard the symbols which associated
9707 section does not exist.
9708 Make sure to use the .sbss section index for symbols which
9709 storage class is scBss, rather than using the .bss section index.
9710
51eb8b08
JT
97112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9712
9713 * vax-tdep.c: Update copyright years.
9714 (vax_register_name): New function.
9715 (vax_register_byte): Ditto.
9716 (vax_register_raw_size): Ditto.
9717 (vax_register_virtual_size): Ditto.
9718 (vax_register_virtual_type): Ditto.
9719 * config/vax/tm-vax.h: Update copyright years.
9720 (REGISTER_NAMES): Remove.
9721 (REGISTER_NAME): Define.
9722 (REGISTER_BYTE): Use vax_register_byte.
9723 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9724 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9725 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9726
6cc1c0a8
AC
97272002-04-21 Andrew Cagney <ac131313@redhat.com>
9728
9729 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9730 declaration
9731 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9732
9319a2fe
DM
97332002-04-21 David S. Miller <davem@redhat.com>
9734
9735 * arch-utils.c (generic_prologue_frameless_p): Kill
9736 SKIP_PROLOGUE_FRAMELESS_P code.
9737 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9738 references.
9739 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9740 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9741 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9742 references.
9743 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9744 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9745 (sparc_gdbarch_init): Pass it to
9746 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9747
e9ed6d01
JT
97482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9749
9750 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9751 (alphabsd-nat.o): New dependency list.
9752
36012033
JT
97532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9754
9755 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9756 alphafbsd-tdep.c.
9757 (alpha-linux-tdep.o): New dependency list.
9758 (alphafbsd-tdep.o): Likewise.
9759
3379287a
JT
97602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9761
9762 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9763 to here...
9764 * alpha-tdep.c: ...from here.
9765 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9766
4bcbd6cb
JT
97672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9768
9769 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9770 prototype from here...
9771 * alpha-tdep.h: ...to here.
9772
b31da25e
AC
97732002-04-21 Andrew Cagney <ac131313@redhat.com>
9774
9775 * frame.h (selected_frame_level): Document as deprecated.
9776 (frame_relative_level): Declare.
9777 * stack.c (frame_relative_level): New function.
9778 (selected_frame_level): Document as deprecated.
9779 (select_frame): Do not set the selected_frame_level.
9780
9781 * stack.c (frame_info, record_selected_frame): Update.
9782 (frame_command, current_frame_command): Update.
9783 (up_silently_base, up_command, down_silently_base): Update.
9784 (down_command): Update.
9785 * inflow.c (kill_command): Update.
9786 * tracepoint.c (finish_tfind_command): Update.
9787 * corelow.c (core_open): Update.
9788 * thread.c (info_threads_command): Update.
9789 (do_captured_thread_select): Update.
9790 * infcmd.c (finish_command): Update.
9791 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9792
9c1d6fe5
JT
97932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9794
9795 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9796
ab89facf
AC
97972002-04-21 Andrew Cagney <ac131313@redhat.com>
9798
9799 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9800 type const.
9801
82a4efa1
JT
98022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9803
9804 * alphafbsd-tdep.c: Update copyright years. Include
9805 alpha-tdep.h.
9806 (alphafbsd_use_struct_convention): Make static.
9807 (alphafbsd_init_abi): New function.
9808 (_initialize_alphafbsd_tdep): New function.
9809 * config/alpha/tm-fbsd.h: Update copyright years.
9810 (USE_STRUCT_CONVENTION): Remove.
9811
44dffaac
JT
98122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9813
9814 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9815 an Alpha ABI variant.
9816 (alpha_abi_handler_list): Declare.
9817 (alpha_gdbarch_register_os_abi): New function.
9818 (alpha_gdbarch_init): Give registered ABI variant handlers a
9819 chance to tweak the gdbarch once we have set up defaults.
9820 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9821
65585be4
JT
98222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9823
9824 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9825 to standard_coerce_float_to_double.
9826 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9827
d9b023cc
JT
98282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9829
9830 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9831 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9832 from gdbarch_tdep rather than a constant.
9833 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9834 the default text address for all Alpha Unix ABIs.
9835 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9836 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9837
dc129d82
JT
98382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9839
9840 * alpha-tdep.h: New file. Includes several Alpha target constants
9841 taken from...
9842 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9843 let gdbarch deal with.
9844 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9845 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9846 to dependency list.
9847 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9848 Alpha target register names.
9849 * alphabsd-nat.c: Likewise.
9850 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9851 Alpha target register names. Make serveral routines static.
9852 (alpha_get_saved_register): New function.
9853 (alpha_abi_names): New.
9854 (process_note_abi_tag_sections): New function.
9855 (get_elfosabi): New function.
9856 (alpha_gdbarch_init): New function.
9857 (alpha_dump_tdep): New function.
9858 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9859
d49d1e0a
AC
98602002-04-21 Andrew Cagney <ac131313@redhat.com>
9861
9862 * frame.c (find_saved_register): Delete #ifdef
9863 HAVE_REGISTER_WINDOWS code.
9864 * config/sparc/tm-sparc.h: Update comments.
9865 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9866
92e8c9ed
AC
98672002-04-21 Andrew Cagney <ac131313@redhat.com>
9868
9869 * i960-tdep.c (i960_find_saved_register): New function.
9870 (i960_get_saved_register): New function.
9871 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9872 (i960_get_saved_register): Declare.
9873 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9874
e1925118
DM
98752002-04-20 David S. Miller <davem@redhat.com>
9876
9877 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9878
29673b29
AC
98792002-04-20 Andrew Cagney <ac131313@redhat.com>
9880
9881 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9882 instead of NUM_PSEUDO_REGS.
9883
6c86dcd5
DM
98842002-04-20 David S. Miller <davem@redhat.com>
9885
9886 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9887 GDB_MULTI_ARCH_PARTIAL
9888 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9889 define, let tm-sp64.h do it.
9890
aa40ec90
JT
98912002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9892
9893 * frame.c (find_saved_register): Avoid a NULL pointer
9894 dereference and actually walk the frame list.
9895
0f79675b
AC
98962002-04-20 Andrew Cagney <ac131313@redhat.com>
9897
9898 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9899 sorted in most most-recent-used order. Document.
9900 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9901
f91305dd 99022002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9903
9904 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9905 instead of ->prev.
9906 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9907 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9908 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9909 instead of ->prev.
9910
73d322b1
EZ
99112002-04-19 Elena Zannoni <ezannoni@redhat.com>
9912
9913 Fix PR gdb/471.
9914 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9915 (build_builtin_type_vec128): Ditto.
9916 (append_composite_type_field): Fix calculation of type length in
9917 union case.
9918
ccd9a834
EZ
99192002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9920
9921 * config/djgpp/README: Update.
9922
9923 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9924 compiler warnings.
9925
a57f9e49
JT
99262002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9927
9928 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9929 (alpha_setup_arbitrary_frame): ...to this.
9930 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9931 for alpha_setup_arbitrary_frame.
9932
f4f9705a
AC
99332002-04-18 Andrew Cagney <cagney@redhat.com>
9934
9935 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9936 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9937
f4f9705a
AC
9938 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9939 * target.h (memory_breakpoint_from_pc): Update declaration.
9940 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9941
9942 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9943 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9944 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9945 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9946 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9947 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9948 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9949 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9950 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9951 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9952 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9953 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9954
9955 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9956 const pointer.
9957 * monitor.c (monitor_insert_breakpoint): Ditto.
9958 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9959
9960 * config/mcore/tm-mcore.h: Update copyright.
9961 * mem-break.c: Ditto.
9962 * xstormy16-tdep.c: Ditto.
9963
29f319b8
PM
99642002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9965
9966 * p-exp.y: Add precedence rule for '^' token.
9967 This removes the shift/reduce conflicts.
9968 Remove the comment concerning these shift/reduce conflicts.
9969
ebeac11a
EZ
99702002-04-18 Elena Zannoni <ezannoni@redhat.com>
9971
9972 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9973 (registers_powerpc_nofp): New register set for processors
9974 without floating point unit.
9975
27c31547
DM
99762002-04-18 David S. Miller <davem@redhat.com>
9977
9978 * MAINTAINERS: Add myself to write-after-approval.
9979
47a73475
MS
99802002-04-17 Michael Snyder <msnyder@redhat.com>
9981
9982 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9983
953836b2
AC
99842002-04-17 Andrew Cagney <ac131313@redhat.com>
9985
9986 * rs6000-tdep.c (frame_initial_stack_address): Use
9987 frame_register_read to read the alloca_reg.
9988
8b0d4340
AC
99892002-04-17 Andrew Cagney <ac131313@redhat.com>
9990
9991 * frame.c (find_saved_register): Find saved registers in the next
9992 not prev frame.
9993 Fix PR gdb/365.
9994
d8864532
AC
99952002-04-17 Andrew Cagney <ac131313@redhat.com>
9996
9997 * gdbarch.sh (LANG): Set to ``c''.
9998
36cc83a3 99992002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10000
36cc83a3 10001 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10002
2f4150cc 100032002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10004
10005 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10006 Update copyright.
10007
628703c6 10008 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10009 Also fix PR gdb/391.
361d1df0 10010
56157b4a
AC
100112002-04-14 Andrew Cagney <ac131313@redhat.com>
10012
10013 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10014 * aclocal.m4, configure: Re-generate.
10015 Fix PR gdb/391.
361d1df0 10016
6d1e3329
EZ
100172002-04-14 Elena Zannoni <ezannoni@redhat.com>
10018
10019 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10020 instead of tm_print_insn.
10021
cb06fa07
EZ
100222002-04-14 Elena Zannoni <ezannoni@redhat.com>
10023
10024 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10025
f208ba17
AC
100262002-04-14 Andrew Cagney <ac131313@redhat.com>
10027
10028 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10029 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10030 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10031
20f01a46
DH
100322002-04-12 Don Howard <dhoward@redhat.com>
10033
10034 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10035 max_user_call_depth.
10036 (init_cmd_lists): Initialize the new value;
10037 * cli/cli-script.c (execute_user_command): Limit the call depth of
10038 user defined commands. This avoids a core-dump when user commands
10039 are infinitly recursive.
10040
a88376a3
KB
100412002-04-12 Kevin Buettner <kevinb@redhat.com>
10042
10043 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10044 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10045 from tdep struct instead of DEFAULT_LR_SAVE.
10046 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10047 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10048 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10049
f2172603
MS
100502002-04-12 Michael Snyder <msnyder@redhat.com>
10051
694f61fb 10052 * Remote.c: Spelling fix.
20fe79c8
MS
10053 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10054 If no symbol found for "sbrk", try "_sbrk".
10055 (make_output_phdrs): Use bfd_section_name.
10056 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10057 * eval.c: Indentation fix-ups.
169a7369
MS
10058 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10059 in case it gets applied to an address that is already
10060 in the instruction space.
de74f71f
MS
10061 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10062 * symfile.c: Fix indentation, long lines.
f2172603
MS
10063 * source.c: White space fix-up.
10064
cda5a58a
AC
100652002-04-12 Andrew Cagney <cagney@redhat.com>
10066
10067 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10068 * frame.c (frame_register_read): New function. Return non-zero on
10069 success.
10070 (read_relative_register_raw_bytes_for_frame): Delete.
10071 (read_relative_register_raw_bytes): Delete.
10072 * frame.h (frame_register_read): Declare.
10073 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10074 * sh-tdep.c: Ditto.
10075 * infcmd.c (do_registers_info): Ditto.
10076 * hppa-tdep.c: Ditto.
10077 * rs6000-tdep.c: Ditto.
10078 * h8500-tdep.c: Ditto.
10079 * mips-tdep.c: Ditto.
10080 * h8300-tdep.c: Ditto.
10081 * z8k-tdep.c: Ditto.
10082
2ea5f656
KB
100832002-04-12 Kevin Buettner <kevinb@redhat.com>
10084
10085 From Jimi X <jimix@watson.ibm.com>:
10086 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10087 64-bit SysV ABI.
10088
27b15785
KB
100892002-04-12 Kevin Buettner <kevinb@redhat.com>
10090
10091 From Jimi X <jimix@watson.ibm.com>:
10092 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10093 bfd info.
10094
5d57ee30
KB
100952002-04-12 Kevin Buettner <kevinb@redhat.com>
10096
10097 From Jimi X <jimix@watson.ibm.com>:
10098 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10099 register sets for these processor variants.
10100
bc1e36ca
DJ
101012002-04-11 Daniel Jacobowitz <drow@mvista.com>
10102
bc1e36ca
DJ
10103 * regformats/reg-ppc.dat: Support FPSCR.
10104
e3f36dbd
KB
101052002-04-11 Kevin Buettner <kevinb@redhat.com>
10106
10107 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10108 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10109 Add fpscr as an invalid/unfetchable register.
10110 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10111 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10112 (fill_fpregset): Add support for register fpscr.
10113 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10114 (fill_gregset): Account for the fact that register ``mq'' might
10115 not exist.
10116 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10117 (registers_power): Add fpscr to register set at slot 71.
10118 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10119 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10120
943c9c25
MS
101212002-04-11 Michael Snyder <msnyder@redhat.com>
10122
10123 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10124 * configure: Regenerate.
10125 * config.in: Regenerate.
10126 * acconfig.h: Add define for _SYSCALL32.
10127 * core-sol2.c: Remove #define _SYSCALL32.
10128 * solib-legacy.c: Remove #define _SYSCALL32.
10129
d8c0a2e7
AC
101302002-04-10 Andrew Cagney <ac131313@redhat.com>
10131
10132 * stack.c (select_frame): Cleanup internal error message, do not
10133 use %p.
10134
7cc19214
AC
101352002-04-10 Andrew Cagney <ac131313@redhat.com>
10136
10137 * stack.c (select_frame): Check that selected_frame and the
10138 specified level are as expected.
10139 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10140 Update copyright.
10141 * frame.h (struct frame_info): Add field `level'. Update
10142 copyright.
10143 Work-in-progress PR gdb/464.
10144
67a2b77e
AC
101452002-04-10 Andrew Cagney <ac131313@redhat.com>
10146
10147 * maint.c (maint_print_section_info): Rename print_section_info.
10148 (print_bfd_section_info, print_objfile_section_info): Update.
10149 * inferior.h (struct gdbarch): Add opaque declaration.
10150 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10151 * gdbarch.h: Regenerate.
10152
8cfda98c
ML
101532002-04-10 Michal Ludvig <mludvig@suse.cz>
10154
10155 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10156 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10157 (kernel_u_size): Added.
10158 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10159 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10160
ca439ad2 101612002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10162
ca439ad2
JI
10163 * valarith.c (find_size_for_pointer_math): New function, either returns
10164 the size for a pointer's target, returns 1 for void *, or errors for
10165 incomplete types.
10166 (value_add, value_sub): use find_size_for_pointer_math.
10167
2f2893d9
DJ
101682002-04-09 Daniel Jacobowitz <drow@mvista.com>
10169
10170 * linux-low.c (linux_look_up_symbols): New hook.
10171 (linux_target_ops): Add linux_look_up_symbols.
10172 * remote-utils.c (decode_address): New function.
10173 (look_up_one_symbol): New function.
10174 * server.c (handle_query): Call target look_up_symbols hook.
10175 * server.h (look_up_one_symbol): Add prototype.
10176 * target.h (struct target_ops): Add look_up_symbols hook.
10177
96cb11df
AC
101782002-04-09 Andrew Cagney <ac131313@redhat.com>
10179
10180 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10181 override FP_REGNUM with frame->fp. Update copyright.
10182 * parse.c (num_std_regs, std_regs): Delete.
10183 (target_map_name_to_register): Do not search std_regs. Update
10184 function description.
10185 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10186 declarations. Update copyright.
10187 Fix PR gdb/251.
361d1df0 10188
97658e92
DJ
101892002-04-09 Daniel Jacobowitz <drow@mvista.com>
10190
10191 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10192 after the last symbol in a block.
10193
6044e3eb
PM
101942002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10195
10196 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10197 is non zero as a found symbol.
10198
0406ec40
AC
101992002-04-08 Andrew Cagney <ac131313@redhat.com>
10200
10201 * findvar.c: Include "builtin-regs.h".
10202 (value_of_register): Call value_of_builtin_reg when applicable.
10203 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10204 (target_map_name_to_register): Call
10205 builtin_reg_map_name_to_regnum.
10206 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10207 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10208 (builtin_regs_h): Define.
10209 (builtin-regs.o): New target.
10210 (findvar.o): Add $(builtin_regs_h).
10211 * builtin-regs.c, builtin-regs.h: New files.
10212 * std-regs.c: New file.
10213 Partial fix for PR gdb/251.
10214
56a6dfb9
KB
102152002-04-08 Kevin Buettner <kevinb@redhat.com>
10216
10217 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10218 it's no longer required.
10219
3a808432
AC
102202002-04-08 Andrew Cagney <ac131313@redhat.com>
10221
10222 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10223
7c40d541
KB
102242002-04-08 Kevin Buettner <kevinb@redhat.com>
10225
10226 From Jimi X <jimix@watson.ibm.com>:
10227 * rs6000-tdep.c (rs6000_software_single_step): Use
10228 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10229 and size. Use target_insert_breakpoint() and
10230 target_remove_breakpoint() to insert and remove breakpoints
10231 instead of explicit memory reads and writes.
10232
cc9836a8
KB
102332002-04-08 Kevin Buettner <kevinb@redhat.com>
10234
10235 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10236 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10237 ELF_OBJECT_FORMAT ifdef.
10238
7495d1dc
KB
102392002-04-08 Kevin Buettner <kevinb@redhat.com>
10240
10241 From Jimi X <jimix@watson.ibm.com>:
10242 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10243
4288e836
KB
102442002-04-08 Kevin Buettner <kevinb@redhat.com>
10245
10246 From Jimi X <jimix@watson.ibm.com>:
10247 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10248 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10249
a4e4e501
MK
102502002-04-07 Mark Kettenis <kettenis@gnu.org>
10251
10252 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10253 s/asprintf/xasprintf/.
10254 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10255
006defba
AC
102562002-04-07 Andrew Cagney <ac131313@redhat.com>
10257
10258 I believe Jeff Law denies responsability for this one:
10259 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10260 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10261 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10262 Work-around for PR gdb/366.
10263
7aa83cac
EZ
102642002-04-07 Elena Zannoni <ezannoni@redhat.com>
10265
10266 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10267 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10268 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10269
cf1fcca1
EZ
102702002-04-07 Elena Zannoni <ezannoni@redhat.com>
10271
10272 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10273 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10274 information.
10275
3f289e6f
AC
102762002-04-07 Andrew Cagney <ac131313@redhat.com>
10277
10278 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10279 maintainer.
10280
129188f6
AC
102812002-04-07 Andrew Cagney <ac131313@redhat.com>
10282
10283 * README (Reporting Bugs in GDB): Document the bug web page as the
10284 prefered way of submitting bugs.
10285 Fix PR gdb/402.
10286
1200cd6e
AC
102872002-04-06 Andrew Cagney <ac131313@redhat.com>
10288
10289 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10290 -1. Update comment.
10291 * gdbarch.h, gdbarch.c: Re-generate.
10292
2853c33c
AS
102932002-04-07 Andreas Schwab <schwab@suse.de>
10294
10295 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10296 buffer to regcache_collect.
10297
c2169756
AC
102982002-04-06 Andrew Cagney <ac131313@redhat.com>
10299
10300 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10301 * gdbarch.c, gdbarch.h: Re-generate.
10302
25f1b008
AC
103032002-04-06 Andrew Cagney <ac131313@redhat.com>
10304
10305 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10306 declaration. Fix -Werror.
10307
59263426
DJ
103082002-04-05 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10311 * gdbarch.c: Regenerate.
10312
f5db4da3
MS
103132002-04-05 Michael Snyder <msnyder@redhat.com>
10314
80f8a6eb
MS
10315 * breakpoint.c (clear_command): Rewrite middle section to
10316 combine two loops with identical control conditions.
10317 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10318 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10319
ad3dcc5c
L
103202002-04-05 H.J. Lu (hjl@gnu.org)
10321
10322 * solib-svr4.c (bkpt_names): Add "__start".
10323
f32e7a74
AC
103242002-04-04 Andrew Cagney <ac131313@redhat.com>
10325
10326 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10327 as test for 64 bit target.
10328
8227c0ff
AC
103292002-04-05 Andrew Cagney <ac131313@redhat.com>
10330
10331 * h8500-tdep.c (h8500_write_fp): Delete function.
10332 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10333 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10334 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10336 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10337 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10338 (s390_write_fp):
10339 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10340 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10341 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10342 (d10v_write_fp): Delete function.
10343 * inferior.h (write_fp, generic_target_write_fp): Delete
10344 declarations.
10345 * regcache.c (generic_target_write_fp): Delete function.
10346 (write_fp): Delete function.
10347 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10348 * gdbarch.h, gdbarch.c: Regenerate.
10349 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10350 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10351 (sparc64_write_fp): Delete declaration.
10352 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10353 (h8500_write_fp): Delete declaration.
10354
2757dd86
AC
103552002-04-04 Andrew Cagney <ac131313@redhat.com>
10356
10357 * sparc-tdep.c (sparc64_write_fp): Delete.
10358 (sparc_push_dummy_frame): Replace write_fp call with code to store
10359 the FP directly.
10360 (sparc_gdbarch_init): Do not initialize write_fp.
10361
c69255e1
KB
103622002-04-05 Kevin Buettner <kevinb@redhat.com>
10363
10364 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10365 clause.
10366
ae767bfb
JB
103672002-03-29 Jim Blandy <jimb@redhat.com>
10368
10369 * stack.c (get_selected_block): Add new argument `addr_in_block',
10370 used to return the exact code address we used to select the block,
10371 not just the block.
10372 * blockframe.c (get_frame_block, get_current_block): Same.
10373 * frame.h (get_frame_block, get_current_block,
10374 get_selected_block): Update declarations.
10375 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10376 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10377
84d2ac95
MS
103782002-04-05 Michael Snyder <msnyder@redhat.com>
10379
10380 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10381 warning message.
10382
596aa3bf
JB
103832002-04-05 J. Brobecker <brobecker@gnat.com>
10384
10385 * utils.c (xfullpath): New function.
10386 * defs.h (xfullpath): Add declaration.
10387 * source.c (openp): Use xfullpath in place of gdb_realpath to
10388 avoid resolving the basename part of filenames when the
10389 associated file is a symbolic link. This fixes a potential
10390 inconsistency between the filenames known to GDB and the
10391 filenames it prints in the annotations.
10392 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10393 to be able to match a filename with either the real filename, or
10394 the name of any symbolic link to this file.
10395 (lookup_partial_symtab): Ditto.
10396
c02f5703
MS
103972002-04-04 Michael Snyder <msnyder@redhat.com>
10398
10399 * breakpoint.c: Add support for hardware breakpoints in overlays.
10400 (overlay_events_enabled): New state variable.
10401 (insert_breakpoints): Use overlay_events_enabled to decide
10402 whether to attempt to set a breakpoint at the overlay load addr.
10403 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10404 (remove_breakpoint): Use overlay_events_enabled to decide
10405 whether breakpoints need to be removed from overlay load addr.
10406 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10407 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10408 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10409 disable_overlay_breakpoints): Update overlay_events_enabled.
10410
5fb290d7
DJ
104112002-04-04 Daniel Jacobowitz <drow@mvista.com>
10412
10413 * dwarf2read.c (struct function_range): New.
10414 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10415 (check_cu_functions): New.
10416 (read_file_scope): Initialize global function lists.
10417 Call dwarf_decode_line after processing children.
10418 (read_func_scope): Add to global function list.
10419 (dwarf_decode_lines): Call check_cu_functions everywhere
10420 record_line is called. Call record_line with a linenumber
10421 of 0 to mark sequence ends.
10422
7b3fabf0
ML
104232002-04-04 Michal Ludvig <mludvig@suse.cz>
10424
361d1df0 10425 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10426 change sync with glibc.
10427
bce58c09
JB
104282002-04-03 Jim Blandy <jimb@redhat.com>
10429
10430 * configure.in: Call AC_C_INLINE.
10431 * configure: Regenerated.
361d1df0 10432
2fccf04a
DJ
104332002-04-01 Daniel Jacobowitz <drow@mvista.com>
10434
10435 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10436 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10437
2d1bfe2e
MK
104382002-03-31 Mark Kettenis <kettenis@gnu.org>
10439
a5941fbf
MK
10440 * NEWS: Mention gcore support on FreeBSD/i386.
10441
a90cd31d
MK
10442 * fbsd-proc.c: New file.
10443 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10444 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10445
2d1bfe2e
MK
10446 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10447 while statement.
10448
9eb6e5a1
JB
104492002-03-29 Jim Blandy <jimb@redhat.com>
10450
10451 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10452 unescaped newlines in string literals, but newer ones don't. So
10453 escape them.
10454
f02df580
MS
104552002-03-26 Michael Snyder <msnyder@redhat.com>
10456 Andrew Cagney <cagney@redhat.com>
10457
361d1df0 10458 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10459 restore file to memory.
10460 * cli/cli-dump.h: New file.
10461 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10462 * NEWS: Mention new commands.
f02df580 10463
109f874e
MS
104642002-03-28 Michael Snyder <msnyder@redhat.com>
10465
10466 * symfile.c (symbol_file_add): Move test for null symbols to later.
10467
520f6ade
AC
104682002-03-27 Andrew Cagney <ac131313@redhat.com>
10469
10470 From veksler at il.ibm.com:
10471 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10472 the xstrduped original path.
10473 Fix PR gdb/417.
10474
d4654627
MS
104752002-03-27 Michael Snyder <msnyder@redhat.com>
10476
10477 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10478 * infcmd.c (_initialize_infcmd): Ditto.
10479 * language.c (_initialize_language): Ditto.
10480 * symfile.c (_initialize_symfile): Ditto.
10481 * top.c (_init_main): Ditto.
10482 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10483
6be8bc0c
EZ
104842002-03-27 Elena Zannoni <ezannoni@redhat.com>
10485
10486 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10487 vector registers handling.
10488 (skip_prologue): Handle new AltiVec instructions. Fill in new
10489 fields of frame data.
10490 (frame_get_saved_regs): Fill in information for AltiVec registers.
10491
12af6855
JB
104922002-03-27 Jim Blandy <jimb@redhat.com>
10493
10494 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10495 a function; leave this macro here to invoke that function.
10496 (symbol_init_mangled_name): Declaration for that function.
10497 * symtab.c (symbol_init_mangled_name): New function.
10498
dc672865
AC
104992002-03-27 Andrew Cagney <ac131313@redhat.com>
10500
10501 * valarith.c: Replace strerror with safe_strerror.
10502 * tracepoint.c: Ditto.
10503 * lin-lwp.c: Ditto.
10504 * go32-nat.c: Ditto.
10505 * inflow.c: Ditto.
10506 * gnu-nat.c: Ditto.
10507
d96429cd
AS
105082002-03-27 Andreas Schwab <schwab@suse.de>
10509
10510 * event-top.c (command_line_handler): Remove useless if.
10511
7e336ba1
AJ
105122002-03-27 Andreas Jaeger <aj@suse.de>
10513
10514 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10515 comment.
10516
de220d0f
ML
105172002-03-27 Michal Ludvig <mludvig@suse.cz>
10518
10519 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10520 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10521 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10522 (x86_64_linux_dr_get_status, supply_gregset),
10523 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10524 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10525 (x86_64_register_info_table): Add.
10526 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10527 (x86_64_register_raw_size, x86_64_register_virtual_type),
10528 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10529 general x86_64_register_info_table.
10530 (i386_gdbarch_init): gdbarch_register_bytes is now set
10531 dynamicaly during initialization.
10532 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10533 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10534
0e98d0a7
DJ
105352002-03-27 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * gdbserver/server.c (main): Call target_signal_to_host_p
10538 and target_signal_to_host on signals received from the remote.
10539 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10540 target_signal_from_host on signals sent to the remote.
10541 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10542 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10543
3130066b
DJ
105442002-03-27 Daniel Jacobowitz <drow@mvista.com>
10545
10546 * signals/signals.c: Include "server.h" in gdbserver build.
10547 (target_signal_from_name): Don't use STREQ.
10548 (_initialize_signals): Likewise. Don't include function in
10549 gdbserver build.
10550
9aedf4f4
DJ
105512002-03-27 Daniel Jacobowitz <drow@mvista.com>
10552
10553 * signals.c: Moved to...
10554 * signals/signals.c: Here.
7e336ba1 10555 * Makefile (signals.o): Update.
9aedf4f4 10556
3fa41cdb
JL
105572002-03-26 Jeff Law (law@redhat.com)
10558
10559 * somread.c (som_symtab_read): Remove some commented out code and
10560 updated related comments. Do not set the minimal symbol table to
10561 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10562 in a dynamic executable.
10563 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10564 where we are unable to find the minimal symbol for the given
10565 PC value.
10566
ee677e8d
MS
105672002-03-25 Jeff Law (law@redhat.com)
10568
10569 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10570
e76e1718
ML
105712002-03-25 Michal Ludvig <mludvig@suse.cz>
10572
10573 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10574
18a642a1
AC
105752002-03-23 Andrew Cagney <ac131313@redhat.com>
10576
10577 * command.h: Update copyright.
10578 (struct cmd_list_element): Replace definition with opaque
10579 declaration.
10580 (enum cmd_types): Document that it will eventually be moved to
10581 cli/cli-decode.h
10582 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10583 (MALLOCED_REPLACEMENT): Delete macro.
10584 * Makefile.in (cli_decode_h): Add $(command_h).
10585 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10586 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10587 * completer.c: Include "cli/cli-decode.h".
10588 * maint.c: Include "cli/cli-decode.h".
10589 * cli/cli-decode.h: Include "command.h".
10590 (enum command_class): Delete.
10591 (enum cmd_types): Comment out.
10592 (enum cmd_auto_boolean): Delete.
10593 (enum var_types): Delete.
10594
b2875cc0
AC
105952002-03-23 Andrew Cagney <ac131313@redhat.com>
10596
10597 * cli/cli-decode.c: Include "gdb_assert.h".
10598 (add_set_or_show_cmd): New static function.
10599 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10600 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10601 all fields, such as func, from the set command.
10602
3b45974e
AC
106032002-03-23 Andrew Cagney <ac131313@redhat.com>
10604
10605 * MAINTAINERS (sh-elf): Change warning flag to -w.
10606
823ca731
AC
106072002-03-23 Andrew Cagney <cagney@redhat.com>
10608
10609 * defs.h (error): Add printf format attribute.
10610 * thread-db.c (thread_from_lwp): Fix error format string.
10611 * stack.c (parse_frame_specification): Ditto.
10612 * cli/cli-decode.c (undef_cmd_error): Ditto.
10613 * scm-lang.c (scm_lookup_name): Ditto.
10614 * tracepoint.c (trace_error): Ditto.
10615 * remote-utils.c (usage): Ditto.
10616 * remote.c (compare_sections_command): Ditto.
10617 Fix PR gdb/328.
10618
0e101458
AC
106192002-03-22 Andrew Cagney <ac131313@redhat.com>
10620
10621 * gdbtypes.c (append_composite_type_field): New function.
10622 (init_composite_type): New function.
10623 * gdbtypes.h (append_composite_type_field): Declare.
10624 (init_composite_type): Ditto.
10625
8e0662df
EZ
106262002-03-22 Elena Zannoni <ezannoni@redhat.com>
10627
10628 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10629 function.
8e0662df
EZ
10630 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10631 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10632 structure returning convention for SYSV ABI case, but not
10633 for GNU/Linux, FreeBSD, or NetBSD.
10634
3121eff0
DJ
106352002-03-22 Daniel Jacobowitz <drow@mvista.com>
10636
10637 * symtab.h (lookup_block_symbol): Add mangled_name argument
10638 to prototype.
10639
10640 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10641 with new mangled_name argument.
10642 * linespec.c (decode_line_1): Likewise.
10643 * valops (value_of_this): Likewise.
10644 * symtab.c (lookup_transparent_type): Likewise.
10645 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10646 (lookup_symbol): If we are given a mangled name, pass it down
10647 to lookup_symbol_aux.
10648 (lookup_block_symbol): If we are given a mangled name to check
10649 against, only return symbols which match it.
10650
349b409f
CF
106512002-03-22 Christopher Faylor <cgf@redhat.com>
10652
10653 * win32-nat.c (child_create_inferior): Check for proper shell to use
10654 here, in case the user changes it on the fly.
10655 (_initialize_inftarg): Remove shell path considerations.
10656
2a873819
EZ
106572002-03-21 Elena Zannoni <ezannoni@redhat.com>
10658
10659 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10660 for gdbarch_max_register_raw_size and max_register_virtual_size.
10661 Adjust copyright year.
10662
a1b9830c
DJ
106632002-03-21 Daniel Jacobowitz <drow@mvista.com>
10664
10665 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10666 in a function to cover the entire beginning of the function
10667 as well if it does not already.
10668
8b5790f2
TR
106692002-03-21 Tom Rix <trix@redhat.com>
10670
10671 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10672 (rs6000_ptrace64): Renamed from ptrace64.
10673
bdbe5747
MH
106742002-03-20 Martin M. Hunt <hunt@redhat.com>
10675
10676 * gdbserver/remote-utils.c (remote_open): Don't call
10677 getprotobyname, we're all using TCP here so just use
10678 IPPROTO_TCP.
7e336ba1 10679 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10680
106812002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10682
bdbe5747
MH
10683 * regcache.c (_initialize_regcache): No need to call
10684 build_regcache() at this time; it gets called whenever
10685 the gdbarch changes.
10686
7781cd62
DB
106872002-03-20 David O'Brien <obrien@FreeBSD.org>
10688
10689 * sparc-nat.c: Include sys/param.h where possible.
10690
f65ca430
DJ
106912002-03-20 Daniel Jacobowitz <drow@mvista.com>
10692
10693 Fix PR gdb/422.
10694 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10695 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10696 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10697 complex types.
10698 * stabsread.c (rs6000_builtin_type): Likewise.
10699 (read_sun_floating_type): Likewise.
10700
0c867556
PS
107012002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10702
10703 * stabsread.c (read_member_functions): Remove skip code for duplicate
10704 constructor/destructor methods. Use standard parsing for these
10705 methods and just do not chain them to the list of methods after
10706 parsing.
10707
12b9c64f
AO
107082002-03-19 Alexandre Oliva <aoliva@redhat.com>
10709
10710 * coffread.c: Remove redundant static declarations. Replace
10711 occurrences of `PTR' with `void *'.
10712 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10713 * top.h (quit_cover): Likewise.
10714 * defs.h (catch_errors): Likewise.
10715
349c5d5f
AC
107162002-03-18 Andrew Cagney <ac131313@redhat.com>
10717
10718 * defs.h (XMALLOC): Define.
10719 * gdb-events.sh (XMALLOC): Delete macro.
10720 * gdb-events.c, gdb-events.h: Regenerate.
10721 * gdbarch.sh (XMALLOC): Delete macro.
10722 * gdbarch.c: Regenerate.
10723 * serial.c (XMALLOC): Delete macro.
10724 * ui-file.c (XMALLOC): Ditto.
10725 * ser-unix.h (XMALLOC): Ditto.
10726 * sh-tdep.c (XMALLOC): Ditto.
10727 * ui-out.c (XMALLOC): Ditto.
10728 * utils.c (XMALLOC): Ditto.
10729 * i386-tdep.c (XMALLOC): Ditto.
10730 * gdb-events.c (XMALLOC): Ditto.
10731 * d10v-tdep.c (XMALLOC): Ditto.
10732 * cli-out.c (XMALLOC): Ditto.
10733
10734 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10735 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10736 * ui-file.c, ui-out.c: Ditto.
10737
7d0766f3
AC
107382002-03-18 Andrew Cagney <ac131313@redhat.com>
10739
10740 * command.h (struct cmd_list_element): Add field context.
10741 (set_cmd_context, get_cmd_context): Declare.
10742 * cli/cli-decode.h: Ditto.
10743 * cli/cli-decode.c (get_cmd_context): New function.
10744 (set_cmd_context): New function.
10745 (add_cmd): Initialize context.
10746 Part of fixing PR gdb/145 and PR gdb/146.
10747
5913bcb0
AC
107482002-03-17 Andrew Cagney <ac131313@redhat.com>
10749
1868c04e
AC
10750 * cli/cli-decode.c (cmd_type): New function.
10751 * command.h (cmd_type): Declare.
10752 * infrun.c (set_schedlock_func): Call function cmd_type.
10753 * kod.c (kod_set_os): Call cmd_type.
10754 * cris-tdep.c (cris_version_update): Use function cmd_type.
10755 (cris_mode_update, cris_abi_update): Ditto.
10756
5913bcb0
AC
10757 * command.h: (execute_cmd_post_hook): Declare.
10758 (execute_cmd_pre_hook): Declare.
10759 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10760 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10761 functions. Execute pre/post hook while ensuring that afterwords
10762 hook_in is cleared.
10763 * top.c (execute_command): Use execute_cmd_post_hook, and
10764 execute_cmd_pre_hook to execute pre/post commands.
10765 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10766 hook_stop_stub.
10767 (hook_stop_stub): Call execute_cmd_pre_hook.
10768
b51450c9
AC
107692002-03-17 Andrew Cagney <ac131313@redhat.com>
10770
10771 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10772 set'' and this leads to a core dump. Move xstrdup of
10773 operating_system to after check that it is not NULL.
10774
f66c9f11
AC
107752002-03-17 Andrew Cagney <ac131313@redhat.com>
10776
8e694ecf
AC
10777 * kod.c (kod_set_os): Remove unnecessary check that
10778 ``command->type'' is set_cmd.
10779
f66c9f11
AC
10780 * valprint.c (set_input_radix): Use input_radix.
10781 (set_output_radix): Use output_radix.
10782 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10783 isn't reverted.
10784
9d01611c
AC
107852002-03-16 Andrew Cagney <ac131313@redhat.com>
10786
10787 * value.h (struct value): Delete field ``substring_addr''. Change
10788 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10789 force_core_addr_align and force_pointer_aligh.
10790
10791 * value.h (struct value): Fix typo in above change.
9d01611c 10792
4156bb53
PS
107932002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10794
10795 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10796 to fix internal_error from ``maintenance print architecture''.
10797
0e5e3ea6
PS
107982002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10799
10800 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10801 for gcc versions after gcc-2.8.1.
10802
9b013045
PS
108032002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10804
10805 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10806 for method resolution. Restore adjustment of ``this'' pointer after
10807 calling value_struct_elt, which was accidentally removed during the
10808 HP merge.
10809
376c9600
AC
108102002-03-15 Andrew Cagney <ac131313@redhat.com>
10811
10812 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10813 value_of_register.
10814 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10815 get_saved_register.
10816 * value.h (value_of_register): Update.
10817
a4db0f07
RH
108182002-03-14 Richard Henderson <rth@redhat.com>
10819
10820 * configure.in: Detect declaration for canonicalize_file_name.
10821 * utils.c (canonicalize_file_name): Declare, if needed.
10822 (gdb_realpath): Prefer realpath if available and usable.
10823 * config.in, configure: Rebuild.
10824
96383835
RH
108252002-03-14 Richard Henderson <rth@redhat.com>
10826
10827 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10828 a constant array bound.
10829
10830 * MAINTAINERS: Add myself to write-after-approval.
10831
75245b24
MS
108322002-03-14 Michael Snyder <msnyder@redhat.com>
10833
10834 * symfile.c (syms_from_objfile): Return immediately if no syms.
10835 (symbol_file_add): Return immediately if no syms.
10836 (find_sym_fns): Return immediately if no syms.
10837
e641a1ca
ML
108382002-03-13 Michal Ludvig <mludvig@suse.cz>
10839
10840 * gdbserver/remote-util.c (remote_open): Print remote-side's
10841 IP address when remote debugging over the network.
7e336ba1 10842
df08bfec
DB
108432002-03-12 David O'Brien <obrien@FreeBSD.org>
10844
10845 * config/sparc/fbsd.mh: Fix copyright.
10846 * config/sparc/fbsd.mt: Likewise.
10847
9a57864f
RE
108482002-03-11 Richard Earnshaw <rearnsha@arm.com>
10849
10850 * MAINTAINERS: Fix typo in name of gdb warnings option.
10851 (x86-64): Fix formating so that this can be parsed by awk.
10852
dd7bf85e
DJ
108532002-03-10 Daniel Jacobowitz <drow@mvista.com>
10854
10855 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10856 * defs.h: Include "gdb/signals.h".
10857 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10858
33a0a2ac
ML
108592002-03-10 Michal Ludvig <mludvig@suse.cz>
10860
10861 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10862 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10863 from x86-64-tdep.h
10864
dd824b04
DJ
108652002-03-10 Daniel Jacobowitz <drow@mvista.com>
10866 Don Howard <dhoward@redhat.com>
10867
10868 * mips-tdep.c (ST0_FR): Define.
10869 (mips2_fp_compat): New function, temporarily disabled.
10870 (mips_read_fp_register_single): New function.
10871 (mips_read_fp_register_double): New function.
10872 (mips_print_register): Use them.
10873 (do_fp_register_row): Likewise.
10874
6a41ff59
AC
108752002-03-09 Andrew Cagney <ac131313@redhat.com>
10876
10877 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10878 approval''.
10879
4ea09c10
PS
108802002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10881
10882 * stabsread.c (read_member_functions): Fix is_stub test for
10883 static member functions, improve comment.
10884
6ccc741d
RE
108852002-03-07 Richard Earnshaw <rearnsha@arm.com>
10886
10887 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10888 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10889 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10890 commands that set boolean values.
10891 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10892 (arm_rdi_resume): Always initialize PC.
10893 (arm_rdi_open): Don't use rslt as a boolean.
10894 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10895 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10896 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10897 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10898
438013df
AO
108992002-03-06 Alexandre Oliva <aoliva@redhat.com>
10900
10901 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10902 * configure: Rebuilt.
10903
70ed8774
SC
109042002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10905
10906 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10907 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10908
5ba2abeb
AC
109092002-03-06 Andrew Cagney <ac131313@redhat.com>
10910
10911 * cli/cli-decode.c (set_cmd_completer): New function.
10912 * command.h (set_cmd_completer): Declare.
10913 * cli/cli-decode.h (set_cmd_completer): Ditto.
10914
10915 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10916 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10917 * win32-nat.c (_initialize_inftarg): Ditto.
10918 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10919 * proc-api.c (_initialize_proc_api): Ditto.
10920 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10921 * source.c (_initialize_source): Ditto.
10922 * exec.c (_initialize_exec): Ditto.
10923 * solib.c (_initialize_solib): Ditto.
10924 * top.c (init_main): Ditto.
10925 * tracepoint.c (_initialize_tracepoint): Ditto.
10926 * symfile.c (_initialize_symfile): Ditto.
10927 * printcmd.c (_initialize_printcmd): Ditto.
10928 * infcmd.c (_initialize_infcmd): Ditto.
10929 * corefile.c (_initialize_core): Ditto.
10930
f779ca99
AC
109312002-03-05 Andrew Cagney <ac131313@redhat.com>
10932
10933 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10934
01a3934b
AC
109352002-03-05 Andrew Cagney <ac131313@redhat.com>
10936
10937 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10938
37057839
AC
109392002-03-05 Andrew Cagney <ac131313@redhat.com>
10940
10941 * NEWS: Update headings, 5.2 has branched.
10942
c6ecbae5
DJ
109432002-03-04 Daniel Jacobowitz <drow@mvista.com>
10944
10945 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10946 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10947 (register_addr, REGISTER_RAW_SIZE): Likewise.
10948 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10949 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10950
e9f30c21
ML
109512002-03-03 Michal Ludvig <mludvig@suse.cz>
10952
10953 * MAINTAINERS (x86-64): Add myself.
10954 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10955 changed value_ptr -> struct value *
10956
54394ac3
DB
109572002-03-01 David O'Brien <obrien@FreeBSD.org>
10958
10959 * configure.host (sparc64-*-freebsd): Add.
10960 * configure.tgt: Likewise.
10961 * config/sparc/fbsd.mh: New file.
10962 * config/sparc/fbsd.mt: Likewise.
10963 * config/sparc/nm-fbsd.h: Likewise.
10964 * config/sparc/tm-fbsd.h: Likewise.
10965
bfe95955
DJ
109662002-03-01 Daniel Jacobowitz <drow@mvista.com>
10967
10968 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10969 regformats/reg-s390x.dat.
10970
f33c6cbf
AC
109712002-03-01 Andrew Cagney <ac131313@redhat.com>
10972
10973 * utils.c: Add FIXME explaining true/false problem.
10974
5ecaa7dd
AC
109752002-02-28 Andrew Cagney <ac131313@redhat.com>
10976
10977 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10978
2a251cc2
MC
109792002-02-28 Michael Chastain <mec@shout.net>
10980
10981 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10982
6a8031a3 109832002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10984
10985 * gdbserver/linux-s390-low.c: New file.
10986 * regformats/reg-s390.dat: New file.
10987 * regformats/reg-s390x.dat: New file.
10988 * gdbserver/configure.srv: Add S/390.
10989 * gdbserver/Makefile.in: Add S/390.
10990 * configure.tgt: Enable gdbserver for S/390.
10991
ac469903
EZ
109922002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10993
10994 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10995 first line of the doc string for "info dos", except at the end of
10996 the sentence, since the short help stops at the first period.
10997
985cb1a3
JM
109982002-02-28 Jason Merrill <jason@redhat.com>
10999
11000 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11001
c570663e
FF
110022002-02-27 Fred Fish <fnf@redhat.com>
11003
11004 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11005 comment (dumy -> dummy).
11006
43630227
PS
110072002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11008
11009 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11010
b84911e8
RB
110112002-02-27 Rodney Brown <rbrown64@csc.com.au>
11012
11013 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11014
58caa3dc
DJ
110152002-02-27 Daniel Jacobowitz <drow@mvista.com>
11016
11017 * gdbserver/acconfig.h: New file.
11018 * gdbserver/i387-fp.c: New file.
11019 * gdbserver/i387-fp.h: New file.
11020 * gdbserver/linux-x86-64.c: New file.
11021 * regformats/reg-x86-64.dat: New file.
11022 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11023 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11024 * gdbserver/configure.in: Add support for regsets.
11025 * gdbserver/config.in: Regenerate.
11026 * gdbserver/configure: Regenerate.
11027 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11028 * gdbserver/linux-low.h: New file.
11029 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11030 for regsets.
11031 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11032 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11033 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11034 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11035 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11036 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11037 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11038 "i387-fp.h". Add PTRACE_GETREGS and friends.
11039 * gdbserver/regcache.c (supply_register): New function.
11040 (supply_register_by_name): New function.
11041 (collect_register): New function.
11042 (collect_register_by_name): New function.
11043
93652174
DJ
110442002-02-27 Daniel Jacobowitz <drow@mvista.com>
11045
11046 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11047 (config.status): Add configure.srv dependency.
11048 (server_h): Add config.h dependency.
11049
a02e4a61
DJ
110502002-02-27 Daniel Jacobowitz <drow@mvista.com>
11051
11052 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11053 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11054 * gdbserver/configure.srv: Change i386-*-linux* to use
11055 reg-i386-linux.o.
11056
ce0eebec
AC
110572002-02-26 Andrew Cagney <ac131313@redhat.com>
11058
11059 * x86-64-tdep.c: Re-indent. Update copyright date.
11060
82dbc5f7
AC
110612002-02-26 Andrew Cagney <ac131313@redhat.com>
11062
11063 From Michal Ludvig <mludvig@suse.cz>:
11064 * x86-64-tdep.c (value.h): Delete.
11065 (gdb_assert.h): Include.
11066 (x86_64_register_convert_to_virtual,
11067 x86_64_register_convert_to_raw ): Add check which lets only
11068 floating-point values to be converted.
11069 (value_push): Delete.
11070 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11071 (i386_gdbarch_init): Number of register_bytes fixed.
11072
e4621584
AC
110732002-02-26 Andrew Cagney <ac131313@redhat.com>
11074
11075 * MAINTAINERS: Add x86-64 target.
11076
81a9a963
AC
110772002-02-26 Andrew Cagney <ac131313@redhat.com>
11078
11079 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11080 * osfsolib.c (solib_map_sections): Ditto.
11081 * irix5-nat.c (solib_map_sections): Ditto.
11082 * corelow.c (gdb_check_format): Ditto.
11083 * symfile.c (symfile_bfd_open): Ditto.
11084 * solib.c (solib_map_sections): Ditto.
11085 Fix PR gdb/354.
7e336ba1 11086
0f017ab9
AC
110872002-02-26 Andrew Cagney <ac131313@redhat.com>
11088
11089 * remote.c (_initialize_remote): By default, disable ``e'' and
11090 ``E'' step out-of-range packets.
11091
75738c29
AS
110922002-02-26 Andreas Schwab <schwab@suse.de>
11093
11094 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11095 m68k_linux_frame_saved_pc.
11096 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11097 in_sigtramp.
11098 (SIGCONTEXT_PC_OFFSET): Remove.
11099 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11100 m68k_linux_sigtramp_saved_pc): New functions.
11101 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11102 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11103 (UCONTEXT_PC_OFFSET): Define.
11104 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11105 non-RT and RT signal trampolines.
11106
7e8ed687
RE
111072002-02-26 Richard Earnshaw <rearnsha@arm.com>
11108
11109 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11110 (TARGET_NBPG, STACK_END_ADDR): Delete
11111 (VARIABLES_INSIDE_BLOCK): Delete.
11112
6972bc8b
AC
111132002-02-25 Andrew Cagney <ac131313@redhat.com>
11114
11115 * utils.c (perror_with_name): Make string parameter constant.
11116 (print_sys_errmsg): Ditto.
11117 (query): Ditto.
11118 * defs.h (perror_with_name): Update.
11119 (print_sys_errmsg): Update.
11120 (query): Update.
11121
aa32f823
DJ
111222002-02-25 Daniel Jacobowitz <drow@mvista.com>
11123
11124 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11125 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11126
19caaa45
PS
111272002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11128
11129 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11130 if it already matches the current architecture from the exec file.
11131 Include arch-utils.h for gdbarch_info_init prototype.
11132 * Makefile.in (rs6000-nat.o): Update dependencies.
11133
d951901f
EZ
111342002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11135
11136 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11137 list of exported variables.
11138
7ea81414
DJ
111392002-02-24 Daniel Jacobowitz <drow@mvista.com>
11140
11141 * gdbserver/configure.srv: New file.
11142 * gdbserver/configure.in: Use configure.srv instead
11143 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11144 from it.
11145 * gdbserver/configure: Regenerated.
11146 * gdbserver/terminal.h: New file.
11147 * gdbserver/Makefile.in: Update for configure changes. Remove
11148 more unneeded include paths.
11149
080fe24b
AC
111502002-02-24 Andrew Cagney <ac131313@redhat.com>
11151
11152 From wiz at danbala:
11153 * config/sparc/tm-sp64.h: Fix grammar and typos.
11154 Fix PR gdb/287.
11155
8605d56e
AC
111562002-02-24 Andrew Cagney <ac131313@redhat.com>
11157
11158 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11159 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11160 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11161 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11162 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11163 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11164 * s390-tdep.c: Ditto.
92362027
AC
11165 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11166 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11167 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11168 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11169 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11170 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11171 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11172 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11173 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11174 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11175 Fix PR gdb/378.
7e336ba1 11176
8ed32cc0
AC
111772002-02-23 Andrew Cagney <ac131313@redhat.com>
11178
a3007b6f
AC
11179 * lin-thread.c: Delete file.
11180 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11181 to gdb_proc_service.h.
11182 * configure: Re-generate.
11183
50a9e2f1
AC
11184 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11185 * serial.c (serial_open): Delete check for "ocd".
11186 Fix PR gdb/349.
11187
8b6e7932
AC
11188 * Makefile.in (linux-thread.o): Delete target.
11189 * linux-thread.c: Delete file.
11190
d155c46b
AC
11191 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11192 renamed SH files to be consistent.
11193
8ed32cc0
AC
11194 * symtab.c (sort_search_symbols): Use xfree.
11195
0e18d038
RE
111962002-02-23 Richard Earnshaw <rearnsha@arm.com>
11197
11198 * arm-linux-tdep.c (arm_linux_init_abi): Register
11199 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11200 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11201 definition with undef, since we don't want the sysvr4 definition.
11202 (SKIP_TRAMPOLINE_CODE): Likewise.
11203
27aac7ff
AC
112042002-02-23 Andrew Cagney <ac131313@redhat.com>
11205
11206 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11207
11208 * configure.in: (AC_CHECK_FUNCS) Added test for
11209 canonicalize_file_name Regenerated.
11210 * config.in, configure: Regenerated.
11211 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11212 defined use canonicalize_file_name.
7e336ba1 11213
65a6e0ee
MC
112142002-02-23 Michael Chastain <mec@shout.net>
11215
11216 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11217
47b95330
AC
112182002-02-23 Andrew Cagney <ac131313@redhat.com>
11219
11220 * README: Remove references to cygnus.com.
11221 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11222 dot com'' form. Remove references to cygnus.com and sourceware.
11223
696f451b
AC
112242002-02-23 Andrew Cagney <ac131313@redhat.com>
11225
11226 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11227 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11228 1003.1-2001 no longer allows "head -1".
11229 * gdb/Makefile.in (version.c): Likewise.
11230 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11231 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11232 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11233
bbaca940
AC
112342002-02-23 Andrew Cagney <ac131313@redhat.com>
11235
11236 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11237 * command.h (cmd_cfunc_eq): Declare.
11238 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11239
11240 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11241 ``struct cmd_list_element *''.
11242 * cli/cli-cmds.c (is_complete_command): Update. Use
11243 cmd_cfunc_eq.
11244 * top.c (execute_command): Pass the command to
11245 is_complete_command.
11246 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11247
b8b8b047
AC
112482002-02-23 Andrew Cagney <ac131313@redhat.com>
11249
11250 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11251 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11252 architecture defines.
11253 * s390-tdep.c (s390_gdbarch_init): Likewise.
11254
19d3fc80
RE
112552002-02-23 Richard Earnshaw <rearnsha@arm.com>
11256
11257 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11258 (arm_linux_push_arguments): Likewise.
11259 (arm_linux_init_abi): Register them. Also register linux-specific
11260 call_dummy_words.
11261 (find_minsym_and_objfile): Use strcmp, not STREQ.
11262 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11263 (arm_linux_call_dummy_words): Delete declaration.
11264 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11265 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11266 declarations.
11267 (LOWEST_PC): Delete.
11268
3ab13650
PS
112692002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11270
11271 * maint.c (print_section_info): Do not prepend `0x' to filepos
11272 output, it will be handled by local_hex_string_custom.
11273
19d3fc80 112742002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11275
11276 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11277 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11278 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11279
d85a5daf
JB
112802002-02-22 Jim Blandy <jimb@redhat.com>
11281
11282 Indicate that the bcache functions don't change the strings
11283 they're passed.
11284 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11285 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11286
eeb25b8a
PM
112872002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11288
11289 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11290
6badb179
CF
112912002-02-21 Christopher Faylor <cgf@redhat.com>
11292
11293 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11294 find the complete path to a loaded DLL.
11295
e8717518
FF
112962002-02-21 Fred Fish <fnf@redhat.com>
11297
11298 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11299 that marks the end of the range of a function, enter a line number
11300 entry that has a line number of zero and a PC offset that matches
11301 the end of the function. This starts a range of PC's for which no
11302 line number information is known.
11303 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11304 PC's for which no line number info is found (line number is zero)
11305 then we didn't find any valid line information.
11306 * symtab.h: Document use of zero line number entry.
11307
9abe5450
EZ
113082002-02-21 Elena Zannoni <ezannoni@redhat.com>
11309
11310 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11311 (have_ptrace_getvrregs): Define for run time checks.
11312 (gdb_vrregset_t): New type for Altivec register handling.
11313 (fetch_register, store_register): Fetch/store altivec register
11314 when needed.
11315 (fetch_altivec_register, store_altivec_register): New functions.
11316 (supply_vrregset, fill_vrregset): New functions.
11317 (fetch_altivec_registers, store_altivec_registers): New functions.
11318 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11319 registers as well.
11320
aaa38bb5
AJ
113212002-02-21 Jiri Smid <smid@suse.cz>
11322
11323 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11324
b34db576
RE
113252002-02-21 Richard Earnshaw <rearnsha@arm.com>
11326
11327 * Makefile.in (armnbsd-nat.o): Update dependencies.
11328 * armnbsd-nat.c (supply_gregset): New function. Common code to
11329 supply the integer register set.
11330 (supply_fparegset): New function. Similar for FPA registers.
11331 (fetch_regs, fetch_fp_regs): Use them.
11332 (fetch_core_registers): Likewise.
11333 (fetch_elfcore_registers): New function.
11334 (arm_netbsd_elfcore_fns): New core-file type specification.
11335 (_initialize_arm_netbsd_nat): Register it.
11336
3e56fc4b
RE
113372002-02-21 Richard Earnshaw <rearnsha@arm.com>
11338
11339 * armnbsd-nat.c: Include gdbcore.h.
11340 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11341 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11342 'void' to declaration, to shut up ARI.
11343 (fetch_core_registers): Make static. Rewrite using supply_register.
11344 (arm_netbsd_core_fns): New core-file type specification.
11345 (_initialize_arm_netbsd_nat): New function.
11346
097f6b0b
CF
113472002-02-21 Christopher Faylor <cgf@redhat.com>
11348
11349 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11350 value.
11351
c914e0cc
CF
113522002-02-20 Christopher Faylor <cgf@redhat.com>
11353
11354 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11355 fails.
11356
385fa495
DJ
113572002-02-20 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * jv-exp.y (parse_number): Change type of implicit longs
11360 to builtin_type_uint64.
11361
e5f1222d
DJ
113622002-02-20 Daniel Jacobowitz <drow@mvista.com>
11363
11364 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11365 to be an integer instead of a `union wait'.
11366
75c9abc6
DJ
113672002-02-20 Daniel Jacobowitz <drow@mvista.com>
11368
11369 * mips-linux-nat.c: Call the operating system GNU/Linux.
11370 * mips-linux-tdep.c: Likewise.
11371 * mips-tdep.c: Likewise.
11372
551792a5
DJ
113732002-02-20 Daniel Jacobowitz <drow@mvista.com>
11374
11375 Fix PR gdb/265.
11376 * jv-exp.y (parse_number): Handle 64-bit integers.
11377
ee6e2b82
DJ
113782002-02-20 Daniel Jacobowitz <drow@mvista.com>
11379
11380 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11381 AC_STDC_HEADERS to AC_HEADER_STDC.
11382 * gdbserver/configure: Regenerated.
11383
a48442a0
RE
113842002-02-20 Richard Earnshaw <rearnsha@arm.com>
11385
11386 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11387 is defined.
11388 * sparc-tdep.c (get_longjmp_target): Likewise.
11389
fe419ffc
RE
113902002-02-20 Richard Earnshaw <rearnsha@arm.com>
11391
11392 * News: Add news about ARM and Multi-arch. Mention the new target
11393 arm*-*-netbsd*.
11394
5832ed7e
JB
113952002-02-19 Jim Blandy <jimb@redhat.com>
11396
11397 * stabsread.c (error_type_complaint): Improve error message.
11398
84563040
DJ
113992002-02-19 Daniel Jacobowitz <drow@mvista.com>
11400
11401 * gdbserver/README: Update documentation.
11402 * gdbserver/configure.in: Update configury to match documentation.
11403 * gdbserver/Makefile.in: Likewise.
11404 * gdbserver/configure: Regenerated.
11405 * gdbserver/aclocal.m4: New file, generated by aclocal.
11406 * gdbserver/config.in: New file, generated by autoheader.
11407
375fd65b
RE
114082002-02-19 Richard Earnshaw <rearnsha@arm.com>
11409
11410 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11411 armnbsd-nat.c.
11412
08216dd7
RE
114132002-02-19 Richard Earnshaw <rearnsha@arm.com>
11414
11415 * arm-tdep.h (enum arm_float_model): New enum.
11416 (struct gdbarch_tdep): Add fp_model.
11417 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11418 up floating-point conversions until we know the floating-point model
11419 in use by the inferior. Don't complain about being unable to
11420 determine the ABI of the inferior when we don't have one.
11421 (arm_extract_return_value): Support different floating-point models.
11422 (arm_store_return_value): Likewise.
aaa38bb5 11423 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11424 ARM_FLOAT_SOFT.
11425 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11426
65d6d66a
PS
114272002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11428
11429 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11430 of ``current_gdbarch''.
11431
47221191
RE
114322002-02-19 Richard Earnshaw <rearnsha@arm.com>
11433
11434 * armnbsd-nat.c : ANSIfy all function declarations.
11435 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11436 (fetch_inferior_registers): Re-implement in terms of above.
11437 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11438 (store_inferior_registers): Re-implement in terms of above.
11439
fdf39c9a
RE
114402002-02-19 Richard Earnshaw <rearnsha@arm.com>
11441
aaa38bb5 11442 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11443 kernel.
11444 * arm-linux-tdep.c: Likewise.
11445 * config/arm/tm-linux.h: Likewise.
11446
93247f88
RE
114472002-02-19 Richard Earnshaw <rearnsha@arm.com>
11448
11449 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11450 * config/arm/nbsd.mt (TM_FILE): Delete.
11451 * config/arm/tm-nbsd.h: Delete.
11452
d7b486e7
RE
114532002-02-19 Richard Earnshaw <rearnsha@arm.com>
11454
11455 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11456 Initialize CALL_DUMMY_LENGTH.
11457
41d39a95
RE
114582002-02-19 Richard Earnshaw <rearnsha@arm.com>
11459
11460 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11461 function.
11462 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11463 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11464 defines one thing and that is incorrect for this port.
11465 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11466
e1195560
PM
114672002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11468
11469 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11470
c1748f97
PM
114712002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11472
11473 * win32-nat.c (display_selector): New function. Displays information
11474 about the information returned by GetThreadSelectorEntry API function.
11475 (display_selectors): New function. Displays the infomation of
11476 the selector given as argument, or of CS, DS ans FS selectors
11477 if no argument is given.
11478 ( _initialize_inftarg): Add "w32" as info prefix command.
11479 Add "info w32 selector" as command calling display_selectors.
11480
e41e6bbf
PM
114812002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11482
11483 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11484 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11485 if not defined.
11486
0d3a9f48
RE
114872002-02-18 Richard Earnshaw <rearnsha@arm.com>
11488
11489 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11490
3fb4b924
RE
114912002-02-18 Richard Earnshaw <rearnsha@arm.com>
11492
11493 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11494 (arm_fix_call_dummy): Call it.
11495 (arm_call_dummy_breakpoint_offset): Delete.
11496 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11497 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11498
7f55af32
AC
114992002-02-18 Andrew Cagney <ac131313@redhat.com>
11500
11501 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11502 Default to func_frame_chain_valid.
11503 * gdbarch.h, gdbarch.c: Re-generate.
11504 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11505
05f13b9c
EZ
115062002-02-18 Elena Zannoni <ezannoni@redhat.com>
11507
11508 * ppc-linux-nat.c: Update copyright.
11509 (fetch_register, store_register): Add tid parameter, don't compute
11510 tid here.
11511 (fetch_ppc_registers, store_ppc_registers): Add tid
11512 parameter. Pass it along to callees.
11513 (fetch_inferior_registers, store_inferior_registers): Compute tid
11514 here, and pass it to calleed functions.
11515 (fill_gregset, supply_fpregset): Clean up formatting.
11516
d7afb4c9
RE
115172002-02-18 Richard Earnshaw <rearnsha@arm.com>
11518
11519 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11520 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11521
9df628e0
RE
115222002-02-18 Richard Earnshaw <rearnsha@arm.com>
11523
11524 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11525 * gdbarch.c gdbarch.h: Regenerate.
11526 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11527 function.
11528 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11529 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11530 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11531
11532 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11533 * arm-tdep.c (arm_get_longjmp_target): New function.
11534 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11535 this to a positive value register arm_get_longjmp_target as the
11536 longjmp handler.
11537 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11538 (arm_linux_init_abi): Set up longjmp description in tdep.
11539 * armnbsd-nat.c (get_longjmp_target): Delete.
11540 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11541 description in tdep.
11542 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11543 (get_longjmp_target): Delete declaration.
11544 (GET_LONGJMP_TARGET): Delete.
11545 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11546 (GET_LONGJMP_TARGET): Delete.
11547
57bc8964
KB
115482002-02-17 Kevin Buettner <kevinb@redhat.com>
11549
11550 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11551 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11552 of ``current_gdbarch''.
11553
83d31a92
TT
115542002-02-17 Tom Tromey <tromey@redhat.com>
11555
11556 * cli/cli-cmds.c (compare_strings): New function.
11557 (complete_command): Only print each unique item once.
11558 * completer.h (complete_line): Declare.
11559 * completer.c (complete_line): New function.
11560 (line_completion_function): Use it.
11561
17ef5d92
AC
115622002-02-16 Andrew Cagney <ac131313@redhat.com>
11563
11564 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11565 * gdbarch.h, gdbarch.c: Re-generate.
11566
491b8946
DJ
115672002-02-16 Daniel Jacobowitz <drow@mvista.com>
11568
11569 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11570
115712002-02-16 Daniel Jacobowitz <drow@mvista.com>
11572
11573 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11574 * valops.c (value_arg_coerce): Don't take the address of a reference
11575 to convert an argument to a reference.
11576
dfe7f3ac
CF
115772002-02-15 Christopher Faylor <cgf@redhat.com>
11578
11579 * win32-nat.c (get_image_name): New function.
11580 (handle_load_dll): Use get_image_name function.
11581 (get_child_debug_event): Avoid registering debug events until possibly
11582 execed process is started.
11583 (child_create_inferior): Allow invocation via shell so that command
11584 line redirection, etc. works ok.
11585 (_initialize_inftarg): Add new command: "set shell" to control whether
11586 a shell is used to start a process.
11587
1d33e73a
DJ
115882002-02-15 Daniel Jacobowitz <drow@mvista.com>
11589
11590 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11591 instead of find_register_by_number.
11592 (cannot_store_register): Likewise.
11593
48cd0caa
PM
115942002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11595
aaa38bb5 11596 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11597 fprintf_unfiltered (gdb_stderr, ...).
11598
8656e7d8
DJ
115992002-02-15 Daniel Jacobowitz <drow@mvista.com>
11600
11601 * gdbserver/gdbserver.1: Document --attach.
11602
66e810cd
RE
116032002-02-15 Richard Earnshaw <rearnsha@arm.com>
11604
11605 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11606 descriptions.
11607 * arm-tdep.c (arm_default_arm_le_breakpoint)
11608 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11609 (arm_default_thumb_be_breakpoint): New. Initialize them from
11610 traditional breakpoint defines.
11611 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11612 (arm_gdbarch_init): Initialize new breakpoint variables.
11613 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11614 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11615 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11616 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11617 code out to ...
11618 (arm_netbsd_init_abi_common): ... here; new function.
11619 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11620 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11621 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11622 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11623
97e03143
RE
116242002-02-15 Richard Earnshaw <rearnsha@arm.com>
11625
11626 * arm-tdep.h (enum arm_abi): New enum.
11627 (struct gdbarch_tdep): New structure.
11628 (LOWEST_PC): Provide a default.
11629 (arm_gdbarch_register_os_abi): Declare new function.
11630 * arm-tdep.c (arm_abi_names): New array.
11631 (process_note_abi_tag_sections): New function.
11632 (get_elfosabi): New function.
11633 (arm_gdbarch_register_os_abi): New function.
11634 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11635 support for that ABI has been built in, then call the appropriate
11636 configuration routine. Use gdbarch_num_regs() to get the number
11637 of registers.
11638 (arm_dump_tdep): New function.
11639 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11640 place-holder functions.
11641 (_initialize_arm_tdep): Register them.
11642 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11643
11644 * armnbsd-tdep.c: New file.
11645 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11646 * config/arm/nbsd.mt (TDEPFILES): Add it.
11647 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11648
11649 * armnbsd-nat.c: Include regcache.h.
11650 * Makefile.in (armnbsd-nat.o): Update dependency list.
11651
11652 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11653
ad68be46
DJ
116542002-02-14 Daniel Jacobowitz <drow@mvista.com>
11655
11656 * gdbserver/Makefile.in: Fix typos in target rules.
11657
003d6d1d
DJ
116582002-02-14 Daniel Jacobowitz <drow@mvista.com>
11659
aaa38bb5 11660 Fix part of PR gdb/267.
003d6d1d
DJ
11661 * linespec.c (find_methods): Handle constructors specially for now.
11662
6b230f1b
CV
116632002-02-14 Corinna Vinschen <vinschen@redhat.com>
11664
11665 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11666 handling.
11667 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11668 standard_coerce_float_to_double().
11669
1ea98d12
CF
116702002-02-14 Christopher Faylor <cgf@redhat.com>
11671
11672 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11673 GDBINIT_FILENAME.
11674
dd47e6fd
EZ
116752002-02-14 Elena Zannoni <ezannoni@redhat.com>
11676
11677 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11678 find_variant_by_name, because it confuses the multiarch
11679 framework. Return NULL if there isn't an architecture with the
11680 user supplied name, instead of forcing a different one without
11681 recording the change with the multiarch machinery.
11682 (find_variant_by_name): Delete.
11683
d7e39b9e
PS
116842002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11685
11686 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11687 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11688
76e42a4f
MH
116892002-02-13 Martin M. Hunt <hunt@redhat.com>
11690
aaa38bb5 11691 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11692 print_frame_info_listing_hook, set current_source_symtab.
11693
0a30fbc4
DJ
116942002-02-14 Daniel Jacobowitz <drow@mvista.com>
11695
11696 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11697 and remove unused $(INCLUDE_DIR).
11698 Add regcache.c to OBS.
11699 Add generated register protocol files to clean target.
11700 Update dependencies for new objects, obsolete old target code.
11701
11702 * gdbserver/linux-low.c: Remove all platform-specific code to
11703 new files. Remove various dead code. Update to use regcache
11704 functionality.
11705 * gdbserver/remote-utils.c (fromhex): Add return statement
11706 to quiet warning.
11707 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11708 constant.
11709 (input_interrupt): Add integer parameter to match prototype
11710 of a signal handler.
11711 (outreg): Use register_data ().
11712 (prepare_resume_reply): Use gdbserver_expedite_regs.
11713 * gdbserver/server.c (main): Dynamically allocate own_buf because
11714 PBUFSIZ is no longer constant. Use registers_to_string () and
11715 registers_from_string ().
11716 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11717 for error (), fatal (), and warning (). Update definition of
11718 PBUFSIZ to use regcache functionality. Add include guard.
11719 * gdbserver/utils.c (fatal): Add missing ``const''.
11720 (warning): New function.
11721
11722 * regformats/regdat.sh: Include "regcache.h" in generated files.
11723 Provide init_registers () function.
11724 * regformats/regdef.h: Add prototype for set_register_cache ().
11725 Add include guard.
11726
11727 * gdbserver/linux-arm-low.c: New file.
11728 * gdbserver/linux-i386-low.c: New file.
11729 * gdbserver/linux-ia64-low.c: New file.
11730 * gdbserver/linux-m68k-low.c: New file.
11731 * gdbserver/linux-mips-low.c: New file.
11732 * gdbserver/linux-ppc-low.c: New file.
11733 * gdbserver/linux-sh-low.c: New file.
11734
11735 * gdbserver/regcache.c: New file.
11736 * gdbserver/regcache.h: New file.
11737
11738 * gdbserver/low-linux.c: Removed obsolete file.
11739
4cc841d0
DJ
117402002-02-14 Daniel Jacobowitz <drow@mvista.com>
11741
11742 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11743 * config/i386/linux.mt: Likewise.
11744 * config/ia64/linux.mt: Likewise.
11745 * config/m68k/linux.mh: Likewise.
11746 * config/powerpc/linux.mh: Likewise.
11747 * config/mips/linux.mt: Likewise.
11748
11749 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11750
11751 * config/i386/i386lynx.mh: Mark gdbserver variables
11752 as (currently) obsolete for this target.
11753 * config/i386/nbsd.mt: Likewise.
11754 * config/i386/nbsdelf.mt: Likewise.
11755 * config/m32r/m32r.mt: Likewise.
11756 * config/m68k/m68klynx.mh: Likewise.
11757 * config/m68k/nbsd.mt: Likewise.
11758 * config/m68k/sun3os4.mh: Likewise.
11759 * config/mips/vr5000.mt: Likewise.
11760 * config/ns32k/nbsd.mt: Likewise.
11761 * config/pa/hppabsd.mh: Likewise.
11762 * config/pa/hppaosf.mh: Likewise.
11763 * config/powerpc/nbsd.mt: Likewise.
11764 * config/rs6000/rs6000lynx.mh: Likewise.
11765 * config/s390/s390.mt: Likewise.
11766 * config/s390/s390x.mt: Likewise.
11767 * config/sparc/sparclynx.mh: Likewise.
11768 * config/sparc/sun4os4.mh: Likewise.
11769 * config/i386/x86-64linux.mt: Likewise.
11770 * config/sparc/linux.mh: Likewise.
11771
a85f51e7
DJ
117722002-02-14 Daniel Jacobowitz <drow@mvista.com>
11773
11774 * configure.tgt: Configure gdbserver only for known working
11775 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11776 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11777 SUBDIRS if it is configured. Update comment for ${nativefile}.
11778 * configure: Regenerated.
11779
65554fef
MS
117802002-02-13 Michael Snyder <msnyder@redhat.com>
11781
670a52db
MS
11782 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11783
6dbdc4a3
MS
11784 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11785 (default_gcore_mach): Just return 0, work around a problem in bfd.
11786 (default_gcore_target): OK to return NULL if exec_bfd is null.
11787 (make_mem_sec): Use a cast, avoid a warning.
11788
11789 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11790 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11791 sizeof (host pointer) != sizeof (target pointer)).
11792 (procfs_make_note_section): Avoid overflow in psargs string.
11793
aaa38bb5 11794 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11795 implementation return an error.
11796
117972002-02-13 Rodney Brown <rbrown64@csc.com.au>
11798
11799 * procfs.c (procfs_make_note_section): Provide a default definition
11800 (for alpha-dec-osf4.0f). Fix typos.
11801
1e4d76e7
EZ
118022002-02-13 Elena Zannoni <ezannoni@redhat.com>
11803
11804 * linux-proc.c: Add include of regcache.h.
11805 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11806
b6d1a1d5
AC
118072002-02-13 Andrew Cagney <ac131313@redhat.com>
11808
11809 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11810 * memattr.c (create_mem_region): Disallow useless empty region.
11811 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11812 non-overlapping.
b6d1a1d5 11813
6c6ea35e
MC
118142002-02-13 Michael Chastain <mec@shout.net>
11815
11816 * defs.h: Kill CONST_PTR.
11817 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11818 * c-lang.c (c_builtin_types): Likewise.
11819 * ch-lang.c (ch_builtin_types): Likewise.
11820 * f-lang.c (f_builtin_types): Likewise.
11821 * language.c (unknown_builtin_types): Likewise.
11822 * m2-lang.c (m2_builtin_types): Likewise.
11823 * p-lang.c (pascal_builtin_types): Likewise.
11824 * scm-lang.c (c_builtin_types): Likewise.
11825
3e0b0f48
KS
118262002-02-13 Keith Seitz <keiths@redhat.com>
11827
11828 * arm-tdep.h (arm_get_next_pc): Add declaration.
11829
67255d04
RE
118302002-02-13 Richard Earnshaw <rearnsha@arm.com>
11831
11832 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11833 with other related struct-returning functions.
11834 (arm_extract_struct_value_address): New function.
11835 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11836 initialize float_format, double_format and long_double_format as
11837 appropriate to the endianness of the target.
11838 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11839 (arm_use_struct_convention): Delete declaration.
11840 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11841
079777f6
KS
118422002-02-13 Keith Seitz <keiths@redhat.com>
11843
11844 * defs.h (core_addr_to_string_nz): New function.
11845
34588f23
MK
118462002-02-13 Mark Kettenis <kettenis@gnu.org>
11847
11848 Apply missing bits of 2002-01-15 patch.
11849 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11850 (fill_fpregset): Use i387_fill_fsave.
11851
49b563f9
KS
118522002-02-12 Keith Seitz <keiths@redhat.com>
11853
49b563f9
KS
11854 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11855 (core_addr_to_string_nz): New function.
11856
aeb98c60
RE
118572002-02-11 Richard Earnshaw <rearnsha@arm.com>
11858
11859 * arm-linux-nat.c: Really include arm-tdep.h.
11860 * config/arm/tm-linux.h (struct type, struct value): Declare.
11861
65554fef
MS
118622002-02-11 Michael Snyder <msnyder@redhat.com>
11863
11864 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11865 (gcore section): Ifdef for Solaris and Unixware only.
11866 (procfs_do_thread_registers): Unixware needs one lwpstatus
11867 per thread (not one prstatus or pstatus).
11868 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11869 not over all gdb threads. For unixware, call elfcore_write_pstatus
11870 once before iterating over threads.
11871
34e8f22d
RE
118722002-02-11 Richard Earnshaw <rearnsha@arm.com>
11873
11874 * arm-tdep.h: New file.
11875 * arm-tdep.c: Include arm-tdep.h.
11876 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11877 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11878 (arm_print_float_info, arm_register_type, convert_to_extended)
11879 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11880 (arm_extract_return_value, arm_register_name): Make static.
11881 (arm_software_single_step): Similarly. Fix types in declaration.
11882 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11883 (arm_store_return_value, arm_store_struct_return): New functions.
11884 (arm_gdbarch_init): Register the above functions. Also register
11885 call_dummy_start_offset, sizeof_call_dummy_words,
11886 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11887 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11888 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11889 prologue_cache.saved_regs here, rather than ...
11890 (_initialize_arm_tdep): ... here.
11891 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11892 declarations.
11893 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11894 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11895 (arm_print_float_info, arm_register_type, convert_to_extended)
11896 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11897 (arm_extract_return_value, arm_register_name): Delete declarations.
11898 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11899 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11900 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11901 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11902 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11903 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11904 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11905 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11906 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11907 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11908 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11909 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11910 interface.
11911 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11912 * remote-rdi.c remote-rdp.c: Likewise.
11913 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11914 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11915 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11916 definition.
11917
11918 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11919 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11920 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11921 from non-ARM_ prefixed definitions.
11922 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11923 all uses of above.
11924 * remote-rdi.c remote-rdp.c: Likewise.
11925 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11926
148754e5
RE
119272002-02-11 Richard Earnshaw <rearnsha@arm.com>
11928
11929 * arm-tdep.c (arm_frameless_function_invocation)
11930 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11931 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11932 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11933 (arm_pop_frame, arm_get_next_pc): Make static.
11934 (arm_gdbarch_init): Register above in gdbarch structure.
11935 (arm_read_fp): Renamed from arm_target_read_fp.
11936 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11937 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11938 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11939 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11940 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11941 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11942 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11943 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11944 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11945 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11946 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11947
434d2d4f
DJ
119482002-02-10 Daniel Jacobowitz <drow@mvista.com>
11949
11950 * symtab.c (compare_search_syms): New function.
11951 (sort_search_symbols): New function.
11952 (search_symbols): Sort symbols after searching rather than
11953 before.
11954
55241689
AC
119552002-02-10 Andrew Cagney <ac131313@redhat.com>
11956
11957 * NEWS: Linux -> GNU/Linux.
11958
028c194b
AC
119592002-02-10 Andrew Cagney <ac131313@redhat.com>
11960
11961 * gdbarch.sh: For for level one methods, disallow a definition
11962 when partially multi-arched. Add comments explaining rationale.
11963 * gdbarch.h: Re-generate.
11964
6acf50cd
AC
119652002-02-10 Andrew Cagney <ac131313@redhat.com>
11966
11967 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11968 multi-arch partial.
aaa38bb5 11969
50248794
AC
119702002-02-10 Andrew Cagney <ac131313@redhat.com>
11971
11972 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11973 field. Use diff -u.
11974 * gdbarch.c: Re-generate.
11975
c30e0066
AC
119762002-02-10 Andrew Cagney <ac131313@redhat.com>
11977
9b56c5f3 11978 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11979 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11980 partial.
11981
6e6d6484
AC
119822002-02-10 Andrew Cagney <ac131313@redhat.com>
11983
11984 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11985 multi-arch partial.
11986 (PUSH_ARGUMENTS): Switch to using predefault.
11987 * gdbarch.c: Regenerate.
11988
c203844d
AC
119892002-02-10 Andrew Cagney <ac131313@redhat.com>
11990
11991 * valops.c (PUSH_ARGUMENTS): Delete definition.
11992 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11993 partial. Default to default_push_arguments.
11994 * gdbarch.h, gdbarch.c: Regenerate.
11995
b5a2688f
AC
119962002-02-09 Andrew Cagney <ac131313@redhat.com>
11997
11998 * defs.h (throw_exception): Rename return_to_top_level. Update
11999 comments.
12000 * utils.c (error_stream, internal_verror, quit): Ditto.
12001 * top.c (throw_exception, catcher): Ditto.
12002 * sparclet-rom.c (sparclet_load): Ditto.
12003 * remote.c (interrupt_query, minitelnet): Ditto.
12004 * remote-sds.c (interrupt_query): Ditto.
12005 * remote-mips.c (mips_error, mips_kill): Ditto.
12006 * ocd.c (interrupt_query): Ditto.
12007 * monitor.c (monitor_interrupt_query): Ditto.
12008 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12009 * target.h: Update comment.
aaa38bb5 12010
b5a2688f 12011 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12012
2fa5c1e0
AC
120132002-02-09 Andrew Cagney <ac131313@redhat.com>
12014
12015 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12016 default_double_format.
12017 * gdbarch.h, gdbarch.c: Re-generate.
12018 * findvar.c (floatformat_unknown): Delete variable definition.
12019 * doublest.h (floatformat_unknown): Delete variable declaration.
12020
da966255
JB
120212002-02-09 Jim Blandy <jimb@redhat.com>
12022
12023 * stabsread.c (read_type): Add code to parse Sun's syntax for
12024 prototyped function types.
12025
123a4891
AC
120262002-02-09 Andrew Cagney <ac131313@redhat.com>
12027
12028 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12029 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12030
fb39c8f3
PS
120312002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12032
12033 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12034 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12035 now _initialize_xcoffsolib gets called again and overrides the
12036 commands from solib.c in a native configuration.
12037
0b87a11d
MK
120382002-02-09 Mark Kettenis <kettenis@gnu.org>
12039
12040 * doublest.c (store_typed_floating): Don't try to return a value.
12041 Fixes PR gdb/290.
12042
bdc2fc72
JB
120432002-02-08 Jim Blandy <jimb@redhat.com>
12044
12045 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12046 is prototyped and has no arguments, print its argument list as
12047 `(void)'.
12048
da69bbcf
CD
120492002-02-08 Chris Demetriou <cgd@broadcom.com>
12050
12051 * MAINTAINERS (write-after-approval): Add myself.
12052 (paper-trail): I've escaped!
aaa38bb5 12053
b69571f5
CF
120542002-02-08 Christopher Faylor <cgf@redhat.com>
12055
12056 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12057 changes.
12058 (_initialize_check_for_gdb_ini): Ditto.
12059
f6871398
MH
120602002-02-08 Martin M. Hunt <hunt@redhat.com>
12061
12062 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12063 xaprintf -> xasprintf.
12064
4e52d31c
PM
120652002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12066
12067 * win32-nat.c: Remove use of printf and sprintf functions.
12068
39bbf761
RE
120692002-02-08 Richard Earnshaw <rearnsha@arm.com>
12070
12071 * arm-tdep.c (arm_frame_chain_valid): Make static.
12072 (arm_push_arguments): Likewise.
12073 (arm_gdbarch_init): New function.
12074 (_initialize_arm_tdep): Call it.
12075 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12076 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12077 (FRAME_CHAIN_VALID): Delete.
12078 (arm_frame_chain_valid): Delete declaration.
12079 (PUSH_ARGUMENTS): Delete.
12080 (arm_push_arguments): Delete declaration.
12081 (CALL_DUMMY_P): Delete.
12082
9c9532c9
CV
120832002-02-08 Andrew Cagney <ac131313@redhat.com>
12084 Corinna Vinschen <vinschen@redhat.com>
12085
12086 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12087 on builtin float types.
12088
4e8f7a8b
DJ
120892002-02-08 Daniel Jacobowitz <drow@mvista.com>
12090
12091 * utils.c: Include <curses.h> before "bfd.h".
12092 * tui/tui-hooks.c: Likewise.
12093 * tui/tui.c: Likewise.
12094 * tui/tuiCommand.c: Likewise.
12095 * tui/tuiData.c: Likewise.
12096 * tui/tuiDataWin.c: Likewise.
12097 * tui/tuiDisassem.c: Likewise.
12098 * tui/tuiGeneralWin.c: Likewise.
12099 * tui/tuiIO.c: Likewise.
12100 * tui/tuiLayout.c: Likewise.
12101 * tui/tuiRegs.c: Likewise.
12102 * tui/tuiSource.c: Likewise.
12103 * tui/tuiSourceWin.c: Likewise.
12104 * tui/tuiStack.c: Likewise.
12105 * tui/tuiWin.c: Likewise.
12106
cd4bffcf
EZ
121072002-02-07 Elena Zannoni <ezannoni@redhat.com>
12108
12109 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12110 to include space for pseudoregs as well. Update loops accordingly.
12111 (sh_fp_frame_init_saved_regs): Ditto.
12112 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12113
26806ce2
AC
121142002-02-07 Andrew Cagney <ac131313@redhat.com>
12115
12116 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12117 Add Richard Earnshaw to Arm maintainers.
12118
97fdab62
AC
121192002-02-07 Andrew Cagney <ac131313@redhat.com>
12120
a6b98203
AC
12121 * defs.h (warning_begin): Delete declaration.
12122
97fdab62
AC
12123 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12124 Delete macro.
12125
78b29b40
MS
121262002-02-07 Michael Snyder <msnyder@redhat.com>
12127
aaa38bb5 12128 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12129 Logic bug, remove misplaced else.
12130
d8849953
KD
121312002-02-07 Klee Dienes <klee@apple.com>
12132
12133 * fork-inferior.c (fork_inferior): Add '!' to the list of
12134 characters that need to be quoted when building a string for the
12135 shell. Quote '!' specifically with a backslash, since CSH chokes
12136 when trying to evaluate "str!str".
aaa38bb5 12137
095778a0
NC
121382002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12139
12140 * rdi-share/host.h: Only provide a typedef for bool if it is not
12141 defined.
12142
1900040c
MS
121432002-02-04 Michael Snyder <msnyder@redhat.com>
12144
12145 * breakpoint.h (enum bptype): Add new overlay event bp type.
12146 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12147
1900040c
MS
12148 * breakpoint.c (create_internal_breakpoint): New function.
12149 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12150 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12151 (create_thread_event_breakpoint): Ditto.
12152 (create_solib_event_breakpoint): Ditto.
12153 (create_overlay_event_breakpoint): New function.
12154 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12155 (update_breakpoints_after_exec): Delete and re-initialize
12156 overlay event breakpoints after an exec. Add FIXME comment
12157 about longjmp breakpoint.
12158 (print_it_typical): Ignore overlay event breakpoints.
12159 (print_one_breakpoint): Ditto.
12160 (mention): Ditto.
12161 (bpstat_what): Do not stop for overlay event breakpoints.
12162 (delete_breakpoint): Don't delete overlay event breakpoints.
12163 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12164 (breakpoint_re_set): Re-create overlay event breakpoint.
12165
12166 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12167 (overlay_manual_command): Disable overlay breakpoints.
12168 (overlay_off_command): Disable overlay breakpoints.
12169
082fc60d
RE
121702002-02-06 Richard Earnshaw <rearnsha@arm.com>
12171
12172 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12173 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12174 to here from config/tm-arm.h.
12175 (coff_sym_is_thumb): Make static.
12176 (arm_elf_make_msymbol_special): New function.
12177 (arm_coff_make_msymbol_special): New function.
12178 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12179 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12180 (coff_sym_is_thumb): Delete declaration.
12181 (arm_elf_make_msymbol_special): Declare.
12182 (arm_coff_make_msymbol_special): Declare.
12183 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12184 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12185
039c5766
RE
121862002-02-06 Richard Earnshaw <rearnsha@arm.com>
12187
12188 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12189
121902002-02-06 Richard Earnshaw <rearnsha@arm.com>
12191
12192 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12193 * gdbarch.c gdbarch.h: Regenerate.
12194 * arch-utils.c (default_print_float_info): New function.
12195 * arch-utils.h (default_print_float_info): Prototype it.
12196 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12197 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12198 (PRINT_FLOAT_INFO): Document it.
12199
12200 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12201 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12202 (PRINT_FLOAT_INFO): Define.
12203
58fa08f0
PM
122042002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12205
aaa38bb5 12206 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12207 Add typecast to sprintf argument to suppress a warning.
12208
7393af7c
PM
122092002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12210
58fa08f0 12211 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12212 to allow easier handling of pass state.
12213 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12214 that gives exception name and address.
12215 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12216 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12217 exceptions added.
aaa38bb5
AJ
12218 (child_continue): Correctly report continue_status.
12219 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12220 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12221 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12222 the exception should be passed to debuggee or not.
12223
6af4589c
MS
122242002-02-05 Michael Snyder <msnyder@redhat.com>
12225
12226 * regcache.c (fetch_register): Call target_fetch_register
12227 only if we don't call FETCH_PSEUDO_REGISTER.
12228 (store_register): Call target_store_register only if we
12229 don't call STORE_PSEUDO_REGISTER.
12230
a2cf933a
EZ
122312002-02-05 Elena Zannoni <ezannoni@redhat.com>
12232
12233 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12234 ELF_MAKE_MSYMBOL_SPECIAL.
12235 * gdbarch.c, gdbarch.h: Regenerate.
12236 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12237 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12238 * elfread.c (elf_symtab_read): Compile use of
12239 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12240 multiarched.
12241 * coffread.c (coff_symtab_read): Ditto, for
12242 COFF_MAKE_MSYMBOL_SPECIAL.
12243
6bb7be43
JB
122442002-02-05 Jim Blandy <jimb@redhat.com>
12245
12246 * solib-svr4.c (svr4_truncate_ptr): New function.
12247 (svr4_relocate_section_addresses): Do the address arithmetic with
12248 the appropriate truncation for target addresses, even when
12249 CORE_ADDR is larger than a target address.
12250
e18651ec
DJ
122512002-02-05 Daniel Jacobowitz <drow@mvista.com>
12252
12253 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12254 to (int *).
12255
6b2725be
DJ
122562002-02-05 Daniel Jacobowitz <drow@mvista.com>
12257
12258 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12259 code.
12260
fca9e603
DJ
122612002-02-05 Daniel Jacobowitz <drow@mvista.com>
12262
12263 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12264
6c537a52
DJ
122652002-02-05 Daniel Jacobowitz <drow@mvista.com>
12266
12267 * gdbserver/linux-low.c: Remove unused include files.
12268
d844cde6
DJ
122692002-02-05 Daniel Jacobowitz <drow@mvista.com>
12270
12271 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12272 (read_inferior_memory): Use it.
12273 (write_inferior_memory): Likewise.
12274
d07c63e7
DJ
122752002-02-05 Daniel Jacobowitz <drow@mvista.com>
12276
12277 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12278 grubbing through sys_errlist.
12279
da6d8c04
DJ
122802002-02-05 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12283
5b421780
PM
122842002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12285 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12286
9f60d481
AC
122872002-02-04 Andrew Cagney <ac131313@redhat.com>
12288
12289 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12290 (do_sfunc, set_cmd_sfunc): New functions.
12291
12292 * command.h (struct cmd_list_element): Add field func.
12293 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12294 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12295 * cli/cli-decode.h: Ditto.
12296
12297 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12298 (help_all, help_cmd_list): Ditto.
12299 (find_cmd, complete_on_cmdlist): Ditto.
12300 * top.c (execute_command): Ditto.
12301
12302 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12303 function.sfunc.
12304
12305 * infcmd.c (notice_args_read): Fix function signature.
12306
12307 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12308 * cli/cli-decode.c (add_set_cmd): Ditto.
12309 * utils.c (initialize_utils): Ditto.
12310 * maint.c (_initialize_maint_cmds): Ditto.
12311 * infrun.c (_initialize_infrun): Ditto.
12312 * demangle.c (_initialize_demangler): Ditto.
12313 * remote.c (add_packet_config_cmd): Ditto.
12314 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12315 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12316 * proc-api.c (_initialize_proc_api): Ditto.
12317 * kod.c (_initialize_kod): Ditto.
12318 * valprint.c (_initialize_valprint): Ditto.
12319 * top.c (init_main): Ditto.
12320 * infcmd.c (_initialize_infcmd): Ditto.
12321 * corefile.c (_initialize_core): Ditto.
12322 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12323 * arch-utils.c (initialize_current_architecture): Ditto.
12324 (_initialize_gdbarch_utils): Ditto.
12325 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12326
12327 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12328 * wince.c (_initialize_inftarg): Ditto.
12329 * symfile.c (_initialize_symfile): Ditto.
12330 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12331 * language.c (_initialize_language): Ditto.
12332 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12333
f9ba0717
MS
123342002-02-04 Michael Snyder <msnyder@redhat.com>
12335
12336 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12337
0c74b2a7
DJ
123382002-02-04 Daniel Jacobowitz <drow@mvista.com>
12339
12340 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12341 Add rules for building the register data files.
12342
c638789f
DJ
123432002-02-04 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * regformats/regdat.sh: Add braces to the definition of
12346 expedite_regs_${arch}.
12347
db253027
DJ
123482002-02-04 Daniel Jacobowitz <drow@mvista.com>
12349
12350 * regformats/regdef.h (struct reg): Add comment describing the
12351 requirements for offset and size fields.
12352
206be19c
AS
123532002-02-04 Andreas Schwab <schwab@suse.de>
12354
12355 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12356 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12357
181c1381
RE
123582002-02-04 Richard Earnshaw <rearnsha@arm.com>
12359
12360 * gdbarch.sh (copyright): Update years in generated header.
12361 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12362 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12363 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12364 * dbxread.c: Likewise.
12365 * dwarfread.c: Likewise.
12366 * elfread.c: Likewise.
12367 * somread.c: Likewise.
12368
12369 * arm-tdep.c (arm_smash_text_address): New function.
12370 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12371
fa4ba8da
PM
123722002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12373
12374 Add support for hardware watchpoints on win32 native.
aaa38bb5 12375 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12376 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12377 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12378 of debug registers.
12379 (debug_registers_changed): New variable. Reflects when debug registers
12380 are changed and need to be written to inferior.
aaa38bb5 12381 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12382 was set, used when new threads are created.
12383 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12384 i386-nat code.
12385 (thread_rec): Set dr array if id is the thread of current_event .
12386 (child_continue, child_resume): Change the debug registers for all
12387 threads if debug_registers_changed.
12388 (child_add_thread): Change the debug registers if debug_registers_used.
12389 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12390 Link nm.h to new nm-cygwin.h file.
12391 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12392 of hardware registers.
12393
a73c86fb
AC
123942002-02-03 Andrew Cagney <ac131313@redhat.com>
12395
12396 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12397 Restore behavour broken by 2002-01-20 Andrew Cagney
12398 <ac131313@redhat.com> IEEE_FLOAT removal.
12399
acf5ed49
DJ
124002002-02-03 Daniel Jacobowitz <drow@mvista.com>
12401
12402 * c-valprint.c (c_val_print): Pass a proper valaddr to
12403 cp_print_class_method.
12404 * valops.c (search_struct_method): If there is only one method
12405 and args is NULL, return that method.
12406
493d28d5
DJ
124072002-02-03 Daniel Jacobowitz <drow@mvista.com>
12408
12409 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12410 accessing tag_name directly.
12411
7495dfdb
DJ
124122002-02-03 Daniel Jacobowitz <drow@mvista.com>
12413
12414 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12415 of accessing tag_name directly.
12416
dd6bda65
DJ
124172002-02-03 Daniel Jacobowitz <drow@mvista.com>
12418
12419 PR gdb/280
12420 * gdbtypes.c (replace_type): New function.
12421 * gdbtypes.h (replace_type): Add prototype.
12422 * stabsread.c (read_type): Use replace_type.
12423
88fe217c
RE
124242002-02-03 Richard Earnshaw <rearnsha@arm.com>
12425
12426 * Makefile.in (memattr.o): Add missing dependencies rule.
12427
e5d66720
PS
124282002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12429
12430 * breakpoint.c (break_at_finish_command): Really export.
12431 (break_at_finish_at_depth_command): Ditto.
12432 (tbreak_at_finish_command): Ditto.
12433 * hppa-tdep.c: Include completer.h.
12434 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12435 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12436
fffee0be
AC
124372002-02-01 Andrew Cagney <ac131313@redhat.com>
12438
12439 * utils.c (do_write): New function.
12440 (error_stream): Rewrite combining the code from error_begin and
12441 verror.
12442 (verror): Rewrite using error_stream.
12443 (error_begin): Delete function.
12444
255e7dbf
AC
124452002-02-01 Andrew Cagney <ac131313@redhat.com>
12446
12447 * utils.c (error_begin): Make static.
12448 * defs.h (error_begin): Delete declaration.
12449
12450 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12451 (decode_line_1): Use cplusplus_error instead of error_begin,
12452 cplusplus_hint and return_to_top_level.
12453 * coffread.c (coff_symfile_read): Use error instead of error_begin
12454 and return_to_top_level.
12455 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12456
ddfe3c15
AC
124572002-02-01 Andrew Cagney <ac131313@redhat.com>
12458
12459 * language.h (type_error, range_error): Make string parameter
12460 constant.
12461 * language.c (warning_pre_print): Delete extern declaration.
12462 * dwarfread.c (warning_pre_print): Ditto.
12463 * language.c (type_error, range_error): Rewrite to use verror and
12464 vwarning instead of warning_begin.
12465
03ac34d5
MS
124662002-02-01 Michael Snyder <msnyder@redhat.com>
12467
261c4ca2
MS
12468 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12469 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12470
e00d1dc8
AC
124712002-02-01 Andrew Cagney <ac131313@redhat.com>
12472
12473 * command.h (NO_FUNCTION): Delete macro.
12474 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12475 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12476 * tracepoint.c (_initialize_tracepoint): Ditto.
12477 * cli/cli-decode.c (add_set_cmd): Ditto.
12478 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12479
76b79d6e
DJ
124802002-02-01 Daniel Jacobowitz <drow@mvista.com>
12481
12482 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12483 Update ``this'' pointer when calling virtual functions.
12484
799f9e91
MS
124852002-02-01 Michael Snyder <msnyder@redhat.com>
12486
c7bd442c 12487 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12488 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12489
3cf384d4
DJ
124902002-02-01 Daniel Jacobowitz <drow@mvista.com>
12491
12492 * regformats/reg-arm.dat: New file.
12493 * regformats/reg-i386.dat: New file.
12494 * regformats/reg-ia64.dat: New file.
12495 * regformats/reg-m68k.dat: New file.
12496 * regformats/reg-mips.dat: New file.
12497 * regformats/reg-ppc.dat: New file.
12498 * regformats/reg-sh.dat: New file.
12499 * regformats/regdef.h: New file.
12500 * regformats/regdat.sh: New file.
12501
0defa245
RE
125022002-02-01 Richard Earnshaw <reanrsha@arm.com>
12503
12504 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12505 (arm_frame_args_address, arm_frame_locals_address): New functions.
12506 (arm_frame_num_args): New function.
12507 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12508 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12509 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12510
405f26e6
MS
125112002-01-31 Michael Snyder <msnyder@redhat.com>
12512
502fd408
MS
12513 * breakpoint.c (break_at_finish_command): Export.
12514 (break_at_finish_at_depth_command): Export.
12515 (tbreak_at_finish_command): Export.
d6020d45 12516 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12517 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12518 "txbreak" commands, which are HPPA specific.
502fd408 12519
7d35e135
MS
12520 * printcmd.c (disassemble_command): Remove an ancient
12521 artifact of an old merge.
12522
aaa38bb5 12523 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12524 Define enum constant values for overlay mode.
12525 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12526 (overlay_is_mapped, overlay_auto_command,
12527 overlay_manual_command): Ditto.
d874f1e2 12528
aaa38bb5
AJ
12529 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12530 breakpoint_here_p, breakpoint_inserted_here_p,
12531 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12532 describe_other_breakpoints, check_duplicates, clear_command):
12533 Coding standard fixes.
12534
8add0441 12535 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12536 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12537 code: check bfd SEC_READONLY flag for section.
12538
e351066e
AC
125392002-01-31 Andrew Cagney <ac131313@redhat.com>
12540
7d35e135 12541 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12542
8a48e967
DJ
125432002-01-30 Daniel Jacobowitz <drow@mvista.com>
12544
12545 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12546 data symbols, since we search based on textlow and texthigh.
12547 (find_pc_sect_symtab): Likewise.
12548
f5a96129
AC
125492002-01-30 Andrew Cagney <ac131313@redhat.com>
12550
12551 * defs.h (vwarning): Declare.
f5a96129
AC
12552 * utils.c (vwarning): New function.
12553 (warning): Call vwarning.
12554 (warning_begin): Delete function.
12555
12556 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12557 the warning message.
12558 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12559 warning_begin.
12560
cefd4ef5
MS
125612002-01-30 Michael Snyder <msnyder@redhat.com>
12562
1a703748
MS
12563 * NEWS: Mention "set trust-readonly-sections" command.
12564 Mention generate-core-file command.
cefd4ef5 12565
3a11626d
MS
125662002-01-15 Michael Snyder <msnyder@redhat.com>
12567
12568 * target.c: New command, "set trust-readonly-sections on".
12569 (do_xfer_memory): Honor the suggestion to trust readonly sections
12570 by reading them from the object file instead of from the target.
12571 (initialize_targets): Register command "set trust-readonly-sections".
12572
d1c7e53b
AC
125732002-01-29 Andrew Cagney <ac131313@redhat.com>
12574
12575 * parse.c (target_map_name_to_register): Simplify, search regs and
12576 pseudo-regs using a single loop.
12577
e2c9a72c
AC
125782002-01-30 Andrew Cagney <ac131313@redhat.com>
12579
12580 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12581
69824b4e
MK
125822002-01-15 Rodney Brown <rbrown64@csc.com.au>
12583
12584 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12585 * config/i386/i386v42mp.mh: Add i387-nat.o .
12586 * i386v4-nat.c: Include i387-nat.h.
12587 (supply_fpregset): Use i387_supply_fsave.
12588 (fill_fpregset): Use i387_fill_fsave.
12589
6eb69eab
RE
125902002-01-30 Richard Earnshaw <rearnsha@arm.com>
12591
12592 * arm-tdep.c (arm_call_dummy_words): Define.
12593 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12594 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12595 (CALL_DUMMY_WORDS): Define.
12596 (arm_call_dummy_words): Declare.
12597 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12598 (arm_linux_call_dummy_words): Declare.
12599
9852326a
AS
126002002-01-30 Andreas Schwab <schwab@suse.de>
12601
12602 * m68klinux-nat.c: Fix last change to use regcache_collect
12603 instead of referencing registers[] directly.
12604
977a3030
AC
126052002-01-29 Andrew Cagney <ac131313@redhat.com>
12606
12607 * parse.c (target_map_name_to_register): Delete code wrapped in
12608 #ifdef REGISTER_NAME_ALIAS_HOOK.
12609
2076c72b
MS
126102002-01-28 Michael Snyder <msnyder@redhat.com>
12611
12612 * regcache.c (legacy_read_register_gen): Need to be able to
12613 read pseudo-register as well as real register.
12614 (legacy_write_register_gen): Ditto.
12615
8fcc723b
AC
126162002-01-28 Andrew Cagney <ac131313@redhat.com>
12617
12618 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12619 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12620 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12621 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12622 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12623 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12624 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12625 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12626 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12627 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12628 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12629 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12630 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12631 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12632 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12633 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12634 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12635 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12636 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12637 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12638
afe64c1a
AC
126392002-01-28 Andrew Cagney <ac131313@redhat.com>
12640
12641 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12642 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12643 (initialize_current_architecture): Update target_byte_order using
12644 information from BFD.
aaa38bb5 12645 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12646 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12647
75bc7ddf
AC
126482002-01-28 Andrew Cagney <ac131313@redhat.com>
12649
12650 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12651 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12652
12653 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12654 #ifdef INVALID_FLOAT.
12655 * infcmd.c (do_registers_info): Ditto.
12656 * values.c (unpack_double): Ditto. Add comment.
12657
12658 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12659 already commented out.
12660
0280a90a
AS
126612002-01-26 Andreas Schwab <schwab@suse.de>
12662
12663 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12664 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12665 registers and add support for PTRACE_GETREGS.
12666
7072a954
AC
126672002-01-24 Andrew Cagney <ac131313@redhat.com>
12668
12669 GDB 5.1.1 released from 5.1 branch.
12670 * NEWS: Add 5.1.1 news.
12671 * README: Sync with 5.1 branch.
12672
86f902e0
FF
126732002-01-23 Fred Fish <fnf@redhat.com>
12674
12675 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12676 stabstring on initial malloc. Reallocing will copy it for us,
12677 if necessary.
12678
8af51c36
EZ
126792002-01-23 Elena Zannoni <ezannoni@redhat.com>
12680
aaa38bb5 12681 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12682 (HFILES_NO_SRCDIR): Remove hpread.h.
12683 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12684 (hpread.o): Update dependencies.
12685 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12686
12687 * hp-psymtab-read.c: Remove file.
12688 * hp-symtab-read.c: Remove file.
12689 * hpread.h: Remove file.
12690
12691 * hpread.c: Merge all contents of hp-psymtab-read.c,
12692 hp-symtab-read.c and hpread.h into this file, as it was prior to
12693 January 1999.
12694
12695 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12696 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12697 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12698 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12699
dc5cfeb6
EZ
127002002-01-23 Elena Zannoni <ezannoni@redhat.com>
12701
12702 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12703 fill_gregset): Call gdbarch_tdep() just once, assign result to
12704 variable and use that, instead of calling the function several
12705 times.
12706
ea87b71b
AO
127072002-01-24 Alexandre Oliva <aoliva@redhat.com>
12708
12709 * configure.host: Accept sparcv9 as alias for sparc64.
12710 * configure.tgt: Likewise.
12711
13fc0c2f
KB
127122002-01-22 Kevin Buettner <kevinb@redhat.com>
12713
12714 * solib-aix5.c (build_so_list_from_mapfile)
12715 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12716 arguments is not reversed.
12717 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12718 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12719
7bd872fe
EZ
127202002-01-22 Elena Zannoni <ezannoni@redhat.com>
12721
12722 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12723 modified version of obsolete sh_fetch_pseudo_register.
12724 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12725 (sh4_register_read): New function.
12726 (sh_pseudo_register_write): New function. Renamed and modified
12727 version of obsolete sh_store_pseudo_register.
12728 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12729 (sh4_register_write): New function.
12730 (sh_gdbarch_init): Remove setting of gdbarch function
12731 fetch_pseudo_register and store_pseudo_register. Remove setting of
12732 register_convert_to_raw, register_convert_to_virtual,
12733 register_convertible.
12734 (sh_sh4_register_convertible): Delete. No longer needed. All is
12735 taken care by architecture specific functions
12736 register_read/register_write.
12737 (sh_sh4_register_convert_to_virtual): Make static.
12738 (sh_sh4_register_convert_to_raw): Ditto.
12739
069e84fd
AC
127402002-01-22 Andrew Cagney <ac131313@redhat.com>
12741
12742 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12743 (floatformat_is_nan, floatformat_mantissa): Ditto.
12744
12745 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12746 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12747 builtin_type_ieee_double_little,
12748 builtin_type_ieee_double_littlebyte_bigword,
12749 builtin_type_m68881_ext, builtin_type_i960_ext,
12750 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12751 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12752 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12753 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12754
211a4f69
CV
127552002-01-22 Corinna Vinschen <vinschen@redhat.com>
12756
12757 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12758 parameter. Set frameless flag if it exists and depended of
12759 whether the scanned function is frameless or not.
12760 (xstormy16_skip_prologue): If function is frameless, return
12761 result of xstormy16_scan_prologue().
12762 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12763 call.
12764
f81353e4
EZ
127652002-01-21 Elena Zannoni <ezannoni@redhat.com>
12766
12767 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12768 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12769 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12770 sh_sh4_register_byte, sh_sh4_register_raw_size,
12771 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12772 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12773 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12774 sh_store_pseudo_register, sh_do_pseudo_register): Call
12775 gdbarch_tdep() just once, assign result to variable and use that,
12776 instead of calling the function several times.
12777
63c73a17
MK
127782002-01-20 Mark Kettenis <kettenis@gnu.org>
12779
12780 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12781 macros instead of LAST_FPU_CTRL_REGNUM.
12782 (store_register): Likewise.
12783
39ad761d
JB
127842002-01-21 Jim Blandy <jimb@redhat.com>
12785
12786 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12787 is up-to-date before running the program, not just when a program
12788 exits.
12789
3d74b771
FF
127902002-01-21 Fred Fish <fnf@redhat.com>
12791
12792 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12793 when we have found all instructions we are looking for.
12794
966fbf70
RE
127952002-01-21 Richard Earnshaw <rearnsha@arm.com>
12796
12797 * arm-tdep.c (arm_register_name): New function.
12798 (arm_registers_names): Make static.
12799 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12800 (arm_register_name): Declare.
12801 (REGISTER_NAME): Use it.
12802
c3b4394c
RE
128032002-01-21 Richard Earnshaw <rearnsha@arm.com>
12804 Kevin Buettner <kevinb@redhat.com>
12805
12806 Convert arm targets to new FRAME interface.
12807 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12808 (arm_frame_find_save_regs): Delete.
12809 (arm_frame_init_saved_regs): New.
12810 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12811 Allocate extra_info as required. Convert all uses of fsr.regs
12812 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12813 to use extra_info.
12814 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12815 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12816 (check_prologue_cache, save_prologue_cache): Likewise.
12817 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12818 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12819 (FRAME_FIND_SAVED_REGS): Delete.
12820 (arm_frame_find_saved_regs): Delete prototype.
12821 (arm_frame_init_saved_regs): New prototype.
12822 (FRAME_INIT_SAVED_REGS): Define.
12823
61d99182
AC
128242002-01-20 Andrew Cagney <ac131313@redhat.com>
12825
12826 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12827
6aaea291
AC
128282002-01-20 Andrew Cagney <ac131313@redhat.com>
12829
12830 From Jeff Law <law@redhat.com>:
12831 * infttrace.c: Include <sys/pstat.h>.
12832 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12833 exec file if the ttrace equivalent fails.
12834
15f698d2
AC
128352002-01-20 Andrew Cagney <ac131313@redhat.com>
12836
12837 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12838 (closeLogFile): Ditto.
12839
f86ddd7c
MC
128402002-01-20 Michael Chastain <mec@shout.net>
12841
12842 * top.c (print_gdb_version): Bump copyright year to 2002.
12843
904507ce
AC
128442002-01-20 Andrew Cagney <ac131313@redhat.com>
12845
12846 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12847 Zannoni and Eli Zaretskii.
12848
d7f0b9ce
DJ
128492002-01-20 Daniel Jacobowitz <drow@mvista.com>
12850
12851 * buildsym.c: Update copyright years.
12852 * c-typeprint.c: Likewise.
12853 * dwarf2read.c: Likewise.
12854 * f-typeprint.c: Likewise.
12855 * gdbtypes.c: Likewise.
12856 * gdbtypes.h: Likewise.
12857 * hp-symtab-read.c: Likewise.
12858 * hpread.c: Likewise.
12859 * mdebugread.c: Likewise.
12860 * p-typeprint.c: Likewise.
12861
3fd3d7d2
AC
128622002-01-20 Andrew Cagney <ac131313@redhat.com>
12863
12864 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12865 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12866 byte-order selectable.
12867 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12868 * arch-utils.c: Ditto.
12869 (set_endian): Ditto.
12870 (set_endian_from_file): Ditto.
12871 * gdbserver/low-sim.c (create_inferior): Ditto.
12872 * gdbarch.sh: Ditto.
12873 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12874 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12875 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12876 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12877 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12878 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12879 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12880 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12881 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12882 macro definition.
12883 * config/mips/tm-wince.h: Remove #undef of macro
12884 TARGET_BYTE_ORDER_SELECTABLE.
12885 * config/sh/tm-wince.h: Ditto.
12886
b02dede2
DJ
128872002-01-20 Daniel Jacobowitz <drow@mvista.com>
12888
12889 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12890 member function fields. Add accessor macro
12891 TYPE_FN_FIELD_ARTIFICIAL.
12892 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12893 * c-typeprint.c (c_type_print_base): Skip artificial member
12894 functions.
12895
c3643761
DJ
128962002-01-20 Daniel Jacobowitz <drow@mvista.com>
12897
12898 * f-typeprint.c: Delete unused function f_type_print_args.
12899 * p-typeprint.c: Delete unused function pascal_type_print_args.
12900
8176bb6d
DJ
129012002-01-20 Daniel Jacobowitz <drow@mvista.com>
12902
12903 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12904 comment. Add ``artificial'' to ``union field_location''.
12905
12906 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12907
12908 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12909 * mdebugread.c (parse_symbol): Likewise.
12910 * stabsread.c (define_symbol): Likewise.
12911 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12912 initializing TYPE_FIELD_BITPOS to n (obsolete).
12913 (hpread_doc_function_type): Likewise.
12914 * hpread.c (hpread_function_type): Likewise.
12915
7fd60527
AC
129162002-01-20 Andrew Cagney <ac131313@redhat.com>
12917
12918 * configure.in (host_makefile_frag): Only require a host makefile
12919 fragment when a native build.
12920 * configure: Re-generate.
12921
c2f05ac9
AC
129222002-01-20 Andrew Cagney <ac131313@redhat.com>
12923
12924 * doublest.h (floatformat_from_type): Declare.
12925 * doublest.c (floatformat_from_type): New function.
12926 (convert_typed_floating): Use.
12927
12928 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12929 call to function floatformat_from_type.
12930
12931 * gdbarch.sh (IEEE_FLOAT): Delete.
12932 * gdbarch.h, gdbarch.c: Re-generate.
12933 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12934 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12935 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12936 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12937 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12938 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12939 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12940 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12941 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12942 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12943 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12944 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12945
12946 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12947 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12948 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12949 * sh-tdep.c (sh_gdbarch_init): Ditto.
12950 * mips-tdep.c (mips_gdbarch_init): Ditto.
12951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12952 * cris-tdep.c (cris_gdbarch_init): Ditto.
12953
abf22e64
AJ
129542002-01-20 Jiri Smid <smid@suse.cz>
12955
12956 * configure.host, configure.tgt: Support x86-64.
12957 * NEWS: Note new target x86-64.
12958
b7c4cbf8
AJ
12959 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12960 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12961 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12962 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12963 x86-64-linux-nat.o): Fix dependencies.
12964
82600034
AC
129652002-01-19 Andrew Cagney <ac131313@redhat.com>
12966
12967 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12968 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12969 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12970 * config/sparc/xm-sun4os4.h: Delete file.
12971 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12972
bbe5c628
AC
129732002-01-19 Andrew Cagney <ac131313@redhat.com>
12974
12975 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12976 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12977 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12978 * config/i386/i386lynx.mh (XM_FILE): Delete.
12979 * config/rs6000/xm-rs6000ly.h: Delete file.
12980 * config/sparc/xm-sparclynx.h: Delete file.
12981 * config/m68k/xm-m68klynx.h: Delete file.
12982 * config/i386/xm-i386lynx.h: Delete file.
12983 * config/xm-lynx.h: Delete file.
12984 * config/djgpp/fnchange.lst: Update.
12985
f8453e34
JT
129862002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12987
12988 * alpha-tdep.c (alpha_register_byte): New function.
12989 (alpha_register_raw_size): Ditto.
12990 (alpha_register_virtual_size): Ditto.
12991 (alpha_skip_prologue_internal): Renamed from
12992 alpha_skip_prologue.
12993 (alpha_skip_prologue): New version that calls
12994 alpha_skip_prologue_internal.
12995 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12996 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12997 second argument from alpha_skip_prologue.
12998 (REGISTER_BYTE): Use alpha_register_byte.
12999 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13000 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13001 (FRAMELESS_FUNCTION_INVOCATION): Use
13002 generic_frameless_function_invocation_not.
13003 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13004 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13005
52d9e613
AC
130062002-01-19 Andrew Cagney <ac131313@redhat.com>
13007
13008 * config/mips/xm-news-mips.h: Delete file.
13009 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13010
13011 * config/m88k/xm-m88k.h: Delete file.
13012 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13013 * config/m88k/xm-delta88v4.h: Ditto.
13014 * config/m88k/xm-delta88.h: Ditto.
13015
13016 * config/alpha/xm-fbsd.h: Delete file.
13017 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13018
13019 * config/sparc/xm-sparc.h: Delete file.
13020 * Makefile.in (xm-sun4os4.h): Delete dependency.
13021 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13022 * config/sparc/xm-sun4os4.h: Ditto.
13023 * config/sparc/xm-linux.h: Ditto.
13024
13025 * config/i386/xm-windows.h: Delete file.
13026
2d1b2124
AC
130272002-01-19 Andrew Cagney <ac131313@redhat.com>
13028
13029 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13030 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13031
ee1f65f0
JT
130322002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13033
13034 * alpha-tdep.c (alpha_call_dummy_words): New.
13035 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13036 (CALL_DUMMY_P): Define.
13037 (CALL_DUMMY_WORDS): Define.
13038 (SIZEOF_CALL_DUMMY_WORDS): Define.
13039
98081e55
PB
130402002-01-19 Per Bothner <per@bothner.com>
13041
13042 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13043 isn't NULL, which can happen with some gcj-3.x-produced code.
13044
0d056799
JT
130452002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13046
13047 * alpha-tdep.c (alpha_register_virtual_type): New function.
13048 (alpha_init_frame_pc_first): Ditto.
13049 (alpha_fix_call_dummy): Ditto.
13050 (alpha_store_struct_return): Ditto.
13051 (alpha_extract_struct_value_address): Ditto.
13052 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13053 alpha_register_virtual_type.
13054 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13055 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13056 alpha_extract_struct_value_address.
13057 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13058 (INIT_FRAME_PC): Use init_frame_pc_noop.
13059 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13060
4604bcad
MK
130612002-01-19 Mark Kettenis <kettenis@gnu.org>
13062
13063 * i386gnu-nat.c: Include "i386-tdep.h".
13064 (fetch_fpregs): Simplify code dealing with uninitialized floating
13065 point states such that it doesn't require FP7_REGNUM.
13066
140f9984
JT
130672002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13068
abf22e64
AJ
13069 * alpha-tdep.c (frame_extra_info): New.
13070 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13071 frame->extra_info.
13072 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13073 (alpha_frame_saved_pc): Use frame->extra_info.
13074 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13075 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13076 (init_extra_frame_info): Rename to...
13077 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13078 (alpha_print_extra_frame_info): New function.
140f9984
JT
13079 (alpha_frame_locals_address): Ditto.
13080 (alpha_frame_args_address): Ditto.
abf22e64 13081 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13082 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13083 alpha_frame_args_address.
abf22e64 13084 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13085 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13086 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13087 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13088 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13089 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13090
d734c450
JT
130912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13092
13093 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13094 (alpha_cannot_fetch_register): Ditto.
13095 (alpha_cannot_store_register): Ditto.
13096 (alpha_register_convertible): Ditto.
13097 (alpha_use_struct_convention): Ditto.
13098 * config/alpha/tm-alpha.h: Update copyright years.
13099 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13100 (INNER_THAN): Use core_addr_lessthan.
13101 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13102 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13103 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13104 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13105 (FRAME_CHAIN): Remove unnecessary cast.
13106
b4ceaee6
AC
131072002-01-18 Andrew Cagney <ac131313@redhat.com>
13108
13109 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13110 obsolete.
13111
0a65a603
AC
131122002-01-18 Andrew Cagney <ac131313@redhat.com>
13113
13114 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13115 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13116 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13117 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13118 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13119 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13120 * x86-64-linux-nat.c: Ditto.
13121
636a6dfc
JT
131222002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13123
abf22e64 13124 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13125 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13126 (REGISTER_NAME): Define.
13127
acceddb6
JT
131282002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13129
13130 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13131
ec32e4be
JT
131322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13133
13134 * alpha-tdep.c: Update copyright years.
13135 (alpha_next_pc): New function.
13136 (alpha_software_single_step): Ditto.
13137 * config/alpha/tm-alpha.h: Add prototype for
13138 alpha_software_single_step.
13139
e771a871
JT
131402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13141
13142 * alphabsd-nat.c: Update copyright years.
13143 (fill_gregset): Use regcache_collect.
13144 (fill_fpregset): Likewise.
13145 (fetch_inferior_registers): Only fetch integer registers
13146 if requested to do so.
13147 (store_inferior_registers): Only store integer registers
13148 if requested to do so.
13149
7708fa01
AC
131502002-01-17 Andrew Cagney <ac131313@redhat.com>
13151
13152 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13153 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13154 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13155 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13156 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13157 * config/arm/linux.mh (XDEPFILES): Delete.
13158 * config/arm/nbsd.mh (XDEPFILES): Delete.
13159 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13160 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13161 * config/i386/i386m3.mh (XDEPFILES): Delete.
13162 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13163 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13164 * config/i386/fbsd.mh (XDEPFILES): Delete.
13165 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13166 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13167 * config/i386/i386v4.mh (XDEPFILES): Delete.
13168 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13169 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13170 * config/i386/i386aix.mh (XDEPFILES): Delete.
13171 * config/i386/go32.mh (XDEPFILES): Delete.
13172 * config/i386/cygwin.mh (XDEPFILES): Delete.
13173 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13174 * config/i386/i386mach.mh (XDEPFILES): Delete.
13175 * config/i386/i386v32.mh (XDEPFILES): Delete.
13176 * config/i386/linux.mh (XDEPFILES): Delete.
13177 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13178 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13179 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13180 * config/i386/i386sco.mh (XDEPFILES): Delete.
13181 * config/i386/i386v.mh (XDEPFILES): Delete.
13182 * config/i386/nbsd.mh (XDEPFILES): Delete.
13183 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13184 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13185 * config/i386/symmetry.mh (XDEPFILES): Delete.
13186 * config/i386/obsd.mh (XDEPFILES): Delete.
13187 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13188 * config/ia64/linux.mh (XDEPFILES): Delete.
13189 * config/ia64/aix.mh (XDEPFILES): Delete.
13190 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13191 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13192 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13193 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13194 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13195 * config/m68k/linux.mh (XDEPFILES): Delete.
13196 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13197 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13198 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13199 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13200 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13201 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13202 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13203 * config/m88k/delta88.mh (XDEPFILES): Delete.
13204 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13205 * config/m88k/m88k.mh (XDEPFILES): Delete.
13206 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13207 * config/mips/linux.mh (XDEPFILES): Delete.
13208 * config/mips/irix6.mh (XDEPFILES): Delete.
13209 * config/mips/irix5.mh (XDEPFILES): Delete.
13210 * config/mips/irix4.mh (XDEPFILES): Delete.
13211 * config/mips/irix3.mh (XDEPFILES): Delete.
13212 * config/mips/decstation.mh (XDEPFILES): Delete.
13213 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13214 (NATDEPFILES): Move core-aout.o to here.
13215 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13216 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13217 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13218 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13219 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13220 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13221 * config/pa/hpux11.mh (XDEPFILES): Delete.
13222 * config/powerpc/aix.mh (XDEPFILES): Delete.
13223 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13224 * config/powerpc/linux.mh (XDEPFILES): Delete.
13225 * config/romp/rtbsd.mh: Rename XDEPFILES.
13226 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13227 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13228 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13229 * config/s390/s390.mh (XDEPFILES): Delete.
13230 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13231 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13232 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13233 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13234 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13235 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13236 * config/sparc/linux.mh (XDEPFILES): Delete.
13237 * config/vax/vaxult.mh (XDEPFILES): Delete.
13238 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13239 * Makefile.in (DEPFILES): Remove XDEPFILES.
13240
375fc983
AC
132412002-01-17 Andrew Cagney <ac131313@redhat.com>
13242
13243 * utils.c (internal_verror): Fix comments, default is yes not no.
13244 Update queries to match. Default to quit and dump core.
13245
8926118c
AC
132462002-01-17 Andrew Cagney <ac131313@redhat.com>
13247
13248 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13249 copyright.
13250 * defs.h, event-top.c, gdbcmd.h: Ditto.
13251 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13252 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13253 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13254 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13255 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13256 * mi/mi-main.c:Ditto.
13257
13258 * stack.c, symfile.c: Update copyright.
13259
45b7b345
DJ
132602002-01-17 Daniel Jacobowitz <drow@mvista.com>
13261
db728ff7
DJ
13262 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13263 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13264 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13265 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13266
db728ff7
DJ
132672002-01-17 Daniel Jacobowitz <drow@mvista.com>
13268
13269 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13270 * gdbserver/low-lynx.c (myattach): Likewise.
13271 * gdbserver/low-nbsd.c (myattach): Likewise.
13272 * gdbserver/low-sim.c (myattach): Likewise.
13273 * gdbserver/low-sparc.c (myattach): Likewise.
13274 * gdbserver/low-sun3.c (myattach): Likewise.
13275
13276 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13277
db728ff7 13278 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13279 (main): Handle "--attach".
13280
8de3c354
AC
132812002-01-16 Andrew Cagney <ac131313@redhat.com>
13282
13283 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13284 maintainer.
13285
b0129042
DJ
132862002-01-15 Daniel Jacobowitz <drow@mvista.com>
13287
13288 * c-typeprint.c (is_type_conversion_operator): Add additional
13289 check for non-conversion operators.
13290
ba8679fb 132912002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13292
13293 * linux-proc.c: Add "info proc" command, a la procfs.c.
13294 (read_mapping): New function, abstract and re-use code.
13295 (linux_find_memory_regions): Use new func read_mapping.
13296 (linux_info_proc_cmd): New function, implement "info proc".
13297 (_initialize_linux_proc): Add new command "info proc".
13298
e4f9b4d5
MS
132992002-01-15 Michael Snyder <msnyder@redhat.com>
13300
13301 * symfile.c (generic_load): Use bfd_map_over_sections method
13302 instead of manipulating bfd structure members directly.
13303 (add_section_size_callback): New function, bfd sections callback
13304 used by generic_load.
13305 (load_sections_callback): New function, bfd sections callback
13306 used by generic_load.
13307
08cf96df
EZ
133082002-01-15 Elena Zannoni <ezannoni@redhat.com>
13309
abf22e64 13310 [Based on work by Jim Blandy]
08cf96df
EZ
13311 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13312 (builtin_type_vec128): Export.
13313 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13314 types.
13315 (builtin_type_vec128): New builtin type for 128 bit vector
13316 registers.
13317 (build_gdbtypes): Initialize builtin_type_v16qi and
13318 builtin_type_v8hi. Create the vec128 register builtin type
13319 structure.
13320 (build_builtin_type_vec128): New function.
abf22e64 13321 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13322 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13323 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13324 AltiVec register to new builtin type.
13325
d7242108
DJ
133262001-01-15 Daniel Jacobowitz <drow@mvista.com>
13327
13328 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13329 to make_cv_type.
13330
4ee3352d
AC
133312002-01-14 Andrew Cagney <ac131313@redhat.com>
13332
13333 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13334 CLEAN_UP_REGISTER_VALUE.
13335 * regcache.c (supply_register): Update only call.
13336
f015b2e7
AC
133372002-01-14 Andrew Cagney <ac131313@redhat.com>
13338
13339 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13340 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13341 a29k-*-vxworks* targets as obsolete.
13342
356ae49d
MS
133432002-01-14 Michael Snyder <msnyder@redhat.com>
13344
13345 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13346 until we can resolve portability issues.
13347 * gregset.h: Remove references to fpxregs.
13348 * gcore.c (gcore_command): Initialize note_sec to NULL.
13349
ade8f45e
AC
133502002-01-13 Andrew Cagney <ac131313@redhat.com>
13351
13352 * signals.c (target_signal_to_name): Rewrite. Only use
13353 signals[].name when in bounds and non-NULL.
abf22e64 13354
89c49e7a
AC
133552002-01-13 Andrew Cagney <ac131313@redhat.com>
13356
13357 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13358 * signals.c (target_signal_to_name): Verify that SIG is within the
13359 bounds of the signals array.
13360
4daa9f9f
AC
133612002-01-13 Andrew Cagney <ac131313@redhat.com>
13362
13363 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13364
ba4bbdcb
KS
133652002-01-13 Keith Seitz <keiths@redhat.com>
13366
13367 * stack.c (print_frame_info_base): Print the frame's pc
13368 only if when print_frame_info_listing_hook is not defined.
13369
575bbeb6
KS
133702002-01-13 Keith Seitz <keiths@redhat.com>
13371
13372 * varobj.c (varobj_set_value): Make sure that there were no
13373 errors evaluating the object before attempting to set its
13374 value.
13375 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13376 so this offset adjustment is no longer necessary.
13377 (create_child): Don't set the error flag if the child is
13378 a CPLUS_FAKE_CHILD.
13379 (value_of_child): If value_fetch_lazy fails, return NULL
13380 so that callers will be notified that an error occurred.
13381 (c_value_of_variable): Delay check of variable's validity
13382 until later. We actually want all structs and unions to have
13383 the value "{...}".
13384 Do not return "???" for variables which could not be evaluated.
13385 This error condition must be returned to the caller so that it
13386 can get the error condition from gdb.
13387 (cplus_name_of_child): Adjust index for vptr before figuring
13388 out the name of the child.
13389 (cplus_value_of_child): If a child's (real) parent is not valid,
13390 don't even bother trying to give a value for it. Just return
13391 an error. Change all instances in this function.
13392 (cplus_type_of_child): If our parent is one of the "fake"
13393 parents, we need to get at the type of the real parent, and
13394 derive the child's true type using this information.
13395
b76898ab
AC
133962002-01-13 Andrew Cagney <ac131313@redhat.com>
13397
13398 From 2002-01-09 John Marshall <johnm@falch.net>:
13399 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13400 sources.redhat.com, and tweak some related URLs which had
13401 suffered from linkrot.
13402
b6649e88
AC
134032002-01-13 Andrew Cagney <ac131313@redhat.com>
13404
13405 From Jeff law:
13406 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13407 structures passed in registers.
13408
82cc5033
EZ
134092002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13410
13411 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13412 white space which prevented compilation. Reported by DSK
13413 <dsk@student.unsw.edu.au>.
13414
ba5f2f8a
MS
134152002-01-11 Michael Snyder <msnyder@redhat.com>
13416
fbd35540
MS
13417 * symfile.c (build_section_addr_info_from_section_tab):
13418 Use bfd access method instead of manipulating bfd directly.
13419 (syms_from_objfile): Ditto.
13420 (simple_overlay_update_1): Ditto.
13421 (simple_overlay_update): Ditto.
13422 (generic_load): Ditto.
13423 (overlay_unmapped_address): FIXME comment, bfd access methods.
13424 (sections_overlap): FIXME comment, bfd access methods.
13425 (pc_in_mapped_range): FIXME comment, bfd access methods.
13426 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13427 (section_is_mapped): FIXME comment, bfd access methods.
13428 (section_is_overlay): FIXME comment, bfd access methods.
13429
ba5f2f8a
MS
13430 * symfile.c (generic_load): Whitespace and long line cleanups.
13431 Remove duplicate variable, change several local variables to
13432 more appropriate data types.
13433 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13434
17df2af6
AC
134352002-01-12 Andrew Cagney <ac131313@redhat.com>
13436
13437 From Peter Schauer:
13438 * language.c (longest_local_hex_string_custom): Use phex_nz to
13439 convert NUM to a hex string.
13440
ec920329
EZ
134412002-01-12 Elena Zannoni <ezannoni@redhat.com>
13442
13443 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13444 the function.
538a76d6 13445 Update Copyright year.
ec920329 13446
3abd2e01
AC
134472002-01-12 Andrew Cagney <ac131313@redhat.com>
13448
13449 * language.c (longest_raw_hex_string): Delete unused function.
13450
b21b22e0
PS
134512002-01-11 Petr Sorfa <petrs@caldera.com>
13452
13453 * MAINTAINERS (write-after-approval): Add myself.
13454 * dwarf2read.c (read_tag_string_type): Handling of
13455 DW_AT_byte_size.
13456 (read_tag_string_type): FORTRAN fix to prevent propagation of
13457 first string size.
13458 (set_cu_language): Handling of DW_LANG_Fortran95
13459
747fe712
RE
134602002-01-11 Richard Earnshaw <rearnsha@arm.com>
13461
13462 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13463 GETPID(inferior_ptid).
13464 (store_inferior_registers): Likewise.
13465
f1bea926
JM
134662002-01-10 Jason Merrill <jason@redhat.com>
13467
13468 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13469 Fix DW_OP_minus.
13470
ae940673
AC
134712002-01-10 Andrew Cagney <ac131313@redhat.com>
13472
13473 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13474 and bfd/elf32-sh-nbsd.c.
13475
00546b04
MS
134762002-01-10 Michael Snyder <msnyder@redhat.com>
13477
352ed7b4
MS
13478 * NEWS: Mention --pid and corefile/proc-id behavior change.
13479
c18be923
MS
13480 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13481 * gcore.c: Include cli/cli-decode.h instead of command.h.
13482
00546b04
MS
13483 * main.c (captured_main): Add new command line option "--pid".
13484 If the second command line argument (following the symbol-file)
13485 begins with a digit, try to attach to it before trying to open
13486 it as a corefile.
13487 (print_gdb_help): Document the "--pid" argument.
13488
db60ec62
EZ
134892002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13490
13491 * completer.c (command_completer): New function.
13492
13493 * completer.h <command_completer>: Add prototype.
13494
13495 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13496 completer for the "help" command.
13497
39c22d1a
JM
134982002-01-09 Jason Merrill <jason@redhat.com>
13499
13500 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13501
c564377f
MS
135022002-01-09 Michael Snyder <msnyder@redhat.com>
13503
975aec09
MS
13504 * i386-linux-nat.c (fill_fpxregset): Make global.
13505 (store_fpxregset): Ditto.
13506
db4a10fa
MS
13507 * gregset.h (gdb_fpxregset_t): Define.
13508 (supply_fpxregset): Prototype.
13509 (fill_fpxregset): Prototype.
13510
c564377f
MS
13511 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13512
c3d45d70
RE
135132002-01-09 Richard Earnshaw <rearnsha@arm.com>
13514
13515 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13516 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13517 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13518
fcc87af1
AC
135192002-01-09 Andrew Cagney <ac131313@redhat.com>
13520
13521 * MAINTAINERS: Update target maintainer rules so that any
13522 Maintainer can approve a tested patch for a maintenance-only
13523 target.
13524
dd96c05b
RE
135252002-01-09 Richard Earnshaw <rearnsha@arm.com>
13526
d4297db9 13527 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13528
d4297db9 13529 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13530 IN_SIGTRAMP.
13531
145fdc6e
MS
135322002-01-08 Michael Snyder <msnyder@redhat.com>
13533
13534 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13535 real name of the executable, rather than the /proc name.
13536
be4d1333
MS
135372002-01-03 Michael Snyder <msnyder@redhat.com>
13538
13539 Implement a "generate-core-file" command in gdb, save target state.
13540 * gcore.c: New file. Implement new command 'generate-core-file'.
13541 Save a corefile image of the current state of the inferior.
13542 * linux-proc.c: Add linux-specific code for saving corefiles.
13543 * target.h (struct target_ops): Add new target vectors for saving
13544 corefiles; to_find_memory_regions and to_make_corefile_notes.
13545 (target_find_memory_regions): New macro.
13546 (target_make_corefile_notes): New macro.
13547 * target.c (update_current_target): Inherit new target methods.
13548 (dummy_find_memory_regions): New place-holder method.
13549 (dummy_make_corefile_notes): New place-holder method.
13550 (init_dummy_target): Initialize new dummy target vectors.
13551 * exec.c (exec_set_find_memory_regions): New function.
13552 Allow the exec_ops vector for memory regions to be taken over.
13553 (exec_make_note_section): New function, target vector method.
13554 * defs.h (exec_set_find_memory_regions): Export prototype.
13555 * procfs.c (proc_find_memory_regions): New function, corefile method.
13556 (procfs_make_note_section): New function, corefile method.
13557 (init_procfs_ops): Set new target vector pointers.
13558 (find_memory_regions_callback): New function.
13559 (procfs_do_thread_registers): New function.
13560 (procfs_corefile_thread_callback): New function.
13561 * sol-thread.c (sol_find_memory_regions): New function.
13562 (sol_make_note_section): New function.
13563 (init_sol_thread_ops): Initialize new target vectors.
13564 * inftarg.c (inftarg_set_find_memory_regions): New function.
13565 Allow to_find_memory_regions vector to be taken over.
13566 (inftarg_set_make_corefile_notes): New function.
13567 Allow to_make_corefile_notes vector to be taken over.
13568 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13569 interface layer if not target_has_execution (may be a corefile).
13570 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13571 * config/sparc/sun4sol2.mh: Ditto.
13572 * config/alpha/alpha-linux.mh: Ditto.
13573 * config/arm/linux.mh: Ditto.
13574 * config/i386/x86-64linux.mh: Ditto.
13575 * config/ia64/linux.mh: Ditto.
13576 * config/m68k/linux.mh: Ditto.
13577 * config/mips/linux.mh: Ditto.
13578 * config/powerpc/linux.mh: Ditto.
13579 * config/sparc/linux.mh: Ditto.
13580
c6b92abd
MS
135812002-01-07 Michael Snyder <msnyder@redhat.com>
13582
13583 * arm-linux-nat.c: Remove references to regcache.c internal data
13584 (registers[] and register_valid[]).
13585
4b09dc8c
MS
135862002-01-07 Michael Snyder <msnyder@redhat.com>
13587
abf22e64
AJ
13588 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13589 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13590 symbol file and shlibs.
13591 * Makefile.in: Add rule for linux-proc.o.
13592 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13593 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13594 * config/arm/linux.mh: Ditto.
13595 * config/i386/linux.mh: Ditto.
13596 * config/i386/x86-64linux.mh: Ditto.
13597 * config/ia64/linux.mh: Ditto.
13598 * config/m68k/linux.mh: Ditto.
13599 * config/mips/linux.mh: Ditto.
13600 * config/powerpc/linux.mh: Ditto.
13601 * config/sparc/linux.mh: Ditto.
13602
c25b74ac
PM
136032002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13604
13605 * win32-nat.c: Add i386-tdep.h dependency.
13606
94cd915f
MS
136072002-01-07 Michael Snyder <msnyder@redhat.com>
13608
c7cccb76
MS
13609 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13610 instead of bfd_get_arch_size. Don't bail out just because
13611 there's no exec_bfd.
abf22e64 13612
34c0bd93
MS
13613 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13614 * p-valprint.c (pascal_object_print_value): Ditto.
13615 * somread.c (som_symtab_read): Ditto.
13616 * symfile.c (simple_free_overlay_region_table): Ditto.
13617 * valops.c (value_assign): Ditto.
13618
21c1c920
MS
13619 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13620 use tilde_expand and strerror for opening save-tracepoints file.
13621
5bbd998e
MS
13622 * thread-db.c (thread_db_new_objfile): Indendation fix.
13623
94cd915f
MS
13624 * infptrace.c (GDB_MAX_ALLOCA): New define.
13625 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13626 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13627 can be overridden with whatever value is appropriate to the host).
13628 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13629 alloca to allocate potentially large buffer.
13630 * rs6000-nat.c (child_xfer_memory): Ditto.
13631 * symm-nat.c (child_xfer_memory): Ditto.
13632 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13633
494e8a93
JSC
136342002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13635
13636 From Nick Clifton <nickc@redhat.com>
13637 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13638
d0e1d48e
MS
136392002-01-07 Michael Snyder <msnyder@redhat.com>
13640
abf22e64 13641 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13642 Don't use exec_bfd if it's NULL.
13643
290b2c7a
MK
136442002-01-06 Mark Kettenis <kettenis@gnu.org>
13645
abf22e64 13646 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13647
aef21287
AC
136482002-01-06 Andrew Cagney <ac131313@redhat.com>
13649
13650 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13651 * gnu-nat.c: Ditto.
13652
30efa627
AC
136532002-01-06 Andrew Cagney <ac131313@redhat.com>
13654
13655 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13656 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13657 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13658 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13659 z8k-coff have not been multi-arched. Update z8k-coff build
13660 status.
13661
9b4ff276
AC
136622002-01-06 Andrew Cagney <ac131313@redhat.com>
13663
13664 * MAINTAINERS: Mark a29k target as obsolete.
13665 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13666 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13667 comments.
13668 * NEWS: Note that a29k targets are obsolete.
13669 * a29k-tdep.c: Mark as obsolete.
13670 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13671 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13672 a29k-*-vxworks* targets as obsolete.
13673 * remote-adapt.c: Obsolete.
13674 * remote-eb.c: Obsolete.
13675 * remote-mm.c: Obsolete.
13676 * remote-udi.c: Obsolete.
13677 * config/a29k/a29k-udi.mt: Obsolete.
13678 * config/a29k/a29k.mt: Obsolete.
13679 * config/a29k/tm-a29k.h: Obsolete.
13680 * config/a29k/tm-vx29k.h: Obsolete.
13681 * config/a29k/vx29k.mt: Obsolete.
13682
a9011d31
AC
136832002-01-05 Andrew Cagney <ac131313@redhat.com>
13684
13685 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13686 with BFD_ENDIAN_BIG.
13687
9299404e
AC
136882002-01-05 Andrew Cagney <ac131313@redhat.com>
13689
13690 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13691 * configure, config.in: Re-generate.
13692 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13693 * defs.h: Do not include <endian.h>.
13694
7e89e357
JT
136952002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13696
13697 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13698 * config.in: Regenerate.
13699 * configure.in: Update copyright years.
13700 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13701 * configure: Regenerate.
13702 * i386bsd-nat.c: Update copyright years.
13703 (fill_gregset): Use regcache_collect.
13704 (fetch_inferior_registers): Only fetch integer registers
13705 if requested to do so. Add support for XMM registers
13706 using PT_GETXMMREGS.
13707 (store_inferior_registers): Only store integer registers
13708 if requested to do so. Add support for XMM registers
13709 using PT_SETXMMREGS.
13710 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13711 (store_inferior_registers): Remove.
13712 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13713 (fetch_elfcore_registers): New function.
13714 (i386nbsd_elfcore_fns): New.
13715 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13716 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13717 i386bsd-nat.o.
13718 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13719 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13720 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13721 * config/i386/tm-nbsd.h: Update copyright years.
13722 (HAVE_SSE_REGS): Define.
13723 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13724 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13725 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13726 (SIGCONTEXT_PC_OFFSET): Remove.
13727 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13728
a752853e
AC
137292002-01-05 Andrew Cagney <ac131313@redhat.com>
13730
13731 * configure.tgt: Remove powerpc-*-macos* target.
13732 * config/m68k/xm-mpw.h: Delete file.
13733 * config/xm-mpw.h: Delete file.
13734 * ser-mac.c: Delete file.
13735 * mpw-make.sed: Delete file.
13736 * mpw-config.in: Delete file.
13737 * mac-xdep.c: Delete file.
13738 * mac-gdb.r: Delete file.
13739 * mac-defs.h: Delete file.
13740 * mac-nat.c: Delete file.
13741 * config/powerpc/macos.mh: Delete file.
13742 * config/powerpc/macos.mt: Delete file.
13743 * config/powerpc/nm-macos.h: Delete file.
13744 * config/powerpc/tm-macos.h: Delete file.
13745 * source.c (openp, open_source_file): Remove obsolete code.
13746 * top.c (gdb_readline): Ditto.
13747 * utils.c (query): Ditto.
13748 * event-top.c (display_gdb_prompt): Ditto.
13749 * Makefile.in (ser-mac.o): Delete obsolete target.
13750 * NEWS: Update.
13751
d7449b42
AC
137522002-01-04 Andrew Cagney <ac131313@redhat.com>
13753
13754 * defs.h (BIG_ENDIAN): Delete macro definition.
13755 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13756 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13757 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13758 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13759 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13760 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13761 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13762 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13763 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13764 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13765 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13766 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13767 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13768 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13769 * gdbarch.c: Re-generate.
13770
356374e8
DJ
137712002-01-04 Daniel Jacobowitz <drow@mvista.com>
13772
13773 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13774 for core files.
13775
a2b8f8f8
JT
137762002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13777
13778 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13779
12466af9
AC
137802002-01-04 Andrew Cagney <ac131313@redhat.com>
13781
13782 * value.h (value_ptr): Delete typedef.
13783
3549ab40
JT
137842002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13785
13786 * i386nbsd-nat.c: Update copyright years.
13787 Include i386-tdep.h.
13788
fedbd091
EZ
137892002-01-04 Elena Zannoni <ezannoni@redhat.com>
13790
13791 * stabsread.c: Update copyright years.
13792
13793 From Debashis Mahata <debashis.mahata@wipro.com>:
13794 (read_struct_fields): Deal with Sun C compiler erroneous stab
13795 output for structs and unions.
fec8b34f 13796 Fix PR gdb/269.
fedbd091 13797
eb43544b
DJ
137982002-01-04 Daniel Jacobowitz <drow@mvista.com>
13799
13800 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13801 prototype.
13802
1514d34e
DJ
138032002-01-04 Daniel Jacobowitz <drow@mvista.com>
13804
13805 * cp-abi.c: Fix whitespace.
13806 (baseclass_offset): New wrapper function.
13807 * cp-abi.h (baseclass_offset): Add prototype.
13808 (struct cp_abi_ops): Add baseclass_offset pointer.
13809
13810 * valops.c (vb_match): Move to...
13811 * gnu-v2-abi.c (vb_match): here.
13812 * valops.c (baseclass_offset): Move to...
13813 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13814
13815 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13816
13817 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13818 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13819 * hpacc-abi.c (init_hpacc_ops): Likewise.
13820
7f8c9282
DJ
138212002-01-04 Daniel Jacobowitz <drow@mvista.com>
13822
13823 * valops.c (find_overload_match): Accept obj as a
13824 reference parameter. Update it before returning.
13825 * value.h (find_overload_match): Update prototype.
13826 * eval.c (evaluate_subexp_standard): Pass object to
13827 find_overload_match by reference.
13828
f23631e4
AC
138292002-01-03 Andrew Cagney <ac131313@redhat.com>
13830
13831 * valarith.c: Replace value_ptr with struct value pointer. Remove
13832 register attribute from value declarations.
13833 * valops.c: Ditto.
13834 * value.h: Ditto.
13835 * scm-lang.c (scm_lookup_name): Ditto.
13836
79e10fab 138372002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13838
79e10fab
AC
13839 Abstract the functionality of iterating over mapped memory
13840 regions into a general purpose iterator function.
abf22e64 13841 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13842 iterator for memory sections.
13843 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13844 (solib_mappings_callback): New function, callback for above.
13845 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13846 (info_mappings_callback): New function, callback for above.
13847
13848 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13849
c5ad026a
MK
138502002-01-01 Mark Kettenis <kettenis@gnu.org>
13851
d2a7c97a
MK
13852 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13853 * i386-tdep.c: Include "elf-bfd.h".
13854 (process_note_abi_tag_sections): New function.
13855 (i386_gdbarch_init): Add code to recognize various OS/ABI
13856 combinations.
13857
c5ad026a
MK
13858 * maint.c (_initialize_maint_cmds): Add missing \ in
13859 string-literal.
13860
a1a5b71e 13861For older changes see ChangeLog-2001
c906108c
SS
13862\f
13863Local Variables:
13864mode: change-log
13865left-margin: 8
13866fill-column: 74
13867version-control: never
13868End:
This page took 1.532113 seconds and 4 git commands to generate.