2002-12-03 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
02ae7771
AC
12002-12-03 Andrew Cagney <ac131313@redhat.com>
2
3 * sparc-nat.c (fetch_inferior_registers)
4 (store_inferior_registers): Add comment on problem of LWP vs
5 threads.
6
7 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
8 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
9 (lin_lwp_store_registers): Remove.
10 (init_lin_lwp_ops): Use fetch_inferior_registers
11 and store_inferior_registers directly.
12 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
13 (store_inferior_registers): Likewise.
14 Fix PR gdb/725.
15
7a424e99
AC
162002-12-03 Andrew Cagney <ac131313@redhat.com>
17
18 * frame.h (get_frame_id): Convert to a function.
19 (null_frame_id, frame_id_p): Declare.
20 (frame_id_eq, frame_id_inner): Declare.
21 (frame_id_build): New function.
22 * frame.c (get_frame_id): Update. Use null_frame_id.
23 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
24 frame_id_inner.
25 (null_frame_id, frame_id_p): Define.
26 (frame_id_eq, frame_id_inner): Define.
27 (frame_id_build): New function.
28 * varobj.c (varobj_create): Update.
29 (varobj_update): Update.
30 * valops.c (value_assign): Update.
31 (new_root_variable): Update.
32 * infrun.c (save_inferior_status): Update.
33 * breakpoint.c (watch_command_1): Update.
34
891c7f5f
JB
352002-12-03 J. Brobecker <brobecker@gnat.com>
36
37 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
38 (SNAP2): Likewise.
39
144da3c1
AC
402002-12-03 Andrew Cagney <cagney@redhat.com>
41
46248966
AC
42 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
43 patch.
44
144da3c1
AC
45 * PROBLEMS: Mention PR gdb/725.
46
03c6228e
AS
472002-12-03 Andreas Schwab <schwab@suse.de>
48
49 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
50
36e53c63
AF
512002-12-02 Adam Fedor <fedor@gnu.org>
52 Klee Dienes <kdienes@apple.com>
53
54 * objc-lang.c (objc_printstr): Add width arg to match
55 printstr prototype.
56 (compare_selectors): Add 'const' to arg types.
57 (compare_classes): Likewise.
58 (find_imps): Cast msym pointer to avoid compiler warning.
59 (print_object_command): Validate the address before
60 passing it to the print routine.
61 (find_objc_msgcall_submethod): Change function argument to
62 return an int.
63 * objc-lang.h: Add 'extern' to all function declarations.
64 (value_nsstring): Add declaration.
65
504d5c7e
JB
662002-12-02 J. Brobecker <brobecker@gnat.com>
67
68 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
69 Fixes a build failure on HP/UX.
70
71 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
72 failure on HP/UX.
73 (hpread_has_name): Advance declaration to avoid a compilation warning.
74 (pst_syms_count): Add missing variable type. By change, the compiler
75 was defaulting to int, which seems a good choice. Fixes a compilation
76 warning.
77 (pst_syms_size): Likewise.
78
59623e27
JB
792002-12-02 J. Brobecker <brobecker@gnat.com>
80
81 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
82 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
83 later to set the proper gdbarch methods depending on the osabi.
84 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
85
a09a320d
JB
862002-12-02 J. Brobecker <brobecker@gnat.com>
87
88 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
89 * osabi.c (gdb_osabi_name): Add strings images for the two new
90 enum values.
91 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
92
8a81a99e
AC
932002-12-02 Andrew Cagney <ac131313@redhat.com>
94
95 * MAINTAINERS (Java): Global maintainers are responible for Java.
96 (Past Maintainers): Mention both Anthony Green and Per Bothner as
97 part Java maintainers.
98
7af35dad
JB
992002-12-02 J. Brobecker <brobecker@gnat.com>
100
101 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
102 Fixes a compilation failure on AiX.
103
f4ede9bc
JB
1042002-12-02 J. Brobecker <brobecker@gnat.com>
105
106 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
107 why aix-thread.o is not listed.
108
ae45cd16
AC
1092002-12-01 Andrew Cagney <ac131313@redhat.com>
110
111 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
112 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
113 * gdbarch.h, gdbarch.c: Re-generate.
114 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
115 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
116 * config/pa/tm-hppa.h, frame.h: Update.
117 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
118 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
119 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
120 * cris-tdep.c, alpha-tdep.c: Update.
121 * frame.c (set_unwind_by_pc, create_new_frame): Use either
122 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
123 (get_prev_frame): Ditto.
124
020cc13c
AC
1252002-11-30 Andrew Cagney <cagney@redhat.com>
126
127 * exec.c (xfer_memory): Replace boolean with int.
128 * p-exp.y: Use 0 instead of false.
129 * corelow.c (gdb_check_format): Change return type to int from
130 boolean.
131 * utils.c: Don't include <curses.h> or <term.h> first.
132
1d9b2aa8
SC
1332002-11-29 Stephane Carrez <stcarrez@nerim.fr>
134
135 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
136 (m68hc11_register_byte): Remove.
137 (m68hc11_gdbarch_init): Don't set the above.
138
a193e397
AC
1392002-11-29 Andrew Cagney <cagney@redhat.com>
140
141 * remote-mips.c (mips_initialize): Force a selected frame rebuild
142 by calling get_selected_frame.
143 * ocd.c (ocd_start_remote): Use get_selected frame instead of
144 set_current_frame, create_new_frame, select_frame and
145 get_current_frame.
146 * remote-e7000.c (e7000_start_remote): Ditto.
147 * remote-mips.c (common_open): Ditto
148 * remote-rdp.c (remote_rdp_open): Ditto.
149
b5fc49aa
AS
1502002-11-29 Andreas Schwab <schwab@suse.de>
151
152 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
153 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
154 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
155 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
156 read_memory_unsigned_integer instead of read_memory_integer when
157 dealing with addresses and instruction opcodes.
158 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
159 (m68k_linux_frame_saved_pc): Likewise.
160
6e7f8b9c
AC
1612002-11-29 Andrew Cagney <ac131313@redhat.com>
162
163 * stack.c (selected_frame, select_frame): Move from here ...
164 * frame.c (selected_frame, select_frame): ... to here. Include
165 "language.h".
166 * Makefile.in (frame.o): Update dependencies.
167 * frame.c (get_selected_frame): New function.
168 * frame.h (get_selected_frame): Declare.
169 (deprecated_selected_frame): Rename selected_frame.
170 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
171 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
172 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
173 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
174 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
175 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
176 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
177 * z8k-tdep.c, cli/cli-cmds.c: Update.
178
805e2818
AC
1792002-11-29 Andrew Cagney <ac131313@redhat.com>
180
181 * frame.h (get_selected_block): Add comments.
182
1058bca7
AC
1832002-11-28 Andrew Cagney <ac131313@redhat.com>
184
185 * frame.c (pc_notcurrent): New function.
186 (find_frame_sal): New function.
187 * frame.h (find_frame_sal): Declare.
188 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
189 * stack.c (print_frame_info_base): Use find_frame_sal instead of
190 find_pc_line.
1058bca7
AC
191 (frame_info): Ditto.
192 * ada-lang.c (find_printable_frame): Ditto.
193
d92419e5
JB
1942002-11-28 J. Brobecker <brobecker@gnat.com>
195
196 * configure.in: Check that the pthdebug library is recent enough
197 before enabling thread support on native AiX.
198 * configure: Regenerate.
199
200 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
201 from the list of object files as it is now appended by configure
202 if thread support is enabled.
203 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
204 if thread support is enabled.
205
8c69fc49
AC
2062002-11-28 Andrew Cagney <cagney@redhat.com>
207
208 * stack.c (get_selected_block): In-line get_current_block.
209 * frame.h (get_current_block): Delete declaration.
210 * blockframe.c (get_current_block): Delete function.
211
07555a72
AC
2122002-11-28 Andrew Cagney <ac131313@redhat.com>
213
214 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
215 USE_GENERIC_DUMMY_FRAMES.
216 * gdbarch.h, gdbarch.c: Regenerate.
217 * valops.c, frame.c: Update.
218 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
219 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
220 * config/pa/tm-hppa.h, blockframe.c: Update.
221 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
222 * m68k-tdep.c, alpha-tdep.c: Ditto.
223
224 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
225 * mips-tdep.c: Ditto.
226
b99fa2d2
AC
2272002-11-27 Andrew Cagney <ac131313@redhat.com>
228
229 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
230 (USE_GENERIC_DUMMY_FRAMES): Default to true.
231 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
232 * gdbarch.c, gdbarch.h: Re-generate.
233 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
234 (CALL_DUMMY_LOCATION): Delete macro definition.
235 (PC_IN_CALL_DUMMY): Delete macro definitions.
236
237 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
238 default is already generic_pc_in_call_dummy.
239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
240 * v850-tdep.c (v850_gdbarch_init): Ditto.
241 * sh-tdep.c (sh_gdbarch_init): Ditto.
242 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
243 * mips-tdep.c (mips_gdbarch_init): Ditto.
244 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
246 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
247 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
248 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
249 * avr-tdep.c (avr_gdbarch_init): Ditto.
250
251 * arm-tdep.c (arm_gdbarch_init): Do not set
252 use_generic_dummy_frames, default is already 1.
253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
254 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
255 * v850-tdep.c (v850_gdbarch_init): Ditto.
256 * sh-tdep.c (sh_gdbarch_init): Ditto.
257 * s390-tdep.c (s390_gdbarch_init): Ditto.
258 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
259 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
260 * mips-tdep.c (mips_gdbarch_init): Ditto.
261 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
263 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
264 * i386-tdep.c (i386_gdbarch_init): Ditto.
265 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
266 * frv-tdep.c (frv_gdbarch_init): Ditto.
267 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
268 * cris-tdep.c (cris_gdbarch_init): Ditto.
269 * avr-tdep.c (avr_gdbarch_init): Ditto.
270
271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
272 call_dummy_location, default is already AT_ENTRY_POINT.
273 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
274 * v850-tdep.c (v850_gdbarch_init): Ditto.
275 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
276 * sh-tdep.c (sh_gdbarch_init): Ditto.
277 * s390-tdep.c (s390_gdbarch_init): Ditto.
278 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
279 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
280 * mips-tdep.c (mips_gdbarch_init): Ditto.
281 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
283 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
284 * i386-tdep.c (i386_gdbarch_init): Ditto.
285 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
286 * frv-tdep.c (frv_gdbarch_init): Ditto.
287 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
288 * cris-tdep.c (cris_gdbarch_init): Ditto.
289 * avr-tdep.c (avr_gdbarch_init): Ditto.
290 * arm-tdep.c (arm_gdbarch_init): Ditto.
291 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
292
abc0af47
AC
2932002-11-28 Andrew Cagney <cagney@redhat.com>
294
295 * frame.h: Update comments on set_current_frame, create_new_frame,
296 flush_cached_frames, reinit_frame_cache, select_frame and
297 selected_frame.
298
ed5cedc5
AC
2992002-11-27 Andrew Cagney <cagney@redhat.com>
300
301 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
302 deprecated pc_in_call_dummy function.
303 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
304 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
305 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
306 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
307 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
308
b2a1bd4f
MH
3092002-11-26 Martin M. Hunt <hunt@redhat.com>
310
311 * Makefile.in: Remove Tix dependencies.
312 * acinclude.m4: Ditto.
313 * aclocal.m4: Ditto.
314 * configure.in: Ditto.
315 * configure: Regenerated.
316
f09cffaa
AC
3172002-11-26 Andrew Cagney <ac131313@redhat.com>
318
319 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
320 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
321 * gdbarch.c: Re-generate.
322
e92b0cc9
AC
3232002-11-26 Andrew Cagney <ac131313@redhat.com>
324
325 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
326 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
327 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
328 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
329 pc_in_call_dummy_at_entry_point.
330 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
331 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
332 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
333 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
334 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
335 pc_in_call_dummy_on_stack.
336 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
337 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
338 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
339 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
340 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
341
b4b88177
AC
3422002-11-26 Andrew Cagney <ac131313@redhat.com>
343
344 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
345 pc_in_call_dummy_before_text_end
346 (deprecated_pc_in_call_dummy_after_text_end): Rename
347 pc_in_call_dummy_after_text_end.
348 (deprecated_pc_in_call_dummy_on_stack): Rename
349 pc_in_call_dummy_on_stack.
350 (deprecated_pc_in_call_dummy_at_entry_point): Rename
351 pc_in_call_dummy_at_entry_point.
352 * m68k-tdep.c (m68k_gdbarch_init): Update.
353 * s390-tdep.c (s390_gdbarch_init): Update.
354 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
355 * vax-tdep.c (vax_gdbarch_init): Update.
356 * sparc-tdep.c (sparc_gdbarch_init): Update.
357 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
359 * i386-tdep.c (i386_gdbarch_init): Update.
360 * frv-tdep.c (frv_gdbarch_init): Update.
361 * cris-tdep.c (cris_gdbarch_init): Update.
362 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
363 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
364 (deprecated_pc_in_call_dummy_after_text_end)
365 (deprecated_pc_in_call_dummy_on_stack)
366 (deprecated_pc_in_call_dummy_at_entry_point): Update.
367 * alpha-tdep.c (alpha_gdbarch_init): Update.
368
eb784848
DJ
3692002-11-25 Daniel Jacobowitz <drow@mvista.com>
370
371 * acconfig.h (HAVE_PREAD64): Add.
372 * configure.in: Check for pread64.
373 * config.in: Regenerated.
374 * configure: Regenerated.
375 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
376 * linux-proc.c (linux_proc_xfer_memory): New function.
377 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
378
933c6fe4
DC
3792002-11-25 David Carlton <carlton@math.stanford.edu>
380
381 * dwarf2read.c (scan_partial_symbols): Descend into namespace
382 pdi's with no name.
383
158a8022
AC
3842002-11-25 Andrew Cagney <ac131313@redhat.com>
385
386 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
387 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
388
481d0f41
JB
3892002-11-25 Jim Blandy <jimb@redhat.com>
390
e8289572
JB
391 * symfile.c (init_objfile_sect_indices): New function.
392 (default_symfile_offsets): Move the section-index-initializing
393 stuff into init_objfile_sect_indices, and call that.
394
b29c9944
JB
395 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
396 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
397
13de58df
JB
398 * symfile.c (syms_from_objfile): Adjust indentation.
399
481d0f41
JB
400 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
401 || info_verbose isn't true.
402
7d6a26a7
AC
4032002-11-24 Andrew Cagney <ac131313@redhat.com>
404
405 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
406 default to get_frame_base.
407 * gdbarch.h, gdbarch.c: Regenerate.
408 * arch-utils.c (default_frame_address): Delete function.
409 * arch-utils.h (default_frame_address): Delete declaration
410
6abe1021
PM
4112002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
412
413 * varobj.c (find_frame_addr_in_frame_chain):
414 Use get_frame_base instead of FRAME_FP,
415 obvious fix.
416
c193f6ac
AC
4172002-11-19 Andrew Cagney <ac131313@redhat.com>
418
419 * frame.h (FRAME_FP): Delete macro.
420 (get_frame_base): New function declaration.
421 * frame.c (get_frame_base): New function.
422 (get_frame_id): Use ->frame.
423 (frame_find_by_id): Rewrite to use get_frame_id.
424 * blockframe.c: Use get_frame_base instead of FRAME_FP.
425 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
426 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
427 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
428 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
429 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
430 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
431
e5d2af14
AC
4322002-11-24 Andrew Cagney <ac131313@redhat.com>
433
434 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
435
931d12c6
AC
4362002-11-24 Andrew Cagney <ac131313@redhat.com>
437
438 * frame.c (set_unwind_by_pc): Revert change below, use
439 PC_IN_CALL_DUMMY.
440 (get_prev_frame): Ditto.
441
5e0f933e
AC
4422002-11-24 Andrew Cagney <ac131313@redhat.com>
443
444 * dummy-frame.c (pc_in_dummy_frame): New function.
445 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
446 (find_dummy_frame): Update comment.
447 (generic_pop_current_frame): Use get_frame_type.
448 * dummy-frame.h (pc_in_dummy_frame): Declare.
449 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
450 (create_new_frame): Use pc_in_dummy_frame.
451 (get_prev_frame): Use pc_in_dummy_frame.
452 (frame_saved_regs_register_unwind): Use get_prev_frame.
453 (deprecated_generic_get_saved_register): Use get_prev_frame.
454
7d8547c9
AC
4552002-11-23 Andrew Cagney <ac131313@redhat.com>
456
457 * blockframe.c (find_frame_addr_in_frame_chain): Move function
458 from here ...
459 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
460 (varobj_create): Note that frame ID should be used.
461 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
462
0225421b
AC
4632002-11-23 Andrew Cagney <ac131313@redhat.com>
464
465 * breakpoint.c: Include "gdb_assert.h".
466 (deprecated_frame_in_dummy): Assert that generic dummy frames are
467 not being used.
468 * Makefile.in (breakpoint.o): Update dependencies.
469 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
470 deprecated_frame_in_dummy.
471 * stack.c (print_frame_info_base): Ditto.
472 (frame_info): Ditto.
473 (print_frame_info_base): Ditto. Delete dead code.
474
32eeb91a
AS
4752002-11-23 Andreas Schwab <schwab@suse.de>
476
477 * Makefile.in (m68k_tdep_h): Define.
478 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
479 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
480 * m68k-tdep.c: Move register number enum ...
481 * m68k-tdep.h: ... to this new file and rename the constants from
482 E_* to M68K_*. All uses changed.
483 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
484 * abug-rom.c: Include "m68k-tdep.h". Use
485 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
486 * cpu32bug-rom.c: Likewise.
487 * dbug-rom.c: Likewise.
488 * m68k-tdep.c: Likewise.
489 * m68klinux-nat.c: Likewise.
490 * remote-est.c: Likewise.
491 * rom68k-rom.c: Likewise.
492 * config/m68k/tm-linux.h: Likewise.
493
9648bac8
AC
4942002-11-23 Andrew Cagney <ac131313@redhat.com>
495
496 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
497 dummy frame initialization code.
498 * mips-tdep.c (mips_gdbarch_init): Ditto.
499
91a175b3
CF
5002002-11-22 Christopher Faylor <cgf@redhat.com>
501
502 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
503 attach will hang.
504
f4ded5b1
AC
5052002-11-22 Andrew Cagney <ac131313@redhat.com>
506
507 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
508 to default_frame_address.
509 * gdbarch.h, gdbarch.c: Re-generate.
510
511 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
512 or frame_locals_address to default_frame_address.
513 * m68k-tdep.c (m68k_gdbarch_init): Update.
514 * i386-tdep.c (i386_gdbarch_init): Update.
515 * frv-tdep.c (frv_gdbarch_init): Update.
516 * sh-tdep.c (sh_gdbarch_init): Update.
517 * v850-tdep.c (v850_gdbarch_init): Update.
518 * sparc-tdep.c (sparc_gdbarch_init): Update.
519 * mips-tdep.c (mips_gdbarch_init): Update.
520 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
521 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
523
524 * cris-tdep.c (cris_frame_args_address): Delete function.
525 (cris_frame_locals_address): Delete function.
526 (cris_gdbarch_init): Do not set frame_args_address or
527 frame_locals_address.
528
f7c1e0f3
MS
5292002-11-22 Michael Snyder <msnyder@redhat.com>
530
531 * thread-db.c (thread_db_load): Tell the user what's going on
532 if dlopen fails on libthread_db.
533
03dac896
AS
5342002-11-23 Andreas Schwab <schwab@suse.de>
535
536 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
537 invariant return values.
538
7a67d0fe
AS
5392002-11-22 Andreas Schwab <schwab@suse.de>
540
541 * valops.c (value_slice): Move declaration of `offset' to avoid
542 warning.
543
5633f842
CF
5442002-11-22 Christopher Faylor <cgf@redhat.com>
545
546 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
547 (struct so_stuff): Add end_addr field.
548 (register_loaded_dll): Calculate and store end address of loaded dll.
549 (solib_address): New function.
550 (child_solib_loaded_library_pathname): Pass carefully constructed
551 section info to safe_symbol_file_add rather than ignoring it.
552 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
553 DLL is loaded.
554 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
555 (child_create_inferior): Fix a compiler warning.
556 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
557 (solib_address): Declare new function.
558
d85fe7f7
AS
5592002-11-22 Andreas Schwab <schwab@suse.de>
560
561 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
562 and FPS registers.
563
8308e54c
DJ
5642002-11-21 Daniel Jacobowitz <drow@mvista.com>
565
566 * maint.c (_initialize_maint_cmds): Fix typo. From
567 Francesco Potorti` <pot@gnu.org>.
568
8997bd5e
AC
5692002-11-21 Andrew Cagney <cagney@redhat.com>
570
571 * mips-tdep.c (mips_dump_tdep): Delete references to
572 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
573 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
574 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
575 * printcmd.c (build_address_symbolic): Delete calls to
576 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
577 (address_info): Ditto.
578 Fix PR gdb/773.
579
4e87b832
KD
5802002-11-19 Klee Dienes <kdienes@apple.com>
581 Adam Fedor <fedor@gnu.org>
582
583 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
584 the ability to explicitly specify the quote characters and word
585 break characters; if NULL is specified for either, use the old
586 behavior of using the characters used by the completer.
587 (skip_chars): New function. Convenience wrapper around
588 skip_quoted_chars to provide the original skip_chars behavior.
589 * completer.h (skip_quoted_chars): Add prototype.
590
9ba8d803
AC
5912002-11-19 Andrew Cagney <ac131313@redhat.com>
592
593 Problems reported by Paul Eggert.
594 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
595
0a595803
AS
5962002-11-19 Andreas Schwab <schwab@suse.de>
597
598 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
599 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
600 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
601 (m68k_linux_frame_saved_pc): Move to ...
602 * m68klinux-tdep.c: ... here. New file.
603 * Makefile.in (m68klinux-tdep.o): Add dependencies.
604 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
605
e8afa4d7
AF
6062002-11-19 Adam Fedor <fedor@gnu.org>
607
608 * objc-exp.y: Revert to old skip_quoted usage.
609
a76c9d72
AF
6102002-11-19 Adam Fedor <fedor@gnu.org>
611
612 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
613 (objc_lang_h): Define.
614 (YYFILES): Add objc-exp.tab.c.
615 (local-maintainer-clean): Remove objc-exp.tab.c.
616 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
617
fd0e9d45
PM
6182002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
619
620 * p-exp.y (typecast rule): Add automatic dereference of
621 pascal classes if needed.
622 (THIS): Set current_type.
623 Automatically dereference pascal classes.
624 (typebase rule): Add ^typebase recognition.
625
82eeeb94
AF
6262002-11-18 Adam Fedor <fedor@gnu.org>
627
628 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
629 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
630 (op_name): Handle OP_OBJC_SELF.
631 * Makefile.in (expprint.o): Add additional depends.
632
646df18d
AF
6332002-11-18 Adam Fedor <fedor@gnu.org>
634
635 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
636 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
637 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
638 * objc-exp.y: Likewise.
639
379b85df
AF
6402002-11-18 Adam Fedor <fedor@gnu.org>
641
642 * gdb/parser-defs.h: (struct objc_class_str): New structure
643 for parsing ObjC classes.
644
85cf597a
AC
6452002-11-18 Andrew Cagney <ac131313@redhat.com>
646
647 * stack.c (frame_relative_level): Copy function from here ...
648 * frame.c (frame_relative_level): ...to here.
649
5a203e44
AC
6502002-11-18 Andrew Cagney <ac131313@redhat.com>
651
652 * frame.h (enum frame_type): Define.
653 (get_frame_type): Declare.
654 (struct frame_info): Add field `type'. Delete field
655 signal_handler_caller.
656 (deprecated_set_frame_signal_handler_caller): Declare.
657 * frame.c (get_frame_type): New function.
658 (deprecated_set_frame_type): New function.
659 (create_new_frame): Set the frame's type.
660 (get_prev_frame): Similar.
661 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
662 * s390-tdep.c: Ditto.
663 * m68klinux-nat.c: Ditto.
664 * ns32k-tdep.c: Ditto.
665 * x86-64-linux-tdep.c: Ditto.
666 * vax-tdep.c: Ditto.
667 * rs6000-tdep.c: Ditto.
668 * ppc-linux-tdep.c: Ditto.
669 * i386-interix-tdep.c: Ditto.
670 * mips-tdep.c: Ditto.
671 * m68k-tdep.c: Ditto.
672 * hppa-tdep.c: Ditto.
673 * ia64-tdep.c: Ditto.
674 * cris-tdep.c: Ditto.
675 * arm-tdep.c: Ditto.
676 * alpha-tdep.c: Ditto.
677 * i386-tdep.c: Ditto.
678 * stack.c: Ditto.
679 * ada-lang.c: Ditto.
680 * blockframe.c: Update.
681 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
682 deprecated_set_frame_type instead of signal_handler_caller.
683 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
684 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
685 * breakpoint.h: Delete FIXME suggesting get_frame_type.
686
bf4ae8b2
KD
6872002-11-18 Klee Dienes <kdienes@apple.com>
688
689 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
690
a672ef13
KD
6912002-11-18 Klee Dienes <kdienes@apple.com>
692
693 * buildsym.c (pop_context): Add comment.
694
0c5e171a
KD
6952002-11-18 Klee Dienes <kdienes@apple.com>
696
697 * buildsym.h (pop_context): Convert to function, defined in
698 buildsym.c.
699 * buildsym.c: Include gdb_assert.h.
700 (pop_context): Implement as C function. Add check for stack
701 underflow.
702 * dbxread.c (process_one_symbol): Complain and stop processing
703 that symbol if we are already at the top of the context stack for
704 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
705 when processing N_RBRAC.
706
8a1f4c4c
DJ
7072002-11-16 Daniel Jacobowitz <drow@mvista.com>
708
709 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
710 define.
711 (struct target_waitstatus): Add opaque definition.
712 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
713 * exec.c (init_exec_ops): Likewise.
714 * fork-child.c (clone_and_follow_inferior): Remove.
715 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
716 * inferior.h (clone_and_follow_inferior): Remove prototype.
717 * infrun.c (follow_fork_mode_both): Remove.
718 (follow_fork_mode_kind_names): Remove commented out "both".
719 (follow_inferior_fork): Remove follow_fork_mode_both support.
720 * inftarg.c (child_clone_and_follow_inferior): Remove.
721 (child_post_follow_inferior_by_clone): Remove.
722 (init_child_ops): Don't set to_clone_and_follow_inferior
723 or to_post_follow_inferior_by_clone.
724 * target.c (default_clone_and_follow_inferior): Remove.
725 (cleanup_target): Don't set to_clone_and_follow_inferior
726 or to_post_follow_inferior_by_clone.
727 (find_default_clone_and_follow_inferior): Remove.
728 (init_dummy_target): Don't set to_clone_and_follow_inferior.
729 (debug_to_clone_and_follow_inferior): Remove.
730 (debug_to_post_follow_inferior_by_clone): Remove.
731 (setup_target_debug): Don't set to_clone_and_follow_inferior
732 or to_post_follow_inferior_by_clone.
733 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
734 and to_post_follow_inferior_by_clone.
735 (child_clone_and_follow_inferior): Remove prototype.
736 (child_post_follow_inferior_by_clone): Remove prototype.
737 (target_clone_and_follow_inferior): Remove macro.
738 (target_post_follow_inferior_by_clone): Remove macro.
739 (find_default_clone_and_follow_inferior): Remove prototype.
740
47932f85
DJ
7412002-11-16 Daniel Jacobowitz <drow@mvista.com>
742
743 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
744 inferior_has_vforked, and inferior_has_execd instead of
745 target_has_forked, target_has_vforked, and target_has_execd.
746 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
747 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
748 (CHILD_WAIT): Define.
749 (child_wait): Add prototype.
750 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
751 Add prototype.
752 (hpux_has_vforked): Likewise, from child_has_vforked.
753 (hpux_has_execd): Likewise, from child_has_execd.
754 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
755 (not_same_real_pid, child_wait): New, copied from inftarg.c.
756 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
757 and hpux_has_syscall_event instead of the target hooks.
758 * infrun.c (inferior_has_forked, inferior_has_vforked)
759 (inferior_has_execd): New functions.
760 * inftarg.c (not_same_real_pid): Remove.
761 (child_wait): Remove references to not_same_real_pid,
762 target_has_forked, target_has_vforked, target_has_execd,
763 and target_has_syscall_event.
764 (child_has_forked, child_has_vforked, child_has_execd)
765 (child_has_syscall_event): Remove.
766 (init_child_ops): Remove references to child_has_forked,
767 child_has_vforked, child_has_execd, and child_has_syscall_event.
768 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
769 (hpux_has_vforked): Likewise, from child_has_vforked.
770 (hpux_has_execd): Likewise, from child_has_execd.
771 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
772 * target.c (cleanup_target): Remove references to
773 to_has_forked, to_has_vforked, to_has_execd, and
774 to_has_syscall_event.
775 (update_current_target): Likewise.
776 (setup_target_debug): Likewise.
777 (debug_to_has_forked): Remove.
778 (debug_to_has_vforked): Remove.
779 (debug_to_has_execd): Remove.
780 (debug_to_has_syscall_event): Remove.
781 * target.h (struct target_ops): Remove to_has_forked.
782 to_has_vforked, to_has_execd, and to_has_syscall_event.
783 (child_has_forked, child_has_vforked, child_has_execd)
784 (child_has_syscall_event): Remove prototypes.
785 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
786 prototypes.
787 (target_has_forked, target_has_vforked, target_has_execd)
788 (target_has_syscall_event): Remove macros.
789
4088142a
DJ
7902002-11-16 Daniel Jacobowitz <drow@mvista.com>
791
792 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
793 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
794 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
795 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
796 * target.c (cleanup_target): Remove reference to
797 to_can_follow_vfork_prior_to_exec.
798 (update_current_target): Likewise.
799 (debug_to_can_follow_vfork_prior_to_exec): Remove.
800 (setup_target_debug): Remove reference to
801 to_can_follow_vfork_prior_to_exec.
802 * target.h (struct target_ops): Remove
803 to_can_follow_vfork_prior_to_exec.
804 (child_can_follow_vfork_prior_to_exec): Remove prototype.
805 (target_can_follow_vfork_prior_to_exec): Remove definition.
806 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
807 define.
808 * infrun.c (follow_vfork_when_exec): Remove.
809 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
810 (follow_exec): Likewise.
811 (handle_inferior_event): Likewise.
812 (keep_going): Likewise.
813
18cde8d5
AC
8142002-11-15 Andrew Cagney <cagney@redhat.com>
815
816 * frame.c (generic_unwind_get_saved_register): Make static.
817 * frame.h (generic_unwind_get_saved_register): Delete declaration.
818 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
819 defaults to generic_unwind_get_saved_register.
820 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
821 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
822 * frv-tdep.c (frv_gdbarch_init): Ditto.
823 * i386-tdep.c (i386_gdbarch_init): Ditto.
824 * s390-tdep.c (s390_gdbarch_init): Ditto.
825 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
826 * v850-tdep.c (v850_gdbarch_init): Ditto.
827 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
828 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
829 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
830
a6b063af
AC
8312002-11-15 Andrew Cagney <cagney@redhat.com>
832
833 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
834 i386-tdep.c.
835
f407986f
AC
8362002-11-15 Andrew Cagney <cagney@redhat.com>
837
838 * frame.h (sigtramp_saved_pc): Delete declaration.
839 * blockframe.c (sigtramp_saved_pc): Delete function.
840 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
841 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
842 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
843 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
844
f18c5a73
AC
8452002-11-15 Andrew Cagney <ac131313@redhat.com>
846
847 * frame.c (frame_pc_unwind): New function.
848 (frame_saved_regs_pc_unwind): New function.
849 (frame_register_unwind): Pass unwind_cache instead of
850 register_unwind_cache.
851 (set_unwind_by_pc): Add unwind_pc parameter, set.
852 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
853 (get_prev_frame): Ditto.
854 * frame.h (frame_pc_unwind_ftype): Declare.
855 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
856 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
857 (frame_pc_unwind): Declare.
858 * dummy-frame.c (dummy_frame_pc_unwind): New function.
859 (struct dummy_frame): Add comment mentioning that values are for
860 previous frame.
861 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
862 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
863 (generic_file_frame_chain_valid): Ditto.
864 * stack.c (frame_info): Ditto.
865
d9285969 8662002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
867
868 * linespec.c (locate_first_half): New function.
869 (decode_line_1): Move code into locate_first_half.
870
d741b867
AC
8712002-11-15 Andrew Cagney <ac131313@redhat.com>
872
873 * complaints.h: Add comment explaining how to eliminate a
874 deprecated_complain call.
24382c5c 875 * complaints.h: Fix spelling errors.
d741b867 876
82d03c99
DC
8772002-11-15 David Carlton <carlton@math.stanford.edu>
878
879 * printcmd.c: Remove #include "disasm.h".
880
c97eb5d9
AC
8812002-11-14 Andrew Cagney <ac131313@redhat.com>
882
883 * frame.h: Move the most relevant interface functions to the start
884 of the file.
885
524d7c18
AC
8862002-11-14 Andrew Cagney <ac131313@redhat.com>
887
888 * regcache.h (deprecated_registers): Rename registers.
889 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
890 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
891 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
892 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
893 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
894 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
895 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
896 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
897 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
898 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
899 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
900 * v850ice.c: Update.
901
6411e720
AC
902Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
903
904 * utils.c (gdb_realpath): Add comment mentioning realpath with a
905 NULL buffer.
906
73937e03
AC
9072002-11-13 Andrew Cagney <cagney@redhat.com>
908
909 * regcache.h (deprecated_read_register_bytes): Rename
910 read_register_bytes.
911 (deprecated_write_register_bytes): Rename write_register_bytes.
912 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
913 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
914 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
915 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
916 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
917 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
918 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
919 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
920 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
921 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
922 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
923 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
924 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
925 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
926
fb0cd46e
JB
9272002-11-13 Jim Blandy <jimb@redhat.com>
928
929 * findvar.c (read_var_value): Doc fix.
930
2d28509a
AC
9312002-11-13 Andrew Cagney <cagney@redhat.com>
932
933 * regcache.c (struct regcache): Replace passthough_p with
934 readonly_p.
935 (regcache_xmalloc): Initialize readonly_p.
936 (build_regcache): Initialize readonly_p.
937 (regcache_save): New function.
938 (regcache_restore): New function.
939 (regcache_cpy): Re-implement using regcache_save and
940 regcache_restore.
941 (regcache_raw_read): Update.
942 (regcache_cooked_read): When a read-only cache, checked for cached
943 pseudo register values.
944 (regcache_raw_write): Assert that the cache is not read-only.
945 Remove code handling a non-passthrough cache.
946 * regcache.h (regcache_save): Declare.
947 (regcache_restore): Declare.
948
067df2e5
AC
9492002-11-13 Andrew Cagney <cagney@redhat.com>
950
951 * regcache.c (struct regcache_descr): Add fields
952 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
953 (init_legacy_regcache_descr): Compute the size of a cooked
954 register cache and then assign that to sizeof_raw_registers. Set
955 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
956 (init_legacy_regcache_descr): Ditto.
957
51b1fe4e
AC
9582002-11-13 Andrew Cagney <cagney@redhat.com>
959
960 * regcache.c (register_buffer): Move to near start of file, update
961 description.
962 (regcache_raw_read): Use.
963 (regcache_raw_write): Use.
964 (struct regcache): Rename raw_registers to registers and
965 raw_register_valid_p to register_valid_p.
966 (regcache_xmalloc): Update.
967 (regcache_xfree): Update.
968 (register_buffer): Update.
969 (regcache_cpy): Update.
970 (regcache_cpy_no_passthrough): Update.
971 (regcache_valid_p): Update.
972 (deprecated_grub_regcache_for_registers): Update.
973 (deprecated_grub_regcache_for_register_valid): Update.
974 (set_register_cached): Update.
975 (regcache_raw_write): Update.
976
80b4c677
PM
9772002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
978
979 * p-exp.y (name_not_typename): Use copy_name to
980 set current_type variable for fields of THIS.
981
0f3fafde
DJ
9822002-11-12 Daniel Jacobowitz <drow@mvista.com>
983
984 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
985 * monitor.c (init_base_monitor_ops): Likewise.
986 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
987 * remote-array.c (init_array_ops): Likewise.
988 * remote-e7000.c (init_e7000_ops): Likewise.
989 * remote-es.c (init_es1800_ops): Likewise.
990 (init_es1800_child_ops): Likewise.
991 * remote-rdp.c (init_remote_rdp_ops): Likewise.
992 * remote-sim.c (init_gdbsim_ops): Likewise.
993 * remote-st.c (init_st2000_ops): Likewise.
994 * sol-thread.c (init_sol_core_ops): Likewise.
995 (init_sol_thread_ops): Likewise.
996 * v850ice.c (init_850ice_ops): Likewise.
997 * win32-nat.c (init_child_ops): Likewise.
998 * wince.c (init_child_ops): Likewise.
999
82c0260e
AC
10002002-11-12 Andrew Cagney <ac131313@redhat.com>
1001
1002 * utils.c (gdb_realpath): Make rp a constant pointer.
1003
70d35819
AC
10042002-11-12 Andrew Cagney <ac131313@redhat.com>
1005
1006 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1007 a constant buffer; cannonicalize_file_name(); realpath() with a
1008 pathconf() defined buffer, xstrdup().
1009
9835a8b0
AC
10102002-11-12 Andrew Cagney <ac131313@redhat.com>
1011
1012 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1013 to hang2.C; hang3.c to hang3.C.
1014
3f47be5c
EZ
10152002-11-11 Elena Zannoni <ezannoni@redhat.com>
1016
1017 * findvar.c (read_var_value): Reenable TLS code.
1018
10192002-11-11 Elena Zannoni <ezannoni@redhat.com>
1020 Jim Blandy <jimb@redhat.com>
1021
1022 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1023 * target.c (update_current_target): Add
1024 to_get_thread_local_address.
1025 * target.h (to_get_thread_local_address): Export.
1026 (target_get_thread_local_address): Define.
1027 (target_get_thread_local_address_p): Define.
1028 * thread-db.c: Include solib-svr4.h.
1029 (td_thr_tls_get_addr_p): Define.
1030 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1031 (thread_db_get_thread_local_address): New function.
1032 (init_thread_db_ops): Initialize to_get_thread_local_address.
1033 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1034 * configure: Regenerate.
1035 * config.in: Regenerate.
1036
636b1a6d
DC
10372002-11-11 David Carlton <carlton@math.stanford.edu>
1038
1039 * linespec.c (set_flags): New function.
1040 (decode_line_1): Move code into set_flags.
1041
44fe14ab
DC
10422002-11-11 David Carlton <carlton@math.stanford.edu>
1043
1044 * linespec.c (decode_line_1): Move chunks of code to separate
1045 functions.
1046 (initialize_defaults): New function.
1047 (decode_indirect): New function.
1048
e6f181f5
AC
10492002-11-11 Andrew Cagney <ac131313@redhat.com>
1050
8971b011
AC
1051 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1052 instead of void_code_ptr.
1053 (sigtramp_saved_pc): Ditto.
1054
e6f181f5
AC
1055 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1056 i386_fp_regnum_p.
1057
01ad7f36
DJ
10582002-11-10 Daniel Jacobowitz <drow@mvista.com>
1059
1060 * gdbtypes.h (struct main_type): Move artificial flag out of
1061 loc. New member of ``struct field'' named static_kind. Reduce
1062 overloaded meaning of bitsize.
1063 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1064 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1065 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1066
1067 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1068 new fields.
1069 (template_to_fixed_record_type, template_to_static_fixed_type)
1070 (to_record_with_fixed_variant_part): Likewise.
1071 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1072 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1073 * dwarfread.c (struct_type, enum_type): Likewise.
1074 * hpread.c (hpread_read_enum_type)
1075 (hpread_read_function_type, hpread_read_doc_function_type)
1076 (hpread_read_struct_type): Likewise.
1077 * mdebugread.c (parse_symbol): Likewise.
1078
bf1e52be
AC
10792002-11-10 Andrew Cagney <ac131313@redhat.com>
1080
1081 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1082 * stack.c (print_frame_info_base): Update.
1083 (print_frame_info_base, frame_info): Update.
1084 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1085 (sparc_frame_saved_pc): Update.
1086 * ada-lang.c (find_printable_frame): Update.
1087 * breakpoint.c (deprecated_frame_in_dummy): Update.
1088
ce556f85
MK
10892002-11-09 Mark Kettenis <kettenis@gnu.org>
1090
1091 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1092 defined.
1093 (regmap): Extend to cover all registers.
1094 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1095 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1096 definitions.
1097 (fetch_register, sore_register): Simplify.
1098 (old_fetch_inferior_registers, old_store_inferior_registers):
1099 Remove functions.
1100 (cannot_fetch_register, cannot_store_register): Change
1101 implementation to use regmap array to decide which registers
1102 cannot be fetched/stored. This removes $orig_eax from the
1103 registers that cannot be fetched/stored.
1104 (fetch_inferior_registers): Call fetch_register directly instead
1105 of calling old_fetch_inferior_registers.
1106 (store_inferior_registers): Call store_register directly instead
1107 of calling old_store_inferior_registers.
1108 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1109 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1110 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1111
932bb524
KD
11122002-11-09 Klee Dienes <kdienes@apple.com>
1113
1114 * i387-tdep.c (i387_supply_register): When called with NULL as a
1115 buffer, mark the register as not provided (to mirror the behavior
1116 of supply_register).
1117 (i387_supply_fxsave): Ditto.
1118 (i387_supply_fsave): Ditto (inherits the behavior from
1119 i387_supply_register).
1120
ebe68b27
KD
11212002-11-09 Klee Dienes <kdienes@apple.com>
1122
1123 * blockframe.c (sigtramp_saved_pc): Use
1124 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1125 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1126 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1127
15220c65
AC
11282002-11-09 Andrew Cagney <ac131313@redhat.com>
1129
1130 * frame.c (get_prev_frame): Test prev_p to identify a previously
1131 unwound frame. Initialize prev_p.
1132 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1133 comment.
1134
95adb866
AC
11352002-11-09 Andrew Cagney <ac131313@redhat.com>
1136
1137 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1138 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1139 more comments. Zap dead code.
1140
e71ecd70
MK
11412002-11-09 Mark Kettenis <kettenis@gnu.org>
1142
1143 * infcmd.c (print_vector_info, print_float_info): Move code that
1144 checks whether the target has any registers and whether there is a
1145 selected frame up, such that it is also used if a target provides
1146 multi-arch definitions of these functions.
1147
c525330d
AC
11482002-11-08 Andrew Cagney <ac131313@redhat.com>
1149
72bdd927
AC
1150 * Makefile.in (DESTDIR): Define.
1151 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1152 prefix.
1153
c525330d
AC
1154 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1155 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1156
38c968cf
AC
11572002-11-08 Andrew Cagney <ac131313@redhat.com>
1158
1159 * i386-linux-tdep.c: Include "reggroups.h".
1160 (i386_linux_register_reggroup_p): New function.
1161 (i386_linux_init_abi): Set register_reggroup_p to
1162 i386_linux_register_reggroup_p.
1163 * i386-tdep.h (i386_register_reggroup_p): Declare.
1164 * i386-tdep.c: Include "reggroups.h".
1165 (i386_init_reggroups): New function.
1166 (i386_add_reggroups): New function.
1167 (i386_register_reggroup_p): New function.
1168 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1169 (_initialize_i386_tdep): Call i386_init_reggroups.
1170 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1171 specific reggroups.
1172
19e33363
MK
11732002-11-09 Mark Kettenis <kettenis@gnu.org>
1174
371a6e84
MK
1175 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1176 request that's available in *BSD.
1177
94ba925a
MK
1178 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1179
19e33363
MK
1180 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1181 FDOFF_REGNUM.
1182
8779790c
AC
11832002-11-08 Andrew Cagney <ac131313@redhat.com>
1184
1185 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1186 * dummy-frame.c (find_dummy_frame): Rename
1187 generic_find_dummy_frame, make static. Return the dummy frame
1188 instead of the regcache.
1189 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1190 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1191 (dummy_frame_register_unwind): Rename
1192 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1193 * dummy-frame.h (dummy_frame_register_unwind): Rename
1194 generic_call_dummy_register_unwind.
1195
8674b74f
MK
11962002-11-08 Mark Kettenis <kettenis@gnu.org>
1197
1198 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1199 except the inclusion of "i386/tm-i386.h", to...
1200 * config/i386/nm-i386v42mp.h: ...here.
1201 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1202
4c1e7e9d
AC
12032002-11-08 Andrew Cagney <ac131313@redhat.com>
1204
1205 * Makefile.in (frame.o): Update dependencies.
1206 * blockframe.c (current_frame, frame_obstack_alloc)
1207 (frame_saved_regs_zalloc, get_current_frame)
1208 (set_current_frame, create_new_frame)
1209 (set_unwind_by_pc, get_next_frame)
1210 (flush_cached_frames, reinit_frame_cache)
1211 (frame_saved_regs_register_unwind)
1212 (deprecated_generic_get_saved_register)
1213 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1214 (_initialize_blockframe): Move frame code from here...
1215 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1216 "annotate.h" and "dummy-frame.h".
1217 (_initialize_frame): New function.
1218
921e78cf
JB
12192002-11-08 Jim Blandy <jimb@redhat.com>
1220
1221 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1222 when we finish a function a context.
1223 * buildsym.h (outermost_context_p): New macro.
1224 (Bug analyzed by David Edelsohn.)
1225
9c1412c1
AC
12262002-11-08 Andrew Cagney <ac131313@redhat.com>
1227
1228 * blockframe.c: Include "dummy-frame.h".
1229 (struct dummy_frame, dummy_frame_stack)
1230 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1231 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1232 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1233 (generic_save_call_dummy_addr, generic_pop_current_frame)
1234 (generic_pop_dummy_frame, generic_fix_call_dummy)
1235 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1236 dummy frame code from here...
1237 * dummy-frame.c: ...to here. New file.
1238 * dummy-frame.h: New file.
1239 (generic_call_dummy_register_unwind): Declare.
1240 (generic_find_dummy_frame): Declare.
1241 * Makefile.in (SFILES): Add dummy-frame.c.
1242 (dummy-frame.o): Specify dependencies.
1243 (dummy_frame_h): Define.
1244 (COMMON_OBS): Add dummy-frame.o.
1245 (blockframe.o): Update dependencies.
1246
208d8187
JB
12472002-11-08 Jim Blandy <jimb@redhat.com>
1248
1249 * dwarf2read.c (read_func_scope): Restore local_symbols and
1250 param_symbols after we finish the function context. (Based on a
1251 patch from David Edelsohn.)
1252
413dad4d
DC
12532002-11-08 David Carlton <carlton@math.stanford.edu>
1254
1255 * linespec.c (symbol_found): New function.
1256 (minsym_found): New function.
1257 (decode_line_1): Separate out some code into separate functions.
1258
5512c44a
JB
12592002-11-08 Joel Brobecker <brobecker@gnat.com>
1260
1261 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1262 the benefit of the interix target.
1263 * i386-tdep.h (i386_frameless_signal_p): Declare.
1264
1b33ef47
AC
12652002-11-08 Andrew Cagney <ac131313@redhat.com>
1266
1267 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1268 declaration that snuck in from change below.
1269
23a34459
AC
12702002-11-06 Andrew Cagney <cagney@redhat.com>
1271
1272 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1273 all callers.
1274 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1275 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1276 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1277 (i386_mxcsr_regnum_p): new function. Use instead of
1278 MXCSR_REGNUM_P.
1279 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1280 (i386_sse_regnum_p): Declare.
1281 (i386_mxcsr_regnum_p): Declare.
1282 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1283 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1284 (IS_FP_REGNUM): Update definition.
1285 (IS_FPU_CTRL_REGNUM): Update definition..
1286 (IS_SSE_REGNUM): Update definition..
1287 * i386v-nat.c (register_u_addr): Update.
1288 * go32-nat.c (fetch_register): Update.
1289 (store_register): Update.
1290
d709c020
JB
12912002-11-07 Joel Brobecker <brobecker@gnat.com>
1292
1293 Preparation work to convert the hppa targets to multiarch partial.
1294
1295 * hppa-tdep.c: Add new functions replacing macro bodies from
1296 config/pa/tm-hppa.h. These function will be used to initialize
1297 the gdbarch structure. Import some comments from tm-hppa.h,
1298 and place them where appropriate, to avoid loosing them when
1299 we cleanup this file.
1300 (hppa_reg_struct_has_addr): New function.
1301 (hppa_inner_than): New function.
1302 (hppa_stack_align): New function.
1303 (hppa_pc_requires_run_before_use): New function.
1304 (hppa_instruction_nullified): New function.
1305 (hppa_register_byte): New function.
1306 (hppa_register_virtual_type): New function.
1307 (hppa_store_struct_return): New function.
1308 (hppa_cannot_store_register): New function.
1309 (hppa_frame_args_address): New function.
1310 (hppa_frame_locals_address): New function.
1311 (hppa_smash_text_address): New function.
1312 (hppa_coerce_float_to_double): New function. Requires the inclusion
1313 of "language.h".
1314
1315 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1316
1317 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1318 gdbarch-eligible macro to a call to the new associated function
1319 created in hppa-tdep.c.
1320 (INNER_THAN): Likewise.
1321 (STACK_ALIGN): Likewise.
1322 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1323 (INSTRUCTION_NULLIFIED): Likewise.
1324 (REGISTER_BYTE): Likewise.
1325 (REGISTER_VIRTUAL_TYPE): Likewise.
1326 (STORE_STRUCT_RETURN): Likewise.
1327 (CANNOT_STORE_REGISTER): Likewise.
1328 (FRAME_ARGS_ADDRESS): Likewise.
1329 (FRAME_LOCALS_ADDRESS): Likewise.
1330 (SMASH_TEXT_ADDRESS): Likewise.
1331 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1332 (ABOUT_TO_RETURN): Delete, as no longer used.
1333
83c31e7d
FN
13342002-11-07 Fernando Nasser <fnasser@redhat.com>
1335
1336 * printcmd.c (disassemble_command): Remove obsolete function.
1337 (_initialize_printcmd): Do not create disassemble command here.
1338 * cli/cli-cmds.c (disassemble_command): New function. Implements
1339 disassemble command.
1340 (init_cli_cmds): Create disassemble command here instead.
1341
0ec30a36
AC
13422002-11-07 Andrew Cagney <ac131313@redhat.com>
1343
1344 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1345
e600bd34
AC
13462002-11-07 Andrew Cagney <ac131313@redhat.com>
1347
1348 * regcache.h (regcache_cooked_read_using_offset_hack)
1349 (regcache_cooked_write_using_offset_hack): Delete declarations.
1350 (register_changed): Delete declaration.
1351 * regcache.c (regcache_cooked_read_using_offset_hack)
1352 (regcache_cooked_write_using_offset_hack): Delete functions.
1353 (cooked_xfer_using_offset_hack): Delete function.
1354 (register_changed): Delete function.
1355
568f8739
JB
13562002-11-07 Jim Blandy <jimb@redhat.com>
1357
1358 * macroscope.c: #include "complaints.h".
1359 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1360 but not in the macro table.
1361 * Makefile.in (macroscope.o): Record dependency.
1362
b0718b7b
JB
13632002-11-07 Joel Brobecker <brobecker@gnat.com>
1364
1365 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1366
2b9e5f3f
AC
13672002-11-07 Andrew Cagney <ac131313@redhat.com>
1368
1369 * regcache.c (deprecated_registers_fetched): Update.
1370 * regcache.h (deprecated_registers_fetched): Rename
1371 registers_fetched.
1372 * remote-vxsparc.c (vx_read_register): Update.
1373 * remote-vxmips.c (vx_read_register): Update.
1374 * remote-vx68.c (vx_read_register): Update.
1375 * irix5-nat.c (fetch_core_registers): Update.
1376 * mipsm3-nat.c (fetch_inferior_registers): Update.
1377 * sun3-nat.c (fetch_inferior_registers): Update.
1378 * symm-nat.c (fetch_inferior_registers): Update.
1379 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1380 (fetch_core_registers): Update.
1381 (fetch_kcore_registers): Update.
1382 * mips-nat.c (fetch_inferior_registers): Update.
1383 * corelow.c (get_core_registers): Update.
1384 * a68v-nat.c (fetch_inferior_registers): Update.
1385
e6e68f1f
JB
13862002-11-06 Joel Brobecker <brobecker@gnat.com>
1387
1388 Put in place the framework necessary for multiarching the hppa targets.
1389 * hppa-tdep.c (hppa_gdbarch_init): New function.
1390 (hppa_dump_tdep): New function.
1391 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1392 tdep structure dumper.
1393 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1394 until the multi-arching conversion has partially been completed.
1395
492254e9
AC
13962002-11-06 Andrew Cagney <ac131313@redhat.com>
1397
1398 * valops.c (value_assign): Merge lval_register case into
1399 lval_reg_frame_relative. Use frame_register and
1400 regcache_cooked_write instead of get_saved_register and
1401 write_register_bytes. After flushing the register cache, try to
1402 re-select the selected frame.
1403
8262ee23
AC
14042002-11-06 Andrew Cagney <ac131313@redhat.com>
1405
1406 * regcache.h (deprecated_register_valid): Rename register_valid.
1407 * regcache.c: Update.
1408 * ia64-aix-nat.c: Update.
1409 * i386gnu-nat.c: Update.
1410 * alpha-nat.c: Update.
1411 * sparc-nat.c: Update.
1412 * lynx-nat.c: Update.
1413 * remote-mips.c: Update.
1414
4facf7e8
JB
14152002-11-06 Joel Brobecker <brobecker@gnat.com>
1416
1417 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1418 to end of file, to be more consistent with the pratice followed
1419 by other targets.
1420
f9418c0f
AC
14212002-11-06 Andrew Cagney <ac131313@redhat.com>
1422
1423 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1424 (print_float_info): Print registers in float_reggroup.
1425 (print_vector_info): Print registers in vector_reggroup.
1426 (default_print_registers_info): When all, print registers in
1427 all_reggroup. Otherwize, print registers in general_reggroup.
1428 (registers_info): Rewrite. Add support for register groups.
1429 Eliminate a goto.
1430
3fe235a7
EZ
14312002-11-06 Elena Zannoni <ezannoni@redhat.com>
1432
1433 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1434 ages.
1435 (symtab_symbol_info): Remove eons old ifdeffed out code.
1436 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1437 command.
1438
ef944135
TR
14392002-11-06 Theodore A. Roth <troth@openavr.org>
1440
1441 * c-exp.y: Add missing semi-colons.
1442 * f-exp.y: Add missing semi-colons.
1443 * m2-exp.y: Add missing semi-colons.
1444 * p-exp.y: Add missing semi-colons.
1445 Add empty action to start rule to avoid a type clash error when
1446 building with bison >= 1.50.
1447
f8302a57
JB
14482002-11-06 Jim Blandy <jimb@redhat.com>
1449
1450 * macrotab.h (struct macro_source_file): Doc fix.
1451
6e382aa3
JJ
14522002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1453
1454 * varobj.c (child_exists, cplus_number_of_children): Change
1455 STREQ macro references to strcmp.
1456 (cplus_name_of_child): Change code to handle the fact that
1457 fields are not necessarily contiguous with regards to their
1458 access control. This is a fix for PR gdb/792.
1459
a216a322
AC
14602002-11-05 Andrew Cagney <ac131313@redhat.com>
1461
1462 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1463 * gdbarch.h, gdbarch.c: Regnerate.
1464 * frame.h (frame_register): Declare.
1465 * frame.c (frame_register): New function.
1466 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1467 GET_SAVED_REGISTER, otherwize call
1468 generic_unwind_get_saved_register.
1469 (frame_register_read): Use frame_register instead of
1470 get_saved_register.
1471
7d5b6fdd
EZ
14722002-11-05 Elena Zannoni <ezannoni@redhat.com>
1473
1474 From Jim Ingham <jingham@apple.com>:
1475 * event-top.c (gdb_disable_readline): New function.
1476 (_initialize_event_loop): Move comment.
1477
b7c64260
EZ
14782002-11-05 Elena Zannoni <ezannoni@redhat.com>
1479
1480 * event-loop.c (start_event_loop): Add comment.
1481 Update copyright.
1482
c2e1b8f2
AC
14832002-11-05 Andrew Cagney <ac131313@redhat.com>
1484
1485 * infcmd.c (default_print_registers_info): Do not call
1486 PRINT_REGISTER_HOOK.
1487
87647bb0
AC
14882002-11-05 Andrew Cagney <ac131313@redhat.com>
1489
1490 * sparc-tdep.c (sparc_print_register_hook): Make static.
1491 (sparc_print_registers_info): New function.
1492 (sparc_do_registers_info): New function.
1493 (sparclet_print_registers_info): New function.
1494 (sparclet_do_registers_info): New function.
1495 (do_sparc_print_registers_info): New function.
1496 (sparc_print_registers): New static function, clone of infcmd.c's
1497 default_print_registers_info.
1498 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1499 (sparclet_do_registers_info): Declare.
1500 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1501 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1502 Re-define.
1503 (sparc_do_registers_info): Declare.
1504 (PRINT_REGISTER_HOOK): Delete macro.
1505 (sparc_print_register_hook): Delete declaration.
1506
8155455b
DC
15072002-11-05 David Carlton <carlton@math.stanford.edu>
1508
1509 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1510 functions.
1511 (lookup_symbol_aux_local): New function.
1512 (lookup_symbol_aux_symtabs): New function.
1513 (lookup_symbol_aux_psymtabs): New function.
1514
29924310
DC
15152002-11-05 David Carlton <carlton@math.stanford.edu>
1516
1517 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1518 previous values of 'objfile' and 'block'.
1519
cc303028
PM
15202002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1521
1522 * values.c (value_change_enclosing_type): Set
1523 enclosing_type field correctly also for the case where
1524 more memory needs to be allocated.
1525
1d70089a
MK
15262002-11-03 Mark Kettenis <kettenis@gnu.org>
1527
f16a25ae
MK
1528 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1529 of puts_filtered.
1530
1d70089a
MK
1531 * i387-tdep.c (i387_print_float_info): Replace calls to
1532 register_read and deprecated_read_register_gen with calls to
1533 frame_register_read, and make the necessary adjustments to the
1534 surrounding code.
1535
7e20f3fb
AC
15362002-11-02 Andrew Cagney <ac131313@redhat.com>
1537
1538 * gdbarch.sh (register_reggroup_p): Allow default value.
1539 * gdbarch.h, gdbarch.c: Regenerate.
1540
192dbe33
AC
15412002-11-02 Andrew Cagney <ac131313@redhat.com>
1542
1543 * regcache.h: Add coment indicating replacements for deprecated
1544 functions.
1545
b59ff9d5
AC
15462002-11-02 Andrew Cagney <cagney@redhat.com>
1547
1548 * reggroups.h, reggroups.c: New files.
1549 * regcache.c: Include "reggroups.h".
1550 (enum regcache_dump_what): Add `regcache_dump_groups'.
1551 (regcache_dump): Contract size of the "Type" column. When
1552 specified, dump the register's groups.
1553 (maintenance_print_register_groups): New function.
1554 (_initialize_regcache): Add command `maint print register-groups'.
1555 * Makefile.in (COMMON_OBS): Add reggroups.o
1556 (SFILES): Add reggroups.c.
1557 (reggroups_h): Define.
1558 (regcache.o, gdbarch.o): Update dependencies.
1559 (reggroups.o): Specify dependencies.
1560 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1561 Add opaque declaration for `struct reggroup' in generated .h file.
1562 Include "reggroups.h" in generated .c file.
1563 gdbarch.h, gdbarch.c: Re-generate.
1564
4caf0990
AC
15652002-11-02 Andrew Cagney <cagney@redhat.com>
1566
1567 * regcache.h (deprecated_read_register_gen): Rename
1568 read_register_gen.
1569 (deprecated_write_register_gen): Rename write_register_gen.
1570 * i387-tdep.c: Update.
1571 * x86-64-linux-nat.c: Update
1572 * wince.c: Update.
1573 * thread-db.c: Update.
1574 * win32-nat.c: Update.
1575 * mips-tdep.c: Update.
1576 * d10v-tdep.c: Update.
1577 * cris-tdep.c: Update.
1578 * remote-sim.c: Update.
1579 * remote-rdi.c: Update.
1580 * remote-rdp.c: Update.
1581 * frame.c: Update.
1582 * target.c: Update.
1583 * blockframe.c: Update.
1584 * x86-64-tdep.c: Update.
1585 * xstormy16-tdep.c: Update.
1586 * sh-tdep.c: Update.
1587 * s390-tdep.c: Update.
1588 * rs6000-tdep.c: Update.
1589 * sparc-tdep.c: Update.
1590 * i386-tdep.c: Update.
1591 * dwarf2cfi.c: Update.
1592 * regcache.c: Update.
1593
7a7adcdf
JB
15942002-11-01 Joel Brobecker <brobecker@gnat.com>
1595
1596 New interix-specific files:
1597 * config/i386/nm-interix.h: New file.
1598 * config/i386/interix.mh: New file.
1599 * config/i386/interix.mt: New file.
1600 * i386-interix-nat.c: New file.
1601 * i386-interix-tdep.c: New file.
1602
bdcdd535
AC
16032002-11-01 Andrew Cagney <cagney@redhat.com>
1604
1605 * frame.h (deprecated_generic_get_saved_register): Rename
1606 generic_get_saved_register.
1607 * blockframe.c (deprecated_generic_get_saved_register): Update.
1608 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1609 (xstormy16_frame_saved_register): Update.
1610 * sh-tdep.c (sh_gdbarch_init): Update.
1611 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1612 * ia64-tdep.c (ia64_get_saved_register): Update.
1613 * cris-tdep.c (cris_gdbarch_init): Update.
1614 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1615 * arm-tdep.c (arm_gdbarch_init): Update.
1616
2a4b7c45
DJ
16172002-10-31 Daniel Jacobowitz <drow@mvista.com>
1618
1619 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1620
ef17e74b
DJ
16212002-10-31 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1624 trampolines in sigaction.
1625
4904ba5b
AC
16262002-10-31 Andrew Cagney <cagney@redhat.com>
1627
1628 * h8300-tdep.c: Include "gdb_assert.h".
1629 (h8300_print_register): Add gdbarch, file and frame parameters.
1630 Use frame_read_unsigned_register to read the register's value.
1631 Use fprintf_filtered to display output.
1632 (h8300_print_registers_info): Replace h8300_do_registers_info.
1633 (h8300_gdbarch_init): Set print_registers_info.
1634
f908a0eb
AC
16352002-10-31 Andrew Cagney <cagney@redhat.com>
1636
1637 * frame.c (frame_read_unsigned_register): New function.
1638 (frame_read_signed_register): New function.
1639 * frame.h (frame_read_unsigned_register): Declare.
1640 (frame_read_signed_register): Declare.
1641
c5646e11
AC
16422002-10-31 Andrew Cagney <cagney@redhat.com>
1643
1644 * h8500-tdep.c (h8500_print_registers_info): New static function,
1645 clone of infcmd.c's default_print_registers_info.
1646 (h8500_do_registers_info): New funtion.
1647 (h8500_print_register_hook): Rename print_register_hook, make
1648 static.
1649
1650 * config/h8500/tm-h8500.h: Update copyright.
1651 (DEPRECATED_DO_REGISTERS_INFO): Define.
1652 (h8500_do_registers_info: Declare.
1653 (PRINT_REGISTER_HOOK): Delete macro.
1654 (print_register_hook): Delete function.
1655
0bdd672b
AC
16562002-10-31 Andrew Cagney <cagney@redhat.com>
1657
1658 * z8k-tdep.c (z8k_print_register_hook): Make static.
1659 (z8k_print_registers_info): New static function, clone of
1660 infcmd.c's default_print_registers_info.
1661 (z8k_do_registers_info): New function. Wrap
1662 z8k_print_registers_info.
1663 * config/z8k/tm-z8k.h: Update copyright.
1664 (PRINT_REGISTER_HOOK): Delete macro.
1665 (z8k_print_register_hook): Delete declaration.
1666 (DEPRECATED_DO_REGISTERS_INFO): Define.
1667 (z8k_do_registers_info): Declare.
1668
bf9c25dc
JB
16692002-10-30 Joel Brobecker <brobecker@gnat.com>
1670
1671 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1672 as this is already provided by value.h, and was actually causing
1673 a compilation error because of a conflict in parameter type
1674 declaration due to a missing const keyword.
1675 (low_text_segment_addres): Fix a compilation warning.
1676
2c665b51
DJ
16772002-10-29 Daniel Jacobowitz <drow@mvista.com>
1678
1679 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1680 registers without a name.
1681 (mips_linux_cannot_store_register): Don't store registers without
1682 a name.
1683
e70ea697
DC
16842002-10-28 David Carlton <carlton@math.stanford.edu>
1685
1686 * symtab.c (find_addr_symbol): Delete. (It was already commented
1687 out.)
1688 * symtab.h: Delete prototype for find_addr_symbol.
1689
903ad3a6
AC
16902002-10-26 Andrew Cagney <cagney@redhat.com>
1691
1692 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1693 DO_REGISTERS_INFO.
1694 gdbarch.h, gdbarch.c: Re-generate.
1695 * infcmd.c (default_print_registers_info): Update reference.
1696 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1697 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1698 * sh-tdep.c (sh_gdbarch_init): Ditto.
1699 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1700 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1701
ab91194c
MK
17022002-10-26 Mark Kettenis <kettenis@gnu.org>
1703
e3033f15
MK
1704 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1705 cfi_init_extra_frame_info.
1706 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1707 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1708
b83b026c
MK
1709 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1710 target where necessary. Add more comments and remove the ones
1711 that don't provide any useful information.
1712
267bf4bb
MK
1713 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1714 deprecated_read_register_dummy with
1715 frame_unwind_unsigned_register.
1716
751f1375
MK
1717 * i386-tdep.c (i386_extract_struct_value_address): Use
1718 regcache_raw_read_unsigned instead of
1719 regcache_cooked_read_unsigned since we know that the register
1720 we're reading isn't a pseudo register. Rename variable 'val' into
1721 the more descriptive 'addr'.
1722
26abbdc4
MK
1723 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1724 (x86_64_push_return_address): Add comment.
1725 (x86_64_pop_frame): Make static.
1726 (examine_argument): Clarify comment.
1727 (x86_64_skip_prologue): Make prolog_expact variable static.
1728
9f1549cc
MK
1729 * dwarf2cfi.c: Fix some formatting problems.
1730 (context_cpy, read_encoded_pointer): Clarify comments.
1731
ab91194c
MK
1732 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1733 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1734 i386 target back into x86_64_gdbarch_init. Add some comments and
1735 remove meaningless ones.
1736
72367fb4
AC
17372002-10-25 Andrew Cagney <cagney@redhat.com>
1738
1739 * complaints.h (struct deprecated_complaint): Rename `struct
1740 complaint'.
1741 * complaints.c (complain): Update.
1742 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1743 incorrect comment indicating that "symfile.h" was being included
1744 for the `struct complaint' definition.
1745 * remote-vx.c: Update.
1746 * objc-lang.c: Update.
1747 * xcoffread.c: Update.
1748 * hpread.c: Update.
1749 * mdebugread.c: Update.
1750 * stabsread.c: Update.
1751 * dwarf2read.c: Update.
1752 * dwarfread.c: Update.
1753 * elfread.c: Update.
1754 * coffread.c: Update.
1755 * stabsread.h: Update.
1756 * dbxread.c: Update.
1757 * buildsym.c: Update.
1758 * gdbtypes.c: Update.
1759 * macrotab.c: Update.
1760
1f2baacc
MK
17612002-10-25 Mark Kettenis <kettenis@gnu.org>
1762
0c1a73d6
MK
1763 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1764 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1765 (x86_64_init_abi): ...new function.
1766
6aee4d54 1767 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1768 * i386v-nat.c: Include "i386-tdep.h".
1769
8f9cbe01
AC
17702002-10-25 Andrew Cagney <cagney@redhat.com>
1771
5f11f355
AC
1772 * gdbtypes.c (address_space_name_to_int): Update.
1773 (address_space_int_to_name): Update.
1774 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1775 multi-arch predicate.
1776 (address_class_name_to_type_flags): Ditto.
1777 * gdbarch.h, gdbarch.c: Re-generate.
1778
8f9cbe01
AC
1779 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1780
e8d96a5d
MH
17812002-10-24 Martin M. Hunt <hunt@redhat.com>
1782
1783 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1784
fe39c653
EZ
17852002-10-24 Elena Zannoni <ezannoni@redhat.com>
1786
1787 * symtab.h (INIT_SAL): Delete macro.
1788 (init_sal): Export.
1789 * symtab.c (init_sal): New function.
1790
1791 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1792 to init_sal function call.
1793 (find_sal_from_funcs_and_line): Ditto.
1794 (all_sals_for_line): Ditto.
1795 * breakpoint.c (create_internal_breakpoint): Ditto.
1796 (create_fork_vfork_event_catchpoint): Ditto.
1797 (create_exec_event_catchpoint): Ditto.
1798 (parse_breakpoint_sals): Ditto.
1799 (watch_command_1): Ditto.
1800 (handle_gnu_4_16_catch_command): Ditto.
1801 (clear_command): Ditto.
1802 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1803 * infcmd.c (run_stack_dummy): Ditto.
1804 * infrun.c (process_event_stop_test): Ditto.
1805 (check_sigtramp2): Ditto.
1806 (step_over_function): Ditto.
1807 * linespec.c (decode_line_2): Ditto.
1808 (decode_line_1): Ditto.
1809 * source.c (line_info): Ditto.
1810 * symtab.c (find_pc_sect_line): Ditto.
1811
baed091b
ML
18122002-10-24 Michal Ludvig <mludvig@suse.cz>
1813
1814 * dwarf2cfi.c (struct context)
1815 (struct context_reg): Moved to dwarf2cfi.h
1816 (context_alloc, frame_state_alloc, context_cpy):
1817 Made extern instead of static, removed prototypes.
1818 * dwarf2cfi.h (struct context)
1819 (struct context_reg): New, moved from dwarf2cfi.c
1820 (context_alloc, frame_state_alloc, context_cpy):
1821 New prototypes.
1822 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1823 Changed from static to extern.
1824 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1825 (LINUX_SIGCONTEXT_FP_OFFSET)
1826 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1827 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1828 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1829 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1830 set_gdbarch_*() calls now use x86-64 specific functions
1831 instead of DWARF2 CFI ones.
1832 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1833 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1834 (x86_64_init_extra_frame_info): New prototypes.
1835
c38da1af
DC
18362002-10-23 David Carlton <carlton@math.stanford.edu>
1837
1838 * linespec.c: #include "parser-defs.h".
1839 Delete prototype for find_template_name_end.
1840 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1841
fb9b6b35
JJ
18422002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1843
1844 * NEWS: add recent mi fixes.
1845 * varobj.c (struct varobj): Add new "updated" flag.
1846 (new_variable): Default "updated" flag to 0.
1847 (varobj_set_value): Set "updated" flag to 1 if value
1848 changes.
1849 (varobj_update): Check varobj "updated" flag before
1850 comparing old and refreshed values. Fix for
1851 PR gdb/702.
1852
8da065d5
DC
18532002-10-23 David Carlton <carlton@math.stanford.edu>
1854
1855 * parse.c (parse_exp_1): Use BLOCK_START.
1856 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1857 SYMBOL_BLOCK_VALUE.
1858 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1859
87f2f08c
DC
18602002-10-23 David Carlton <carlton@math.stanford.edu>
1861
1862 * symtab.c: Delete cplusplus_hint.
1863 Delete prototype for find_template_name_end.
1864
88cda038
EZ
18652002-10-23 Elena Zannoni <ezannoni@redhat.com>
1866
1867 * symtab.h: Update comment.
1868
2625d86c
MS
18692002-10-23 Michael Snyder <msnyder@redhat.com>
1870
1871 * printcmd.c (address_info): Restore quotes in output.
1872 * valops.c (value_of_local): Restore quotes in error message.
1873
9cc0d196
EZ
18742002-10-23 Elena Zannoni <ezannoni@redhat.com>
1875
1876 * symtab.c (symbol_demangled_name): New function.
1877 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1878 turning most of it into a function.
1879 (symbol_demangled_name): Export.
1880
19de93d0
MS
18812002-10-23 Michael Snyder <msnyder@redhat.com>
1882
1883 * valops.c (value_of_local): Restore quotes in error message.
1884
89aad1f9
EZ
18852002-10-23 Elena Zannoni <ezannoni@redhat.com>
1886
1887 * symtab.c (symbol_init_language_specific): New function.
1888 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1889 turning most of it into a function.
1890 (symbol_init_language_specific): Export.
1891
d9fa45fe
DC
18922002-10-23 David Carlton <carlton@math.stanford.edu>
1893
1894 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1895 (dwarf_attr_name): Ditto.
1896 (dwarf_type_encoding_name): Ditto.
1897 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1898 (process_die): Handle DW_TAG_namespace,
1899 DW_TAG_imported_declaration, DW_TAG_imported_module.
1900 (read_namespace): New function.
1901
1045b512
JB
19022002-10-22 Joel Brobecker <brobecker@gnat.com>
1903
1904 * configure.in: Define NEW_PROC_API on Interix too.
1905 * configure: Regenerate.
1906
19072002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1908
1909 * configure: Regenerate using the proper version of autoconf.
1910
3987b9d4
EZ
19112002-10-21 Elena Zannoni <ezannoni@redhat.com>
1912
1913 * findvar.c (read_var_value): Temporarily disable TLS code, until
1914 complete TLS support is added.
1915
9d774e44
EZ
19162002-10-21 Jim Blandy <jimb@redhat.com>
1917 Elena Zannoni <ezannoni@redhat.com>
1918
1919 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1920 for thread local storage locations.
1921 (struct symbol): Add objfile field.
1922 (SYMBOL_OBJFILE): Define.
1923 * dwarf2read.c (is_thread_local): New static variable.
1924 (new_symbol): If variable is in thread local fill in address class
1925 and objfile appropriately.
1926 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1927 stack operation.
1928 * printcmd.c (address_info): Print the information for thread
1929 local storage variable.
1930 * findvar.c (read_var_value): In case of thread local variable,
1931 defer to the target vector code to compute address.
1932
bc4a16ae
EZ
19332002-10-21 Elena Zannoni <ezannoni@redhat.com>
1934
1935 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1936 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1937
407caf07
EZ
19382002-10-21 Elena Zannoni <ezannoni@redhat.com>
1939
1940 * symtab.h (address_class): Rename
1941 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1942 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1943 * printcmd.c (address_info): Ditto.
1944 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1945
005328e3
MK
19462002-10-20 Mark Kettenis <kettenis@gnu.org>
1947
afdb036a
MK
1948 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1949 DBREG_DRX macro to acces debug registers.
1950
ca02e098
MK
1951 * Makefile.in (i386obsd-tdep.o): New target.
1952
03cc47f7
MK
1953 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1954 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1955
005328e3
MK
1956 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1957 * config/i386/obsd.mt: New file.
1958 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1959 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1960 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1961 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1962 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1963 * i386obsd-tdep.c: New file.
1964
9c96f9f2
AF
19652002-10-19 Adam Fedor <fedor@gnu.org>
1966
1967 * objc-exp.y (name_not_typename): Fix invalid comment.
1968
ce1ed485
MK
19692002-10-20 Mark Kettenis <kettenis@gnu.org>
1970
1971 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1972 to allocate partial syms and macro byte caches.
1973
1efc7aaa
DC
19742002-10-18 David Carlton <carlton@math.stanford.edu>
1975
1976 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1977
7e1d63ec
AF
19782002-10-18 Adam Fedor <fedor@gnu.org>
1979
1980 * stabsread.c (find_name_end): New function.
1981 (define_symbol): Use it.
1982
6e8d29a9
DJ
19832002-10-18 Daniel Jacobowitz <drow@mvista.com>
1984
1985 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1986 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1987 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1988 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1989
1efc7aaa 19902002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1991
1992 * symfile.h: Add opaque declaration for struct obstack.
1993 Declare obsavestring to take a const char *.
1994 * symfile.c (obsavestring): Make first argument a const char *.
1995
1aeae86e
AF
19962002-10-16 Adam Fedor <fedor@gnu.org>
1997
1998 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1999 names when matching breakpoints in current file.
2000
8b2dbe47
KB
20012002-10-16 Kevin Buettner <kevinb@redhat.com>
2002
2003 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2004 (read_tag_pointer_type): Add address class support.
2005 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2006 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2007 New methods.
2008 * gdbarch.h, gdbarch.c: Regenerate.
2009 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2010 (make_type_with_address_space, recursive_type_dump): Add address
2011 class support.
2012 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2013 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2014 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2015
74451869
KD
20162002-10-16 Klee Dienes <kdienes@apple.com>
2017
2018 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2019 to get the last character of a char[] buffer, not
2020 name[sizeof(vptr_name)-1].
2021
ff4cb3e8
AF
20222002-10-14 Adam Fedor <fedor@gnu.org>
2023
2024 * symtab.h: New objc_specific struct.
2025 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2026 (SYMBOL_DEMANGLED_NAME): Likewise.
2027
da2cf7e0
AF
20282002-10-14 Adam Fedor <fedor@gnu.org>
2029
2030 * symfile.c (init_filename_language_table): Add ObjC file extension.
2031
4a351cef
AF
20322002-10-14 Adam Fedor <fedor@gnu.org>
2033
2034 * utils.c (puts_filtered_tabular): New function.
2035 (fprintf_symbol_filtered): Get ObjC demangled name.
2036 * defs.h (puts_filtered_tabular): Declared.
2037
9750e763
KB
20382002-10-14 Kevin Buettner <kevinb@redhat.com>
2039
2040 * c-lang.h (c_type_print_varspec_prefix): Delete.
2041 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2042 ``need_post_space'' parameter. Adjust all callers.
2043
eee771c1
DJ
20442002-10-14 Daniel Jacobowitz <drow@mvista.com>
2045
2046 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2047 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2048 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2049 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2050
46c82446
AF
20512002-10-13 Adam Fedor <fedor@gnu.org>
2052
2053 * source.c (print_source_lines): Update comments.
2054
d069f99d
AF
20552002-10-13 Adam Fedor <fedor@gnu.org>
2056
2057 * valops.c (value_of_local): New function.
2058 (value_of_this): Use it.
2059 * value.h (value_of_local): Declared.
2060
53c551b7
AF
20612002-10-13 Adam Fedor <fedor@gnu.org>
2062
2063 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2064 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2065
eb392fbf
AF
20662002-10-12 Adam Fedor <fedor@gnu.org>
2067
2068 * language.c (binop_result_type): Add language_objc to case.
2069 (integral_type): Likewise.
2070 (character_type): Likewise.
2071 (string_type): Likewise.
2072 (boolean_type): Likewise.
2073 (structured_type): Likewise.
2074 (binop_type_check): Likewise.
2075
e2b23ee9
AF
20762002-10-11 Adam Fedor <fedor@gnu.org>
2077
2078 * printcmd.c (address_info): Print 'self' for ObjC.
2079
b01ab485
AF
20802002-10-11 Adam Fedor <fedor@gnu.org>
2081
2082 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2083 OP_SELF.
2084
806e6073
AF
20852002-10-11 Adam Fedor <fedor@gnu.org>
2086
2087 * language.h (CAST_IS_CONVERSION): Add language_objc.
2088
50f85cdf
AF
20892002-10-11 Adam Fedor <fedor@gnu.org>
2090
2091 * defs.h (enum language): Add language_objc.
2092
0d540cdf
KD
20932002-10-11 Klee Dienes <kdienes@apple.com>
2094
69266111 2095 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2096 * gdbcore.h (read_memory_typed_address): Add prototype.
2097 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2098 to read a value destined for a CORE_ADDR, not read_memory_integer.
2099 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2100 (f77_get_dynamic_lowerbound): Ditto.
2101
d5dc7960
MH
21022002-10-11 Martin M. Hunt <hunt@redhat.com>
2103
2104 * utils.c (string_to_core_addr): After turning string into
2105 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2106 which will do necessary sign-extension, etc.
2107
8343f86c
DJ
21082002-10-11 Daniel Jacobowitz <drow@mvista.com>
2109
2110 * c-exp.y (THIS): Delete token and grammar rule.
2111 (yylex): Don't return THIS.
2112 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2113 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2114 * demangle.c (cplus_markers): Update comment. Put '$'
2115 first. Remove CPLUS_MARKER.
2116 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2117 * jv-exp.y (THIS): Delete token and grammar rule.
2118 (yylex): Don't return THIS.
2119 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2120 * objc-exp.y (THIS): Delete token and grammar rule.
2121 (yylex): Don't return THIS.
2122 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2123 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2124 (read_member_functions): Likewise for opname.
2125 (read_tilde_fields): Use is_cplus_marker.
2126
2127 * defs.h (CPLUS_MARKER): Don't define.
2128 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2129 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2130 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2131 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2132 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2133
2134 * config/i386/tm-i386v4.h: Delete file.
2135 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2136 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2137 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2138 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2139 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2140 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2141 * config/i386/i386v4.mt (TM_FILE): Likewise.
2142 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2143
967c0d83
MM
21442002-10-10 Marko Mlinar <markom@opencores.org>
2145
2146 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2147 accidentially not commited 2002-10-09
2148 * gdbarch.h, gdbarch.c: Re-generate.
2149
f74fa174
MM
21502002-10-09 Marko Mlinar <markom@opencores.org>
2151
2152 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2153 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2154 * gdbarch.h, gdbarch.c: Re-generate.
2155
57349743
JB
21562002-10-08 Petr Sorfa <petrs@caldera.com>
2157
2158 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2159
2160 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2161 so we can work on more than one compilation unit at a time. This
2162 helps prepare GDB to handle inter-CU die references.
2163 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2164 the code to be defined before struct comp_unit_head.
2165 (comp_unit_head): Added new members - offset, cu_head,
2166 begin_die, next and dwarf2_abbrevs.
2167 (dwarf2_abbrevs): Removed single static var; now member of
2168 struct comp_unit_head.
2169 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2170 members.
2171 (psymtab_to_symtab_1): Changed to work with the new
2172 struct comp_unit_head.
2173 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2174 constructs the dwarf2_abbrevs[] inside the cu_header.
2175 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2176 dwarf2_abbrev table to clean up.
2177 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2178 handling of dwarf2_abbrevs inside the cu_header.
2179 (read_partial_die): Now supports the call to the new
2180 dwarf2_lookup_abbrev.
2181 (read_full_die): Now supports the call to the new
2182 dwarf2_lookup_abbrev.
2183
4092aadb
CF
21842002-10-06 Christopher Faylor <cgf@redhat.com>
2185
2186 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2187 insure that shell variables, such as "transformed_name" are propagated
2188 to later shell statements in rule.
2189
af0b2512
MK
21902002-10-06 Mark Kettenis <kettenis@gnu.org>
2191
2192 * config/i386/nm-i386sco.h: Add protection against
2193 multiple-inclusion. Include "i386/nm-i386v.h".
2194 (REGISTER_U_ADDR): Remove define.
2195 (i386_register_u_addr): Remove prototype.
2196
d6020d45
MS
21972002-10-04 Michael Snyder <msnyder@redhat.com>
2198
2199 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2200 before treating it as a single-step event.
2201
7248f48e
AF
22022002-10-03 Adam Fedor <fedor@gnu.org>
2203
2204 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2205 (objc_demangle): Remove assignment in if statements, Replace
2206 free with xfree.
2207 (add_msglist): Likewise.
2208 (end_msglist): Likewise.
2209 (complare_selectors): Likewise.
2210 (selectors_info): Likewise.
2211 (compare_classes): Likewise.
2212 (classes_info): Likewise.
2213 (print_object_command): Likewise.
2214 (find_objc_msgcall_submethod): Replace PTR with void *.
2215 * objc-lang.h: Remove check for __STDC__.
2216
52c6a6ac
JJ
22172002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2218
2219 * ui-out.h (ui_out_field_fmt_int): New prototype.
2220 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2221 of field width and alignment.
2222 * stack.c (print_frame_info_base): When printing frame level, use
2223 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2224 PR gdb/192
2225
7e3cec17
JJ
22262002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2227
2228 * MAINTAINERS: Add self to Write After Approval list.
2229
a58dd373
EZ
22302002-10-02 Elena Zannoni <ezannoni@redhat.com>
2231
2232 * infcmd.c (interrupt_target_command_wrapper): Delete.
2233 (interrupt_target_command): Make non static.
2234 (nofp_registers_info): Make static.
2235 * stack.c (return_command_wrapper): Delete.
2236 (return_command): Make non static.
2237
cee6ddeb
EZ
22382002-10-02 Elena Zannoni <ezannoni@redhat.com>
2239
2240 * event-top.c (gdb_setup_readline): New function. Code moved from
2241 _initialize_event_loop().
2242 (_initialize_event_loop): Call gdb_setup_readline().
2243
c4ed33b9
AC
22442002-10-02 Andrew Cagney <ac131313@redhat.com>
2245
2246 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2247 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2248 * gdbarch.h, gdbarch.c: Re-generate.
2249
cef4f5dd
DJ
22502002-10-02 Daniel Jacobowitz <drow@mvista.com>
2251
2252 Fix PR gdb/778
2253 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2254 before recursing.
2255 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2256 of fill_in_vptr_fieldno.
2257
36dc181b 22582002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2259
36dc181b
EZ
2260 * inferior.h (registers_info, stepi_command, nexti_command,
2261 continue_command, interrupt_target_command): Export from infcmd.c.
2262 * frame.h (args_info, selected_frame_level_changed_hook,
2263 return_command): Export from stack.c.
2264 * v850ice.c (stepi_command, nexti_command, continue_command): use
2265 prototypes from inferior.h.
2266 * tracepoint.c (registers_info, args_info, locals_info): Use
2267 prototypes from frame.h and inferior.h.
2268 * Makefile.in (mi-main.o): Add dependency on frame.h.
2269
6f99cb26
AC
22702002-10-02 Andrew Cagney <ac131313@redhat.com>
2271
da3eff49
AC
2272 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2273 value in register 3 adjusted by ppc_gp0_regnum.
2274
6f99cb26
AC
2275 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2276
da615bee
MM
22772002-10-02 Marko Mlinar <markom@opencores.org>
2278
2279 * MAINTAINERS: Add myself to the Write After Approval list.
2280
d154bee2
AO
22812002-10-01 Alexandre Oliva <aoliva@redhat.com>
2282
62a49b2c
AO
2283 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2284 of the section for the N64 ABI, fixed.
2285
d154bee2
AO
2286 * config/mips/tm-irix6.h: Include solib.h.
2287
ed348acc
EZ
22882002-10-01 Elena Zannoni <ezannoni@redhat.com>
2289
2290 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2291 GNU operators.
2292
da0f9dcd
AC
22932002-10-01 Andrew Cagney <ac131313@redhat.com>
2294
2295 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2296 and that "mi0" syntax has been removed.
2297
bdf64bac
DC
22982002-09-30 David Carlton <carlton@math.stanford.edu>
2299
2300 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2301 * ppc-sysv-tdep.c: #include "gdb_string.h".
2302 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2303 pacify GCC.
2304
54c2a1e6
AC
23052002-10-01 Andrew Cagney <ac131313@redhat.com>
2306
2307 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2308 "vrsave"'s register number.
2309
cedea778
AC
23102002-09-30 Andrew Cagney <ac131313@redhat.com>
2311
2312 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2313 use frame_unwind_signed_register to obtain the PC.
2314 (mips_frame_chain): Handle a generic dummy frame.
2315 (mips_init_extra_frame_info): When a generic dummy frame, don't
2316 re-compute the frame base.
2317 (mips_pop_frame): Handle generic dummy frames.
2318 (mips_gdbarch_init): When generic dummy frames, set
2319 use_generic_dummy_frames, push_dummy_frame to
2320 generic_push_dummy_frame, pc_in_call_dummy to
2321 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2322 generic_save_dummy_frame_tos.
2323
68315eb8
AC
23242002-09-30 Andrew Cagney <ac131313@redhat.com>
2325
2326 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2327 against TOP when TOP was explictly set.
2328 (generic_push_dummy_frame): Set TOP to zero.
2329
3b8630c3
EZ
23302002-09-30 Elena Zannoni <ezannoni@redhat.com>
2331
2332 * event-loop.c (start_event_loop): Rename variable 'result' to
2333 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2334
28ee05e9
KS
23352002-09-30 Keith Seitz <keiths@redhat.com>
2336
2337 * gdb-events.sh (selected_thread_changed): New event.
2338 * gdb-events.c: Regenerated.
2339 * gdb-events.h: Regenerated.
2340
6eecb1c8
HPN
23412002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2342
2343 * MAINTAINERS: Add self to Write After Approval list.
2344
92df71f0
FN
23452002-09-30 Fernando Nasser <fnasser@redhat.com>
2346
3b8630c3
EZ
2347 * disasm.c: New file.
2348 * disasm.h: New file.
92df71f0
FN
2349 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2350 (compare_lines): Ditto.
2351 (dump_insns): Ditto.
3b8630c3
EZ
2352 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2353 argument.
92df71f0 2354 (do_assembly_only): Ditto.
3b8630c3
EZ
2355 (do_disassembly): Renamed to gdb_disassembly and moved to
2356 disasm.c. Sdded uiout argument.
2357 * Makefile.in: Add new files. Reorder SFILES list. Update
2358 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2359
0c22854d
AC
23602002-09-29 Andrew Cagney <ac131313@redhat.com>
2361
2362 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2363 bfd/elf64-alpha-fbsd.c.
2364
e67f2023
AC
23652002-09-29 Andrew Cagney <ac131313@redhat.com>
2366
2367 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2368 i386gnu-tdep.c.
2369
89396210
AC
23702002-09-29 Andrew Cagney <ac131313@redhat.com>
2371
2372 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2373 __FUNCTION__.
2374 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2375 function name.
2376 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2377 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2378 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2379 (S_msg_sig_post_reply): Ditto.
2380
7079c36c
CV
23812002-09-28 Corinna Vinschen <vinschen@redhat.com>
2382
89396210
AC
2383 * sh-tdep.c (sh_use_struct_convention): Use definition according
2384 to ABI.
7079c36c
CV
2385 (sh_push_arguments): Store in register with correct endianess.
2386 (sh_default_store_return_value): Ditto.
2387 (sh_gdbarch_init): Set sizeof long double to 8.
2388
975ac915
MK
23892002-09-27 Mark Kettenis <kettenis@gnu.org>
2390
2391 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2392 Fix some whitespace problems.
2393
9bbe19fb
DC
23942002-09-27 David Carlton <carlton@math.stanford.edu>
2395
2396 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2397 (mcore-tdep.o): Ditto.
2398 (ns32k-tdep.o): Ditto.
2399 (ns32knbsd-tdep.o): Ditto.
2400 (sh3-rom.o): Ditto.
2401 (vax-tdep.o): Ditto.
2402 * cris-tdep.c: #include "gdb_string.h"
2403 * mcore-tdep.c: Ditto.
2404 * ns32k-tdep.c: Ditto.
2405 * ns32knbsd-tdep.c: Ditto.
2406 * sh3-rom.c: Ditto.
2407 * vax-tdep.c: Ditto.
2408
43b2fdc7
DC
24092002-09-27 David Carlton <carlton@math.stanford.edu>
2410
2411 * config/djgpp/fnchange.lst: Add entries for
2412 gdb/testsuite/gdb.c++/m-static files.
2413
e8cfbbd9
JW
24142002-09-27 Jim Wilson <wilson@redhat.com>
2415
2416 * MAINTAINERS: Add myself to the Write After Approval list.
2417
43b2fdc7 24182002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2419
2420 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2421
2422
9f3b7f07
AC
24232002-09-26 Andrew Cagney <ac131313@redhat.com>
2424
2425 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2426 frame.
2427
11269d7e
AC
24282002-09-26 Andrew Cagney <ac131313@redhat.com>
2429
2430 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2431 (rs6000_struct_return_address): Delete variable.
2432 (rs6000_store_struct_return): Update.
2433 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2434 deprecated_extract_struct_value_address.
2435 (rs6000_frame_align): New function.
2436 (rs6000_gdbarch_init): Set frame_align.
2437
f15ab4a7
AC
24382002-09-26 Andrew Cagney <ac131313@redhat.com>
2439
2440 From Grace Sainsbury <graces@redhat.com>:
2441 * Makefile.in (gdbtk-main.o): New target.
2442 (gdb.o): New target.
2443 (main_h): Define.
2444 (main.o): Update dependencies.
2445 (gdb$(EXEEXT)): Add gdb.o.
2446 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2447 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2448 (SUBDIR_GDBTK_CLEAN): Set.
2449 (install-gdbtk): Install the insight binary.
2450 (uninstall-gdbtk): New target.
2451 (all-gdbtk, clean-gdbtk): New rule.
2452 * top.c (use_windows): Default to zero.
2453 * main.c: Include "main.h".
2454 (main): Delete.
2455 (struct captured_main_args): Delete.
2456 (gdb_main): New function.
2457 * main.h: New file.
2458 * gdb.c: New File.
2459
e36180d7
AC
24602002-09-25 Andrew Cagney <cagney@redhat.com>
2461
2462 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2463 (frame_map_regnum_to_name): New function.
2464 (frame_map_name_to_regnum): New function.
2465 * frame.h (frame_map_name_to_regnum): Declare.
2466 (frame_map_regnum_to_name): Declare.
2467 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2468 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2469 * parse.c: Do not include "builtin-regs.h".
2470 (target_map_name_to_register): Delete function.
2471 (write_dollar_variable): Use frame_map_name_to_regnum.
2472 * parser-defs.h (target_map_name_to_register): Delete declaration.
2473 * expprint.c: Include "frame.h".
2474 (print_subexp): Use frame_map_regnum_to_name.
2475 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2476 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2477
8b69000d
AC
24782002-09-25 Andrew Cagney <ac131313@redhat.com>
2479
2480 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2481 wasn't saved, and the next innermost frame is a dummy, return the
2482 dummy frame's link register.
2483
046ca86a
JB
24842002-09-24 Jim Blandy <jimb@redhat.com>
2485
2486 Fix from Paul Breed:
2487 * main.c (captured_main): Add a `break' after the case for 'b'.
2488
94b66fa7
KS
24892002-09-24 Keith Seitz <keiths@redhat.com>
2490
2491 * varobj.c (c_type_of_child): Use get_target_type instead
2492 of TYPE_TARGET_TYPE.
2493
c214a6fd
FN
24942002-09-22 Fernando Nasser <fnasser@redhat.com>
2495
53cb0458
FN
2496 * source.c (get_current_or_default_source_symtab_and_line): Remove
2497 function.
2498 (set_default_source_symtab_and_line): New function. Attempts to
2499 determine a source file to list lines from if one is not currently
2500 defined.
2501 (get_current_source_symtab_and_line): Initialize sal.pc and
2502 sal.end fields.
2503 (set_current_source_symtab_and_line): Mark argument as const.
2504 * source.h: Update declarations and comments.
2505 * linespec.c (decode_line_1): Replace call to removed routine above.
2506 * stack.c (print_frame_info_base): Ditto.
2507 * cli/cli-cmds.c (edit_command): Ditto.
2508 (list_command): Ditto.
2509
25102002-09-22 Fernando Nasser <fnasser@redhat.com>
2511
d6020d45 2512 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2513 sal.pc and sal.end fields.
c214a6fd
FN
2514 (get_current_or_default_source_symtab_and_line): Ditto.
2515 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2516 so we do not cause a new source symtab to be searched for (reverting an
2517 unintentional change from the 2002-09-20 patch).
2518 * scm-lang.c (scm_unpac): Ditto.
2519
cc3b68a5
AC
25202002-09-21 Andrew Cagney <cagney@redhat.com>
2521
2522 * complaints.c (symfile_explanations): Remove new-line from
2523 ``isolated_message''.
2524 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2525 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2526
5835abe7
NC
25272002-09-20 Nick Clifton <nickc@redhat.com>
2528
2529 * NEWS: Announce that V850EA ISA is no longer supported.
2530 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2531
a15ef5f5
DC
25322002-09-20 David Carlton <carlton@math.stanford.edu>
2533
06ba1b39
DC
2534 * Makefile.in (c-lang.o): Correct dependencies.
2535 (utils.o): Gather dependencies.
2536 (charset.o): Move.
a15ef5f5
DC
2537 * c-lang.c: #include "gdb_string.h"
2538
87885426
FN
25392002-09-20 Fernando Nasser <fnasser@redhat.com>
2540
2541 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2542 * cli/cli-cmds.c (list_command): New function. Implements the new
2543 cli edit command.
2544 (_init_cli_cmds): Add new command definition.
2545 * gdb.1: Document edit command.
2546 * doc/gdb.texinfo: Document edit command.
2547
25482002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2549
2550 * source.c: Make global variables current_source_symtab and
2551 current_source_line static.
2552 (list_command): Moved to cli/cli-cmds.c.
2553 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2554 (get_first_line_listed): New accessor function.
2555 (get_lines_to_list): New accessor function.
2556 (get_current_source_symtab_and_line): New function. Retrieves the
2557 position in the source code that we consider current.
2558 (get_current_or_default_source_symtab_and_line): New function.
2559 Like the above but attempts to determine a default position if one
2560 is not currently defined.
2561 (set_current_source_symtab_and_line): New function. Sets the source
2562 code position considered current and returns the previously set one.
2563 (clear_current_source_symtab_and_line): Reset stored information about
2564 a current source line.
2565 (_initialize_source): Remove registration for the "list" command and
2566 its alias.
2567 * source.h: Add declarations for the new functions above.
2568 * symtab.h: Remove declarations for the global variables mentioned
2569 above.
2570 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2571 obtain current source line.
2572 * linespec.c (decode_line_1): Ditto.
2573 * macroscope.c (default_macro_scope): Ditto.
2574 * scm-lang.c (scm_unpac): Ditto.
2575 * stack.c (print_frame_info_base): Ditto.
2576 * symfile.c (clear_symtab_users): Ditto.
2577 * symtab.c (decode_line_spec): Ditto.
2578 * cli/cli-cmds.c (list_command): Moved here from source.c.
2579 (ambiguous_line_spec): Moved here from source.c.
2580 (_init_cli_cmds): Add definition for "list" and its alias.
2581 * Makefile.in: Update dependencies.
2582
ddd216ea
CV
25832002-09-20 Corinna Vinschen <vinschen@redhat.com>
2584
2585 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2586 with what gcc thinks is correct.
2587
6d305052
CV
25882002-09-20 Corinna Vinschen <vinschen@redhat.com>
2589
2590 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2591 multiple register push instruction.
2592
234b45d4
KB
25932002-09-19 Jim Blandy <jimb@redhat.com>
2594
2595 Add support for distinct host and target character sets.
2596 * charset.c, charset.h: New files.
2597 * c-exp.y: #include "charset.h".
2598 (yylex): Convert character and string literals to the target
2599 character set, before returning them as the semantic value of the
2600 token.
2601 * c-lang.c: #include "charset.h".
2602 (c_emit_char): Use charset-specific methods to recognize
2603 characters with backslash escape forms, to decide which characters
2604 to print literally and which to print using numeric escape
2605 sequences, and to convert target characters to host characters
2606 before printing.
2607 * utils.c: #include "charset.h".
2608 (no_control_char_error): New function.
2609 (parse_escape): Use charset-specific methods to recognize
2610 backslash escapes, parse `control character' notation, and convert
2611 characters from the host character set to the target character set.
2612 * configure.in: Set the default host character set.
2613 Check where to find iconv, and what its argument types might be.
2614 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2615 * Makefile.in (SFILES): List charset.c.
2616 (COMMON_OBS): List charset.o.
2617 (charset.o): New rule.
2618 (charset_h): New header dependency variable.
2619 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2620 (LIBICONV): New variable, set by configure.
2621 (CLIBS): Include $(LIBICONV) here.
2622 * aclocal.m4, config.in, configure: Regenerated.
2623
525d6a61
JB
26242002-09-19 Joel Brobecker <brobecker@gnat.com>
2625
2626 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2627 bison 1.35 warning.
2628
3ed93867
RE
26292002-09-19 Richard Earnshaw <rearnsha@arm.com>
2630
2631 * gdb_mbuild.sh: New file.
2632
437666f8
AC
26332002-09-19 Andrew Cagney <ac131313@redhat.com>
2634
2635 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2636
389e51db
AC
26372002-09-18 Andrew Cagney <ac131313@redhat.com>
2638
2639 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2640 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2641 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2642 valops.c, value.h: Revert previous change.
2643
3b4efeaa
MS
26442002-09-18 Michael Snyder <msnyder@redhat.com>
2645
2646 Preliminary support for Objective-C:
2647 * defs.h (language_objc): New enum value.
2648 (puts_filtered_tabular): Declaration only, exported from utils.c.
2649 (skip_quoted): Delete, declared in completer.h.
2650 * c-exp.y: Include completer.h.
2651 * p-exp.y: Ditto.
2652 * jv-exp.y: Ditto.
2653 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2654 New operator enum values.
2655 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2656 * language.c (binop_result_type): Handle language_objc case.
2657 (integral_type, character_type, string_type, boolean_type,
2658 structured_type, binop_type_check): Ditto.
2659 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2660 (struct objc_specific): Add to general_symbol_info.
2661 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2662 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2663 * parser-defs.h (struct objc_class_str): New struct type.
2664 (start_msglist, end_msglist, add_msglist): Declaration only,
2665 exported from objc-lang.c.
2666 * value.h (value_of_local, value_nsstring,
2667 call_function_by_hand_expecting_type): Exported from valops.c.
2668 * valops.c (find_function_addr): Export.
2669 (call_function_by_hand_expecting_type): New function.
2670 (value_of_local): New function.
2671 * symfile.c (init_filename_language_table): Add ".m" extension
2672 for Objective-C.
2673 * utils.c (puts_filtered_tabular): New function.
2674 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2675 (set/show demangle): Extend help-string to refer to ObjC.
2676 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2677 * stabsread.c (symbol_reference_defined): Objective-C symbols
2678 may contain colons: make allowances when scanning stabs strings
2679 for colons.
2680 (objc_find_colon): New function.
2681 * printcmd.c (address_info): If language == objc then print
2682 "self" instead of "this".
2683 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2684 OP_NSSTRING, and OP_SELF.
2685 (prefixify_subexp): Ditto.
2686 * source.c (print_source_lines): Mention objc in comment.
2687 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2688 method names.
2689
b9caf505
AC
26902002-09-18 Andrew Cagney <ac131313@redhat.com>
2691
2692 * complaints.h: Update copyright.
2693 (struct complaints): Declare.
2694 (struct complaint): Make `message' constant.
2695 (internal_complaint): Declare.
2696 (complaint): Declare.
2697 (complaint_root): Delete declaration.
2698 (symfile_complaints): Delete declaration.
2699 (struct complaints): Add opaque declaration.
2700 (clear_complaints): Add a complaints parameter.
2701 * complaints.c: Update copyright.
2702 (enum complaint_series): Define.
2703 (complaint_root): Delete.
2704 (struct complaints): Define.
2705 (complaint_sentinel, symfile_complaint_book): New variables.
2706 (symfile_explanations, symfile_complaints): New variables.
2707 New variables.
2708 (get_complaints): New function.
2709 (vcomplaint): New function.
2710 (complaint): New function.
2711 (internal_complaint): New function.
2712 (complain): Call vcomplain with symfile_complaint.
2713 (clear_complaints): Rewrite.
2714 (_initialize_complaints): Use add_setshow_command.
2715 * Makefile.in (complaints.o): Update dependencies.
2716 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2717 to call to clear_complaints.
2718 (new_symfile_objfile, reread_symbols): Ditto.
2719 (oldsyms_complaint): Delete.
2720 (empty_symtab_complaint, unknown_option_complaint): Delete.
2721 (free_named_symtabs): Use complaint instead of complain.
2722
d2e6263c
MS
27232002-09-18 Michael Snyder <msnyder@redhat.com>
2724
5fb2031a
AC
2725 Contributed by Apple Computer, Inc. Merged with current sources
2726 by Adam Fedor <fedor@doc.com> [cagney].
2727
d2e6263c
MS
2728 * objc-lang.c: First clean-up round: comments, indentation.
2729 * objc-lang.h: Ditto.
2730 * objc-lang.y: Ditto.
2731
dec43320
AC
27322002-09-18 Andrew Cagney <ac131313@redhat.com>
2733
2734 * maint.c (maintenance_internal_error): Print the parameter as the
2735 error message.
2736 (maintenance_internal_warning): New function.
2737 (_initialize_maint_cmds): Add command `maint internal-warning'.
2738
2739 * defs.h (internal_warning, internal_vwarning): Declare.
2740 * utils.c (struct internal_problem): Define.
2741 (internal_vproblem): New function.
2742 (internal_warning): New function.
2743 (internal_vwarning): New function.
2744 (internal_warning_problem, internal_error_problem): New variables.
2745 (internal_verror): Just call internal_vproblem.
2746
b81654f1
MS
27472002-09-18 Michael Snyder <msnyder@redhat.com>
2748
2749 * objc-lang.c: New file, support for Objective-C.
2750 Preliminary check-in, not yet integrated into gdb.
2751 * objc-lang.h: New file.
2752 * objc-exp.y: New file.
2753
0542c381
AC
27542002-09-18 Andrew Cagney <ac131313@redhat.com>
2755
7bda5e4a
AC
2756 * infrun.c (signal_stop_update): Convert definition to ISO C.
2757 (signal_print_update): Ditto.
2758 (signal_pass_update): Ditto.
2759 * inflow.c (terminal_save_ours): Ditto.
2760
5247b418
AC
2761 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2762 comments.
2763
fc60962c
AC
2764 * config/djgpp/fnchange.lst: Handle name clashes between
2765 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2766 bfd/coff-tic80.c.
2767
0542c381
AC
2768 * i386-linux-tdep.h: Fix tipo.
2769
5b924b9b
AF
27702002-09-18 Adam Fedor <fedor@gnu.org>
2771
2772 * MAINTAINERS: Add myself to the Write After Approval list.
2773
5afc051b
JB
27742002-09-18 Jim Blandy <jimb@redhat.com>
2775
2776 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2777 texthigh and textlow to reader-specific structs caused
2778 objfile_relocate to miss them. This is fixable, but the work that
2779 the change was supposed to prepare GDB for never got done anyway.
2780
eb944380
DC
27812002-09-18 David Carlton <carlton@math.stanford.edu>
2782
2783 * MAINTAINERS: Alphabetize Write After Approval list.
2784
948e66d9
DJ
27852002-09-18 Daniel Jacobowitz <drow@mvista.com>
2786
2787 Fix PR gdb/709
2788 * values.c (value_static_field): Call read_var_value.
2789
dc604539
AC
27902002-09-18 Andrew Cagney <ac131313@redhat.com>
2791
2792 * valops.c (hand_function_call): Align the initial stack pointer
2793 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2794 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2795 return value.
2796 * mips-tdep.c (mips_frame_align): New function.
2797 (mips_gdbarch_init): Set frame_align.
2798 * gdbarch.sh (FRAME_ALIGN): New method.
2799 * gdbarch.h, gdbarch.c: Re-generate.
2800
cb7e422f
ML
28012002-09-18 Michal Ludvig <mludvig@suse.cz>
2802
2803 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2804 registers.
2805
a094c6fb
AC
28062002-09-17 Andrew Cagney <ac131313@redhat.com>
2807
2808 * NEWS: Mention that MIPS $fp behavior changed.
2809 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2810 reference to FP_REGNUM.
2811 (mipsnbsd_cannot_store_register): Ditto.
2812 * mips-linux-nat.c: Update copyright.
2813 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2814 (mips_linux_cannot_store_register): Ditto.
2815 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2816 * config/mips/tm-mips.h: Update copyright.
2817 (FP_REGNUM): Delete macro.
2818 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2819 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2820 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2821 (mips_r3041_reg_names, mips_r3051_reg_names)
2822 (mips_r3081_reg_names): Replace "fp" with "".
2823 Fix PR gdb/480.
2824
45cf40d1
TR
28252002-09-17 Theodore A. Roth <troth@verinet.com>
2826
2827 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2828 generic_read_register_dummy() (PR gdb/703).
2829 (avr_push_return_address): #if 0 out unused vars.
2830 (avr_gdbarch_init): Enable use of avr_push_return_address().
2831
c7e701b5
MS
28322002-09-17 Michael Snyder <msnyder@redhat.com>
2833
d76ba2a5 2834 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2835 RTE will take care of it.
2836
20bcf01c
AC
28372002-09-17 Andrew Cagney <ac131313@redhat.com>
2838
2839 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2840 invalid, return SP_REGNUM.
2841
009a9971 28422002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2843
2844 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2845 point registers without sign extension.
2846
135c175f
AC
28472002-09-17 Andrew Cagney <cagney@redhat.com>
2848
2849 * blockframe.c (deprecated_read_register_dummy): Rename
2850 generic_read_register_dummy.
2851 * frame.c (frame_unwind_signed_register): New function.
2852 (frame_unwind_unsigned_register): New function.
2853 * frame.h (frame_unwind_signed_register): Declare.
2854 (frame_unwind_unsigned_register): Declare.
2855 (deprecated_read_register_dummy): Rename
2856 generic_read_register_dummy.
2857
2858 * h8300-tdep.c (h8300_frame_chain): Update.
2859 (h8300_frame_saved_pc): Update.
2860 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2861 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2862 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2863 (s390_frame_chain): Update.
2864 * v850-tdep.c (v850_find_callers_reg): Update.
2865 (v850_frame_saved_pc): Update.
2866 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2867 (m32r_find_callers_reg): Update.
2868 (m32r_frame_saved_pc): Update.
2869 * sh-tdep.c (sh_find_callers_reg): Update.
2870 (sh64_get_saved_pr): Update.
2871 (sh_init_extra_frame_info): Update.
2872 (sh_init_extra_frame_info): Update.
2873 (sh64_init_extra_frame_info): Update.
2874 (sh64_init_extra_frame_info): Update.
2875 * mcore-tdep.c (mcore_find_callers_reg): Update.
2876 (mcore_frame_saved_pc): Update.
2877 (mcore_init_extra_frame_info): Update.
2878 * i386-tdep.c (i386_frame_saved_pc): Update.
2879 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2880 (ia64_init_extra_frame_info): Update.
2881 (ia64_init_extra_frame_info): Update.
2882 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2883 * cris-tdep.c (cris_init_extra_frame_info): Update.
2884 * avr-tdep.c (avr_frame_chain): Update.
2885 (avr_init_extra_frame_info): Update.
2886 (avr_frame_saved_pc): Update.
2887 * arm-tdep.c (arm_find_callers_reg): Update.
2888 (arm_init_extra_frame_info): Update.
2889 (arm_frame_saved_pc): Update.
2890
a741e514
TT
28912002-09-17 Tom Tromey <tromey@redhat.com>
2892
2893 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2894 is "'".
2895
d1a8e808
CV
28962002-09-17 Corinna Vinschen <vinschen@redhat.com>
2897
2898 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2899 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2900 NEXT_PROLOGUE_INSN.
2901 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2902 NEXT_PROLOGUE_INSN.
2903
d9025a18
JB
29042002-09-16 Joel Brobecker <brobecker@gnat.com>
2905
2906 * osfsolib.c: Remove file, replaced by solib-osf.c.
2907 * Makefile.in: Remove compilation rules for osfsolib.c.
2908
1b2ef1b6
DC
29092002-09-16 David Carlton <carlton@math.stanford.edu>
2910
2911 * cp-valprint.c (cp_print_class_method): Correct args to
2912 check_stub_method_group.
2913
928e48af
CV
29142002-09-16 Corinna Vinschen <vinschen@redhat.com>
2915
2916 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2917 `set architecture'. Unify naming convention of functions.
2918 (h8300_skip_prologue): Improve prologue analysis.
2919 (h8300_push_arguments): Rewritten to more closely match GCC's
2920 bizarre argument-passing behavior, along with the comment describing
2921 said behavior.
2922 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2923 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2924 sim, remote-e7000.c, remote-hms.c and remote.c
2925
5e3397bb
MK
29262002-09-15 Mark Kettenis <kettenis@gnu.org>
2927
2928 * i386-tdep.c (gdb_print_insn_i386): Removed.
2929 (i386_print_insn): New function.
2930 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2931 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2932 tm_print_insn_info.
2933
f710f4fc
MK
29342002-09-14 Mark Kettenis <kettenis@gnu.org>
2935
2936 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2937 zero.
2938
db54fef4
CV
29392002-09-14 Corinna Vinschen <vinschen@redhat.com>
2940
2941 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2942 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2943 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2944
2becadee
CF
29452002-09-13 Christopher Faylor <cgf@redhat.com>
2946
2947 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2948
de17c821
DJ
29492002-09-13 Daniel Jacobowitz <drow@mvista.com>
2950
2951 * gdbtypes.c (check_stub_method): Make static.
2952 (check_stub_method_group): New function.
2953 * gdbtypes.h: Update prototypes.
2954 * cp-support.c: New file.
2955 * cp-support.h: New file.
2956
2957 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2958 (update_method_name_from_physname): New function.
2959 (read_member_functions): Correct method names for operators
2960 and v3 constructors/destructors. Separate v2 constructors and
2961 destructors.
2962 * Makefile.in (stabsread.o): Update dependencies.
2963 (SFILES): Add cp-support.c.
2964 (COMMON_OBS): Add cp-support.o.
2965 (cp_support_h, cp-support.o): Add.
2966
2967 * cp-valprint.c (cp_print_class_method): Call
2968 check_stub_method_group instead of check_stub_method. Remove
2969 extraneous QUITs.
2970 * p-valprint.c (pascal_object_print_class_method): Likewise.
2971 * valops.c (search_struct_method): Likewise.
2972 (find_method_list, value_struct_elt_for_reference): Likewise.
2973
e76cff22
AC
29742002-09-13 Andrew Cagney <cagney@redhat.com>
2975
2976 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2977 * gdbarch.h, gdbarch.c: Regenerate.
2978
905abb3f
AC
29792002-09-13 Andrew Cagney <ac131313@redhat.com>
2980
2981 * frame.c (find_saved_register): Delete function.
2982 * frame.h (find_saved_register): Delete declaration.
2983 Fix PR gdb/631.
2984
64159455
AC
2985Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2986
2987 * mips-tdep.c (read_next_frame_reg): Re-hack using
2988 frame_register_unwind.
2989
795e1e11
AC
2990Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2991
2992 * mips-tdep.c (mips_get_saved_register): Re-hack using
2993 frame_register_unwind.
2994
5720643c
JB
29952002-09-12 Joel Brobecker <brobecker@gnat.com>
2996
2997 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2998 vector. Will be useful for Interix.
2999 * gdbarch.h, gdbarch.c: Regenerate.
3000
3001 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3002 name of the malloc function by NAME_OF_MALLOC.
3003
3bada2a2
JB
30042002-09-12 Joel Brobecker <brobecker@gnat.com>
3005
3006 * value.h (find_function_in_inferior): Add const keyword to
3007 one of the parameters. Allows us to invoke this function with
3008 a const char *.
3009 * valops.c (find_function_in_inferior): Likewise.
3010
3db26b01
JB
30112002-09-12 Joel Brobecker <brobecker@gnat.com>
3012
3013 * exec.c (xfer_memory): Fix compilation warning with old versions
3014 of GCC.
3015 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3016
17c5ed2c
DC
30172002-09-12 David Carlton <carlton@math.stanford.edu>
3018
3019 * symtab.h: Run through gdb_indent.h.
3020 Add 2002 to Copyright year list.
3021
ecd1107e
AM
30222002-09-12 Alan Modra <amodra@bigpond.net.au>
3023
3024 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3025 mach constants.
3026 * MAINTAINERS: Add myself to write after approval list.
3027
e64f66d1
JB
30282002-09-11 J. Brobecker <brobecker@gnat.com>
3029
3030 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3031
f9395794
JB
30322002-09-11 J. Brobecker <brobecker@gnat.com>
3033
3034 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3035 Interix.
3036
1a303dec
MS
30372002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3038
3039 * procfs.c (do_detach): Clear current signal, not just fault.
3040 Corrects problem with breakpoint trap signal leaking to detached
3041 process on Tru64.
3042
c0219d42
MS
30432002-09-10 Michael Snyder <msnyder@redhat.com>
3044
3045 * buildsym.c (finish_block): Protect against null pointer.
3046
9d84ac84
AC
30472002-09-10 Andrew Cagney <cagney@redhat.com>
3048
3049 * infcmd.c (default_print_registers_info): Send all output to
3050 ``file'' instead of ``gdb_stdout''.
3051
77d8f2b4
MS
30522002-09-10 Michael Snyder <msnyder@redhat.com>
3053
3054 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3055 LONGEST, and use signed register read (addresses are sign-
3056 extended for mips).
3057
99656a61
SC
30582002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3059
3060 * event-loop.c (gdb_do_one_event): Make public.
3061 * event-loop.h (gdb_do_one_event): Declare.
3062
da12f4d8
JL
30632002-09-10 Jeff Law <law@redhat.com>
3064
3065 * infttrace.c (child_resume): Simplify and rework to avoid
3066 TT_PROC_CONTINUE.
3067
d0aee0c4
FF
30682002-09-09 Fred Fish <fnf@intrinsity.com>
3069
3070 * printcmd.c (print_scalar_formatted): "len" is the number of
3071 target bytes, NOT the number of target bits.
3072
7cb3ec5e
EZ
30732002-09-09 Elena Zannoni <ezannoni@redhat.com>
3074
3075 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3076 * top.c (init_main): Set rl_terminal_name.
3077
4dc81987
AS
30782002-09-08 Aidan Skinner <aidan@velvet.net>
3079
3080 * ada-lang.c (ada_array_bound, ada_type_match,
3081 _initialize_ada_language): Fix K&R definitions.
3082 * ada-tasks.c (get_current_task): Fix K&R definitions.
3083 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3084
842330b4
CF
30852002-09-07 Christopher Faylor <cgf@redhat.com>
3086
3087 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3088 Add XP.
3089
43156d82
MK
30902002-09-06 Mark Kettenis <kettenis@gnu.org>
3091
66da5fd8
MK
3092 * i386-tdep.c (i386_register_virtual_type,
3093 i386_register_convertible, i386_register_convert_to_virtual,
3094 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3095 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3096 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3097 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3098 Don't set push_arguments twice.
3099
4b218c18
MK
3100 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3101 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3102 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3103 sigtramp_end to NULL.
3104 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3105 defines.
3106 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3107
4cc314d5
MK
3108 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3109 whitespace.
3110
43156d82
MK
3111 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3112 * gdbarch.h, gdbarch.c: Re-generate.
3113 * blockframe.c (find_pc_sect_partial_function): Convert to use
3114 SIGTRAMP_START_P predicate.
3115
6672060b
MS
31162002-09-05 Michael Snyder <msnyder@redhat.com>
3117
a90c3637
MS
3118 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3119 generic_dummy_frame method and old method. Also distinguish
3120 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3121 (arm_extract_return_value): Use new regcache method.
a90c3637 3122
6672060b
MS
3123 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3124 adjustment that doesn't conform to the ABI.
3125 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3126 saved regcache, not from current regcache.
3127
299ffc64
AC
31282002-09-05 Andrew Cagney <ac131313@redhat.com>
3129
3130 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3131 * README: Update.
3132
a3a2ee65
JT
31332002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3134
3135 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3136 if arm_apcs_32 is false.
3137
2bc7eea9
AC
31382002-09-04 Andrew Cagney <ac131313@redhat.com>
3139
3140 GDB 5.3 branch created.
3141
8a55a7c5
TR
31422002-09-03 Theodore A. Roth <troth@verinet.com>
3143
3144 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3145 generic_unwind_get_saved_register.
3146
e26fb1d7
DC
31472002-09-03 David Carlton <carlton@math.stanford.edu>
3148
3149 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3150 argument (PR gdb/653). Update call to smash_to_method_type.
3151 (read_structure_scope): Update call to dwarf2_add_member_fn.
3152
30d52491
ML
31532002-09-03 Michal Ludvig <mludvig@suse.cz>
3154
3155 * x86-64-linux-tdep.c: Include gdb_string.h
3156 * x86-64-linux-nat.c: Ditto.
3157
06891d83
JT
31582002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3159
3160 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3161 when YYDEBUG is set to 1.
3162 * c-exp.y: Likewise.
3163 * f-exp.y: Likewise.
3164 * jv-exp.y: Likewise.
3165 * m2-exp.y: Likewise.
3166 * p-exp.y: Likewise.
3167
7d400e77
JT
31682002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3169
3170 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3171 dependency list.
3172 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3173 solib_svr4_fetch_link_map_offsets to
3174 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3175 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3176 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3177 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3178 solib-svr4.o, and solib-legacy.o.
3179 * config/i386/tm-nbsd.h: Include solib.h.
3180
704a27c4
JT
31812002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3182
3183 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3184 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3185 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3186 comment noting that this needs its own target configuration.
3187 * config/i386/nbsd.mt: New file.
3188 * config/i386/nbsdaout.mt: Remove.
3189 * config/i386/nbsdelf.mt: Ditto.
3190 * config/i386/tm-nbsdaout.h: Ditto.
3191
d66198e1
JT
31922002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3193
3194 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3195 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3196 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3197 tdep->sigtramp_end.
3198 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3199 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3200 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3201
3cac699e
JT
32022002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3203
3204 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3205 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3206 * i386-tdep.h (i386bsd_init_abi): New prototype.
3207 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3208 function declaration.
3209 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3210 for NetBSD-a.out or NetBSD-ELF.
3211 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3212 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3213 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3214 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3215 and nbsd-tdep.h.
3216 (i386nbsd_pc_in_sigtramp): New function.
3217 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3218 i386nbsd_pc_in_sigtramp.
3219 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3220 and i386nbsdelf_init_abi OS ABI handlers.
3221 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3222 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3223
7010ca0a
MK
32242002-09-02 Mark Kettenis <kettenis@gnu.org>
3225
3226 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3227 registers if the target really has them.
3228
6dd93b72
JT
32292002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3230
3231 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3232 than nbsd-tdep.h.
3233
2ca8ae21
JT
32342002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3235
3236 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3237 list.
3238 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3239 (alphanbsd_skip_sigtramp_frame): New functions.
3240 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3241 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3242 to alphanbsd_sigcontext_addr.
3243
3d9b49b0
JT
32442002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3245
3246 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3247 list.
3248 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3249 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3250 nbsd_pc_in_sigtramp.
3251 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3252 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3253 * nbsd-tdep.c: Include gdb_string.h.
3254 (nbsd_pc_in_sigtramp): New function.
3255 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3256 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3257 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3258 ppcnbsd_pc_in_sigtramp.
3259 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3260 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3261 shnbsd_pc_in_sigtramp.
3262 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3263 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3264 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3265
c860120c
PM
32662002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3267
3268 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3269 watchpoints to NULL.
3270 (insert_breakpoints): set val field of watchpoints if NULL.
3271
3272
c7612d53
JB
32732002-08-29 Jim Blandy <jimb@redhat.com>
3274
3275 * symtab.c (lookup_symbol_aux): In the cases where we find a
3276 minimal symbol of an appropriate name and use its address to
3277 select a symtab to read and search, use `name' (as passed to us)
3278 as the demangled name when searching the symtab's global and
3279 static blocks, not the minsym's name.
3280
66609862
KS
32812002-08-29 Keith Seitz <keiths@redhat.com>
3282
3283 * stack.c (print_frame_info_base): Always set current_source_symtab
3284 and current_source_line.
3285
151fefe2
JB
32862002-08-29 Donn Terry <donnte@microsoft.com>
3287
3288 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3289
bfb3754e
KS
32902002-08-28 Keith Seitz <keiths@redhat.com>
3291
3292 * stack.c (select_frame): Add FIXME concerning selected-frame
3293 events.
3294 (select_frame_command): Send selected-frame-level-changed
3295 event notification, but only if the level actually changed.
3296 (up_silently_base): Add selected-frame-level-changed event
3297 notification.
3298 (down_silently_base): Likewise.
3299
e822a2a0
AC
33002002-08-28 Andrew Cagney <ac131313@redhat.com>
3301
3302 * Makefile.in: Update dependencies for all gdb/*.c files.
3303
309367d4
TT
33042002-08-27 Tom Tromey <tromey@redhat.com>
3305
3306 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3307 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3308 Update dependencies.
3309 * i387-tdep.c: Include gdb_string.h.
3310 * osabi.c: Likewise.
3311 * i386-linux-nat.c: Likewise.
3312 * lin-lwp.c: Likewise.
3313 * ax-gdb.c: Likewise.
3314 * signals/signals.c: Likewise.
3315 * jv-valprint.c: Likewise.
3316 * p-lang.c: Likewise.
3317 * c-valprint.c: Likewise.
3318 * cp-abi.c: Likewise.
3319
e1507482
EZ
33202002-08-27 Elena Zannoni <ezannoni@redhat.com>
3321
3322 * cli/cli-script.h (copy_command_lines): Export.
3323 * breakpoint.c: Include cli/cli-script.h.
3324 * Makefile.in (breakpoint.o): Update dependencies.
3325
c6510018
MS
33262002-08-26 Michael Snyder <msnyder@redhat.com>
3327
3328 * breakpoint.c (insert_breakpoints): Protect all references
3329 to 'process_warning'. Shorten long lines.
3330
c2b8ed2c
MS
33312002-08-26 Joel Brobecker <brobecker@gnat.com>
3332
3333 * cli/cli-script.c (copy_command_lines): New function.
3334 * defs.h (copy_command_lines): Export.
3335 * testsuite/gdb.base/commands.exp: New tests for commands
3336 attached to a temporary breakpoint, and for commands that
3337 delete the breakpoint they are attached to.
3338
33392002-08-26 Michael Snyder <msnyder@redhat.com>
3340
3341 * breakpoint.c (bpstat_stop_status): Instead of copying the
3342 pointer to the breakpoint commands struct, make a new copy
3343 of the struct and point to that.
3344 (bpstat_clear): Free the commands struct.
3345 (bpstat_clear_actions): Free the commands struct.
3346 (bpstat_do_actions): Free the command actions. Also execute
3347 the local cleanups, instead of deleting them.
3348 (delete_breakpoint): Leave the commands field of the bpstat
3349 chain alone -- it will be freed later.
3350
64b84175
KB
33512002-08-26 Kevin Buettner <kevinb@redhat.com>
3352
3353 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3354 deleted in 2002-08-20 commit. This function is still used by
3355 ppc-linux-nat.c.
3356
55970da6
KS
33572002-08-26 Keith Seitz <keiths@redhat.com>
3358
3359 * gdb-events.sh: Add selected-frame-level-changed event.
3360 * gdb-events.c: Regenerated.
3361 * gdb-events.h: Regenerated.
3362
a790ad35
SC
33632002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3364
3365 Fix PR gdb/393:
3366 * inflow.c (terminal_save_ours): New function to save terminal
3367 settings.
3368 * inferior.h (terminal_save_ours): Declare.
3369 * target.c (debug_to_terminal_save_ours): New function.
3370 (cleanup_target): Defaults to_terminal_save_ours.
3371 (update_current_target): Inherit to_terminal_save_ours.
3372 (setup_target_debug): Set to_terminal_save_ours.
3373 * target.h (target_terminal_save_ours): New to save terminal settings.
3374 (target_ops): New member to_terminal_save_ours.
3375 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3376 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3377 * inftarg.c (init_child_ops): Likewise.
3378 * m3-nat.c (init_m3_ops): Likewise.
3379 * procfs.c (init_procfs_ops): Likewise.
3380 * wince.c (init_child_ops): Likewise.
3381 * win32-nat.c (init_child_ops): Likewise.
3382 * sol-thread.c (init_sol_thread_ops): Likewise.
3383
c00dcbe9
MK
33842002-08-26 Mark Kettenis <kettenis@gnu.org>
3385
3d7f4f49
MK
3386 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3387 use regcache_* functions.
3388 (i386_gdbarch_init): Set store_return_value instead of
3389 deprecated_store_return_value.
3390
c00dcbe9
MK
3391 * regcache.c (regcache_raw_write_signed,
3392 regcache_raw_write_unsigned): New functions.
3393 * regcache.h (regcache_raw_write_signed,
3394 regcache_raw_write_unsigned): New prototypes.
3395
0e0d15ca
AC
33962002-08-25 Andrew Cagney <ac131313@redhat.com>
3397
3398 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3399 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3400 source file dependencies. Cleanup corresponding generator rules.
3401
d3b22ed5
AC
34022002-08-25 Andrew Cagney <ac131313@redhat.com>
3403
3404 * regcache.h (register_offset_hack): Declare.
3405 (regcache_cooked_read_using_offset_hack): Declare.
3406 (regcache_cooked_write_using_offset_hack): Declare.
3407
3408 * regcache.c (register_offset_hack): New function.
3409 (regcache_cooked_read_using_offset_hack): New function.
3410 (regcache_cooked_write_using_offset_hack): New function.
3411 (regcache_dump): Check that the registers, according to their
3412 offset, are packed hard against each other.
3413 (cooked_xfer_using_offset_hack): New function.
3414
bb425013
AC
34152002-08-25 Andrew Cagney <ac131313@redhat.com>
3416
3417 * regcache.c (struct regcache_descr): Add field register_type.
3418 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3419 in as a parameter
3420 (init_regcache_descr): Initialize register_type. Pass the descr
3421 to init_legacy_regcache_descr. Use register_type instead of
3422 REGISTER_VIRTUAL_TYPE.
3423 (register_type): New function.
3424 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3425 * regcache.h (register_type): Declare.
3426
d0403e00
AC
34272002-08-25 Andrew Cagney <ac131313@redhat.com>
3428
3429 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3430 instead of deprecated_store_return_value. Fix fallout from
3431 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3432
0ed04cce
AC
34332002-08-25 Andrew Cagney <ac131313@redhat.com>
3434
3435 * regcache.c (max_register_size): New function.
3436 (init_legacy_regcache_descr): Ensure that max_register_size is
3437 large enough for REGISTER_VIRTUAL_SIZE.
3438 * regcache.h (max_register_size): Declare.
3439
46d79c04
AC
34402002-08-24 Andrew Cagney <ac131313@redhat.com>
3441
3442 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3443 store_return_value.
3444 (e500_extract_return_value): Change type of valbuf pointer to
3445 void.
3446
853c7bd0
MK
34472002-08-24 Mark Kettenis <kettenis@gnu.org>
3448
cd87e769
MK
3449 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3450 workaround.
3451
853c7bd0
MK
3452 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3453 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3454 long long) to prevent compiler warning on 64-bit systems.
3455
ebba8386
AC
34562002-08-23 Andrew Cagney <cagney@redhat.com>
3457
3458 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3459 (DEPRECATED_STORE_RETURN_VALUE): New method.
3460 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3461 * gdbarch.h, gdbarch.c: Re-generate.
3462
3463 * values.c (set_return_value): Pass current_regcache to
3464 STORE_RETURN_VALUE.
3465 * arch-utils.h (legacy_store_return_value): Declare.
3466 * arch-utils.c (legacy_store_return_value): New function.
3467 (legacy_extract_return_value): Update parameters.
3468
3469 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3470 STORE_RETURN_VALUE.
3471 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3472 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3473 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3474 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3475 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3476 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3477 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3478 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3479 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3480 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3481
3482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3483 * i386-tdep.c (i386_extract_return_value): Update.
3484 * arch-utils.c (legacy_extract_return_value): Update.
3485 * frv-tdep.c (frv_gdbarch_init): Update.
3486 * cris-tdep.c (cris_gdbarch_init): Update.
3487 * d10v-tdep.c (d10v_gdbarch_init): Update.
3488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3489 * m68k-tdep.c (m68k_gdbarch_init): Update.
3490 * mcore-tdep.c (mcore_gdbarch_init): Update.
3491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3492 * s390-tdep.c (s390_gdbarch_init): Update.
3493 * sparc-tdep.c (sparc_gdbarch_init): Update.
3494 * sh-tdep.c (sh_gdbarch_init): Update.
3495 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3496 * v850-tdep.c (v850_gdbarch_init): Update.
3497 * avr-tdep.c (avr_gdbarch_init): Update.
3498 * ia64-tdep.c (ia64_gdbarch_init): Update.
3499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3500 * vax-tdep.c (vax_gdbarch_init): Update.
3501 * alpha-tdep.c (alpha_gdbarch_init): Update.
3502 * arm-tdep.c (arm_gdbarch_init): Update.
3503 * mips-tdep.c (mips_gdbarch_init): Update.
3504 * i386-tdep.c (i386_gdbarch_init): Update.
3505
5bd8c6d0
AC
35062002-08-23 Andrew Cagney <ac131313@redhat.com>
3507
3508 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3509 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3510
e73e1724
MK
35112002-08-24 Mark Kettenis <kettenis@gnu.org>
3512
3513 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3514 problems.
3515
3e6564e1
JB
35162002-08-23 Joel Brobecker <brobecker@gnat.com>
3517
3518 * infrun.c (handle_inferior_event): Move a comment outside of a
3519 function call, in order to avoid indent reformatting this part
3520 of the code in an unreadable way.
3521
81d0cc19
GS
35222002-08-23 Grace Sainsbury <graces@redhat.com>
3523
3524 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3525 when breakpoints fail. Move general breakpoint error messages to
3526 insert_breakpoints.
3527 * breakpoint.c (insert_breakpoints): Change warnings when
3528 breakpoints are nto inserted to specify the type. Remove call to
3529 memory_error when hardware breakpoints can't be inserted. Remove
3530 multiple calls to warning so all messages are sent to the user at
3531 once.
3532 (delete_breakpoints): Make insert error messsages more explicit.
3533
17574093
DJ
35342002-08-23 Daniel Jacobowitz <drow@mvista.com>
3535
3536 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3537 gdbserver/ChangeLog.
3538
8acc2935
MK
35392002-08-23 Mark Kettenis <kettenis@gnu.org>
3540
dfe01d39
MK
3541 * i386-tdep.c: Include "objfiles.h".
3542 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3543 skip_trampoline_code.
3544 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3545 (CPLUS_MARKER): Define to '.'.
3546
8acc2935
MK
3547 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3548 member.
3549 (linux_corefile_thread_callback): Increase args->num_notes.
3550 (linux_make_note_section): Initialize thread_args.num_notes, and
3551 use it to determine whether notes for any threads were created.
3552
151fefe2 35532002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3554
3555 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3556 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3557 and PCUNKILL.
3558 (write_with_trace): Conditionalize out the switch branch handling
3559 PCSHOLD if the corresponding macro is not defined. Likewise for
3560 PRSABORT and PRSTOP.
3561 This change will be needed by the Interix port.
3562
e1507482
EZ
35632002-08-22 Elena Zannoni <ezannoni@redhat.com>
3564
3565 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3566 write_register wherever possible instead of manipulating the
3567 register bytes directly.
3568 Assign VALUE_CONTENTS to a variable and use that.
3569 The GPR numbers are now dependent on the architecture.
3570
96ff0de4
EZ
35712002-08-22 Elena Zannoni <ezannoni@redhat.com>
3572
3573 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3574 ev_offset fields.
3575 (skip_prologue): Add support for BookE/e500 instructions.
3576 (e500_extract_return_value): New function.
3577 (frame_get_saved_regs): Add support for saving ev registers and
3578 pseudo gpr's.
3579 (e500_store_return_value): New function.
3580 (rs6000_gdbarch_init): Move up default intializations of
3581 deprecated_extract_return_value and store_return_value. Overwrite
3582 init of store_return_value with e500 specific version.
3583 Set extract_return_value for e500.
3584
fbefca5b
EZ
35852002-08-22 Elena Zannoni <ezannoni@redhat.com>
3586
3587 * blockframe.c (generic_call_dummy_register_unwind): Use
3588 regcache_cooked_read to catch cases in which the variable is
3589 stored in a pseudo register.
3590
4d210288
AC
35912002-08-22 Andrew Cagney <cagney@redhat.com>
3592
3593 * NEWS: Mention that the i960 has been made obsolete.
3594 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3595 i960-tdep.c
3596 (remote-nrom.o): Obsolete target.
3597 (remote-nindy.o, i960-tdep.o): Ditto.
3598 * remote-nrom.c: Make file obsolete.
3599 * remote-nindy.c, remote-vx960.c: Ditto.
3600 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3601 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3602 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3603 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3604 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3605 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3606 i960-*-vxworks* obsolete.
3607 * MAINTAINERS: Note that the i960 is obsolete.
3608
6c0c456d
CV
36092002-08-21 Corinna Vinschen <vinschen@redhat.com
3610
3611 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3612 detach to allow reinitialization.
3613
9f9d12b3
AC
36142002-08-22 Andrew Cagney <ac131313@redhat.com>
3615
3616 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3617 attempt).
3618
ebeb39fe
JB
36192002-08-22 Jim Blandy <jimb@redhat.com>
3620
3621 * coffread.c (coff_symfile_read): Don't try to read the line
3622 number table from disk if the image file doesn't have a symbol
3623 table; we'll never actually look at the info anyway, and Windows
3624 ships DLL's with bogus file offsets for the line number data.
3625
5bf1c677
EZ
36262002-08-21 Elena Zannoni <ezannoni@redhat.com>
3627
3628 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3629 an e500 executable.
3630
71b8ef93
MS
36312002-08-21 Michael Snyder <msnyder@redhat.com>
3632
3633 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3634 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3635 (DEFAULT_MIPS_TYPE): Delete unused macro.
3636 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3637 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3638
d174216d
JB
36392002-08-21 Jim Blandy <jimb@redhat.com>
3640
3641 * valops.c (value_cast): Simplify and correct logic for doing a
3642 static cast from a pointer to a base class to a pointer to a
3643 derived class.
3644
0ab7a791
AC
36452002-08-21 Andrew Cagney <ac131313@redhat.com>
3646
3647 * infcmd.c (default_print_registers_info): Replace
3648 do_registers_info.
3649 (registers_info): Use gdbarch_print_registers_info instead of
3650 DO_REGISTERS_INFO.
3651 * inferior.h (default_print_registers_info): Replace
3652 do_registers_info.
3653 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3654 (DO_REGISTERS_INFO): Change to a predicate function.
3655 * gdbarch.h, gdbarch.c: Regenerate.
3656
e23792cc
KS
36572002-08-21 Keith Seitz <keiths@redhat.com>
3658
3659 * gdb-events.sh: Add target-changed event.
3660 * gdb-events.c: Regenerated.
3661 * gdb-events.c: Regenerated.
3662 * valops.c (value_assign): Add target-changed event notification
3663 to inlval_register, lval_memory, and lval_reg_frame_relative.
3664
9fb14e79
JB
36652002-08-21 Joel Brobecker <brobecker@gnat.com>
3666
3667 * NEWS: Add an entry regarding the improvement of the next/step
3668 operation on Alpha Tru64 multi-processor machines.
3669
6d39a69f
AC
36702002-08-21 Andrew Cagney <ac131313@redhat.com>
3671
72acd513
AC
3672 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3673 directores.
342af04b 3674 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3675 * Makefile.in (install-gdbtk): Move to install section.
3676 (rdi-share/libangsd.a): Move to end of file.
3677
fa5f27c7
AC
36782002-08-19 Andrew Cagney <ac131313@redhat.com>
3679
3680 * frame.c (frame_register_unwind): When a register, set addrp to
3681 the register's byte.
3682
5a89d8aa
MS
36832002-08-20 Michael Snyder <msnyder@redhat.com>
3684
3685 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3686 used locally, so move them from the target machine header to here.
3687 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3688 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3689 Make static.
3690 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3691
822e978b
AC
36922002-08-20 Andrew Cagney <cagney@redhat.com>
3693
3694 * NEWS: Mention that the Apollo line was made obsolete.
3695 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3696 m68*-hp-hpux* obsolete.
3697 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3698 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3699 * buildsym.c (make_blockvector): Make static.
3700 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3701 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3702 (ALLDEPFILES): Remove dstread.c.
3703 (dstread.o): Obsolete make rule.
3704 * dstread.c: Makefile obsolete.
3705 * dst.h: Ditto.
3706 * config/m68k/hp300hpux.mt: Ditto.
3707 * config/m68k/hp300hpux.mh: Ditto.
3708 * config/m68k/hp300bsd.mt: Ditto.
3709 * config/m68k/hp300bsd.mh: Ditto.
3710 * config/m68k/apollo68b.mt: Ditto.
3711 * config/m68k/apollo68v.mh: Ditto.
3712 * config/m68k/apollo68b.mh: Ditto.
3713
e41b17f0
MS
37142002-08-20 Michael Snyder <msnyder@redhat.com>
3715
3716 * mips-tdep.c (mips_in_return_stub): Make static.
3717 (mips_gdbarch_init): Set in_solib_return_trampoline.
3718 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3719
d50355b6
MS
37202002-08-20 Michael Snyder <msnyder@redhat.com>
3721
3722 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3723 * gdbarch.c, gdbarch.h: Regenerate.
3724 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3725 Add.
3726 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3727
757a7cc6
MS
37282002-08-20 Michael Snyder <msnyder@redhat.com>
3729
3730 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3731 (mips_gdbarch_init): Set skip_trampoline_code,
3732 in_solib_call_trampoline.
3733 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3734 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3735
c8001721
EZ
37362002-08-20 Elena Zannoni <ezannoni@redhat.com>
3737
3738 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3739
3740 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3741 vector type for ev registers.
3742 (e500_pseudo_register_read): New function.
3743 (e500_pseudo_register_write): New function.
3744 (e500_dwarf2_reg_to_regnum): New function.
3745 (PPC_UISA_NOFP_SPRS): New macro.
3746 (PPC_EV_REGS): New macro.
3747 (PPC_GPRS_PSEUDO_REGS): New macro.
3748 (registers_e500): New register set for e500.
3749 (variants): Add e500 variant.
3750 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3751 before setting architectural dependent variations. Initialize ev
3752 registers numbers. Add case for e500 architecture. Set the
3753 number of pseudo registers.
3754
64366f1c
EZ
37552002-08-20 Elena Zannoni <ezannoni@redhat.com>
3756
3757 * rs6000-tdep.c: Clean up comments.
3758
7e78f0ca
AC
37592002-08-20 Andrew Cagney <cagney@redhat.com>
3760
3761 * h8300-tdep.c: Re-indent file.
3762
697f7479
JB
37632002-08-20 Jim Blandy <jimb@redhat.com>
3764
3765 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3766 default for this.
697f7479 3767
e86ae29f
KS
37682002-08-20 Keith Seitz <keiths@redhat.com>
3769
3770 * breakpoints.c (watch_command_1): Use internal breakpoint
3771 when setting a watchpoint_scope breakpoint.
3772
216b504f
EZ
37732002-08-20 Elena Zannoni <ezannoni@redhat.com>
3774
3775 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3776 (build_builtin_type_vec64i): Ditto.
3777 (build_builtin_type_vec128): Ditto.
3778 (build_builtin_type_vec128i): Ditto.
3779
f7ab6ec6
MS
37802002-08-19 Michael Snyder <msnyder@redhat.com>
3781
3782 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3783 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3784 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3785 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3786 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3787 CALL_DUMMY_ADDRESS): Delete.
3788 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3789 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3790 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3791 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3792 push_return_address.
3793 (mips_register_raw_size, mips_eabi_use_struct_convention,
3794 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3795 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3796 mips_init_extra_frame_info, mips_eabi_push_arguments,
3797 mips_n32n64_push_arguments, mips_push_return_address,
3798 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3799 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3800
b5d1566e
MS
38012002-08-19 Michael Snyder <msnyder@redhat.com>
3802
3803 * mips-tdep.c (mips_frame_num_args): New function.
3804 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3805 frame_saved_pc, frame_args_address, frame_locals_address,
3806 frame_num_args, and frame_args_skip.
3807 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3808 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3809 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3810 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3811
2f1488ce
MS
38122002-08-20 Michael Snyder <msnyder@redhat.com>
3813
3814 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3815 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3816 * mips-tdep.c (mips_store_struct_return): New function.
3817 (mips_extract_struct_value_address): New function.
3818 (mips_gdbarch_init): Set store_struct_return and
3819 extract_struct_value_address.
3820
41ff2da1
DC
38212002-08-20 David Carlton <carlton@math.stanford.edu>
3822
3823 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3824 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3825 (read_file_scope): Check that line_header is nonzero before
3826 decoding macro information.
3827
e5451d58
MK
38282002-08-20 Mark Kettenis <kettenis@gnu.org>
3829
3830 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3831 flag the general-purpose registers as floating-point on targets
3832 that don't support the floating-point registers.
3833
4a6daafa
EZ
38342002-08-20 Elena Zannoni <ezannoni@redhat.com>
3835
3836 * rs6000-tdep.c (altivec_register_p): Delete.
3837 (rs6000_do_altivec_registers): Delete.
3838 (rs6000_altivec_registers_info): Delete.
3839 (rs6000_do_registers_info): Delete.
3840 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3841 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3842
ab4327e0
EZ
38432002-08-20 Elena Zannoni <ezannoni@redhat.com>
3844
3845 * infcmd.c (do_registers_info): Print vector registers in hex
3846 format only.
3847 (print_vector_info): Check that printing registers
3848 makes sense.
3849 (print_float_info): Ditto.
3850
cb1d2653
AC
38512002-08-20 Andrew Cagney <ac131313@redhat.com>
3852
3853 * mips-tdep.c (mips_gdbarch_init): Update.
3854 (mips_o32_extract_return_value): Rewrite.
3855 (mips_o32_store_return_value): Rewrite.
3856 (mips_o32_xfer_return_value): New function.
3857 (mips_xfer_register): Tweak debug print message. Allow for
3858 buf_offset when dumping the value transfered.
3859
dfc3d9b2
AC
38602002-08-20 Andrew Cagney <ac131313@redhat.com>
3861
3862 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3863 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3864 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3865 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3866 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3867
7807aa61
MS
38682002-08-14 Michael Snyder <msnyder@redhat.com>
3869
3870 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3871
489461e2
EZ
38722002-08-19 Elena Zannoni <ezannoni@redhat.com>
3873
3874 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3875 register.
3876 (P): New macro to define a register as a pseudo register.
3877 (R, R4, R8, R16, FR32, R64, R0): Updated.
3878 (struct variant): Add new fields for number of pseudo registers
3879 and number of total registers.
3880 (tot_num_registers): New macro replacing....
3881 (num_registers): ...deleted macro.
3882 (num_registers): New function.
3883 (num_pseudo_registers): New function.
3884 (variants): Update all variants to intialize new fields correctly.
3885 Postpone initialization of number of pseudo regs and real regs.
3886 (init_variants): New function.
3887 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3888 registers offsets.
3889
fcaffe4c
DC
38902002-08-19 David Carlton <carlton@math.stanford.edu>
3891
2c2738a0
DC
3892 * valops.c (search_struct_field): Change error message to treat
3893 return value of 0 from value_static_field as meaning that field is
3894 optimized out.
3895 (value_struct_elt_for_reference): Ditto.
3896 * values.c (value_static_field): Treat an unresolved location the
3897 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3898 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3899 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3900 * MAINTAINERS: Add self to Write After Approval list.
3901
88658117
AC
39022002-08-19 Andrew Cagney <ac131313@redhat.com>
3903
3904 * mips-tdep.c (mips_xfer_register): New function.
3905 (mips_n32n64_extract_return_value): Rewrite.
3906 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3907 instead of deprecated_extract_return_value.
3908
21283beb
EZ
39092002-08-19 Elena Zannoni <ezannoni@redhat.com>
3910
3911 * rs6000-tdep.c (TDEP): Delete macro.
3912 (branch_dest): Replace use of TDEP macro with its body.
3913 (rs6000_pop_frame): Ditto.
3914 (rs6000_push_arguments): Ditto.
3915 (rs6000_skip_trampoline_code): Ditto.
3916 (rs6000_frame_saved_pc): Ditto.
3917 (rs6000_frame_chain): Ditto.
3918 (rs6000_register_name): Ditto.
3919 (rs6000_register_byte): Ditto.
3920 (rs6000_register_raw_size): Ditto.
3921 (rs6000_register_virtual_type): Ditto.
3922 (rs6000_register_convertible): Ditto.
3923 (rs6000_convert_from_func_ptr_addr): Ditto.
3924
bf072999
DJ
39252002-08-19 Daniel Jacobowitz <drow@mvista.com>
3926
3927 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3928 conditionally.
3929 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3930 MIPS_LINUX_JB_ELEMENT_SIZE.
3931 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3932 for MAX_REGISTER_RAW_SIZE arrays.
3933 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3934 MIPS_LINUX_JB_ELEMENT_SIZE.
3935
9b949a49
PM
39362002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3937
3938 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3939
6d3e79c6
AS
39402002-08-19 Aidan Skinner <aidan@velvet.net>
3941
3942 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3943 ada-valprint.c ada-tasks.c.
3944 (YYFILES): Add ada-exp.y.
3945 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3946 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3947 (ada-exp.tab.o): New target.
3948
06c0b04e
AC
39492002-08-18 Andrew Cagney <ac131313@redhat.com>
3950
3951 * regcache.c (regcache_xfer_part): New function.
3952 (regcache_raw_read_part): New function.
3953 (regcache_raw_write_part): New function.
3954 (regcache_cooked_read_part): New function.
3955 (regcache_cooked_write_part): New function.
3956 * regcache.h (regcache_raw_read_part): Declare.
3957 (regcache_raw_write_part): Declare.
3958 (regcache_cooked_read_part): Declare.
3959 (regcache_cooked_write_part): Declare.
3960
92d1e331
DJ
39612002-08-18 Daniel Jacobowitz <drow@mvista.com>
3962
3963 * remote.c (remote_open_1): Add async_p.
3964 (remote_async_open_1): Delete.
3965 (open_remote_target): Delete.
3966 (remote_open, extended_remote_open): Update calls to remote_open_1.
3967 (remote_async_open, extended_remote_async_open): Call
3968 remote_open_1 instead of remote_async_open_1.
3969
247055de
MK
39702002-08-19 Mark Kettenis <kettenis@gnu.org>
3971
3972 * blockframe.c: Fix a few coding standard violations.
3973
641eda39
MK
39742002-08-19 Mark Kettenis <kettenis@gnu.org>
3975
0b717710
MK
3976 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3977 here from ...
3978 * config/i386/tm-i386sco5.h: ... here. File removed.
3979 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3980
26d28e12 3981 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3982 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3983 (TM_FILE): Set to tm-i386.h.
3984 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3985 * config/i386/tm-i386v.h: Remove file.
3986 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3987 instead of "i386/tm-i386v.h".
3988 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3989 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3990 "i386/tm-i386v.h".
3991 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3992 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3993 "i386/tm-i386.h".
3994
d4e0bab4
MK
39952002-08-18 Mark Kettenis <kettenis@gnu.org>
3996
3997 * config/i386/nm-i386v.h: Add protection against
3998 multiple-inclusion.
3999 (i386_register_u_addr): Remove prototype.
4000 (register_u_addr): New prototype.
4001 (REGISTER_U_ADDR): Redefine accordingly.
4002 * i386v-nat.c: Improve several comments.
4003 (i386_register_u_addr): Change signature and rename to
4004 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4005 ubase variable.
4006
46cac009
AC
40072002-08-18 Andrew Cagney <ac131313@redhat.com>
4008
4009 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4010 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4011 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4012 deprecated_extract_return_value.
4013 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4014 rename mips_o32o64_push_arguments.
4015 (mips_gdbarch_init): Update.
4016 (mips_extract_return_value): Delete.
4017 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4018 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4019 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4020 (mips_n32n64_extract_return_value): Clone
4021 mips_extract_return_value.
4022 (mips_store_return_value): Delete.
4023 (mips_o32_store_return_value): Clone mips_store_return_value.
4024 (mips_o64_store_return_value): Clone mips_store_return_value.
4025 (mips_eabi_store_return_value): Clone mips_store_return_value.
4026 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4027
d2e4a39e
AS
40282002-08-18 Aidan Skinner <aidan@velvet.net>
4029
0c30c098
AS
4030 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4031 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4032
40332002-08-18 Aidan Skinner <aidan@velvet.net>
4034
4035 * ada-lang.c: Run through gdb_indent.sh.
4036 * ada-lang.h: Run through gdb_indent.sh.
4037 * ada-tasks.c: Run through gdb_indent.sh.
4038 * ada-typeprint.c: Run through gdb_indent.sh.
4039 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4040
01fc4e33
AC
40412002-08-18 Andrew Cagney <ac131313@redhat.com>
4042
4043 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4044 ABI.
4045
d8ee244c
MK
40462002-08-18 Mark Kettenis <kettenis@gnu.org>
4047
c38d8261
MK
4048 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4049
222db64c
MK
4050 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4051 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4052
c2848c82
MK
4053 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4054 write_register_gen instead of write_register_bytes.
4055
d8ee244c
MK
4056 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4057 i[3456]-*-osf1mk* configurations have been made obsolete.
4058 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4059 i[3456]86-*-osf1mk* hosts obsolete.
4060 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4061 targets obsolete.
4062 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4063 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4064 config/i386/i386m3.mt, config/i386/nm-m3.h,
4065 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4066 config/i386/i386mk.mh, config/i386/i386mk.mt,
4067 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4068 obsolete.
4069 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4070 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4071 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4072
61d8d407
AC
40732002-08-18 Andrew Cagney <ac131313@redhat.com>
4074
4075 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4076 (hppa_value_returned_from_stack): Declare.
4077 (hppa_extract_return_value): Declare.
4078 * config/pa/hppa.mt: New file.
4079 * configure.tgt: Recognize hppa*-*-*.
4080 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4081
0c52bd59
MK
40822002-08-18 Mark Kettenis <kettenis@gnu.org>
4083
4084 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4085 comment.
4086
b5686e99
MK
40872002-08-17 Mark Kettenis <kettenis@gnu.org>
4088
4089 * top.c (gdb_rl_operate_and_get_next): Make sure
4090 operate-and-get-next functions correctly even when the history
4091 list is completely filled.
4092
c1bab85b
AC
40932002-08-18 Andrew Cagney <ac131313@redhat.com>
4094
4095 * MAINTAINERS (Target Instruction Set Architectures): Rename
4096 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4097 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4098 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4099 already listed under Host/Native.
4100
4101 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4102 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4103 mips*-*-*.
4104
32089c7c
AC
41052002-08-17 Andrew Cagney <ac131313@redhat.com>
4106
4107 * config/ia64/ia64.mt: New file.
4108 * config/alpha/alpha.mt: New file.
4109 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4110 ia64-linux-gnu. Mention that ia64-elf is broken.
4111 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4112
b4671f85
MK
41132002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4114
4115 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4116 generic_func_frame_valid instead of func_frame_valid.
4117
c8edd8b4
JB
41182002-08-16 Joel Brobecker <brobecker@gnat.com>
4119
4120 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4121 procfs appears to be broken when debugging on multi-processor
4122 machines. So enable software single stepping in order to avoid
4123 using the procfs interface to do next/step operations, using
4124 internal breakpoints instead.
4125
4126 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4127 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4128 make this pc address equal to the value it would have if the
4129 system stepping capability was used. Also set a new flag used
4130 to ensure that we don't readjust the PC one more time later.
4131
4132 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4133 address by DECR_PC_AFTER_BREAK when software single step is
4134 in use for this architecture, as this has already been taken
4135 care of in handle_inferior_event().
4136
238617f6
JB
41372002-08-16 Joel Brobecker <brobecker@gnat.com>
4138
4139 * infrun.c (handle_inferior_event): Minor reformatting, to make
4140 a rather long condition expression easier to read.
4141
541a7aac
AC
41422002-08-16 Andrew Cagney <ac131313@redhat.com>
4143
4144 * Makefile.in (gdbtk.o): Move to end of file.
4145 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4146 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4147 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4148 (gdbtk-wrapper.o, gdbres.o): Ditto.
4149
f92d4a7b
AC
41502002-08-16 Andrew Cagney <ac131313@redhat.com>
4151
4152 * Makefile.in (copying.o): Separate out compile rule.
4153 (hpux-thread.o, procfs.o, signals.o): Ditto.
4154 (v850ice.o, z8k-tdep.o): Ditto.
4155 (tui-file.o): Move to TUI section.
4156 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4157 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4158
1cce71eb
JB
41592002-08-16 Joel Brobecker <brobecker@gnat.com>
4160
4161 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4162 skip_trampoline_code, for better namespace-proofing.
4163
4164 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4165
0851f23d
JB
41662002-08-16 Joel Brobecker <brobecker@gnat.com>
4167
4168 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4169
f8d40ec8
JB
41702002-08-16 Joel Brobecker <brobecker@gnat.com>
4171
4172 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4173 signal, check whether we hit a breakpoint before checking for a
4174 single step breakpoint. Otherwise, GDB fails to notice that a
4175 breakpoint has been hit when stepping onto a breakpoint.
4176
63d022e0
KS
41772002-08-16 Keith Seitz <keiths@redhat.com>
4178
4179 * gdb-events.sh (clear_gdb_event_hooks): New function.
4180 * gdb-events.c: Regenerate.
4181 * gdb-events.h: Regenerate.
4182
6e31adb3
AC
41832002-08-16 Andrew Cagney <ac131313@redhat.com>
4184
4185 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4186 not_a_sw_breakpoint.
4187 * breakpoint.h (bpstat_stop_status): Add parameter names.
4188
c8189ed1
GS
41892002-08-16 Grace Sainsbury <graces@redhat.com>
4190
4191 * remote.c (remote_insert_hw_breakpoint)
4192 (remote_remove_hw_breakpoint): Fix calculation of length field
4193 for Z-packet.
4194
d05285fa
MS
41952002-08-15 Michael Snyder <msnyder@redhat.com>
4196
466d7106
MS
4197 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4198 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4199 (supply_fpregset): Ditto.
4200
d05285fa
MS
4201 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4202 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4203 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4204 (TARGET_READ_SP): Delete.
bf1f5b4c 4205 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4206 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4207 Delete.
4208 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4209 from macros to functions.
bf1f5b4c 4210
d05285fa
MS
4211 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4212 (mips_register_convertible, mips_register_convert_to_virtual,
4213 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4214 (mips_read_sp): New function.
4215 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4216 (mips_do_registers_info): Make static.
4217 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4218 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4219 (mips_register_convert_from_type, mips_register_convert_to_type):
4220 New functions.
4221 (mips_gdbarch_init): Set up function_start_offset,
4222 register_virtual_size, pc_in_sigtramp.
d05285fa 4223
e76f1f2e
AC
42242002-08-15 Andrew Cagney <ac131313@redhat.com>
4225
4226 * infcmd.c (vector_info): New function.
4227 (_initialize_infcmd): Add command "info vector".
4228 (print_vector_info): New function.
4229
4230 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4231 * gdbarch.h, gdbarch.c: Regenerate.
4232
4782dc19
AC
42332002-08-15 Andrew Cagney <ac131313@redhat.com>
4234
4235 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4236 ``print_all''. Only print vector registers when ``print_all''.
4237
23e3a7ac
AC
42382002-08-15 Andrew Cagney <ac131313@redhat.com>
4239
8e186fd6
AC
4240 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4241 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4242
23e3a7ac
AC
4243 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4244 Add `args' parameter.
4245 * gdbarch.h, gdbarch.c: Regenerate.
4246
4247 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4248
4249 * infcmd.c (float_info): Call print_float_info.
4250 (print_float_info): New function. By default, print the
4251 floating-point registers.
4252
4253 * arch-utils.h (default_print_float_info): Delete declaration.
4254 * arch-utils.c (default_print_float_info): Delete function.
4255
e0ca2bb9
MK
42562002-08-16 Mark Kettenis <kettenis@gnu.org>
4257
3f733acc
MK
4258 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4259 out define.
4260
7d8d2918
MK
4261 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4262 FRAME.
4263
1c7cc583
MK
4264 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4265 * configure.host: Make i[3456]86-*-aix host obsolete.
4266 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4267 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4268 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4269 config/i386/xm-i386aix.h: Make files obsolete.
4270 * i386aix-nat.c: Make file obsolete.
4271 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4272 (i386aix-nat.o): Make target obsolete.
4273
e0ca2bb9
MK
4274 * config/i386/nm-gnu.h: Removed.
4275 * config/i386/nm-i386gnu.h: New file.
4276 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4277 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4278 Moved here from ...
4279 * config/i386/tm-i386gnu.h: ... here. Removed.
4280 * config/i386/xm-i386gnu.h: Removed.
4281 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4282 (NAT_FILE): Set to nm-i386gnu.h.
4283 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4284 * i386-tdep.c: New file.
4285 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4286 (i386gnu-tdep.o): Specify dependencies.
4287
16057ec7 42882002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4289
6b99ee2e
MK
4290 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4291 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4292 Adjust a few comments to reflect reality a bit closer.
4293 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4294 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4295 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4296 target_insert_watchpoint, target_remove_watchpoint):
4297 Move defines to ...
4298 * config/i386/nm-i386sco5.h: ... here.
4299 (kernel_u_size): Add prototype. Improve a few comments and add
4300 protection against multiple inclusion.
4301
d9a6f65c
MK
4302 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4303 out define.
4304
047eff6a
MK
4305 * uw-thread.c (SP_ARG0): Define if not already defined.
4306 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4307
dcdb1290
MK
4308 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4309
5d2d0b2a
MK
4310 * config/i386/tm-i386.h: Don't include "regcache.h".
4311
61113f8b
MK
4312 * i387-tdep.h (i387_print_float_info): New prototype.
4313 * i387-tdep.c (print_i387_value, print_i387_ext,
4314 print_i387_status_word, print_i387_control_word): Add `struct
4315 ui_file *' argument and use it for output.
4316 (i387_print_float_info): Renamed from i387_float_info. Add
4317 `struct gdbarch *' and `struct ui_file *' arguments and use the
4318 latter for output.
4319 * i386-tdep.c: Include "i387-tdep.h".
4320 (i386_gdbarch_init): Set print_float_info.
4321 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4322 (FLOAT_INFO): Remove define.
4323
46e0f506
MS
43242002-08-13 Michael Snyder <msnyder@redhat.com>
4325
4326 * mips-tdep.c (mips_push_arguments): Rename to
4327 mips_eabi_push_arguments, and tune for EABI.
4328 (MIPS_REGS_HAVE_HOME_P): Delete.
4329 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4330 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4331 Delete references to mips_regs_have_home_p.
4332
409268de
KS
43332002-08-14 Keith Seitz <keiths@redhat.com>
4334
4335 * Makefile.in (install-gdbtk): Create insight plugin directory.
4336 Install plugins.tcl file.
4337
ffc6a242
KS
43382002-08-14 Keith Seitz <keiths@redhat.com>
4339
4340 * configure.in: Move SUBDIRS to near top of the file so that
4341 --enable options may add things to it.
4342 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4343 * configure: Regenerate.
4344
ebafbe83
MS
43452002-08-13 Michael Snyder <msnyder@redhat.com>
4346
4347 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4348 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4349 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4350
32f6f25d
AC
43512002-08-13 Andrew Cagney <ac131313@redhat.com>
4352
4353 * vax-tdep.c (vax_get_saved_register): Delete function.
4354 (vax_gdbarch_init): Update.
4355 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4356 (ns32k_gdbarch_init): Update.
4357 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4358 (alpha_gdbarch_init): Update.
4359
53826de9
AC
43602002-08-13 Andrew Cagney <cagney@redhat.com>
4361
4362 * regcache.c (init_regcache_descr): Overallocate the
4363 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4364 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4365 nr_raw_registers.
4366 (set_register_cached): Add range checking assertions. Use
4367 current_regcache.
4368
16057ec7 43692002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4370
4371 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4372 numbers for MMX registers.
4373
7b4c2dce
AC
43742002-08-13 Andrew Cagney <cagney@redhat.com>
4375
4376 * i386-tdep.c (i386_gdbarch_init): Use
4377 generic_unwind_get_saved_register.
4378
1e03ad20
KB
43792002-08-13 Kevin Buettner <kevinb@redhat.com>
4380
4381 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4382 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4383 target vector.
4384 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4385 Delete. Add comment regarding this now-deleted target method.
4386
548bcbec
SC
43872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4388
4389 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4390 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4391 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4392 real PC and the page number (if it's within the memory bank window).
4393 (m68hc11_pseudo_register_write): Likewise when saving.
4394 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4395 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4396 (m68hc11_register_raw_size): And use 32-bit for it.
4397 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4398 16K memory bank is used by the prog; also use the virtual pc.
4399
7df11f59
SC
44002002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4401
4402 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4403 (m68hc11_gdbarch_init): Install it in gdbarch.
4404 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4405 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4406 (MSYMBOL_SIZE): New for documentation.
4407 (insn_return_kind): Enum to specify how a function returns.
4408 (frame_extra_info): Cleanup and record the return mode.
4409 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4410 register in address computation.
4411 (m68hc11_get_return_insn): New to obtain the return instruction used
4412 by the function.
4413 (m68hc11_frame_init_saved_regs): Take into account the return
4414 instruction used by the function for far and interrupt functions.
4415 (m68hc11_init_extra_frame_info): Take into account page register.
4416 (m68hc11_frame_args_address): Adjust according to the return mode.
4417 (show_regs): Print page register only when it's used.
4418
5706502a
SC
44192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4420
4421 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4422 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4423 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4424 registers.
4425 (m68hc11_register_raw_size): Likewise.
4426
28fc6740
AC
44272002-08-13 Andrew Cagney <cagney@redhat.com>
4428
4429 * i386-tdep.c (i386_register_name): Handle mmx registers.
4430 (mmx_regnum_p): New function.
4431 (i386_mmx_names): New array.
4432 (mmx_num_regs): New variable.
4433 (i386_pseudo_register_read): New function.
4434 (i386_pseudo_register_write): New function.
4435 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4436
4437 * regcache.c (regcache_raw_read_unsigned): New function.
4438 (regcache_raw_read_signed): New function.
4439 * regcache.h (regcache_raw_read_unsigned): Declare.
4440 (regcache_raw_read_signed): Declare.
4441
a378f419
AC
44422002-08-13 Andrew Cagney <cagney@redhat.com>
4443
4444 * regcache.c (regcache_raw_read_as_address): Delete function.
4445 (regcache_cooked_read_signed): New function.
4446 (regcache_cooked_read_unsigned): New function.
4447 * regcache.h (regcache_cooked_read_signed): Declare.
4448 (regcache_cooked_read_unsigned): Declare.
4449 (regcache_raw_read_as_address): Delete declaration.
4450
4451 * blockframe.c (generic_read_register_dummy): Use
4452 regcache_cooked_read_unsigned.
4453 * i386-tdep.c (i386_extract_struct_value_address): Use
4454 regcache_cooked_read_unsigned.
4455
81967506
SC
44562002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4457
4458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4459 double sizes according to ELF ABI flags.
4460 (gdbarch_tdep): Record elf_flags.
4461
ffe1f3ee
SC
44622002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4463
4464 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4465 (m6812_prolog): They can appear in 68HC12 function prologue.
4466 (m68hc11_frame_chain): Cleanup.
4467
98216c5d
AC
44682002-08-12 Andrew Cagney <cagney@redhat.com>
4469
4470 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4471 declarations.
4472 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4473 (i386_linux_register_raw_size): Delete function.
4474 (i386_linux_init_abi): Update.
4475 * i386-tdep.c (i386_register_raw_size): Delete function.
4476 (i386_register_byte): Delete function.
4477 (i386_gdbarch_init): Update.
4478 (i386_register_size): Delete array.
4479 (i386_register_offset): Delete array.
4480
4481 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4482 (REGISTER_RAW_SIZE): Delete macro.
4483 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4484 (REGISTER_BYTE): Delete macro.
4485
3b19021e
AS
44862002-08-11 Aidan Skinner <aidan@velvet.net>
4487
4488 * ada-lang.c (ada_lookup_partial_symbol)
4489 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4490 prototype names so that grep ^func works properly.
4491
4492 * ada-lang.c (ada_array_element_type)
4493 (ada_lookup_partial_symbol): Fix typos in parameter list.
4494
4495 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4496 Fix prototype names so that grep ^func works properly.
4497
b063e7a2
AC
44982002-08-10 Andrew Cagney <cagney@redhat.com>
4499 Elena Zannoni <ezannoni@redhat.com>
4500 Martin M. Hunt <hunt@redhat.com>
4501
4502 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4503 (build_builtin_type_vec128i): Set the vector bit.
4504 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4505 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4506 (build_builtin_type_vec64): New function.
4507 (build_builtin_type_vec64i): New function.
4508 (build_gdbtypes): Initialize builtin_type_vec64 and
4509 builtin_type_vec64i.
4510
a7e3c2ad
AC
45112002-08-09 Andrew Cagney <cagney@redhat.com>
4512
4513 * regcache.c (regcache_dump): Compare the register offset
4514 with REGISTER_BYTE.
4515 * arch-utils.c (generic_register_byte): New function.
4516 * arch-utils.h (generic_register_byte): Declare.
4517 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4518 * gdbarch.h, gdbarch.c: Regenerate.
4519
af030b9a
AC
45202002-08-09 Andrew Cagney <cagney@redhat.com>
4521
4522 * regcache.c: Include "gdbcmd.h"
4523 (_initialize_regcache): Add commands "maintenance print
4524 registers", "maintenance print raw-registers" and "maintenance
4525 print cooked-registers".
4526 (enum regcache_dump_what): Define.
4527 (dump_endian_bytes): New function.
4528 (regcache_dump): New function.
4529 (regcache_print): New function.
4530 (maintenance_print_registers): New function.
4531 (maintenance_print_raw_registers): New function.
4532 (maintenance_print_cooked_registers): New function.
4533 * Makefile.in (regcache.o): Update dependencies.
4534
cb3d25d1
MS
45352002-08-09 Michael Snyder <msnyder@redhat.com>
4536
4537 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4538 (mips_push_arguments): Correct some comments. Use paddr_nz
4539 for printing addresses in debug output. Replace static
4540 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4541 (mips_n32n64_push_arguments): New function, cloned from
4542 mips_push_arguments and tuned for the n32/n64 ABI.
4543 (mips_push_register): Buffer needs dynamic allocation.
4544 (mips_print_register): Ditto.
4545 (do_gp_register_row): Ditto.
4546 (mips_store_return_value): Ditto.
4547 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4548
2163ab9d
DH
45492002-08-09 Don Howard <dhoward@redhat.com>
4550
4551 * memattr.c (mem_info_command): Print special case of upper bound
4552 as max CORE_ADDR + 1.
4553
b78bcb18
MS
45542002-08-08 Michael Snyder <msnyder@redhat.com>
4555
4556 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4557 returns structs by ref if they're too big to fit in two registers.
4558
ffabd70d
KB
45592002-08-09 Kevin Buettner <kevinb@redhat.com>
4560
4561 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4562 saved regs value.
4563 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4564 mips_find_saved_regs().
4565 (mips_pop_frame): Likewise.
4566
fbcdb4a3
KB
45672002-08-09 Kevin Buettner <kevinb@redhat.com>
4568
4569 * blockframe.c (frame_saved_regs_register_unwind): Revise
4570 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4571 frames are in use.
4572
3c3bea1c
GS
45732002-08-09 Grace Sainsbury <graces@redhat.com>
4574
4575 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4576 T-packets; the 'a' is not taken as a register number.
4577 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4578 (remote_stopped_data_address): New functions; add to target
4579 vector.
4580 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4581 prototypes to match other implementations of this
4582 function. replace integer argument with pointer -- the length
4583 field in the Z-packet is the length of what is pointed to or 1 if
4584 pointer is null. Add to target vector.
4585 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4586 target vector.
4587
4588 From Mark Salter:
4589 * remote.c (remote_wait): Add support to extract optional
4590 watchpoint information from T-packet. Ignore unrecognized
4591 optional info in T-packet.
4592 (remote_async_wait): Ditto.
4593
5d1d95de
CV
45942002-08-09 Corinna Vinschen <vinschen@redhat.com>
4595
4596 * cli/cli-dump.c: Change fopen modes to use binary open modes
4597 as defined in include/fopen-bin.h throughout.
4598
c86b5b38
MS
45992002-08-08 Michael Snyder <msnyder@redhat.com>
4600
4601 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4602
b30590dc
KB
46032002-08-08 Kevin Buettner <kevinb@redhat.com>
4604
4605 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4606 assertion failure by returning early after a warning.
4607
498868ed
KB
46082002-08-08 Kevin Buettner <kevinb@redhat.com>
4609
4610 * mips-tdep.c (mips_find_saved_regs): Make static.
4611 (mips_frame_init_saved_regs): New function.
4612 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4613 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4614 (mips_find_saved_regs): Delete declaration.
4615
b2dd6311
GS
46162002-08-08 Grace Sainsbury <graces@redhat.com>
4617
3c3bea1c
GS
4618 * remote.c (remote_wait, remote_async_wait): Change
4619 thread_num from int to ULONGEST.
4620 (unpack_varlen_hex): Change result parameter from
4621 int * to ULONGEST *.
b2dd6311 4622
ea47855f
AC
46232002-08-08 Andrew Cagney <ac131313@redhat.com>
4624
4625 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4626 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4627 powerpc*-*-*.
4628 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4629
69db8bae
AC
46302002-08-08 Andrew Cagney <cagney@redhat.com>
4631
4632 * gcore.c (override_derive_stack_segment): Delete variable.
4633 (preempt_derive_stack_segment): Delete function.
4634 (derive_stack_segment): Delete function.
4635 (default_derive_stack_segment): Renamed to derive_stack_segment.
4636 (override_derive_heap_segment): Delete variable.
4637 (preempt_derive_heap_segment): Delete function.
4638 (derive_heap_segment): Delete function.
4639 (default_derive_heap_segment): Rename to derive_heap_segment.
4640
cb811fe7
MS
46412002-08-06 Michael Snyder <msnyder@redhat.com>
4642
4643 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4644 * mips-tdep.c (mips_EABI_use_struct_convention,
4645 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4646 New functions. (mips_use_struct_convention): Delete.
4647 (mips_gdbarch_init): set use_gdbarch_convention.
4648
8b389c40
MS
46492002-08-06 Michael Snyder <msnyder@redhat.com>
4650
4651 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4652 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4653 mips_o32_reg_struct_has_addr): New functions.
4654 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4655
5c27f28a
AC
46562002-08-07 Andrew Cagney <ac131313@redhat.com>
4657
4658 * regcache.c (pseudo_register): Delete function.
4659 (fetch_register): Delete function.
4660 (store_register): Delete function.
4661 (regcache_raw_read, legacy_read_register_gen): Use
4662 target_fetch_registers instead of fetch_register.
4663 (legacy_write_register_gen, regcache_raw_write): Use
4664 target_store_register instead of store_register.
4665 (write_register_bytes): Ditto.
4666
4667 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4668 (STORE_PSEUDO_REGISTER): Delete.
4669 * gdbarch.h, gdbarch.c: Regenerate.
4670
5b331675
CV
46712002-08-06 Corinna Vinschen <vinschen@redhat.com>
4672
4673 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4674 write dump file binary.
4675
6acdf5c7
MS
46762002-08-05 Michael Snyder <msnyder@redhat.com>
4677
4678 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4679 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4680 (mips_gdbarch_init): Set N32 target to be mips64.
4681
b2f01c35
KB
46822002-08-06 Kevin Buettner <kevinb@redhat.com>
4683
4684 * frame.c (find_saved_register): Break out of loop once saved
4685 register address is found. Don't mention sparc in loop comment
4686 anymore.
4687
63db5580
KB
46882002-08-06 Kevin Buettner <kevinb@redhat.com>
4689
4690 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4691 mips_default_saved_regsize to 8.
4692
5e34e75e
AC
46932002-08-06 Andrew Cagney <ac131313@redhat.com>
4694
4695 * gcore.c: Do not include <sys/procfs.h>.
4696 * Makefile.in (gcore.o): Update dependencies.
4697
eb4c54a2
AC
46982002-08-06 Andrew Cagney <cagney@redhat.com>
4699
4700 * configure.tgt: Make arc-*-* obsolete.
4701 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4702 * MAINTAINERS: Make arc-elf obsolete.
4703 * arc-tdep.c: Make file obsolete.
4704 * config/arc/arc.mt: Ditto.
4705 * config/arc/tm-arc.h: Ditto.
4706
ced15480
TR
47072002-08-05 Theodore A. Roth <troth@verinet.com>
4708
c1bab85b 4709 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4710
b4743822
AC
47112002-08-05 Andrew Cagney <ac131313@redhat.com>
4712
4713 * mcore-tdep.c (mcore_gdbarch_init): Use
4714 generic_unwind_get_saved_register instead of
4715 generic_get_saved_register.
4716 * v850-tdep.c (v850_gdbarch_init): Ditto.
4717 * frv-tdep.c (frv_gdbarch_init): Ditto.
4718 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4719 * s390-tdep.c (s390_gdbarch_init): Ditto.
4720 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4721 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4722 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4723
3956d554
JB
47242002-08-05 Joel Brobecker <brobecker@gnat.com>
4725
4726 * objfiles.h: Add missing #include "symfile.h"
4727
4728 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4729
8249c0d6
AC
47302002-08-04 Andrew Cagney <ac131313@redhat.com>
4731
4732 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4733 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4734 of FIELD_BITSIZE.
4735
b9d14705
DJ
47362002-08-04 Daniel Jacobowitz <drow@mvista.com>
4737
4738 * NEWS: Cleanup and nitpick.
4739
dd73b9bb
AC
47402002-08-03 Andrew Cagney <ac131313@redhat.com>
4741
4742 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4743
043a27f8
AC
47442002-08-03 Andrew Cagney <ac131313@redhat.com>
4745
4746 * Makefile.in (gdbtk-bp.o): Update dependencies.
4747 (gdbtk-register.o): Ditto.
4748 (gdbtk-varobj.o): Ditto.
4749
46ce284d
AC
47502002-08-03 Andrew Cagney <cagney@redhat.com>
4751
4752 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4753 m68hc11_fetch_pseudo_register.
4754 (m68hc11_pseudo_register_write): Replace
4755 m68hc11_store_pseudo_register.
4756 (m68hc11_gdbarch_init): Update.
4757
b66d6d2e
AC
4758Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4759
4760 * gdbarch.sh: Include "gdb_string.h".
4761 * gdbarch.c: Regenerate.
4762
4763 * regcache.c: Include "gdb_string.h".
4764 * ax-general.c: Ditto.
4765 * varobj.c: Ditto.
4766 * std-regs.c: Ditto.
4767 * fbsd-proc.c: Ditto.
4768 * thread.c: Ditto.
4769
4770 * Makefile.in (regcache.o): Update dependencies.
4771 (thread.o, gdbarch.o): Ditto.
4772 (ax-general.o, gdbarch.o): Ditto.
4773 (varobj.o, std-regs.o): Ditto.
4774 (fbsd-proc.o): Specify dependencies.
4775
29e1842b
AC
47762002-08-02 Andrew Cagney <cagney@redhat.com>
4777
4778 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4779 regnum.
4780 (regcache_cooked_write): Ditto.
4781
68365089
AC
47822002-08-02 Andrew Cagney <ac131313@redhat.com>
4783
4784 * regcache.c (regcache_cooked_read): New function.
4785 (regcache_cooked_write): New function.
4786 (read_register_gen): Rewrite using regcache_cooked_read.
4787 (write_register_gen): Rewrite using regcache_cooked_write.
4788
4789 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4790 Declare.
4791
d8124050
AC
47922002-08-02 Andrew Cagney <cagney@redhat.com>
4793
4794 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4795 Replace the architecture methods register_read and register_write.
4796 * gdbarch.h, gdbarch.c: Regenerate.
4797 * regcache.c (init_regcache_descr): Update.
4798 (read_register_gen): Update.
4799 (write_register_gen): Update.
4800 (supply_register): Update comment.
4801
4802 * sh-tdep.c (sh_gdbarch_init): Update.
4803 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4804 `regcache' and `gdbarch' parameters. Make `buffer' a void
4805 pointer. Update code.
4806 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4807 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4808 void pointer. Update code.
4809 (sh64_register_write): Delete.
4810 (sh4_register_read): Delete.
4811 (sh64_register_read): Delete.
4812 (sh4_register_write): Delete.
4813 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4814 void pointer, `to' parameter a void pointer.
4815 (sh_sh64_register_convert_to_raw): Ditto.
4816
a6425924
KB
48172002-08-01 Kevin Buettner <kevinb@redhat.com>
4818
4819 * mips-tdep.c (mips_register_virtual_type): Use architecture
4820 invariant return values.
4821
ff5922b5
AC
48222002-08-01 Andrew Cagney <cagney@redhat.com>
4823
4824 * linux-proc.c: Include "gdb_string.h".
4825 * Makefile.in (linux-proc.o): Update dependency list.
4826
32a6503c
KB
48272002-08-01 Kevin Buettner <kevinb@redhat.com>
4828
4829 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4830 comment.
4831
ccaa32c7
GS
48322002-08-01 Grace Sainsbury <graces@redhat.com>
4833
4834 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4835 to_insert_watchpoint, to_remove_watchpoint,
4836 to_stopped_by_watchpoint, to_stopped_data_address,
4837 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4838 target vecctor. Define their corresponding macros so they call
4839 them.
4840
4841 * target.c: Add default and debug versions of for
4842 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4843 to_insert_watchpoint, to_remove_watchpoint,
4844 to_stopped_by_watchpoint, to_stopped_data_address,
4845 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4846
78fde5f8
KB
48472002-08-01 Kevin Buettner <kevinb@redhat.com>
4848
4849 * mips-tdep.c (mips_register_virtual_type): New function.
4850 (mips_gdbarch_init): Register mips_register_virtual_type()
4851 with gdbarch machinery.
4852 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4853 this file instead of tm-bigmips.h.
4854 (MIPS_REGSIZE): Delete this macro.
4855 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4856 multiarch version in mips-tdep.c will be found.
4857
db034ac5
AC
48582002-08-01 Andrew Cagney <cagney@redhat.com>
4859
4860 * NEWS: Menion that CHILL has been made obsolete.
4861
4862 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4863 * stabsread.c (read_range_type): Ditto.
4864 * gdbtypes.h: Ditto.
4865 * language.c (binop_type_check): Ditto.
4866 (binop_result_type): Ditto.
4867 (integral_type): Ditto.
4868 (character_type): Ditto.
4869 (string_type): Ditto.
4870 (boolean_type): Ditto.
4871 (structured_type): Ditto.
4872 (lang_bool_type): Ditto.
4873 (binop_type_check): Ditto.
4874 * language.h (_LANG_chill): Ditto.
4875 * dwarfread.c (set_cu_language): Ditto.
4876 * dwarfread.c (CHILL_PRODUCER): Ditto.
4877 * dwarfread.c (handle_producer): Ditto.
4878 * expression.h (enum exp_opcode): Ditto.
4879 * eval.c: Ditto for comments.
4880 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4881 * expprint.c (print_subexp): Ditto.
4882 (print_subexp): Ditto.
4883 * valops.c (value_cast): Ditto.
4884 (search_struct_field): Ditto.
4885 * value.h (COERCE_VARYING_ARRAY): Ditto.
4886 * symfile.c (init_filename_language_table): Ditto.
4887 (add_psymbol_with_dem_name_to_list): Ditto.
4888 * valarith.c (value_binop): Ditto.
4889 (value_neg): Ditto.
4890 * valops.c (value_slice): Ditto.
4891 * symtab.h (union language_specific): Ditto.
4892 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4893 (SYMBOL_DEMANGLED_NAME): Ditto.
4894 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4895 * defs.h (enum language): Ditto.
4896 * symtab.c (got_symtab): Ditto.
4897 * utils.c (fprintf_symbol_filtered): Ditto.
4898
4899 * ch-typeprint.c: Make file obsolete.
4900 * ch-valprint.c: Make file obsolete.
4901 * ch-lang.h: Make file obsolete.
4902 * ch-exp.c: Make file obsolete.
4903 * ch-lang.c: Make file obsolete.
4904
4905 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4906 CHILL_LIB.
4907 (TARGET_FLAGS_TO_PASS): Ditto.
4908 (CHILLFLAGS): Obsolete.
4909 (CHILL): Obsolete.
4910 (CHILL_FOR_TARGET): Obsolete.
4911 (CHILL_LIB): Obsolete.
4912 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4913 ch-valprint.c.
4914 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4915 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4916 ch-lang.o.
4917 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4918 targets.
4919
8aaf0b47
JB
49202002-07-31 Joel Brobecker <brobecker@gnat.com>
4921
4922 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4923 This does not change anything at the moment, but will be helpful
4924 later when full Ada support is integrated.
4925
f3a7b3a5
KB
49262002-07-31 Kevin Buettner <kevinb@redhat.com>
4927
4928 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4929 help message.
4930
fb850278
KB
49312002-07-31 Kevin Buettner <kevinb@redhat.com>
4932
4933 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4934 and save it in a local variable. Use variable in later test.
4935
e3bddbfa
KB
49362002-07-31 Kevin Buettner <kevinb@redhat.com>
4937
4938 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4939 test. (Thanks to Daniel Jacobowitz.)
4940
28d169de
KB
49412002-07-31 Kevin Buettner <kevinb@redhat.com>
4942
4943 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4944 (mips_abi_strings): Add "n64".
4945 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4946
7fe7e44e
KB
49472002-07-31 Kevin Buettner <kevinb@redhat.com>
4948
4949 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4950 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4951
c6caf090
KB
49522002-07-31 Kevin Buettner <kevinb@redhat.com>
4953
4954 * utils.c (host_pointer_to_address, address_to_host_pointer):
4955 Use gdb_assert() instead of explicit call to internal_error().
4956
c41669e0
KB
49572002-07-30 Kevin Buettner <kevinb@redhat.com>
4958
4959 * Makefile.in (rs6000-nat.o): Update dependencies.
4960
4961 From Nicholas Duffek:
4962 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4963 (aix-thread.o): New rule.
4964 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4965 * config/powerpc/aix432.mh: New file.
4966
2fda4977
DJ
49672002-07-30 Daniel Jacobowitz <drow@mvista.com>
4968
4969 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4970 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4971 (fetch_core_registers, ppc_linux_supply_gregset)
4972 (ppc_linux_supply_fpregset): New functions.
4973 (ppc_linux_regset_core_fns): New.
4974 (_initialize_ppc_linux_tdep): Call add_core_fns.
4975 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4976 and ppc_linux_supply_gregset.
4977 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4978 (supply_fpregset): Call ppc_linux_supply_fpregset.
4979 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4980 corelow.o.
4981 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4982
729051e6
DJ
49832002-07-30 Daniel Jacobowitz <drow@mvista.com>
4984
4985 * symtab.c (lookup_symbol): Demangle before lowercasing.
4986
5f8a3188
AC
49872002-07-30 Andrew Cagney <ac131313@redhat.com>
4988
4989 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4990 declaration.
4991 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4992 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4993 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4994 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4995 "gdb_string.h".
4996 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4997 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4998 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4999 (avr-tdep.o, mon960-rom.o): Ditto.
5000 (aout_stabs_gnu_h): Define.
5001 (symtab_h): Remove $(gdb_obstack_h).
5002
67f07146
JB
50032002-07-30 Jim Blandy <jimb@redhat.com>
5004
5005 Patch from David Carlton <carlton@math.stanford.edu>:
5006 * gdbinit.in: Move the `dir' commands that add GDB's own source
5007 directory to the search path to the end, so that the `gdb' source
5008 directory will be searched first.
5009
04ea0df1
AC
50102002-07-29 Andrew Cagney <ac131313@redhat.com>
5011
5012 * gdb_obstack.h: New file.
5013 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5014 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5015 * objfiles.h: Include "gdb_obstack.h".
5016 * Makefile.in (gdb_obstack_h): Define.
5017 (symtab_h): Add $(gdb_obstack_h).
5018 (objfiles_h): Add $(gdb_obstack_h).
5019
5020 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5021 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5022 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5023 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5024 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5025 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5026 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5027 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5028
5029 * Makefile.in (bcache.o): Update dependencies.
5030 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5031 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5032 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5033 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5034 (stabsread.o, symfile.o, symmisc.o): Ditto.
5035 (symtab.o, typeprint.o, macroexp.o): Ditto.
5036 (macrotab.o, mdebugread.o): Ditto.
5037 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5038 (coff_ecoff_h, aout_aout64_h): Define.
5039 (aout_stabs_gnu_h, libaout_h): Define.
5040
d138e37a
AC
50412002-07-29 Andrew Cagney <cagney@redhat.com>
5042
5043 * regcache.c (struct regcache_descr): Rename nr_registers to
5044 nr_cooked_registers. Revise comments describing the structure
5045 member fields.
5046 (init_regcache_descr): Update.
5047 (init_legacy_regcache_descr): Update.
5048 (read_register_gen, write_register_gen): When a cooked register in
5049 the raw register range, directly access the value from the raw
5050 register cache.
5051
460e6ec3
AC
50522002-07-29 Andrew Cagney <ac131313@redhat.com>
5053
5054 * z8k-tdep.c: Do not include "obstack.h".
5055 * h8300-tdep.c, h8500-tdep.c: Ditto.
5056 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5057 * valprint.c, v850-tdep.c: Ditto.
5058 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5059 * mn10200-tdep.c: Ditto.
5060
5061 * Makefile.in (z8k-tdep.o): Update dependencies.
5062 (m68hc11-tdep.o, valprint.o): Ditto.
5063 (v850-tdep.o, d10v-tdep.o): Ditto.
5064 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5065 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5066 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5067 (sh_opc_h, gdb_sim_sh_h): Define.
5068 (elf_sh_h, elf_bfd_h): Define.
5069 (opcode_m68hc11_h): Define.
5070 (OPCODES_SRC, OPCODES_DIR): define.
5071 (OPCODES): Use $(OPCODES_DIR).
5072 (gdb_sim_d10v_h): Rename sim_d10v_h.
5073 (gdb_sim_arm_h): Rename sim_arm_h.
5074
790c9cf0
KB
50752002-07-26 Kevin Buettner <kevinb@redhat.com>
5076
5077 * utils.c (host_pointer_to_address, address_to_host_pointer):
5078 Change internal_error() message to indicate function responsible
5079 for the error.
5080
9647fa49
KB
50812002-07-26 Kevin Buettner <kevinb@redhat.com>
5082
5083 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5084 calls to local_hex_string_custom().
5085
dabbe2c0
KB
50862002-07-26 Kevin Buettner <kevinb@redhat.com>
5087
5088 * irix5-nat.c: Move IRIX shared library support from here...
5089 * solib-irix.c: ...to here. Revised substantially to work with
5090 generic solib framework.
5091
b96d0a4e
KB
5092 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5093 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5094 * mips-irix-tdep.c: New file.
5095
313fb2f6
KB
5096 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5097 (mips-irix-tdep.o, solib-irix.o): New rules.
5098 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5099 solib-irix.o.
5100 * config/mips/irix6.mt (TDEPFILES): Likewise.
5101 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5102
ab2eaf26
KB
51032002-07-26 Kevin Buettner <kevinb@redhat.com>
5104
177e4768 5105 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5106 disabled (via ``#if 0'') includes.
5107
7244546a
KB
51082002-07-26 Kevin Buettner <kevinb@redhat.com>
5109
5110 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5111 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5112 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5113 Add support for the fpscr register.
5114 * rs6000-nat.c (regmap, fetch_inferior_registers)
5115 (store_inferior_registers, fetch_core_registers): Likewise.
5116
dd7be90a
KB
51172002-07-26 Kevin Buettner <kevinb@redhat.com>
5118
5119 * rs6000-nat.c (language.h): Include.
5120 (special_regs): Delete this array.
5121 (regmap): New function.
5122 (fetch_register, store_register): Use regmap() to map gdb
5123 register numbers to ptrace register numbers. Also, use
5124 outputs from regmap() to make decisions regarding type of
5125 ptrace() call to make. In particular, don't compare against
5126 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5127 (fetch_inferior_registers, store_inferior_registers): Where
5128 possible, obtain register numbers from tdep struct. Don't
5129 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5130 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5131 (LAST_UISA_SP_REGNUM): Delete.
5132
11bf77db
KB
51332002-07-25 Kevin Buettner <kevinb@redhat.com>
5134
5135 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5136 (fetch_registers, store_register, fetch_core_registers): Don't
5137 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5138 regcache_collect() as appropriate.
5139 (find_toc_address): Format hex address with local_hex_string().
5140
06afebeb
AC
51412002-07-25 Andrew Cagney <ac131313@redhat.com>
5142
5143 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5144 bfd/elf32-frv.c.
5145
8c554d79
TT
51462002-07-24 Tom Tromey <tromey@redhat.com>
5147
5148 * jv-exp.y: Marked all strings with _().
5149 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5150 internal_error.
5151 (MethodInvocation, CastExpression, parse_number, yyerror,
5152 java_type_from_name, push_expression_name, yylex): Typo fixes.
5153
e4c242d9
DJ
51542002-07-24 Daniel Jacobowitz <drow@mvista.com>
5155
5156 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5157 (tee_file_flush, tee_file_write, tee_file_fputs)
5158 (tee_file_isatty): New.
5159 * ui-file.h (tee_file_new): Add prototype.
5160
ebf56fd3
AS
51612002-07-24 Aidan Skinner <aidan@velvet.net>
5162
5163 * ada-lang.c: Change k&r style function definitions to prototyped
5164 form.
5165 * ada-typeprint.c: Change k&r style function definitions to prototyped
5166 form.
5167 * ada-valprint.c: Change k&r style function definitions to prototyped
5168 form.
5169
7fb623f7
AC
51702002-07-24 Andrew Cagney <cagney@redhat.com>
5171
5172 * README: Remove reference to remote-bug.
5173 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5174 remote-bug.c.
5175 (m88k-nat.o): Delete rule.
5176 (m88k-tdep.o): Delete rule.
5177 (remote-bug.o): Delete rule.
5178 * MAINTAINERS: Mark as obsolete.
5179 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5180 * m88k-tdep.c: Make file obsolete.
5181 * config/m88k/m88k.mh: Ditto.
5182 * config/m88k/delta88v4.mh: Ditto.
5183 * config/m88k/delta88v4.mt: Ditto.
5184 * config/m88k/delta88.mt: Ditto.
5185 * config/m88k/delta88.mh: Ditto.
5186 * remote-bug.c: Ditto.
5187 * config/m88k/tm-delta88.h: Ditto.
5188 * config/m88k/nm-delta88v4.h: Ditto.
5189 * config/m88k/xm-delta88.h: Ditto.
5190 * config/m88k/xm-dgux.h: Ditto.
5191 * config/m88k/tm-m88k.h: Ditto.
5192 * config/m88k/nm-m88k.h: Ditto.
5193 * config/m88k/tm-delta88v4.h: Ditto.
5194 * m88k-nat.c: Ditto.
5195 * cxux-nat.c: Ditto.
5196 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5197 and m88*-*-* obsolete.
5198 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5199 m88*-*-* obsolete.
5200
37611a2b
AC
52012002-07-24 Andrew Cagney <cagney@redhat.com>
5202
5203 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5204 constant. Same for local pointer variables.
5205 (extract_signed_integer): Ditto.
5206 * defs.h (extract_unsigned_integer): Update.
5207 (extract_signed_integer): Update.
5208
1aaa5f99
AC
52092002-07-24 Andrew Cagney <cagney@redhat.com>
5210
5211 * regcache.c (regcache_raw_write): Change buf parameter to a
5212 constant void pointer.
5213 (regcache_raw_read): Change buf parameter to a void pointer.
5214 (legacy_write_register_gen): Change myaddr parameter a constant
5215 void pointer.
5216 (supply_register): Change val parameter to a const void pointer.
5217 * regcache.h (regcache_raw_write): Update declaration.
5218 (regcache_raw_read): Update declaration.
5219 (supply_register): Update declaration.
5220
b4f5539f
TT
52212002-07-24 Tom Tromey <tromey@redhat.com>
5222
5223 * defs.h (gdb_readline_wrapper): Declare.
5224 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5225 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5226 * top.c (gdb_readline_wrapper): New function.
5227 (command_line_input): Use it.
5228
0818c12a
AC
52292002-07-24 Andrew Cagney <cagney@redhat.com>
5230
5231 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5232 regcache_read and regcache_write.
5233 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5234 * regcache.c: Update.
5235 * sh-tdep.c (sh64_push_arguments): Update comment.
5236 (sh_pseudo_register_read): Update.
5237 (sh_pseudo_register_write): Update.
5238 (sh4_register_read): Update.
5239 (sh4_register_write): Update.
5240 (sh64_pseudo_register_read): Update.
5241 (sh64_pseudo_register_write): Update.
5242 (sh64_register_read): Update.
5243 (sh64_register_write): Update.
5244 * i386-tdep.c (i386_extract_return_value): Update.
5245 (i386_extract_struct_value_address): Update.
5246 (i386_extract_return_value): Update.
5247 * blockframe.c (generic_read_register_dummy): Update.
5248 (generic_call_dummy_register_unwind): Update
5249 * infrun.c (write_inferior_status_register): Update.
5250
f7321c06
JB
52512002-07-23 Jim Blandy <jimb@redhat.com>
5252
5253 * parser-defs.h (expression_context_pc): Make this extern.
5254 (Thanks to Michael Snyder.)
5255
2037aebb
AC
52562002-07-23 Andrew Cagney <ac131313@redhat.com>
5257
5258 GDB 5.2.1 released from 5.2 branch.
5259 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5260 * README: Update to mention 5.2.1.
5261
66504d44
MS
52622002-07-23 Mark Salter <msalter@redhat.com>
5263
5264 * remote.c (remote_read_bytes): Fix check for error.
5265
27bae383
KB
52662002-07-22 Kevin Buettner <kevinb@redhat.com>
5267
5268 * aix-thread.c (language.h): Include.
5269 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5270 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5271 Print newlines at end of debug messages.
5272 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5273 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5274
52752002-07-22 Kevin Buettner <kevinb@redhat.com>
5276
5277 * aix-thread.c (ppc-tdep.h): Include.
5278 (special_register_p): New function.
5279 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5280 (store_regs_user_thread): Use register number information from
5281 gdbarch_tdep struct instead of hardcoded offsets relative to
5282 FIRST_UISA_SP_REGNUM.
5283 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5284 special_register_p() instead of using FPLAST_REGNUM and
5285 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5286 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5287 will be MQ's register number.
5288
52892002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5290
5291 * aix-thread.c (ops): Rename to aix_thread_ops.
5292 (base_ops): Rename to base_target.
5293 (ops_attach): Rename to aix_thread_attach.
5294 (ops_detach): Rename to aix_thread_detach.
5295 (ops_resume): Rename to aix_thread_detach.
5296 (ops_wait): Rename to aix_thread_wait.
5297 (ops_kill): Rename to aix_thread_kill.
5298 (init_ops): Rename to init_aix_thread_ops.
5299 (ops_fetch_register): Rename to aix_thread_fetch_register.
5300 (ops_store_register): Rename to aix_thread_store_register.
5301 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5302 (ops_thread_alive): Rename to aix_thread_thread_alive.
5303 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5304 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5305 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5306 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5307 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5308 (store_regs_lib): Rename to store_regs_user_thread.
5309 (store_regs_kern): Rename to store_regs_kernel_thread.
5310
27bae383 53112002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5312
5313 * aix-thread.c (ops_prepare_to_store): Eliminate.
5314 (init_ops): Don't initialize ops.prepare_to_store.
5315 (store_regs_kern): Pre-fetch register buffers from child,
5316 because some registers may not be in the cache. Copy
5317 regs from register cache only if they are cached.
5318 (store_regs_lib): Copy regs from register cache only
5319 if they are cached.
5320 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5321 fill_gprs64): Ditto.
5322
61c5da0b
KB
53232002-07-22 Kevin Buettner <kevinb@redhat.com>
5324
5325 * aix-thread.c (gdb_assert.h): Include.
5326 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5327 register sizes (from register cache) match size of buffer holding
5328 register data.
5329 (fill_sprs32): Change parameter types to match those in the ptrace()
5330 buffer.
5331 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5332 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5333
53342002-07-22 Michael Snyder <msnyder@redhat.com>
5335
5336 * aix-thread.c (supply_sprs64): Cosmetic change.
5337 (supply_sprs32): Cosmetic change.
5338 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5339 (fill_sprs64): Use regcache_collect instead of read_register.
5340 (store_regs_lib): Use regcache_collect instead of
5341 read_register. Use fill_sprs32 instead of fill_sprs64,
5342 if debugging a 32-bit architecture.
5343 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5344 out of the register cache, instead of passing a pointer into
5345 the register cache directly to ptrace. Use regcache_collect
5346 insteaad of read_register.
5347 (ops_prepare_to_store): Use target_read_registers instead
5348 of read_register_bytes.
5349
36479eb1
AS
53502002-07-20 Aidan Skinner <aidan@velvet.net>
5351
5352 * MAINTAINERS: Add self under write after approval.
5353
80ae6ee2
AS
53542002-07-20 Aidan Skinner <aidan@velvet.net>
5355
5356 * ada-tasks.c: Change k&r style function definitions to prototyped
5357 form.
5358
8a8ab2b9
AC
53592002-07-19 Andrew Cagney <ac131313@redhat.com>
5360
5361 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5362 * x86-64-tdep.c: Include "objfiles.h".
5363 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5364 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5365
fb16b900
ML
53662002-07-17 Michal Ludvig <michal@suse.cz>
5367
5368 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5369 (update_context): Initialise cfa variable.
5370
0fe7bf7b
MS
53712002-07-17 Michael Snyder <msnyder@redhat.com>
5372
5373 * aix-thread.c: Shorten some long lines.
5374 Bring comments into line with code spec.
5375
488f131b
JB
53762002-07-18 Joel Brobecker <brobecker@gnat.com>
5377
5378 * infrun.c: Re-indent using gdb_indent.sh.
5379
46c415d2
JB
53802002-07-18 Joel Brobecker <brobecker@gnat.com>
5381
5382 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5383 Leave the indentation temporarily untouched, to minimize the diffs.
5384
cdecafbe
EZ
53852002-07-18 Elena Zannoni <ezannoni@redhat.com>
5386
5387 * stabsread.c: Make os9k sections of the code obsolete,
5388 for real this time.
5389 * stabsread.h: Make os9k sections of the code obsolete.
5390
7b6aa020
ML
53912002-07-18 Michal Ludvig <mludvig@suse.cz>
5392
09ec9b38
ML
5393 * linux-low.c (regsets_store_inferior_registers): Add free()
5394 at the end of a loop to prevent memory leak.
5395 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5396 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5397 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5398 line a comment.
4894ac5d 5399 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5400
233282cd
JB
54012002-07-17 Jim Blandy <jimb@redhat.com>
5402
5403 * macrocmd.c (info_macro_command): Remove newline from error
5404 message.
5405
7b6aa020 54062002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5407
5408 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5409 (sh_gdbarch_init): Use it for sh-dsp.
5410
f7ef9339
KB
54112002-07-16 Kevin Buettner <kevinb@redhat.com>
5412
5413 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5414 64-bit DWARF2 format.
5415
8dd72958
JB
54162002-07-16 Joel Brobecker <brobecker@gnat.com>
5417
5418 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5419 <sys/proc.h> when not available.
5420
a99a9e1b
AC
54212002-07-16 Andrew Cagney <ac131313@redhat.com>
5422
5423 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5424 * stabsread.c: Make os9k sections of the code obsolete.
5425 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5426 * config/i386/i386os9k.mt: Make file obsolete.
5427 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5428 (COMMON_OBS): Remove os9kread.o
5429 (SFILES): Remove os9kread.c.
5430 (os9kread.o, remote-os9k.o): Make target obsolete.
5431 * remote-os9k.c: Make file obsolete.
5432 * os9kread.c: Make file obsolete.
5433 * Makefile.in
5434
7a3085c1
AC
54352002-07-16 Andrew Cagney <ac131313@redhat.com>
5436
5437 * NEWS: Mention that the FR30 has been made obsolete.
5438 * fr30-tdep.c: Make file obsolete.
5439 * config/fr30/tm-fr30.h: Ditto.
5440 * config/fr30/fr30.mt: Ditto.
5441 * configure.tgt: Make fr30-*-elf obsolete.
5442 * MAINTAINERS: Make fr30-elf obsolete.
5443
28a93f5a
PM
54442002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5445
5446 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5447 found is not inside a section.
5448
be006b8b
KB
54492002-07-15 Kevin Buettner <kevinb@redhat.com>
5450
5451 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5452 strerror().
5453 (pdc_realloc): Use xrealloc() instead of realloc().
5454
14fa3751
KB
54552002-07-15 Kevin Buettner <kevinb@redhat.com>
5456
5457 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5458 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5459 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5460 macros.
5461
42cc437f
KB
54622002-07-15 Kevin Buettner <kevinb@redhat.com>
5463
5464 * aix-thread.c (ptrace_check): Eliminate goto.
5465 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5466 problem.
5467
8e2c28d4
KB
54682002-07-15 Kevin Buettner <kevinb@redhat.com>
5469
5470 * aix-thread.c (gdbcmd.h): Include.
5471 (DEBUG, DBG, DBG2, dbg): Eliminate.
5472 (debug_aix_thread): New static global.
5473 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5474 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5475 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5476 invocations to DBG and DBG2 macros to test against
5477 ``debug_aix_thread'' and call fprintf_unfiltered().
5478 (_initialize_aix_thread): Add new command "set debug aix-thread".
5479
30413464
AC
54802002-07-15 Andrew Cagney <ac131313@redhat.com>
5481
5482 From Gerhard Tonn <TON@de.ibm.com>:
5483 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5484 instead of supply_register.
5485
7c43edc1
AC
54862002-07-15 Andrew Cagney <ac131313@redhat.com>
5487
5488 * dwarf2cfi.c: Include "gdb_assert.h".
5489 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5490 non-NULL.
5491 (update_context): Do not use __func__. Add missing ``break''.
5492 (update_context): Do not use __func__.
5493
9364a0ef
EZ
54942002-07-15 Elena Zannoni <ezannoni@redhat.com>
5495
5496 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5497 and its setting. Set gdbarch instruction printing functions
5498 directly. For non-rs6000 case use new function
5499 gdb_print_insn_powerpc.
5500 (gdb_print_insn_powerpc): New function.
5501
3fbeef0b
AC
55022002-07-13 Andrew Cagney <ac131313@redhat.com>
5503
92eb23c5 5504 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5505 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5506 * configure.tgt: Mark d30v-*-* as obsolete.
5507 * d30v-tdep.c: Mark file as obsolete.
5508 * config/d30v/d30v.mt: Ditto.
5509 * config/d30v/tm-d30v.h: Ditto.
5510
aacb1f0a
AS
55112002-07-13 Aidan Skinner <aidan@velvet.net>
5512
5513 * ada-tasks.c (add_task_entry): replace calls to
5514 malloc() with xmalloc
5515 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5516
5517 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5518 ada_finish_decode_line_1, all_sals_for_line
5519 ada_breakpoint_rewrite): replace calls to free() with xfree()
5520
c11d79f2
KB
55212002-07-12 Kevin Buettner <kevinb@redhat.com>
5522
5523 From Nicholas Duffek (with minor changes by Martin Hunt,
5524 Louis Hamilton, and Kevin Buettner):
5525 * aix-thread.c: New file.
5526
8e19ed76
PS
55272002-07-12 Petr Sorfa <petrs@caldera.com>
5528
5529 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5530 complaint for invalid attribute class or form.
5531 (read_func_scope): DW_AT_frame_base
5532 better handling of DW_AT_block*.
5533 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5534 better handling of DW_AT_block*.
5535 (read_common_block): DW_AT_location
5536 better handling of DW_AT_block*.
5537 (read_partial_die): DW_AT_location better handling
5538 of DW_AT_block*.
5539 (new_symbol): DW_AT_external better handling of
5540 DW_AT_block*. Proper initialization of variable
5541 "addr".
5542 (attr_form_is_block): New function that returns true
5543 if the attribute's form is of DW_FORM_block*.
5544
295401f7
DJ
55452002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5546
5547 * valops.c (find_method_list): Remove comment about
5548 removed STATIC_MEMFUNCP argument.
5549 (value_find_oload_method_list): Likewise.
5550
e42dc924
KB
55512002-07-12 Kevin Buettner <kevinb@redhat.com>
5552
5553 From Nicholas Duffek:
5554 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5555 target_new_objfile_hook.
5556
6904b546
KB
55572002-07-12 Kevin Buettner <kevinb@redhat.com>
5558
5559 From Nicholas Duffek:
5560 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5561 csect.
5562
53fe9346
AC
55632002-07-12 Andrew Cagney <cagney@redhat.com>
5564
5565 * MAINTAINERS: Mention --enable-sim-build-warnings.
5566 (m68hc11-elf): Disable sim build warnings.
5567 (m32r-elf): Mark as broken obsolete candidate.
5568 (x86_64-linux-gnu): Mark as buildable with -Werror.
5569 (arm-elf): Change -w to ``,'' which enables warnings but not
5570 -Werror.
5571
af5f3db6
AC
55722002-07-12 Andrew Cagney <ac131313@redhat.com>
5573
5574 * bcache.h: Update copyright.
5575 (struct bstring, struct bcache): Move definition to "bcache.c".
5576 Replaced by opaque declaration.
5577 (bcache_xfree): Replace free_bcache.
5578 (bcache_xmalloc, bcache_memory_used): Declare.
5579
5580 * bcache.c: Update copyright.
5581 (struct bstring, struct bcache): Moved to here from "bcache.h".
5582 Update comments.
5583 (bcache_xmalloc, bcache_memory_used): New functions.
5584 (bcache_xfree): Replace function free_bcache.
5585
5586 * Makefile.in (objfiles.o): Add $(bcache_h).
5587 (objfiles_h): Remove $(bcache_h).
5588 (symfile.o): Add $(bcache_h).
5589
5590 * symmisc.c: Update copyright.
5591 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5592 (print_objfile_statistics): Use bcache_memory_used.
5593
5594 * symfile.c: Include "bcache.h".
5595 (reread_symbols): Use bcache_xfree.
5596 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5597 (add_psymbol_to_list): Pass psymbol_cache by value.
5598 (add_psymbol_with_dem_name_to_list): Ditto.
5599
5600 * objfiles.h: Update copyright.
5601 (struct bcache): Declare opaque. Do not include "bcache.h".
5602 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5603 bcache'' pointers.
5604 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5605
5606 * objfiles.c: Include "bcache.h". Update copyright.
5607 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5608 macro_cache.
5609 (free_objfile): Use bcache_xfree.
5610
444199e7
GS
56112002-07-11 Grace Sainsbury <graces@redhat.com>
5612
5613 * monitor.c (monitor_fetch_register): Make name a constant.
5614 (monitor_store_register): Same.
5615
261397f8
DJ
56162002-07-11 Daniel Jacobowitz <drow@mvista.com>
5617
5618 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5619 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5620 (finish_block) For non-function blocks, hash the symbol table. For
5621 function blocks, mark the symbol table as unhashed.
5622 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5623 (msymbol_hash_iw): Likewise.
5624 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5625 value.
5626 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5627 (lookup_minimal_symbol): Likewise for both.
5628 * symtab.h (struct block): Add `hashtable' flag. Comment the
5629 hashtable.
5630 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5631 (ALL_BLOCK_SYMBOLS): Update.
5632 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5633 (struct symbol): Add `hash_next' pointer.
5634 * symtab.c (lookup_block_symbol): Search using the hash table when
5635 possible.
5636 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5637 (search_symbols, find_addr_symbol): Likewise.
5638
5639 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5640 (read_dst_symtab): Likewise.
5641 * jv-lang.c (get_java_class_symtab): Likewise.
5642 * mdebugread.c: Include "gdb_assert.h".
5643 (shrink_block): Assert that the block being modified is not hashed.
5644 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5645 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5646 symbols.
5647 (dump_symtab): Recognize hashed blocks.
5648 * printcmd.c (print_frame_args): Assert that function blocks do not
5649 have hashed symbol tables.
5650 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5651 (fill_in_ada_prototype, debug_print_block): Likewise.
5652 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5653
6f0eaa01
CV
56542002-07-11 Corinna Vinschen <vinschen@redhat.com>
5655
5656 * stack.c (print_frame): Use result of frame_address_in_block()
5657 instead of fi->pc when evaluating symbols.
5658 (backtrace_command_1): Ditto.
5659
a208b0cb
AC
56602002-07-11 Andrew Cagney <cagney@redhat.com>
5661
5662 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5663 Make static.
5664
5665 * arm-tdep.c (arm_register_name): Make return type constant.
5666
a6b6b089
AC
56672002-07-10 Andrew Cagney <ac131313@redhat.com>
5668
5ae5f592
AC
5669 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5670 prototype.
5671 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5672 * s390-tdep.c (s390_fp_regnum): Ditto.
5673 (s390_read_fp): Ditto.
5674 (s390_pop_frame): Ditto.
5675 (_initialize_s390_tdep): Ditto.
5676 * remote.c (get_remote_state): Ditto.
5677 * procfs.c (mappingflags): Ditto.
5678 * memattr.c (_initialize_mem): Ditto.
5679 * mcore-tdep.c (mcore_pop_frame): Ditto.
5680 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5681 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5682 * language.c (set_case_str): Ditto.
5683 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5684 * frv-tdep.c (new_variant): Ditto.
5685 (frv_stopped_data_address): Ditto.
5686 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5687 (context_alloc): Ditto.
5688 (frame_state_alloc): Ditto.
5689 (unwind_tmp_obstack_init): Ditto.
5690 (unwind_tmp_obstack_free): Ditto.
5691 (cfi_read_fp): Ditto.
5692 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5693 (cris_pop_frame): Ditto.
5694 * c-lang.c (scanning_macro_expansion): Ditto.
5695 (finished_macro_expansion): Ditto.
5696 (c_preprocess_and_parse): Ditto.
5697 * gdbarch.sh: Ditto.
5698 * gdbarch.h, gdbarch.c: Regenerate.
5699 * config/mn10200/tm-mn10200.h: Adjust indentation.
5700 * target.c: Adjust indentation.
5701 * symtab.h: Adjust indentation.
5702 * stabsread.h: Adjust indentation.
5703 * remote-es.c: Adjust indentation.
5704 * os9kread.c: Adjust indentation.
5705
57062002-07-10 Andrew Cagney <ac131313@redhat.com>
5707
a6b6b089
AC
5708 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5709 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5710
a1789893
GS
57112002-07-10 Grace Sainsbury <graces@redhat.com>
5712
5713 * NEWS: Mention m68k, mcore multi-arching.
5714 * MAINTAINERS: Change status of m68k, mcore to reflect
5715 multi-arching.
5716
02f0d45d
DJ
57172002-07-10 Daniel Jacobowitz <drow@mvista.com>
5718
5719 * valops.c (find_overload_match): Free oload_syms.
5720
f15f768e
JB
57212002-07-09 Joel Brobecker <brobecker@gnat.com>
5722
5723 Define HAVE_SYS_PROC_H if sys/proc.h exists
5724 * configure.in: Add check for sys/proc.h
5725 * config.in: Regenerate.
5726 * configure: Regenerate.
5727
902a7139
GS
57282002-07-09 Grace Sainsbury <graces@redhat.com>
5729
5730 * config/m68k/tm-m68k.h: Remove macros wrapped in
5731 #if !GDB_MULTI_ARCH.
5732
a534e424
AC
57332002-07-08 Andrew Cagney <ac131313@redhat.com>
5734
5735 * config.in, configure: Regenerate.
5736
9b94f7bf
MK
57372002-07-08 Mark Kettenis <kettenis@gnu.org>
5738
5739 * dwarf2cfi.c: Include "gcore.h".
5740 (execute_stack_op): Fix implementation of the
5741 DW_OP_deref and DW_OP_deref_size operators by letting do their
5742 lookup in the target.
5743
1d34db41
MK
57442002-07-07 Mark Kettenis <kettenis@gnu.org>
5745
5746 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5747 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5748 tdep->sc_sp_offset.
5749
79d5b63a
DJ
57502002-07-05 Daniel Jacobowitz <drow@mvista.com>
5751
5752 Fix PR gdb/595, gdb/602
5753 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5754 Don't call value_cast, just read the vtable pointer; update comments
5755 to match.
5756
3bb912e8
GS
57572002-07-05 Grace Sainsbury <graces@redhat.com>
5758
5759 * config/mcore/tm-mcore.h: Remove file.
5760 * config/mcore/mcore.mt: Remove definition of TM_FILE
5761 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5762
ca39387d
MK
57632002-07-05 Mark Kettenis <kettenis@gnu.org>
5764
5765 * i386bsd-tdep.c: Include "gdb_string.h".
5766
efdc1108
GS
57672002-07-04 Grace Sainsbury <graces@redhat.com>
5768
5769 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5770 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5771 mcore-tdep.
5772 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5773 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5774 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5775 (RETVAL_REGNUM): Move macros from tm-mcore.h
5776 (mcore_reg_struct_has_addr): New function.
5777 (mcore_gdbarch_init): Added initializations for the macros removed
5778 from tm-mcore.h.
5779
bb21884d
MK
57802002-07-04 Mark Kettenis <kettenis@gnu.org>
5781
5782 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5783 traditonal string branding within the ELF header.
5784
228c6d41
DJ
57852002-07-04 Daniel Jacobowitz <drow@mvista.com>
5786
5787 * symtab.c (remove_params): New function.
5788 (make_symbol_overload_list): Use it instead of cplus_demangle.
5789 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5790
2404952e
MK
57912002-07-04 Mark Kettenis <kettenis@gnu.org>
5792
e5e4acad
MK
5793 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5794
baadce09
MK
5795 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5796 New variables.
5797 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5798 and tdep->sigtramp_end.
5799 * i386obsd-nat.c: New file.
5800 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5801
2404952e
MK
5802 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5803 Don't call get_current_frame().
5804
9b4f1ba7
PM
58052002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5806
5807 * i386-nat.c (child_post_startup_inferior): New function
5808 calling i386_cleanup_dregs if
5809 I386_USE_GENERIC_WATCHPOINTS is defined.
5810 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5811 conditional to acknowledge that i386-nat.c has its
5812 own child_post_startup_inferior function.
5813
c0d1d883
MK
58142002-07-04 Mark Kettenis <kettenis@gnu.org>
5815
00f8375e
MK
5816 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5817 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5818 instead of MAX_REGISTER_RAW_SIZE.
5819 (i386_extract_return_value, i386_extract_struct_value_address):
5820 Convert to use regcache.
5821 (i386_gdbarch_init): Set max_register_raw_size and
5822 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5823 Set extract_return_value and extract_struct_value_address instead
5824 of their deprecated variants.
5825
c0d1d883
MK
5826 Convert i386 target to generic dummy frames.
5827 * i386-tdep.c: Include "symfile.h".
5828 (i386_frameless_signal_p): Consider a function to be frameless if
5829 the pc points at the first instruction of the function.
5830 (i386_frame_chain): Handle (generic) call dummies.
5831 (i386_frame_saved_pc): Likewise.
5832 (i386_frame_init_saved_regs): Remove code dealing with call
5833 dummies on the stack.
5834 (i386_push_dummy_frame): Removed.
5835 (i386_call_dummy_words): Removed.
5836 (i386_fix_call_dummy): Removed.
5837 (i386_push_return_address): New function.
5838 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5839 parameter, and don't call get_current_frame.
5840 (i386_pop_frame): New function.
5841 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5842 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5843 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5844 call_dummy_length to 0, set call_dummy_words to NULL, set
5845 sizeof_call_dummy_words to 0, set fix_call_dummy to
5846 generic_fix_call_dummy, set pc_in_call_dummy to
5847 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5848 generic_push_dummy_frame, set push_return_address to
5849 i386_push_return_address and set frame_chain_valid to
5850 generic_file_frame_chain_valid.
5851
049ee0e4
AC
58522002-07-03 Andrew Cagney <ac131313@redhat.com>
5853
5854 * gdbarch.sh (struct regcache): Add opaque declaration.
5855 (EXTRACT_RETURN_VALUE): New architecture method.
5856 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5857 * gdbarch.h, gdbarch.c: Regenerate.
5858 * arch-utils.c (legacy_extract_return_value): New function.
5859 * arch-utils.h (legacy_extract_return_value): Declare.
5860 * values.c (value_being_returned): Re-enable code handling
5861 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5862 deprecated_grub_regcache_for_registers call to block handling
5863 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5864 (EXTRACT_RETURN_VALUE): Do not define.
5865
4e0d9804
GS
58662002-07-03 Grace Sainsbury <graces@redhat.com>
5867
5868 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5869 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5870 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5871 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5872 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5873 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5874 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5875 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5876 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5877 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5878 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5879 argument so the function fits the prototype in the architecture
5880 vector.
5881 (mcore_pop_frame): Remove argument so the function fits the
5882 prototype. Use get_current_frame instead of the argument.
5883 (mcore_push_arguments): Change type of struct_return so the
5884 function can be used in the architecture vector.
5885 (mcore_store_struct_return): Add.
5886 (mcore_frame_init_saved_regs): Add.
5887 (mcore_gdbarch_init): Add function calls to replace the macros
5888 removed from tm-mcore.h
5889
36160dc4
AC
58902002-07-03 Andrew Cagney <ac131313@redhat.com>
5891
5892 * infcmd.c (print_return_value): Remove compatibility code calling
5893 deprecated_grub_regcache_for_registers.
5894
5895 * values.c: Include "regcache.h".
5896 (value_being_returned): Update. Use
5897 deprecated_grub_regcache_for_registers to extract the register
5898 buffer address.
5899 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5900 ``struct regcache''.
5901 * Makefile.in (values.o): Add dependency on $(regcache_h).
5902
5903 * inferior.h (run_stack_dummy): Change type of second parameter to
5904 a ``struct regcache''.
5905 * valops.c (hand_function_call): Change type of retbuf to ``struct
5906 regcache''. Allocate using regcache_xmalloc, clean using
5907 make_cleanup_regcache_xfree.
5908 * infcmd.c (run_stack_dummy): Update. Use
5909 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5910
5911 * regcache.c (do_regcache_xfree): New function.
5912 (make_cleanup_regcache_xfree): New function.
5913 * regcache.h (make_cleanup_regcache_xfree): Declare.
5914
e64d9b3d
MH
59152002-07-03 Martin M. Hunt <hunt@redhat.com>
5916
4dd79c29
MH
5917 * event-top.c (command_line_handler): Don't read past
5918 beginning of buffer.
e64d9b3d 5919
4dd79c29
MH
59202002-07-03 Martin M. Hunt <hunt@redhat.com>
5921
e64d9b3d
MH
5922 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5923 struct frame_id.
5924 (varobj_create): Store frame_id for root.
5925 (varobj_gen_name): Use xasprintf.
5926 (varobj_update): Save and restore frame using get_frame_id() and
5927 frame_find_by_id().
5928 (create_child): Use xasprintf.
5929 (new_root_variable): Initialize frame_id.
5930 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5931 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5932 to prevent memory leak.
5933
26e6c56a
AC
59342002-07-03 Andrew Cagney <ac131313@redhat.com>
5935
5936 * valops.c (hand_function_call): Move declaration of retbuf to
5937 start of function, allocate using malloc, add a cleanup but before
5938 the inf_status cleanup, cleanup the buffer. Rename local variable
5939 old_chain to inf_status_cleanup.
5940
f436dd25
MH
59412002-07-03 Martin M. Hunt <hunt@redhat.com>
5942
5943 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5944
5945 * cli/cli-decode.c (cmd_func_p): New function.
5946 (cmd_func): New function.
5947
5948 * command.h: Add cmd_func() and cmd_func_p().
5949
4cfe2084
GS
59502002-07-03 Grace Sainsbury <graces@redhat.com>
5951
5952 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5953 (REGISTER_SIZE): Remove.
5954 (MAX_REGISTER_RAW_SIZE): Remove.
5955 (REGISTER_VIRTUAL_TYPE): Remove.
5956 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5957 (REGISTER_NAME): Remove.
5958 (USE_GENERIC_DUMMY_FRAMES): Remove.
5959 (CALL_DUMMY): Remove.
5960 (CALL_DUMMY_START_OFFSET): Remove.
5961 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5962 (CALL_DUMMY_LOCATION): Remove.
5963 (FIX_CALL_DUMMY): Remove.
5964 (CALL_DUMMY_ADDRESS): Remove.
5965 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5966 (SAVE_DUMMY_FRAME_TOS): Remove.
5967 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5968 (mcore_register_virtual_type): New function.
5969 (mcore_register_byte): New function.
5970 (mcore_register_size): New function.
5971 (mcore_register_name): New function.
5972 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5973 macros removed from tm-mcore.h.
5974 (mcore_dump_tdep): Add.
5975 (_initialize_mcore_tdep): Add gdbarch_register call.
5976
4fd667e9
MK
59772002-07-03 Mark Kettenis <kettenis@gnu.org>
5978
5979 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5980 frameless_look_for_prologue, such that we actually call this
5981 function.
5982
42f99ac2
JB
59832002-07-02 Joel Brobecker <brobecker@gnat.com>
5984
5985 * frame.h (frame_address_in_block): New function.
5986
5987 * blockframe.c (frame_address_in_block): New function extracted
5988 from get_frame_block().
5989 (get_frame_block): Use frame_address_in_block().
5990 (block_innermost_frame): Use frame_address_in_block() to match
5991 the frame pc address against the block boundaries rather than
5992 the frame pc directly. This prevents a failure when a frame pc
5993 is actually a return-address pointing immediately after the end
5994 of the given block.
5995
103a1597 59962002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5997
5998 * MAINTAINERS: Add self under write after approval.
5999
60002002-07-02 Grace Sainsbury <graces@redhat.com>
6001
103a1597
GS
6002 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6003 used in architecture vector. The default is
6004 m68k_local_breakpoint_from_pc.
6005 (m68k_local_breakpoint_from_pc): Add.
6006 (enum): Add register numbers from tm-m68k.h.
6007 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6008 vector.
6009 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6010 GDB_MULTI_ARCH_PARTIAL.
6011 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6012 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6013 m68k-tdep.c.
6014 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6015 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6016 to enum in m68k-tdep.c
6017
7a5a0534
JB
60182002-07-02 Joel Brobecker <brobecker@gnat.com>
6019
6020 * solib-osf.c (open_map): Compute the list of shared libraries
6021 loaded by the inferior, rather than the list of libraries loaded
6022 by GDB itself. Otherwise, GDB ends up reading the symbols from
6023 the wrong shared libraries...
6024
6f558d74
MK
60252002-07-02 Mark Kettenis <kettenis@gnu.org>
6026
b7d15bf7
MK
6027 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6028 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6029 macros.
6030 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6031 Remove functions.
6032 (FRAMELESS_SIGNAL): Remove function.
6033 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6034 i386_linux_saved_pc_after_call): Removed.
6035 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6036 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6037 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6038
6bff26de
MK
6039 * i386-tdep.c (i386_frameless_signal_p): New function.
6040 (i386_frame_chain): Deal with frameless signals.
6041 (i386_sigtramp_saved_sp): New function.
6042 (i386_frame_saved_pc): Deal with frameless signals.
6043 (i386_saved_pc_after_call): Make sure the correct value is
6044 returned just after entry into a sigtramp.
6045 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6046 i386fbsd4_sc_sp_offset): New variables.
6047 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6048 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6049 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6050 similiar to what we already did for sc_pc_offset.
6051 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6052 tdep->sc_sp_offset.
6053
6f558d74
MK
6054 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6055
145564b7
ML
60562002-07-02 Michal Ludvig <mludvig@suse.cz>
6057
6058 * config/i386/tm-x86-64linux.h: New.
6059 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6060 definitions.
6061 * config/i386/nm-x86-64.h: Rename to ...
6062 * config/i386/nm-x86-64linux.h: ... this one.
6063 * config/i386/x86-64linux.mh: Reflect the above change.
6064
3a1e71e3
MK
60652002-07-01 Mark Kettenis <kettenis@gnu.org>
6066
21d0e8a4
MK
6067 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6068 with sigcontext_addr. Add sc_sp_offset.
6069 (i386bsd_sigtramp_saved_pc): Remove prototype.
6070 (i386bsd_sicontext_addr): Add prototype.
6071 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6072 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6073 (i386_svr4_sigtramp_saved_pc): Removed.
6074 (i386_svr4_sigcontext_addr): New function.
6075 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6076 Initialize tdep->sigcontext_addr instead. Initialize
6077 tdep->sc_pc_offset and tdep->sc_sp_offset.
6078 (i386_gdbarch_init): Likewise.
6079 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6080 any more.
6081 (i386bsd_sigtramp_saved_pc): Remove function.
6082 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6083 Initialize tdep->sigcontext_addr instead. Initialize
6084 tdep->sc_pc_offset.
6085 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6086 of tdep->sigtramp_saved_pc.
6087 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6088 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6089 instead.
6090
3a1e71e3
MK
6091 * i386-tdep.c (i386_frameless_function_invocation,
6092 i386_frame_num_args, i386_frame_init_saved_regs,
6093 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6094 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6095 i386_extract_return_value, i386_store_return_value,
6096 i386_extract_struct_value_address, i386_register_virtual_type,
6097 i386_register_convertible, i386_register_convert_to_virtual,
6098 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6099 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6100 static.
6101
52e9098c
MK
61022002-07-01 Mark Kettenis <kettenis@gnu.org>
6103
77b13a25
MK
6104 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6105
52e9098c
MK
6106 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6107 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6108 this macro. Include "value.h".
6109
1b372fff
AS
61102002-06-30 Aidan Skinner <aidan@velvet.net>
6111
6112 * ada-exp.tab.c: remove as it's a generated file
6113 * ada-lex.c: remove as it's a generated file
6114
9c5045b5
MK
61152002-06-30 Mark Kettenis <kettenis@gnu.org>
6116
4a93c5bb
MK
6117 * config/i386/tm-i386.h (struct frame_info, struct
6118 frame_saved_regs, struct value, struct type): Remove forward
6119 declarations.
6120
322d4fe0
MK
6121 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6122 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6123 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6124 (FILL_FPXREGSET): Define.
6125
fdd8263d
MK
6126 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6127
482e577b
MK
6128 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6129 i[3456]86-*-netbsd* case.
6130 * config/i386/tm-obsd.h: Removed.
6131 * config/i386/obsd.mt: Removed.
6132 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6133 core-aout.o.
6134 (MH_CFLAGS): Add -DYYDEBUG=0.
6135
6916549a
MK
6136 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6137 i386nbsd_sc_pc_offset on OpenBSD too.
6138
9c5045b5
MK
6139 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6140 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6141 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6142 define.
6143 * i386bsd-tdep.c: Include "arch-utils.h".
6144 (i386bsd_aout_in_solib_call_trampoline): New function.
6145 (i386bsd_init_abi): Set in_solib_call_trampoline to
6146 i386bsd_aout_in_solib_call_trampoline.
6147 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6148 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6149
aa84d1bb
AC
61502002-06-28 Andrew Cagney <ac131313@redhat.com>
6151
6152 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6153 (struct obstack, struct bcache): Add opaque declarations.
6154 * Makefile.in (macrotab_h): Update
6155
b4d83933
AC
61562002-06-28 Andrew Cagney <ac131313@redhat.com>
6157
6158 * blockframe.c (generic_find_dummy_frame): Change return type to
6159 ``struct regcache''.
6160 (struct dummy_frame): Replace field ``registers'' with regcache, a
6161 struct regcache object.
6162 (generic_find_dummy_frame): Update.
6163 (generic_push_dummy_frame): Update. Use regcache_xfree,
6164 regcache_xmalloc and regcache_cpy.
6165 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6166 regcache_xfree.
6167 (deprecated_generic_find_dummy_frame): Update.
6168 (generic_read_register_dummy): Update. Use
6169 regcache_read_as_address.
6170 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6171 (generic_get_saved_register): Update. Use regcache_read.
6172
08c0b5bc
AC
61732002-06-28 Andrew Cagney <ac131313@redhat.com>
6174
6175 * Makefile.in (objfiles_h): Add $(bcache_h).
6176 * objfiles.h: Include "bcache.h".
6177
6178 * Makefile.in (symtab_h): Remove $(bcache_h).
6179 * symtab.h: Do not include "bcache.h".
6180
1f89801a
AC
61812002-06-28 Andrew Cagney <ac131313@redhat.com>
6182
6183 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6184 generic_func_frame_chain_valid.
6185
b9644b58
DB
61862002-06-28 David O'Brien <obrien@FreeBSD.org>
6187
6188 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6189 * config/i386/tm-fbsd.h: Likewise.
6190
dd486634
AC
61912002-06-28 Andrew Cagney <ac131313@redhat.com>
6192
6193 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6194 generic_unwind_get_saved_register.
6195
0b434a00
AC
61962002-06-27 Andrew Cagney <ac131313@redhat.com>
6197
6198 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6199 * regcache.c (supply_register): Add missing argument to
6200 register_buffer call.
6201
f30e5a77
AC
62022002-06-27 Andrew Cagney <ac131313@redhat.com>
6203
6204 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6205 Solaris /bin/grep does not not like it. From Peter Schauer.
6206
9f064c95
TT
62072002-06-26 Tom Tromey <tromey@redhat.com>
6208
6209 * command.h (add_setshow_cmd): Declare.
6210 (add_setshow_cmd_full): Declare.
6211 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6212 returns void. Use add_setshow_cmd_full.
6213 (add_setshow_cmd_full): New function.
6214 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6215 (add_setshow_boolean_cmd): Likewise.
6216
099c7589
JT
62172002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6218
6219 * config/vax/tm-vax.h: Protect from multiple inclusion.
6220 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6221 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6222 * config/vax/tm-vaxbsd.h: ...here. New file.
6223 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6224
1d049c5e
JT
62252002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6226
6227 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6228 (BELIEVE_PCC_PROMOTION): Remove.
6229 (AP_REGNUM): Move to...
6230 * config/vax/nm-vax.h: ...here.
6231 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6232 (vax_breakpoint_from_pc): New function.
6233 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6234 and gdbarch_believe_pcc_promotion.
6235
4791e091
JT
62362002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6237
6238 * Makefile.in (vax_tdep_h): Define.
6239 (vax-tdep.o): Use $(vax_tdep_h).
6240 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6241 (vax_dump_tdep): New function.
6242 (_initialize_vax_tdep): Register vax_dump_tdep.
6243 * vax-tdep.h: Include osabi.h.
6244 (struct gdbarch_tdep): New.
6245
da130f98
AC
62462002-06-26 Andrew Cagney <cagney@redhat.com>
6247
6248 * frame.h (deprecated_generic_find_dummy_frame): Rename
6249 generic_find_dummy_frame.
6250 * blockframe.c (generic_find_dummy_frame): Make static.
6251 (deprecated_generic_find_dummy_frame): New function.
6252 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6253 generic_find_dummy_frame with deprecated_find_dummy_frame.
6254 (sh64_nofp_frame_init_saved_regs): Ditto.
6255 (sh_fp_frame_init_saved_regs): Ditto.
6256 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6257 (s390_frame_chain): Ditto.
6258 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6259
6300c360
GS
62602002-06-26 Grace Sainsbury <graces@redhat.com>
6261
6262 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6263 gdbarch vector are at the top.
6264 (NUM_REGS): Remove.
6265 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6266 (FRAME_ARGS_ADDRESS): Remove.
6267 (FRAME_LOCALS_ADDRESS): Remove.
6268 (FRAME_NUM_ARGS): Remove.
6269 (FRAME_ARGS_SKIP): Remove.
6270 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6271 (m68k_gdbarch_init): Add gdbarch initializations for macros
6272 undefined in tm-m68k.h
6273
1c617db8
GS
62742002-06-26 Grace Sainsbury <graces@redhat.com>
6275
6276 * monitor.h: Add the function regname to monitor_ops
6277 structure. This way NUM_REGS does not have to be a constant.
6278 * monitor.c (monitor_fetch_register): Added support for regname
6279 function. The function is called if the array regnames is NULL.
6280 (monitor_store_register): Same.
da130f98
AC
6281 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6282 regnames array.
1c617db8
GS
6283 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6284 cpu32bug_cmds.regname to point to new function.
6285 * abug-rom.c (abug_regname): Same as above.
6286 (init_abug_cmds): Same.
6287 * dbug-rom.c (dbug_regname): Same as above.
6288 (init_dbug_cmds): Same.
6289 * remote-est.c (est_regname): Same.
6290 (init_est_cmds): Same.
6291 * rom68k-rom.c (rom68k_regname): Same.
6292 (init_rom68k_cmds): Same.
6293
ea9365bb
TT
62942002-06-25 Tom Tromey <tromey@redhat.com>
6295
6296 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6297
72cec141
AC
62982002-06-25 Andrew Cagney <cagney@redhat.com>
6299
6300 * infrun.c (stop_registers): Change variable's type to ``struct
6301 regcache'''.
6302 (xmalloc_inferior_status): Delete function.
6303 (free_inferior_status): Delete function.
6304 (normal_stop): Use regcache_cpy.
6305 (struct inferior_status): Change type of fields ``stop_registers''
6306 and ``registers'' to ``struct regcache''.
6307 (write_inferior_status_register): Use regcache_write.
6308 (save_inferior_status): Instead of calling
6309 xmalloc_inferior_status, allocate the inf_status buffer directly.
6310 Use regcache_dup_no_passthrough and regcache_dup to save the
6311 buffers.
6312 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6313 Replace the stop_registers regcache instead of overriding it. Use
6314 regcache_xfree. Instead of calling free_inferior_status, xfree
6315 the buffer directly.
6316 (discard_inferior_status): Use regcache_xfree. Instead of calling
6317 free_inferior_status, xfree the buffer directly.
6318 (build_infrun): Use regcache_xmalloc.
6319 (_initialize_infrun): Delete redundant call to build_infrun.
6320
6321 * Makefile.in (infcmd.o): Add $(regcache_h).
6322
6323 * infcmd.c: Include "regcache.h".
6324 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6325 obtain the address of `stop_registers' register buffer.
6326 (print_return_value): Ditto.
6327
6328 * inferior.h (struct regcache): Add opaque declaration.
6329 (stop_registers): Change variable's declared type to ``struct
6330 regcache''.
6331
defc6f8c
TT
63322002-06-24 Tom Tromey <tromey@redhat.com>
6333
c0e624e7
TT
6334 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6335 * target.c (initialize_targets): Fixed typo in
6336 trust-readonly-sections `show' documentation.
6337
defc6f8c
TT
6338 * main.c: Marked all strings with _().
6339
2b236d82
DH
63402002-06-24 Don Howard <dhoward@redhat.com>
6341
6342 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6343 that means max CORE_ADDR+1.
6344 (lookup_mem_region): Ditto.
6345 (mem_info_command): Ditto.
6346
942dc0e9
GS
63472002-06-24 Grace Sainsbury <graces@redhat.com>
6348
6349 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6350 (REGISTER_BYTES_OK): Remove.
6351 (REGISTER_BYTES): Remove.
6352 (STORE_STRUCT_RETURN): Remove.
6353 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6354 (STORE_RETURN_VALUE): Remove.
6355 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6356 (FRAME_CHAIN): Remove.
6357 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6358 (FRAME_SAVED_PC): Remove.
6359 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6360 (m68k_store_struct_return): Add.
6361 (m68k_deprecated_extract_return_value): Add.
6362 (m68k_deprecated_extract_struct_value_address): Add.
6363 (m68k_store_return_value): Add.
6364 (m68k_frame_chain): Add.
6365 (m68k_frameless_function_invocation): Add.
6366 (m68k_frame_saved_pc): Add.
6367 (m68k_gdbarch_init): added set_gdbarch calls for new
6368 functions and deleted macros.
6369
03c30d4d
TT
63702002-06-23 Tom Tromey <tromey@redhat.com>
6371
6372 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6373 (ALLDEPFILES): Likewise.
6374 (udiheaders): Removed.
6375 (udip2soc.o): Likewise.
6376 (udi2go32.o): Likewise.
6377 (udr.o): Likewise.
6378 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6379
37e71372
AC
63802002-06-22 Andrew Cagney <ac131313@redhat.com>
6381
06a6ac57
AC
6382 * infrun.c (_initialize_infrun): Delete unnecessary call to
6383 build_infrun.
6384
37e71372
AC
6385 * regcache.h: Update comments describing the regcache_cpy family
6386 of functions.
6387 (regcache_save, regcache_restore): Delete declaration.
6388 (regcache_save_no_passthrough): Delete declaration.
6389 (regcache_restore_no_passthrough): Delete declaration.
6390 * regcache.c (regcache_save): Delete function.
6391 (regcache_save_no_passthrough): Delete function.
6392 (regcache_restore): Delete function.
6393 (regcache_restore_no_passthrough): Delete function.
6394
78f6d055
AC
63952002-06-21 Andrew Cagney <ac131313@redhat.com>
6396
6397 * config/m68k/tm-m68k.h: Fix typo.
6398 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6399 (m68k_frame_init_saved_regs): Declare.
6400
78b119cb
JB
64012002-06-21 Jim Blandy <jimb@redhat.com>
6402
6403 Remove some vestiges of Harris 88k support.
6404 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6405 register numbering quirk.
6406 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6407 odd symbols occurring in Harris 88k ELF targets.
6408
0fbb3da7
TT
64092002-06-21 Tom Tromey <tromey@redhat.com>
6410
6411 * gdb_locale.h: New file.
6412 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6413 (defs_h): Added gdb_locale.h.
6414 * configure, config.in: Rebuilt.
6415 * configure.in (PACKAGE): Define.
6416 * defs.h: Include gdb_locale.h.
6417 * main.c (captured_main): Call setlocale, bindtextdomain,
6418 textdomain.
6419
456f8b9d
DB
64202002-06-21 Dave Brolley <brolley@redhat.com>
6421
6422 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6423 * config/frv/frv.mt: New file.
6424 * config/frv/tm-frv.h: New file.
6425 * configure.tgt: Support frv-*-*.
6426 * Makefile.in (frv-tdep.o): New target.
6427 * frv-tdep.c: New file.
6428 * NEWS: Mention frv.
6429
cdd463f9
DB
64302002-06-21 Dave Brolley <brolley@redhat.com>
6431
6432 * MAINTAINERS: Add self to "Write After Approval" list.
6433
5d3ed2e3
GS
64342002-06-21 Grace Sainsbury <graces@redhat.com>
6435
6436 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6437 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6438 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6439 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6440 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6441
6442 * m68k-tdep.c: Include arch-utils.h
6443 (m68k_register_raw_size): Add.
6444 (m68k_register_virtual_size): Add.
6445 (m68k_register_virtual_type): Add.
6446 (m68k_register_name): Add.
6447 (m68k_stack_align): Add.
6448 (m68k_register_byte): Add.
6449 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6450 tm-m68k.h.
6451
7f8e7424
GS
64522002-06-21 Grace Sainsbury <graces@redhat.com>
6453
a2c6a6d5 6454 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6455 m68k_find_saved_regs.
6456 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6457 references to it with frame->saved_regs.
7f8e7424
GS
6458 (m68k_gdbarch_init): Added function calls to initialize the
6459 gdbarch structure.
a2c6a6d5
GS
6460 (m68k_fix_call_dummy): Add.
6461 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6462 (CALL_DUMMY): Remove.
6463 (CALL_DUMMY_LENGTH): Remove.
6464 (CALL_DUMMY_START_OFFSET): Remove.
6465 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6466 (FIX_CALL_DUMMY): Remove.
6467 (PUSH_DUMMY_FRAME): Remove.
6468 (POP_FRAME): Remove.
7f8e7424 6469
f461f5cf
PM
64702002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6471
6472 * parse.c (parse_fprintf): New function used to avoid calls to
6473 fprintf in bison parser generated debug code.
6474 * parser-defs.h: Declaration of new parse_fprintf function.
6475 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6476 Set YYDEBUG to 1 by default.
6477 Set YYFPRINTF as parse_fprintf.
6478
7f0c12ed
ML
64792002-06-21 Michal Ludvig <mludvig@suse.cz>
6480
6481 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6482 encoding anymore.
6483 (pointer_encoding, enum ptr_encoding): New.
6484 (execute_cfa_program): Take care about pointer encoding.
6485 (dwarf2_build_frame_info): Only call parse_frame_info for
6486 .debug_frame and .eh_frame.
6487 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6488 fixed augmentation handling, added relative addressing,
6489 ignore duplicate FDEs. Added comments.
19d833a2 6490 * dwarf2cfi.c: Reindented.
7f0c12ed 6491
87c4a039
EZ
64922002-06-20 Elena Zannoni <ezannoni@redhat.com>
6493
6494 * event-top.c (command_handler): Don't use space_at_cmd_start
6495 unless there is sbrk() on the host. Assign time and space data
6496 to union fields of the appropriate length.
6497
1cf877ad
ML
64982002-06-20 Michal Ludvig <mludvig@suse.cz>
6499
6500 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6501 x86_64_register_name. Return type changed to 'const char *'.
6502 (x86_64_register_name2nr): Rename to x86_64_register_number.
6503 (x86_64_gdbarch_init): Update to reflect the change.
6504 * x86-64-tdep.h: Ditto.
6505 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6506 (supply_fpregset): Ditto.
6507
3fadccb3
AC
65082002-06-19 Andrew Cagney <cagney@redhat.com>
6509
6510 * regcache.h: Update copyright.
6511 (struct regcache, struct gdbarch): Add opaque declarations.
6512 (current_regcache): Declare global variable.
6513 (regcache_read, regcache_write): Add gdbarch parameter.
6514 (regcache_save, regcache_save_no_passthrough)
6515 (regcache_restore, regcache_restore_no_passthrough)
6516 (regcache_dup, regcache_dup_no_passthrough)
6517 (regcache_cpy, regcache_cpy_no_passthrough)
6518 (deprecated_grub_regcache_for_registers)
6519 (deprecated_grub_regcache_for_register_valid)
6520 (regcache_valid_p): Add function declarations.
6521
6522 * regcache.c: Update copyright.
6523 (regcache_descr_handle): New global variable.
6524 (struct regcache_descr): Define.
6525 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6526 (regcache_descr, xfree_regcache_descr): New functions.
6527 (struct regcache): Define.
6528 (regcache_xmalloc, regcache_xfree): New functions.
6529 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6530 (regcache_dup, regcache_dup_no_passthrough): New functions.
6531 (regcache_valid_p, regcache_read_as_address): New functions.
6532 (deprecated_grub_regcache_for_registers): New function.
6533 (deprecated_grub_regcache_for_register_valid): New function.
6534 (current_regcache): New global variable.
6535 (register_buffer): Add regcache parameter. Update calls.
6536 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6537 (read_register_gen, write_register_gen): Update register_buffer
6538 call. Test for legacy_p instead of gdbarch_register_read_p or
6539 gdbarch_register_write_p.
6540 (regcache_collect): Update register_buffer call.
6541 (build_regcache): Rewrite. Use deprecated grub functions.
6542 (regcache_save, regcache_save_no_passthrough): New functions.
6543 (regcache_restore, regcache_restore_no_passthrough): New
6544 functions.
6545 (_initialize_regcache): Create the regcache_data_handle. Swap
6546 current_regcache global variable.
6547
6548 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6549 parameter to regcache_read and regcache_write calls.
6550 (sh4_register_read): Ditto.
6551 (sh64_pseudo_register_read): Ditto.
6552 (sh64_register_read): Ditto.
6553 (sh_pseudo_register_write): Ditto.
6554 (sh4_register_write): Ditto.
6555 (sh64_pseudo_register_write): Ditto.
6556 (sh64_register_write): Ditto.
6557
6558 * defs.h (XCALLOC): Define.
6559
152d9db6
GS
65602002-06-19 Grace Sainsbury <graces@redhat.com>
6561
6562 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6563 * m68k-tdep.c (m68k_gdbarch_init): Added.
6564 (m68k_dump_tdep): Added.
6565
170911c7
DJ
65662002-06-19 Daniel Jacobowitz <drow@mvista.com>
6567
6568 * ada-lang.c (fill_in_ada_prototype): Update comment.
6569
2e4ebe70
DJ
65702002-06-19 Daniel Jacobowitz <drow@mvista.com>
6571
6572 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6573 MIPS_ABI_LAST.
6574 (mips_abi_string, mips_abi_strings): New.
6575 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6576 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6577 tdep->mips_abi_string. Honor mips_abi_string. Default to
6578 O32 if no ABI is found.
6579 (mips_dump_tdep): Use mips_abi_strings.
6580 (mips_abi_update): New function.
6581 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6582 ``set mips abi'' and ``show mips abi''. Check the size of
6583 mips_abi_strings.
6584
16775908
AC
65852002-06-19 Andrew Cagney <cagney@redhat.com>
6586
6587 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6588 constant.
6589
5051bfa4 65902002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6591
5051bfa4
JB
6592 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6593 current frame using only the first stack size adjustment. All
6594 subsequent size adjustments are not considered to be part of
6595 the "static" part of the current frame.
6596 Compute the address of the saved registers relative to the
6597 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6598 in use in this frame.
6599
56468235
DH
66002002-06-18 Don Howard <dhoward@redhat.com>
6601
6602 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6603 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6604 suggesting this solution.
6605
0b624158
AC
66062002-06-18 Andrew Cagney <ac131313@redhat.com>
6607
6608 * config/romp/xm-rtbsd.h: Delete file.
6609 * config/romp/rtbsd.mh: Delete file.
6610
221ea385
KS
66112002-06-18 Keith Seitz <keiths@redhat.com>
6612
6613 * breakpoint.c (condition_command): Post breakpoint_modify
6614 when a condition is added to an existing breakpoint.
6615 (commands_command): Likewise for commands.
6616 (set_ignore_count): Likewise for ignore counts.
6617 If no tty, do not simply return, still need to send event
6618 notification.
6619 (ignore_command): Only print a newline if the command came
6620 from a tty.
6621 Don't call breakpoints_changed, since this is now properly
6622 handled by set_ignore_count.
6623
5402eed1
AC
66242002-06-18 Andrew Cagney <cagney@redhat.com>
6625
6626 * MAINTAINERS: Note that cris-elf target can be compiled with
6627 -Werror.
6628 * cris-tdep.c (cris_register_name): Make return type constant.
6629 (cris_breakpoint_from_pc): Ditto.
6630
cc22880b
ML
66312002-06-18 Michal Ludvig <mludvig@suse.cz>
6632
6633 * frame.h (struct frame_info): Change type of context to
6634 'struct context'.
6635
fa88f677
AC
66362002-06-17 Andrew Cagney <cagney@redhat.com>
6637
6638 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6639 pointer.
6640 * gdbarch.h, gdbarch.c: Regenerate.
6641 * config/mips/tm-mips.h (mips_register_name): Update.
6642 * i386-tdep.h (i386_register_name): Update.
6643 * mips-tdep.c (mips_register_name): Update
6644 * alpha-tdep.c (alpha_register_name): Update.
6645 * arch-utils.c (legacy_register_name): Update.
6646 * arch-utils.h (legacy_register_name): Update.
6647 * avr-tdep.c (avr_register_name): Update.
6648 * ia64-tdep.c (ia64_register_name): Update.
6649 * i386-tdep.c (i386_register_name): Update.
6650 * sparc-tdep.c (sparc32_register_name): Update.
6651 (sparc64_register_name): Update.
6652 (sparclite_register_name): Update.
6653 (sparclet_register_name): Update.
6654 * sh-tdep.c (sh_generic_register_name): Update.
6655 (sh_sh_register_name): Update.
6656 (sh_sh3_register_name): Update.
6657 (sh_sh3e_register_name): Update.
6658 (sh_sh_dsp_register_name): Update.
6659 (sh_sh3_dsp_register_name): Update.
6660 (sh_sh4_register_name): Update.
6661 (sh_sh64_register_name): Update.
6662 * s390-tdep.c (s390_register_name): Update.
6663 * rs6000-tdep.c (rs6000_register_name): Update.
6664 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6665 (ns32k_register_name_32382): Update.
6666 * d10v-tdep.c (d10v_ts2_register_name): Update.
6667 (d10v_ts3_register_name): Update.
6668 * xstormy16-tdep.c (xstormy16_register_name): Update.
6669 * vax-tdep.c (vax_register_name): Update.
6670 * v850-tdep.c (v850_register_name): Update.
6671 * m68hc11-tdep.c (m68hc11_register_name): Update.
6672 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6673 (am33_register_name): Update.
6674
ea1e7ef6
GS
66752002-06-17 Grace Sainsbury <graces@redhat.com>
6676
6677 * m68k-tdep.c: Reindented.
6678
9b02dd1b
AC
66792002-06-17 Andrew Cagney <ac131313@redhat.com>
6680
6681 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6682 list of predefined types.
6683
8758dec1
MK
66842002-06-16 Mark Kettenis <kettenis@gnu.org>
6685
b6197528
MK
6686 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6687 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6688 REGISTER_CONVERT_TO_RAW): Remove defines.
6689 (i386_register_virtual_type, i386_register_convertible,
6690 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6691 Remove prototypes.
6692 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6693 macros mentioned above.
6694
82b47e62
MK
6695 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6696 (i386lynx_saved_pc_after_call): Remove prototype.
6697 * i386ly-tdep.c: Include "i386-tdep.h".
6698 (i386lynx_saved_pc_after_call): Make static. Use
6699 read_memory_nobpt instead of read_memory. Use
6700 read_memory_unsigned_integer instead of read_memory_integer.
6701 (i386lynx_init_abi): New function.
6702 (i386lynx_coff_osabi_sniffer): New function.
6703 (_initialize_i386bsd_tdep): New function.
6704
8758dec1
MK
6705 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6706 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6707 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6708 (i386_fix_call_dummy): Remove prototype.
6709 * i386-tdep.c (i386_call_dummy_words): New variable.
6710 (i386_gdbarch_init): Adjust for removal of the
6711 macros mentioned above.
6712
e9e68a56
AC
67132002-06-15 Andrew Cagney <ac131313@redhat.com>
6714
6715 * command.h (add_setshow_auto_boolean_cmd): Replace
6716 add_set_auto_boolean_cmd.
6717 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6718 add_set_auto_boolean_cmd.
6719 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6720 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6721 mask-address'' command.
6722 (show_mask_address): Add cmd parameter.
6723 * remote.c (add_packet_config_cmd): Update. Change type of
6724 set_func and show_func to cmd_sfunc_ftype.
6725 (_initialize_remote): Update `set remote Z-packet'
6726 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6727 (show_remote_protocol_e_packet_cmd): Ditto.
6728 (show_remote_protocol_E_packet_cmd): Ditto.
6729 (show_remote_protocol_P_packet_cmd): Ditto.
6730 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6731 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6732 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6733 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6734 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6735 (show_remote_protocol_Z_packet_cmd): Ditto.
6736 (show_remote_protocol_binary_download_cmd): Ditto.
6737 (show_remote_cmd): Pass NULL to all of above.
6738
fc08ec52
MK
67392002-06-15 Mark Kettenis <kettenis@gnu.org>
6740
6741 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6742 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6743 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6744 POP_FRAME): Remove defines.
6745 (i386_push_arguments, i386_store_struct_return,
6746 i386_extract_return_value, i386_store_return_value,
6747 i386_extract_struct_value_address, i386_push_dummy_frame,
6748 i386_pop_frame): Renove prototypes.
6749 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6750 macros mentioned above.
6751
e707bbc2
AC
67522002-06-15 Andrew Cagney <ac131313@redhat.com>
6753
6754 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6755 add_set_boolean_cmd.
6756 (add_setshow_cmd): New function.
6757 * command.h (add_setshow_boolean_cmd): Replace
6758 add_set_boolean_cmd.
6759 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6760 and ``set rdiromatzero''.
6761 * maint.c (_initialize_maint_cmds): Update commented out code.
6762 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6763 * target.c (initialize_targets): Update `set
6764 trust-readonly-sections'.
6765 * remote.c (_initialize_remote): Update `set remotebreak'.
6766
42fdc8df
MK
67672002-06-15 Mark Kettenis <kettenis@gnu.org>
6768
93924b6b
MK
6769 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6770 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6771 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6772 fit into multi-arch framework.
6773 (i386_breakpoint_from_pc): New function.
6774 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6775 above.
6776
42fdc8df
MK
6777 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6778 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6779 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6780 (i386_frameless_function_invocation, i386_frame_num_args,
6781 i386_frame_init_saved_regs): Remove prototypes.
6782 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6783 macros mentioned above.
6784
9773a94b
AC
67852002-06-15 Andrew Cagney <ac131313@redhat.com>
6786
6787 * cli/cli-decode.c (set_cmd_cfunc): Update.
6788 (set_cmd_sfunc): Update.
6789 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6790 (set_cmd_sfunc, set_cmd_cfunc): Update.
6791 * cli/cli-decode.h: Update.
6792
6e157172
MK
67932002-06-15 Mark Kettenis <kettenis@gnu.org>
6794
6795 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6796 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6797
7f19b9a2
AC
67982002-06-15 Andrew Cagney <ac131313@redhat.com>
6799
6800 * defs.h (auto_boolean): Declare enum.
6801 * command.h (cmd_auto_boolean): Delete enum.
6802 * mips-tdep.c (mask_address_var): Update.
6803 (mips_mask_address_p): Update.
6804 (show_mask_address): Update.
6805 * remote.c (struct packet_config): Update.
6806 (update_packet_config): Update.
6807 (show_packet_config_cmd): Update.
6808 (packet_ok): Update.
6809 (add_packet_config_cmd): Update.
6810 (_initialize_remote):
6811 * command.h: Update.
6812 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6813 (do_setshow_command): Update.
6814 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6815 * cli/cli-decode.h: Update.
6816
1cf88de5
MK
68172002-06-15 Mark Kettenis <kettenis@gnu.org>
6818
22ba8cf2
MK
6819 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6820 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6821 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6822 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6823 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6824 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6825
762c5349
MK
6826 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6827 list of DJGPP COFF targets.
6828
091198bb
MK
6829 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6830 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6831 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6832 (FP0_REGNUM): Remove define.
6833 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6834 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6835 (i386_register_virtual_size): Remove protoype.
6836 * i386-tdep.c (i386_register_virtual_size): Removed.
6837 (i386_extract_return_value, i386_store_return_value): Use
6838 FP0_REGNUM instead of NUM_FREGS to determine whether the
6839 floating-point registers are available.
6840 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6841 Adjust for removal of macros mentioned above.
6842
68432002-06-15 Mark Kettenis <kettenis@gnu.org>
6844
fcc9bf01
MK
6845 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6846 comments.
6847 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6848 Remove prototypes.
6849 (supply_gregset, fill_gregset): Remove use of register keyword and
6850 remove declaration for regmap. Use I386_NUM_GREGS instead of
6851 NUM_REGS and NUM_FREGS.
6852 (FPREGSET_FSAVE_OFFSET): Remove.
6853 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6854 NUM_FREGS to determine whether the floating-point registers are
6855 available.
6856
65e78234
MK
6857 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6858 gnu_store_registers): Replace usage of NUM_GREGS with
6859 I386_NUM_GREGS.
6860
98df6387
MK
6861 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6862 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6863 usage of NUM_GREGS with I386_NUM_GREGS.
6864
099a9414
MK
6865 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6866
57976e88
MK
6867 * i386bsd-nat.c: Include "i386-tdep.h".
6868 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6869 I386_NUM_GREGS.
6870
b335f4a6
MK
6871 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6872 and associated comment. They no longer make any sense, since we
6873 don't use this file anymore on Linux.
6874
1cf88de5
MK
6875 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6876 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6877 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6878 elements in these arrays.
6879 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6880 MAX_NUM_REGS.
6881
daa66587
MK
68822002-06-15 Mark Kettenis <kettenis@gnu.org>
6883
6884 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6885 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6886
26e9b323
AC
68872002-06-14 Andrew Cagney <cagney@redhat.com>
6888
6889 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6890 EXTRACT_RETURN_VALUE.
6891 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6892 EXTRACT_STRUCT_VALUE_ADDRESS.
6893 * gdbarch.h, gdbarch.c: Regenerate.
6894
6895 * values.c (value_being_returned): Handle
6896 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6897 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6898
6899 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6900 * arm-tdep.c (arm_gdbarch_init): Update.
6901 * avr-tdep.c (avr_gdbarch_init): Update.
6902 * cris-tdep.c (cris_gdbarch_init): Update.
6903 * d10v-tdep.c (d10v_gdbarch_init): Update.
6904 * ia64-tdep.c (ia64_gdbarch_init): Update.
6905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6907 * s390-tdep.c (s390_gdbarch_init): Update.
6908 * sh-tdep.c (sh_gdbarch_init): Update.
6909 * s390-tdep.c (s390_gdbarch_init): Update.
6910 * sparc-tdep.c (sparc_gdbarch_init): Update.
6911 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6912 * v850-tdep.c (v850_gdbarch_init): Update.
6913 * vax-tdep.c (vax_gdbarch_init): Update.
6914 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6916
6917 * config/arc/tm-arc.h: Update.
6918 * config/d30v/tm-d30v.h: Update.
6919 * config/fr30/tm-fr30.h: Update.
6920 * config/h8300/tm-h8300.h: Update.
6921 * config/h8500/tm-h8500.h: Update.
6922 * config/i386/tm-i386.h: Update.
6923 * config/i386/tm-ptx.h: Update.
6924 * config/i386/tm-symmetry.h: Update.
6925 * config/i960/tm-i960.h: Update.
6926 * config/m32r/tm-m32r.h: Update.
6927 * config/m68k/tm-delta68.h: Update.
6928 * config/m68k/tm-linux.h: Update.
6929 * config/m68k/tm-m68k.h: Update.
6930 * config/m88k/tm-m88k.h: Update.
6931 * config/mcore/tm-mcore.h: Update.
6932 * config/mips/tm-mips.h: Update.
6933 * config/mn10200/tm-mn10200.h: Update.
6934 * config/pa/tm-hppa.h: Update.
6935 * config/pa/tm-hppa64.h: Update.
6936 * config/sparc/tm-sp64.h: Update.
6937 * config/sparc/tm-sparc.h: Update.
6938 * config/sparc/tm-sparclet.h: Update.
6939 * config/z8k/tm-z8k.h: Update.
6940
5179e78f
AC
69412002-06-14 Andrew Cagney <cagney@redhat.com>
6942
6943 * Makefile.in (i386_linux_tdep_h): Define.
6944 (i386_tdep_h, i387_tdep_h): Define.
6945 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6946 $(i386_tdep_h) and $(i387_tdep_h).
6947 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6948
8201327c
MK
69492002-06-14 Mark Kettenis <kettenis@gnu.org>
6950
edf393ac
MK
6951 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6952 Already covered by the default.
6953
896fb97d
MK
6954 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6955 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6956 (i386_gdbarch_init): Initialize long_double_format and long_double
6957 bit.
6958
8201327c
MK
6959 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6960 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6961 Move these to ...
6962 * config/i386/i386sol2.mh: ... here.
6963 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6964 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6965 (SIGCONTEXT_PC_OFFSET): Remove define.
6966 (IN_SIGTRAMP): Remove define.
6967 * i386-sol2-tdep.c: New file.
6968
6969 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6970 * config/i386/tm-i386nw.h: Removed.
6971
6972 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6973 USE_STRUCT_CONVENTION): Remove defines.
6974 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6975 (get_longjmp_target): Remove prototype.
6976 (IN_SIGTRAMP): Remove define.
6977 (i386bsd_in_sigtramp): Remove prototype.
6978 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6979 function. Update comment accordingly
6980 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6981 (FRAME_SAVED_PC): Remove define.
6982 (i386bsd_frame_saved_pc): Remove prototype.
6983 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6984 GET_LONGJMP_TARGET): Remove defines.
6985 (get_longjmp_target): Remove prototype.
6986 (IN_SIGTRAMP): Remove define.
6987 (i386bsd_in_sigtramp): Remove prototype.
6988 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6989 function. Update comment accordingly
6990 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6991 (FRAME_SAVED_PC): Remove define.
6992 (i386bsd_frame_saved_pc): Remove prototype.
6993 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6994 Remove prototype.
6995 (USE_STRUCT_CONVENTION): Remove prototype.
6996 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6997 declaration.
6998 (_initialize_i386bsd_nat): Revise logic to determine some
6999 constants at compile time when compiling a native GDB. Warn if
7000 things don't match up with what we expect.
7001 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7002 Remove variables.
7003 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7004 to use date stored in `struct gdbarch_tdep'.
7005 (i386bsd_sigcontext_offset): Remove varaible.
7006 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7007 stored in `struct gdbarch_tdep'.
7008 (i386bsd_frame_saved_pc): Make static.
7009 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7010 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7011 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7012 i386fbsd4_sc_pc_offset): New variables.
7013 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7014 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7015 functions.
7016 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7017 functions.
7018 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7019 Modify the value of i386fbsd_sigtramp_start and
7020 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7021 i386fbsd_sigtramp_end.
7022 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7023 function.
7024
7025 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7026 define to i386-linux-tdep.h.
7027 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7028 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7029 defines.
7030 (i386_linux_register_name, i386_linux_register_byte,
7031 i386_linux_register_raw_size): Remove prototypes.
7032 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7033 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7034 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7035 TARGET_WRITE_PC): Remove defines.
7036 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7037 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7038 i386_linux_write_pc): Remove prototypes.
7039 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7040 (get_longjmp_target): Remove prototype.
7041 * i386-linux-tdep.h: New file.
7042 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7043 * i386-linux-tdep.c: Include "i386-tdep.h" and
7044 "i386-linux-tdep.h".
7045 (i386_linux_register_name, i386_linux_register_byte,
7046 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7047 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7048 Make static.
7049 (i386_linux_init_abi): New function.
7050 (_initialize_i386_linux_tdep): New function.
7051
7052 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7053 (i386_saved_pc_after_call): Remove prototype.
7054 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7055 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7056 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7057 (i386_register_name, i386_stab_reg_to_regnum,
7058 i386_dwarf_reg_to_regnum): Remove prototypes.
7059 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7060 SIZEOF_SSE_REGS): Remove defines.
7061 (REGISTER_BYTES): Remove define.
7062 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7063 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7064 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7065 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7066 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7067 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7068 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7069 (get_longjmp_target): Remove prototype.
7070 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7071 (sigtramp_saved_pc): Remove define.
7072 (i386v4_sigtramp_saved_pc): Remove prototype.
7073 * config/i386/tm-go32.h (FRAME_CHAIN,
7074 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7075 (i386go32_frame_saved_pc): Remove prototype.
7076 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7077 (get_longjmp_target): Remove prototype.
7078 * i386-tdep.h: Include "osabi.h".
7079 (enum i386_abi): Removed.
7080 (enum struct_return): New enum.
7081 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7082 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7083 sc_pc_offset members.
7084 (i386_gdbarch_register_os_abi): Remove prototype.
7085 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7086 I386_SSE_NUM_REGS): New defines.
7087 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7088 I386_SSE_SIZEOF_REGS): New defines.
7089 (i386_register_name, i386_register_byte, i386_register_raw_size):
7090 New prototypes.
7091 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7092 (i386bsd_sigtramp_saved_pc): New prototype.
7093 * i386-tdep.c: Don't include "elf-bfd.h".
7094 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7095 i386_frame_chain, i386_saved_pc_after_call): Make static.
7096 (i386_frame_saved_pc): Rewrite to call architecture dependent
7097 function to deal with signal handlers. Make static.
7098 (i386go32_frame_saved_pc): Removed.
7099 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7100 Removed.
7101 (i386_get_longjmp_target): New function.
7102 (default_struct_convention, pcc_struct_convention,
7103 reg_struct_convention, valid_conventions, struct_convention): New
7104 variables.
7105 (i386_use_struct_convention): New function.
7106 (i386v4_sigtramp_saved_pc): Renamed to
7107 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7108 (i386_pc_in_sigtramp): New function.
7109 (i386_abi_names): Removed.
7110 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7111 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7112 Removed.
7113 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7114 i386_gdbarch_register_os_abi): Removed.
7115 (struct i386_abi_handler): Removed.
7116 (i386_abi_handler_list): Removed.
7117 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7118 functions.
7119 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7120 i386_nw_init_abi): New functions.
7121 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7122 Use set_gdbarch_xxx() calls instead of relying on macros for a
7123 number of calls.
7124 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7125 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7126 Register the various architecture variants defined in this file.
7127
ad2f7632
DJ
71282002-06-14 Daniel Jacobowitz <drow@mvista.com>
7129
7130 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7131 (struct main_type): Remove arg_types member. Update comments for
7132 struct field.
7133 (TYPE_ARG_TYPES): Remove.
7134 (TYPE_FN_FIELD_ARGS): Update.
7135 (smash_to_method_type): Update prototype.
7136
7137 * c-typeprint.c (cp_type_print_method_args): Take method type
7138 instead of argument list. Use new argument layout. Simplify.
7139 (c_type_print_args): Use new argument layout. Simplify.
7140 (c_type_print_base): Update call to cp_type_print_method_args.
7141 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7142 argument; use die->type instead. Update call to
7143 smash_to_method_type.
7144 (read_structure_scope): Update call to dwarf2_add_member_fn.
7145 * gdbtypes.c (allocate_stub_method): Update comment.
7146 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7147 Use new argument layout.
7148 (check_stub_method): Use new argument layout. Don't count
7149 void as an argument.
7150 (print_arg_types): Update comments. Use new argument layout.
7151 (recursive_dump_type): Don't print arg_types member.
7152 * hpread.c (hpread_read_struct_type): Use new argument layout.
7153 (fixup_class_method_type): Likewise.
7154 (hpread_type_lookup): Likewise.
7155 * stabsread.c (read_type): Update calls to read_args and
7156 smash_to_method_type.
7157 (read_args): Use new argument layout. Simplify.
7158 * valops.c (typecmp): Use new argument layout. Update parameters
7159 and comments. Simplify.
7160 (hand_function_call): Use new argument layout.
7161 (search_struct_method): Update call to typecmp.
7162 (find_overload_match): Use new argument layout.
7163
6da02953
DJ
71642002-06-13 Daniel Jacobowitz <drow@mvista.com>
7165
7166 * NEWS: Mention multithreaded debug support for gdbserver.
7167
519b2366
DJ
71682002-06-13 Daniel Jacobowitz <drow@mvista.com>
7169
7170 * MAINTAINERS: Mention NEWS.
7171
6c0d6680
DJ
71722002-06-13 Daniel Jacobowitz <drow@mvista.com>
7173
7174 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7175 (struct mips_objfile_private, compare_pdr_entries): New.
7176 (non_heuristic_proc_desc): Read the ".pdr" section if it
7177 is present.
7178
6529d2dd
AC
71792002-06-12 Andrew Cagney <ac131313@redhat.com>
7180
7181 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7182 (arm_debug): New static variable.
7183 (_initialize_arm_tdep): Add ``set debug arm'' command.
7184
26216b98
AC
71852002-06-12 Andrew Cagney <ac131313@redhat.com>
7186
7187 * Makefile.in (sim_arm_h): Define.
7188 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7189 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7190 (arm_register_sim_regno): New function, map an internal REGNUM
7191 onto a simulator register number.
7192 (arm_gdbarch_init): Set register_sim_regno.
7193
814b3ba0
AH
71942002-06-09 Aldy Hernandez <aldyh@redhat.com>
7195
7196 * MAINTAINERS: Add self.
7197
475b0867
JB
71982002-06-11 Jim Blandy <jimb@redhat.com>
7199
919d772c
JB
7200 * source.c (source_info): Mention whether the symtab has
7201 information about preprocessor macros.
7202
475b0867
JB
7203 Call the command `info macro', not `show macro'.
7204 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7205 Fix error message.
7206 (_initialize_macrocmd): Register `info_macro_command' in
7207 `infolist', not `showlist'.
7208
9e364162
DJ
72092002-06-11 Daniel Jacobowitz <drow@mvista.com>
7210
7211 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7212 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7213 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7214 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7215 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7216 unconditionally.
7217 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7218 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7219 (_initialize_mips_tdep): Remove dead code.
7220 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7221 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7222 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7223 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7224 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7225 MIPS_LAST_FP_ARG_REGNUM): Remove.
7226
23aa4c72
ML
72272002-06-11 Michal Ludvig <mludvig@suse.cz>
7228
7229 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7230 (unwind_tmp_obstack_free, parse_frame_info)
7231 (update_context, cfi_read_fp, cfi_write_fp)
7232 (cfi_frame_chain, cfi_init_extra_frame_info)
7233 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7234 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7235
70eb15a4
CV
72362002-06-11 Corinna Vinschen <vinschen@redhat.com>
7237
7238 * v850-tdep.c (v850_type_is_scalar): New function.
7239 (v850_use_struct_convention): Match current gcc implementation
7240 as close as possible.
7241 (v850_push_arguments): Fix stack_offset handling. Don't write
7242 struct_addr into register. This is done by v850_store_struct_return.
7243 (v850_extract_return_value): Care for structs.
7244 (v850_store_return_value): Ditto.
7245 (v850_store_struct_return): Actually write address.
7246
482a4d06
ML
72472002-06-11 Michal Ludvig <mludvig@suse.cz>
7248
7249 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7250 without debug information too.
7251
d855c300
AC
72522002-06-10 Andrew Cagney <ac131313@redhat.com>
7253
7254 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7255 Make multi-arch pure.
7256 * gdbarch.h, gdbarch.c: Re-generate.
7257 * arm-tdep.c (arm_print_float_info): Update.
7258 * arch-utils.h (default_print_float_info): Update.
7259 * arch-utils.c (default_print_float_info): Update.
7260 * infcmd.c (float_info): Update call.
7261
dd12a101
AC
72622002-06-10 Andrew Cagney <ac131313@redhat.com>
7263
7264 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7265 the front of the initialize list.
7266
101dcfbe
AC
72672002-06-10 Andrew Cagney <ac131313@redhat.com>
7268
7269 * infrun.c (struct inferior_status): Replace fields
7270 selected_frame_address and selected_level with field
7271 selected_frame_id.
7272 (save_inferior_status): Update. Use get_frame_id.
7273 (struct restore_selected_frame_args): Delete.
7274 (restore_selected_frame): Update. Use frame_find_by_id.
7275 (restore_inferior_status): Update.
7276
7277 * breakpoint.h (struct breakpoint): Change type of
7278 watchpoint_frame to frame_id.
7279 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7280 call to get_current_frame.
7281 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7282 get_current_frame.
7283 (watchpoint_check): Use frame_find_by_id.
7284
7285 * frame.h (record_selected_frame): Delete declaration.
7286 * stack.c (record_selected_frame): Delete function.
7287
7288 * frame.h (struct frame_id): Define.
7289 (get_frame_id): Declare.
7290 (frame_find_by_id): Declare.
7291 * frame.c (frame_find_by_id): New function.
7292 (get_frame_id): New function.
7293
304270b6
AV
72942002-06-10 Andrey Volkov <avolkov@transas.com>
7295
7296 * ser-e7kpc.c: Fix duplicated define and call of
7297 _initialize_ser_e7000pc
7298
2f2cf184
DJ
72992002-06-09 Daniel Jacobowitz <drow@mvista.com>
7300
7301 * signals/signals.c (target_signal_from_host): Fix #ifdef
7302 SIGRTMIN case.
7303 (do_target_signal_to_host): Likewise.
7304
caaa3122
DJ
73052002-06-09 Daniel Jacobowitz <drow@mvista.com>
7306
7307 * mips-tdep.c (mips_find_abi_section): New function.
7308 (mips_gdbarch_init): Call it.
7309
6ac5df3a
MK
73102002-06-09 Mark Kettenis <kettenis@gnu.org>
7311
7312 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7313 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7314 after Andrew's 2002-06-08 gdbarch change.
7315
82ea117a
MK
73162002-06-09 Mark Kettenis <kettenis@gnu.org>
7317
7318 * i386-linux-nat.c (suppy_gregset): Don't supply
7319 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7320 register cache.
7321 (fill_gregset): Don't fetch it under the same circumstances.
7322
3c25f8c7
AC
73232002-06-09 Andrew Cagney <cagney@redhat.com>
7324
7325 * Makefile.in (callback_h): Define.
7326 (remote_sim_h): Update path to remote-sim.h.
7327 (remote-rdp.o): Add $(callback_h).
7328 (remote-sim.o): Use $(callback_h).
7329 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7330 * remote-rdp.c: Include "gdb/callback.h".
7331
1029b7fa
MK
73322002-06-09 Mark Kettenis <kettenis@gnu.org>
7333
7334 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7335 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7336
616675d3
AC
73372002-06-08 Andrew Cagney <ac131313@redhat.com>
7338
a3efda28
AC
7339 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7340 * rdi-share/serpardr.c: Ditto.
7341 * rdi-share/unixcomm.c: Ditto.
7342 * rdi-share/serdrv.c: Ditto.
7343 * rdi-share/hostchan.h: Ditto.
7344 * rdi-share/hostchan.c: Ditto.
7345 * rdi-share/host.h: Ditto.
7346 * rdi-share/devsw.c: Ditto.
7347
c5f10366
AC
7348 * objfiles.h: Change type of obj_private to void pointer.
7349 * pa64solib.c: Update copyright. Don't include "assert.h", use
7350 strcmp instead of STREQ, use LONGEST, do not use PTR
7351 * somsolib.c: Ditto.
7352
616675d3
AC
7353 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7354 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7355 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7356
e4b415d9
AC
73572002-06-08 Andrew Cagney <ac131313@redhat.com>
7358
7359 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7360 (default_get_saved_register): Delete function.
7361 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7362 generic_unwind_get_saved_register.
7363 * gdbarch.h, gdbarch.c: Re-generate.
7364
ca0d0b52
AC
73652002-06-08 Andrew Cagney <ac131313@redhat.com>
7366
7367 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7368 generic_func_frame_chain_valid.
7369 * gdbarch.h, gdbarch.c: Re-generate.
7370 * blockframe.c (generic_func_frame_chain_valid): Only check
7371 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7372 passing FP to PC_IN_CALL_DUMMY.
7373 Fix PR gdb/360.
7374
76860b5f
AC
73752002-06-08 Andrew Cagney <ac131313@redhat.com>
7376
7377 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7378 (register_gdbarch_data): Initialize init_p.
7379 (gdbarch_data): Initialize data pointer using the init function.
7380 (init_gdbarch_data): Delete function.
7381 (gdbarch_update_p): Update.
7382 (initialize_non_multiarch): Update.
7383 (struct gdbarch): Add field initialized_p.
7384 * gdbarch.h, gdbarch.c: Re-generate.
7385
8dda9770
ML
73862002-06-07 Michal Ludvig <mludvig@suse.cz>
7387
7388 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7389 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7390 better do the things actually here.
7391 * x86-64-tdep.c (x86_64_register_name2nr): New.
7392 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7393 (x86_64_gdbarch_init): Respect the above change.
7394 * x86-64-tdep.h (x86_64_register_name2nr)
7395 (x86_64_register_nr2name): Add prototypes.
7396 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7397
3d79a47c
MS
73982002-06-06 Michael Snyder <msnyder@redhat.com>
7399
7bd91a28
MS
7400 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7401 Delete extra braces and re-indent.
7402 (d10v_store_return_value): Char return values
3d79a47c
MS
7403 must be shifted over by one byte in R0.
7404 (d10v_extract_return_value): Delete extra braces, re-indent.
7405
095a4c96
EZ
74062002-06-06 Elena Zannoni <ezannoni@redhat.com>
7407
7408 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7409 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7410 (d10v_integer_to_address): Rewrite.
7411 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7412 the d10v specific functions which take care of converting to the
7413 correct space.
7414
e8a77ca4
EZ
74152002-06-06 Elena Zannoni <ezannoni@redhat.com>
7416
7417 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7418 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7419
4f2e4a4f
AC
74202002-06-02 Andrew Cagney <ac131313@redhat.com>
7421
7422 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7423 includes.
7424 * config/tm-linux.h: Ditto.
7425 * config/alpha/tm-alphalinux.h: Ditto.
7426 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7427 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7428 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7429 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7430 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7431 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7432 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7433 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7434 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7435 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7436 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7437 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7438 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7439 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7440 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7441 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7442 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7443 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7444 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7445 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7446 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7447 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7448 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7449 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7450 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7451 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7452 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7453 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7454 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7455 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7456 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7457 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7458 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7459 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7460 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7461 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7462 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7463
ae2ab2ce
AS
74642002-05-04 Aidan Skinner <aidan@velvet.net>
7465
7466 * ada-exp.tab.c: New file
7467 * ada-exp.y: New file
7468 * ada-lang.c: New file
7469 * ada-lang.h: New file
7470 * ada-lex.c: New file
7471 * ada-lex.l: New file
7472 * ada-tasks.c: New file
7473 * ada-typeprint.c: New file
7474 * ada-valprint.c: New file
7475
0ddd0135
JT
74762002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7479 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7480
750fbacc
JT
74812002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7482
7483 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7484 insetead of ppc-linux-tdep.o.
7485 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7486 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7487
df94e18a
AC
74882002-06-02 Andrew Cagney <ac131313@redhat.com>
7489
7490 2002-05-07 Christian Groessler <chris@groessler.org>
7491 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7492 bit register contents for little endian hosts.
7493
1a38ab75
AC
74942002-06-01 Andrew Cagney <ac131313@redhat.com>
7495
7496 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7497 any maintainer.
7498
8b1632ac
AC
74992002-06-01 Andrew Cagney <ac131313@redhat.com>
7500
7501 * gdbarch.h: Regenerate.
7502
627054c8
AC
75032002-06-01 Andrew Cagney <ac131313@redhat.com>
7504
7505 * MAINTAINERS: Add everyone to write-after-approval list.
7506
4f460812
AC
75072002-06-01 Andrew Cagney <ac131313@redhat.com>
7508
7509 * stack.c (frame_info): Use frame_register_unwind instead of
7510 saved_regs. Mention when the SP is on the stack or in a register.
7511
7512 * frame.h (frame_register_unwind_ftype): Define. Document.
7513 (struct frame_info): Add field register_unwind and
7514 register_unwind_cache.
7515 (frame_register_unwind): Declare.
7516 (generic_unwind_get_saved_register): Declare.
7517
7518 * frame.c (frame_register_unwind): New function.
7519 (generic_unwind_get_saved_register): New function.
7520
7521 * blockframe.c (generic_call_dummy_register_unwind): New function.
7522 (frame_saved_regs_register_unwind): New function.
7523 (set_unwind_by_pc): New function.
7524 (create_new_frame): New function.
7525 (get_prev_frame): New function.
7526
de888f76
AC
75272002-05-30 Andrew Cagney <ac131313@redhat.com>
7528
7529 * a29k-share/: Delete directory.
7530 * remote-vx29k.c: Delete file.
7531
2f2c3626
JT
75322002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7535 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7536
9ce5c36a
JT
75372002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7538
7539 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7540 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7541 (sparc64nbsd-nat.o)
7542 (sparcnbsd-nat.o)
7543 (sparcnbsd-tdep.o): New dependency lists.
7544 * NEWS: Note new UltraSPARC NetBSD native configuration.
7545 * configure.host (sparc64-*-netbsd*): New host.
7546 * configure.tgt (sparc-*-netbsdelf*)
7547 (sparc-*-netbsd*): Set gdb_target to nbsd.
7548 (sparc64-*-netbsd*): New target.
7549 * sparc64nbsd-nat.c: New file.
7550 * sparcnbsd-nat.c: New file.
7551 * sparcnbsd-tdep.c: New file.
7552 * sparcnbsd-tdep.h: New file.
7553 * config/sparc/nbsd.mt: New file.
7554 * config/sparc/nbsd64.mh: New file.
7555 * config/sparc/nbsd64.mt: New file.
7556 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7557 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7558 (HOST_IPC): Remove.
7559 * config/sparc/nbsdaout.mt: Remove.
7560 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7561 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7562 (HOST_IPC): Remove.
7563 * config/sparc/nbsdelf.mt: Remove.
7564 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7565 sparc-nat.c compatiblity defines.
7566 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7567 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7568 * config/sparc/tm-nbsd64.h: New file.
7569 * config/sparc/tm-nbsdaout.h: Remove.
7570 * config/sparc/xm-nbsd.h: Remove.
7571
ef3cf062
JT
75722002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7573
7574 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7575 * sparc-tdep.c: Include osabi.h.
7576 (gdbarch_tdep): Add osabi member.
7577 (_initialize_sparc_tdep): Use gdbarch_register.
7578 (sparc_gdbarch_init): Use generic OS ABI framework.
7579 (sparc_dump_tdep): New function.
7580
ee8ff470
KB
75812002-05-30 Kevin Buettner <kevinb@redhat.com>
7582
7583 * corefile.c (do_captured_read_memory_integer): Return non-zero
7584 result.
7585 (safe_read_memory_integer): Copy result of memory read when
7586 status is non-zero. Also, add comments.
7587
7b112f9c
JT
75882002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7589
7590 * Makefile.in (ppc_tdep_h): Define.
7591 (ppc-linux-nat.o)
7592 (ppc-linux-tdep.o)
7593 (rs6000-tdep.o): Use $(ppc_tdep_h).
7594 (ppc-sysv-tdep.o)
7595 (ppcnbsd-nat.o)
7596 (ppcnbsd-tdep.o): New dependency lists.
7597 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7598 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7599 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7600 (ppc_sysv_abi_broken_use_struct_convention)
7601 (ppc_sysv_abi_use_struct_convention)
7602 (ppc_sysv_abi_push_arguments): Move to...
7603 * ppc-sysv-tdep.c: ...here.
7604 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7605 * rs6000-tdep.c (process_note_abi_tag_sections)
7606 (get_elfosabi): Remove.
7607 (rs6000_gdbarch_init): Use generic OS ABI framework.
7608 (rs6000_dump_tdep): New function.
7609 (_initialize_rs6000_tdep): Use gdbarch_register.
7610 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7611 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7612 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7613 of ppc-linux-tdep.o.
7614 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7615 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7616 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7617 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7618 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7619 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7620
480dd42a
JB
76212002-05-29 Jim Blandy <jimb@redhat.com>
7622
7623 * macroscope.c (default_macro_scope): Put `void' in empty argument
7624 list.
7625
4182591f
AC
76262002-05-29 Andrew Cagney <ac131313@redhat.com>
7627
7628 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7629 * arch-utils.c: Include "sim-regno.h".
7630 * gdbarch.sh: Don't include "sim-regno.h".
7631 * gdbarch.h, gdbarch.c: Regenerate.
7632 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7633 here.
7634 * arch-utils.h (legacy_register_sim_regno): To here.
7635 * remote-sim.c (legacy_register_sim_regno): Move function from
7636 here.
7637 * arch-utils.c (legacy_register_sim_regno): To here.
7638
8238d0bf
AC
76392002-05-28 Andrew Cagney <ac131313@redhat.com>
7640
7641 * sim-regno.h: New file.
7642 * Makefile.in (sim_regno_h): Define.
7643 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7644 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7645 (legacy_register_sim_regno): New function.
7646 (one2one_register_sim_regno): New function.
7647 (gdbsim_fetch_register): Rewrite.
7648 (gdbsim_store_register): Only store a register when
7649 REGISTER_SIM_REGNO is valid.
7650 * d10v-tdep.c: Include "sim-regno.h".
7651 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7652 (d10v_ts3_register_sim_regno): Ditto.
7653 * gdbarch.sh: Include "sim-regno.h".
7654 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7655 * gdbarch.h, gdbarch.c: Regenerate.
7656 * arch-utils.h (default_register_sim_regno): Delete declaration.
7657 * arch-utils.c (default_register_sim_regno): Delete function.
7658
485721b1
JT
76592002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7660
7661 * ppcnbsd-nat.c: Rewrite.
7662 * ppcnbsd-tdep.c: New file.
7663 * ppcnbsd-tdep.h: New file.
7664 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7665 solib.o, and solib-svr4.o.
7666 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7667 nbsd-tdep.o, and corelow.o.
7668
697f244d
AC
76692002-05-28 Andrew Cagney <ac131313@redhat.com>
7670
7671 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7672 `tr' and `sed'. Mention that `broken' targets are not expected to
7673 build.
7674
f08caad1 76752002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7676
7677 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7678 Let PC point right after the prologue before looking up symbols.
7679
3139facc
MH
76802002-05-27 Martin M. Hunt <hunt@redhat.com>
7681
7682 * i386-tdep.c (i386_register_virtual_type): Return
7683 builtin_type_vec128i for SSE registers.
7684
7685 * gdbtypes.h (builtin_type_vec128i): Declare.
7686
7687 * gdbtypes.c (build_builtin_type_vec128i): New function.
7688 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7689 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7690 (build_gdbtypes): Initialize new builtin vector types.
7691 (_initialize_gdbtypes): Register new vector types with gdbarch.
7692
6e3ba3b8
JT
76932002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7694
7695 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7696 since it has been multi-arch'd.
7697 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7698 Move Alpha and VAX multi-arch news entries to same section
7699 as other multi-arch news.
7700
93d5585d
JT
77012002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7702
7703 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7704 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7705 static. Rename some register numbers to put them in ns32k-tdep
7706 private namespace.
7707 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7708 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7709 functions.
7710 (_initialize_ns32k_tdep): Use gdbarch_register.
7711 * ns32k-tdep.h: New file.
7712 * ns32knbsd-tdep.c: New file.
7713 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7714 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7715 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7716 REGISTER_BYTES, REGISTER_BYTE): Remove.
7717 * config/ns32k/tm-ns32k.h: New file.
7718 * config/ns32k/tm-umax.h: Remove.
7719
efb2c70e
JT
77202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7721
7722 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7723 ns32k_store_struct_return, ns32k_extract_return_value,
7724 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7725 functions.
7726 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7727 ns32k_saved_pc_after_call.
7728 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7729 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7730 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7731 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7732 ns32k_extract_struct_value_address.
7733
7bcc927b
JT
77342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7735
7736 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7737 ns32k_fix_call_dummy): New.
7738 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7739 ns32k_call_dummy_words.
7740 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7741 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7742 CALL_DUMMY_NARGS): Remove.
7743 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7744
78f9d765
JT
77452002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7746
7747 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7748 ns32k_frame_saved_pc, ns32k_frame_args_address,
7749 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7750 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7751 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7752 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7753 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7754 (BREAKPOINT): Remove..
7755 (FRAME_CHAIN): Define as ns32k_frame_chain.
7756 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7757 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7758 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7759 (FRAME_FIND_SAVED_REGS): Remove.
7760 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7761 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7762 (POP_FRAME): Define as ns32k_pop_frame.
7763
f2c762e0
JT
77642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7765
7766 * ns32k-tdep.c (ns32k_register_byte_32082,
7767 ns32k_register_byte_32382, ns32k_register_raw_size,
7768 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7769 functions.
7770 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7771 ns32k_register_byte_32382.
7772 * config/ns32k/tm-umax.h: Update copyright years.
7773 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7774 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7775 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7776 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7777 (ns32k_get_enter_addr): Fix prototype.
7778
af137673
JT
77792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7780
7781 * ns32k-tdep.c: Update copyright years.
7782 (ns32k_register_name_32082): New function.
7783 (ns32k_register_name_32382): Ditto.
7784 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7785 (REGISTER_NAME): Define as ns32k_register_name_32382.
7786 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7787 (REGISTER_NAME): Define as ns32k_register_name_32082.
7788
a8bc7b56
JB
77892002-05-24 Jim Blandy <jimb@redhat.com>
7790
7791 * dwarf2read.c (free_line_header): Use xfree, not free.
7792
83a45910
JT
77932002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7794
7795 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7796 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7797
0db71247
AC
77982002-05-23 Andrew Cagney <ac131313@redhat.com>
7799
7800 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7801
b9e5e4dd
AC
78022002-05-23 Andrew Cagney <ac131313@redhat.com>
7803
7804 From Ross Alexander at NEC Europe:
7805 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7806
de530e84
MS
78072002-05-23 Michael Snyder <msnyder@redhat.com>
7808
7809 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7810 for input, rather than parse_and_eval_address.
7811
b91b96f4
AC
78122002-05-23 Andrew Cagney <ac131313@redhat.com>
7813
7814 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7815 * Makefile.in (sim_d10v_h): Update definition.
7816
8b279e7a
AC
78172002-05-24 Andrew Cagney <cagney@redhat.com>
7818
7819 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7820 change `2002-05-22 Michael Snyder' below.
7821 (d10v_push_arguments): Ditto.
7822 (d10v_extract_return_value): Ditto.
7823
0a3d0425
JB
78242002-05-23 Jim Blandy <jimb@redhat.com>
7825
7826 * macrotab.c (check_for_redefinition): Don't complain if the new
7827 definition is the same as the previous one. Take more arguments
7828 to allow the comparison.
7829 (macro_define_object, macro_define_function): Pass more arguments
7830 to check_for_redefinition.
7831
78eac43e
MS
78322002-05-22 Michael Snyder <msnyder@redhat.com>
7833
7834 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7835 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7836 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7837 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7838 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7839 Add a temp variable to save a call (and a memory read).
7840 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7841 if possible (so that PC_IN_CALL_DUMMY will work).
7842
9bc1edb8
CV
78432002-05-22 Corinna Vinschen <vinschen@redhat.com>
7844
7845 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7846
005ef3d2
ML
78472002-05-22 Michal Ludvig <mludvig@suse.cz>
7848
7849 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7850 fde->cie_ptr.
7851 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7852 (dwarf2_build_frame_info): Add offset to fde->initial_location
7853 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7854 (execute_stack_op): Change type of 'result' from ULONGEST to
7855 CORE_ADDR.
005ef3d2 7856
fcf4f891
JT
78572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7858
7859 * config/alpha/tm-nbsd.h: Include solib.h.
7860
cfef91e4
JT
78612002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7862
7863 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7864 assumptions about the host's byte order.
7865
9964235a
JT
78662002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7867
7868 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7869 to dependency list.
7870 * alphanbsd-tdep.c: Include solib-svr4.h.
7871 * shnbsd-tdep.c: Ditto.
7872
9eeef8ef
JT
78732002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7874
7875 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7876 nbsd-tdep.h to dependency list.
7877 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7878 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7879 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7880 nbsdaout.mh and nbsdelf.mh consistently.
7881 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7882 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7883 nbsdaout.mt and nbsdelf.mh consistently.
7884 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7885 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7886 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7887 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7888 a.out shared library stuff from here...
7889 * config/nm-nbsdaout.h: ...to here.
7890 * config/tm-nbsd.h: Remove.
7891 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7892 * config/arm/nbsd.mh: Remove.
7893 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7894 nbsd-tdep.o.
7895 * config/arm/nbsdaout.mh: New file.
7896 * config/arm/nbsdelf.mh: New file.
7897 * config/arm/nm-nbsdaout.h: New file.
7898 * config/i386/nbsd.mh: Remove.
7899 * config/i386/nbsd.mt: Remove.
7900 * config/i386/nbsdaout.mh: New file.
7901 * config/i386/nbsdaout.mt: New file.
7902 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7903 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7904 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7905 i386_register_u_addr): Remove.
7906 * config/i386/nm-nbsdaout.h: New file.
7907 * config/i386/nm-nbsdelf.h: Remove.
7908 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7909 (USE_STRUCT_CONVENTION): Remove.
7910 * config/i386/tm-nbsdaout.h: New file.
7911 * config/i386/tm-nbsdelf.h: Remove.
7912 * config/m68k/nbsd.mh: Remove.
7913 * config/m68k/nbsd.mt: Remove.
7914 * config/m68k/nbsdaout.mh: New file.
7915 * config/m68k/nbsdaout.mt: New file.
7916 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7917 * config/m68k/nm-nbsdaout.h: New file.
7918 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7919 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7920 * config/ns32k/nbsd.mh: Remove.
7921 * config/ns32k/nbsd.mt: Remove.
7922 * config/ns32k/nbsdaout.mh: New file.
7923 * config/ns32k/nbsdaout.mt: New file.
7924 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7925 * config/ns32k/nm-nbsdaout.h: New file.
7926 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7927 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7928 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7929 (SVR4_SHARED_LIBS): Remove.
7930 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7931 * config/sparc/nbsd.mh: Remove.
7932 * config/sparc/nbsd.mt: Remove.
7933 * config/sparc/nbsdaout.mh: New file.
7934 * config/sparc/nbsdaout.mt: New file.
7935 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7936 * config/sparc/nbsdelf.mt: New file.
7937 * config/sparc/nm-nbsdaout.h: New file.
7938 * config/sparc/nm-nbsdelf.h: Remove.
7939 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7940 * config/sparc/tm-nbsdaout.h: New file.
7941
257ce470
JT
79422002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7943
7944 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7945 mipsnbsd-tdep.c
7946 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7947
76a6d5fe
JT
79482002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7949
7950 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7951 shnbsd-nat.c.
7952 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7953
45888261
JT
79542002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7955
7956 * NEWS: Note new MIPS NetBSD native configuration.
7957 * configure.host (mips*-*-netbsd*): New host.
7958 * configure.tgt (mips*-*-netbsd*): New target.
7959 * mipsnbsd-nat.c: New file.
7960 * mipsnbsd-tdep.c: New file.
7961 * mipsnbsd-tdep.h: New file.
7962 * config/mips/nbsd.mh: New file.
7963 * config/mips/nbsd.mt: New file.
7964 * config/mips/nm-nbsd.h: New file.
7965 * config/mips/tm-nbsd.h: New file.
7966
70f80edf
JT
79672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7968
7969 * Makefile.in (SFILES): Add osabi.c.
7970 (COMMON_OBS): Add osabi.o.
7971 (osabi.o): New dependency list.
7972 * osabi.c: New file.
7973 * osabi.h: New file.
7974 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7975
7976 * Makefile.in (alpha_tdep_h): Define and use instead of
7977 alpha-tdep.h.
7978 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7979 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7980 Remove.
7981 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7982 * alpha-tdep.h: Include osabi.h.
7983 (alpha_abi): Remove.
7984 (gdbarch_tdep): Use generic OS ABI framework.
7985 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7986 gdbarch_register_osabi.
7987 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7988 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7989 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7990
7991 * Makefile.in (sh_tdep_h): Add osabi.h.
7992 * sh-tdep.h (sh_osabi): Remove.
7993 (gdbarch_tdep): Use generic OS ABI framework.
7994 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7995 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7996 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7997 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7998
7999 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8000 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8001 gdbarch_register_osabi.
8002 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8003 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8004 (get_elfosabi): Rename to...
8005 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8006 ABI framework support routines.
8007 (arm_gdbarch_init): Use generic OS ABI framework.
8008 (arm_dump_tdep): Likewise.
8009 (_initialize_arm_tdep): Likewise.
8010 * arm-tdep.h: Include osabi.h.
8011 (arm_abi): Remove.
8012 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8013 osabi member.
8014 (arm_gdbarch_register_os_abi): Remove prototype.
8015 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8016 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8017
8018 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8019 * mips-tdep.c: Include osabi.h.
8020 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8021 OS ABI framework.
8022
d194345b
KH
80232002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8024
8025 * h8300-tdep.c: Fix formatting.
8026
70c6b0d1
EZ
80272002-05-20 Elena Zannoni <ezannoni@redhat.com>
8028
8029 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8030 printing vector registers.
8031
165b8e33
AC
80322002-05-19 Andrew Cagney <ac131313@redhat.com>
8033
8034 From Fernando Nasser:
8035 * remote.c (remote_async_open_1): Re-throw the exception when the
8036 connection fails.
8037 (remote_cisco_open): Ditto.
8038 (remote_open_1): Ditto.
8039
36918e70
AC
80402002-05-19 Andrew Cagney <ac131313@redhat.com>
8041
8042 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8043 (remote_start_remote): Add uiout parameter. Pass through to
8044 remote_start_remote_dummy.
8045 (remote_open_1): Use catch_exception instead of catch_errors.
8046 (remote_async_open_1): Ditto.
8047 (remote_cisco_open): Ditto.
8048
ae44c0c4
AC
80492002-05-19 Andrew Cagney <ac131313@redhat.com>
8050
8051 * remote.c (remote_start_remote): Replace PTR with void pointer.
8052 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8053 static.
8054
8efe637d
AC
80552002-05-18 Andrew Cagney <ac131313@redhat.com>
8056
8057 * gdb_indent.sh: Allow the script to be run in the sim directory.
8058
2f1b5984
MK
80592002-05-18 Mark Kettenis <kettenis@gnu.org>
8060
f0f625e2
MK
8061 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8062 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8063
2f1b5984
MK
8064 * corelow.c (core_open): Only call set_gdbarch_from_file if
8065 exec_bfd is NULL.
8066
fc974602
AV
80672002-05-17 Andrey Volkov <avolkov@transas.com>
8068
8069 * h8300-tdep.c: Add support of EXR register
8070 * config/h8300/tm-h8300.h: Ditto.
8071
906709f4
AV
80722002-05-17 Andrey Volkov <avolkov@transas.com>
8073
8074 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8075
6e591d68
AV
80762002-05-17 Andrey Volkov <avolkov@transas.com>
8077
8078 * h8300-tdep.c: Change literal regnums to REGNO.
8079
84f0252a
JB
80802002-05-17 Jim Blandy <jimb@redhat.com>
8081
e0e9281e
JB
8082 * NEWS: Note addition of macro support.
8083
84f0252a
JB
8084 Expand preprocessor macros in C expressions.
8085 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8086 (scan_macro_expansion, scanning_macro_expansion,
8087 finished_macro_expansion): New function declarations.
8088 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8089 variable declarations.
8090 * parser-defs.h (expression_context_pc): New declaration.
8091 * parse.c (expression_context_pc): New variable.
8092 (parse_exp_1): Set expression_context_pc, as well as
8093 expression_context_block.
8094 * c-exp.y (yylex): If we're not already reading the result of a
8095 macro expansion, try to macro-expand the next token. When we're
8096 done scanning a macro expansion, switch back to the mainline text.
8097 Commas and `if's in a macro's expansion don't terminate the input.
8098 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8099 (macro_original_text, macro_expanded_text,
8100 expression_macro_lookup_func, expression_macro_lookup_baton): New
8101 variables.
8102 (scan_macro_expansion, scanning_macro_expansion,
8103 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8104 c_preprocess_and_parse): New functions.
8105 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8106 c_preprocess_and_parse, instead of c_parse.
8107 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8108 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8109
1c509ca8
JR
8110Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8111
8112 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8113 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8114 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8115
2250ee0c
CV
81162002-05-17 Corinna Vinschen <vinschen@redhat.com>
8117
8118 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8119
ab3b8126
JT
81202002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8121
8122 * Makefile.in (sh_tdep_h): Define and use.
8123 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8124 register enum): Move to...
8125 * * sh-tdep.h: ...here.
8126 * sh-tdep.c: Include sh-tdep.h.
8127 * sh3-rom.c: Likewise.
8128 * shnbsd-tdep.c: Likewise.
8129
ed9d4749
MS
81302002-05-16 Michael Snyder <msnyder@redhat.com>
8131
8132 * arm-tdep.c: Spelling fix in comment.
8133
2e276125
JB
81342002-05-16 Jim Blandy <jimb@redhat.com>
8135
6821892e
JB
8136 Add commands for manually expanding macros and showing their
8137 definitions.
8138 * macrocmd.c, macroscope.c, macroscope.h: New files.
8139 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8140 (macroscope_h): New variable.
8141 (HFILES_NO_SRCDIR): Add macroscope.h.
8142 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8143 (macroscope.o, macrocmd.o): New rules.
8144
2e276125
JB
8145 Teach the Dwarf 2 reader to read macro information.
8146 * dwarf2read.c: #include "macrotab.h".
8147 (dwarf_macinfo_buffer): New variable.
8148 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8149 dwarf_macinfo_size.
8150 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8151 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8152 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8153 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8154 dwarf2_macro_spaces_in_definition): New complaints.
8155 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8156 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8157 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8158 the partial symbol table.
8159 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8160 from what's recorded in the partial symbol table.
8161 (read_file_scope): If the compilation unit has a
8162 `DW_AT_macro_info' attribute, read its macro information.
8163 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8164
2f53fe6c
DJ
81652002-05-16 Daniel Jacobowitz <drow@mvista.com>
8166
8167 Fix PR gdb/546
8168 * ser-tcp.c: Don't include <netinet/udp.h>.
8169
2be99286
SC
81702002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8171
8172 * MAINTAINERS: Update my email address.
8173
c9af212b 81742002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8175
8176 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8177 include file of the same name.
8178
bf5f1a52
CV
81792002-05-16 Corinna Vinschen <vinschen@redhat.com>
8180
8181 * configure.tgt: Mark v850 as multi-arched.
8182 * config/v850/tm-v850.h: Remove file.
8183 * config/v850/v850.mt: Eliminate TM_FILE.
8184
435e042a
CV
81852002-05-16 Corinna Vinschen <vinschen@redhat.com>
8186
8187 * v850-tdep.c: Full multi-arch.
8188 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8189 Define GDB_MULTI_ARCH to 2.
8190
9819c6c8
PM
81912002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8192
8193 * p-exp.y (current_type): New static variable.
8194 Carries the type of the expression at the position that is parsed.
8195 (push_current_type, pop_current_type): Two new functions. Used
8196 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8197 (search_field): New static variable. Set to one after parsing a point
8198 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8199 (FIELDNAME): New token. After a point only a token belonging to
8200 current_type type definition is allowed.
8201 (all over token rules): reset and change current_type according
8202 to rules.
8203 (exp '[' rule): insert implicit array index field if
8204 exp is a pascal string type.
8205
3a06899a
CV
82062002-05-16 Corinna Vinschen <vinschen@redhat.com>
8207
8208 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8209 frame info. Use frame_info's saved_regs instead of matching member
8210 in extra_frame_info throughout.
8211 (v850_frame_init_saved_regs): New function.
8212 (v850_init_extra_frame_info): Move most functionality into
8213 v850_frame_init_saved_regs().
8214 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8215 (v850_frame_find_saved_regs): Remove declaration.
8216 (FRAME_FIND_SAVED_REGS): Remove definition.
8217 (v850_frame_init_saved_regs): Add declaration.
8218 (FRAME_INIT_SAVED_REGS): Add definition.
8219
6ed14b0e
CV
82202002-05-16 Corinna Vinschen <vinschen@redhat.com>
8221
8222 * v850-tdep.c: Begin multi-arch'ing v850.
8223 (v850_target_architecture_hook): Remove function.
8224 (v850_gdbarch_init): New function. Add code previously in
8225 v850_target_architecture_hook().
8226 (_initialize_v850_tdep): Don't set target_architecture_hook.
8227 Call register_gdbarch_init() instead.
8228
42725910
DJ
82292002-05-16 Daniel Jacobowitz <drow@mvista.com>
8230
8231 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8232 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8233 (fixup_class_method_type): Likewise.
8234
99d9066e
JB
82352002-05-15 Jim Blandy <jimb@redhat.com>
8236
8237 Add macro structures to GDB's symbol tables. Nobody puts anything
8238 in them yet.
8239 * symtab.h (struct symtab): New member: `macro_table'.
8240 * buildsym.h (pending_macros): New global variable.
8241 * buildsym.c: #include "macrotab.h".
8242 (buildsym_init): Initialize `pending_macros'.
8243 (end_symtab): If we found macro information while reading a CU's
8244 debugging info, do build a symtab structure for it. Make the
8245 symtab point to the macro information, and clear the
8246 `pending_macros' pointer which held it while we were reading the
8247 debug info.
8248 (really_free_pendings): Free any pending macro table.
8249 * objfiles.h (struct objfile): New member: `macro_cache'.
8250 * objfiles.c (allocate_objfile): Set allocate and free functions
8251 for the macro cache's objstack.
8252 (free_objfile): Empty the macro cache's obstack.
8253 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8254 set new allocate and free functions for it.
8255 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8256 free functions for the macro cache's objstack. (Why is this
8257 function building its own objfile?)
8258 * symmisc.c (print_objfile_statistics): Print statistics on the
8259 macro bcache.
8260 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8261
c899585b
RE
82622002-05-15 Richard Earnshaw <rearnsha@arm.com>
8263
8264 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8265 (REGISTER_U_ADDR): Delete definition.
8266 (arm_register_u_addr): Delete declaration.
8267
a6cdd8c5
RE
82682002-05-15 Richard Earnshaw <rearnsha@arm.com>
8269
8270 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8271 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8272
c97dcfc7
AC
82732002-05-14 Andrew Cagney <ac131313@redhat.com>
8274
8275 * regcache.c (register_valid): Revise comments refering to "Not
8276 available" and "unavailable".
8277 * frame.c (frame_register_read): Ditto.
8278 * findvar.c (value_of_register): Ditto.
8279
93021b7d
AC
82802002-05-15 Andrew Cagney <cagney@redhat.com>
8281
8282 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8283 (remote-sim.o): Update dependencies.
8284 (d10v-tdep.o): Specify dependencies.
8285 (sim_d10v_h): Define.
8286
a86bc61c
JB
82872002-05-14 Jim Blandy <jimb@redhat.com>
8288
8289 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8290 * macrotab.c (macro_lookup_inclusion, find_definition,
8291 new_macro_table): Same.
8292
8293 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8294 not `! strcmp ()'. This is a dubious improvement.
8295 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8296
8297 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8298 although it's not necessary, to avoid a warning.
8299
2fdde8f8
DJ
83002002-05-14 Daniel Jacobowitz <drow@mvista.com>
8301
8302 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8303 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8304 TYPE_INSTANCE_FLAGS.
8305 (struct main_type): New.
8306 (struct type): Move most members to struct main_type. Change
8307 cv_type and as_type to new type_chain member. Add instance_flags.
8308 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8309 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8310 (finish_cv_type): Remove prototype.
8311 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8312 Set TYPE_CHAIN.
8313 (alloc_type_instance): New function.
8314 (smash_type): New function.
8315 (make_pointer_type, make_reference_type, make_function_type)
8316 (smash_to_member_type, smash_to_method_type): Call smash_type.
8317 (make_qualified_type): New function.
8318 (make_type_with_address_space): Call make_qualified_type.
8319 (make_cv_type): Likewise.
8320 (finish_cv_type): Remove unnecessary function.
8321 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8322 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8323 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8324 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8325 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8326 * hpread.c (hpread_read_struct_type): Likewise.
8327 * stabsread.c (read_struct_type): Likewise.
8328
843fedf4
EZ
83292002-05-14 Elena Zannoni <ezannoni@redhat.com>
8330
8331 * configure.tgt: Add a catch all sh* target, for cases like
8332 sh[2,3,4]-elf and sh-hms.
8333
05a6c72c
KS
83342002-05-14 Keith Seitz <keiths@redhat.com>
8335
8336 * event-loop.c (create_file_handler): Don't do anything but
8337 update data when we are given a fd which we are already
8338 monitoring.
8339
5d085aaf
ML
83402002-05-14 Michal Ludvig <mludvig@suse.cz>
8341
8342 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8343 (update_context): Use __func__ in warnings.
8344
9db8d71f
DJ
83452002-05-14 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8348 and tcp_close to net_open and net_close.
8349 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8350 using UDP if requested. Don't try to disable Nagle on UDP
8351 sockets.
8352 * remote.c (remote_serial_open): New function. Warn about UDP.
8353 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8354
5dbc6baa
EZ
83552002-05-13 Elena Zannoni <ezannoni@redhat.com>
8356
8357 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8358
cc3023f7
EZ
83592002-05-13 Elena Zannoni <ezannoni@redhat.com>
8360
8361 * configure.tgt: Remove sh-hms target.
8362 * MAINTAINERS: Don't list sh-hms as a separate target.
8363
ec2bcbe7
JB
83642002-05-13 Jim Blandy <jimb@redhat.com>
8365
8366 Add first preprocessor macro-expansion files.
8367 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8368 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8369 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8370 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8371 (COMMON_OBS): Add macrotab.o, macroexp.o.
8372 (macroexp.o, macrotab.o): New rules.
8373
6d531722
AC
83742002-05-13 Andrew Cagney <ac131313@redhat.com>
8375
8376 * config/m88k/tm-m88k.h: Update copyright.
8377 (m88k_target_write_pc): Declare
8378 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8379 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8380 (SHIFT_INST_REGS): Update definition.
8381 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8382 using old definition of TARGET_WRITE_PC.
8383 * regcache.c (generic_target_write_pc): Delete code handling
8384 NNPC_REGNUM.
8385 * gdbarch.sh (NNPC_REGNUM): Delete.
8386 * gdbarch.h, gdbarch.c: Regenerate.
8387
3e3f2739
RE
83882002-05-13 Richard Earnshaw <rearnsha@arm.com>
8389
8390 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8391 builtin reg number.
8392
0004e5a2
DJ
83932002-05-13 Daniel Jacobowitz <drow@mvista.com>
8394
8395 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8396 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8397 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8398 access macros.
8399 * c-typeprint.c (cp_type_print_method_args): Likewise.
8400 (c_type_print_args): Likewise.
8401 * d10v-tdep.c (d10v_push_arguments): Likewise.
8402 (d10v_extract_return_value): Likewise.
8403 * expprint.c (print_subexp): Likewise.
8404 * gdbtypes.c (lookup_primitive_typename): Likewise.
8405 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8406 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8407 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8408 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8409 (TYPE_VECTOR): Likewise.
8410 * hpread.c (hpread_read_struct_type)
8411 (fix_static_member_physnames, fixup_class_method_type)
8412 (hpread_type_lookup): Likewise.
8413 * mdebugread.c (parse_symbol, parse_type): Likewise.
8414 * p-lang.c (is_pascal_string_type): Likewise.
8415 * valops.c (hand_function_call): Likewise.
8416 * x86-64-tdep.c (classify_argument): Likewise.
8417
8418 * hpread.c (hpread_read_function_type)
8419 (hpread_read_doc_function_type): Call replace_type.
8420 * dstread.c (create_new_type): Delete.
8421 (decode_dst_structure, process_dst_function): Call alloc_type.
8422 Use type access macros.
8423
dff95cc7
MK
84242002-05-12 Mark Kettenis <kettenis@gnu.org>
8425
8426 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8427 the're not supported by the current architecture.
8428 (i387_fill_fxsave): Likewise.
8429
bbcd32ad
FF
84302002-05-12 Fred Fish <fnf@redhat.com>
8431
8432 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8433 sect_index_xxx members to index the first slot in section_offsets
8434 if all of the section_offsets are zero.
8435
89cf4787
MK
84362002-05-12 Mark Kettenis <kettenis@gnu.org>
8437
8438 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8439 checked in with last change.
8440
1f77ffc5
MK
84412002-05-12 Mark Kettenis <kettenis@gnu.org>
8442
8443 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8444 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8445 config.sub.
8446
89b8b4a9
DJ
84472002-05-12 Daniel Jacobowitz <drow@mvista.com>
8448
8449 * Makefile.in: Update dependencies.
8450
14a5e767
AC
84512002-05-11 Andrew Cagney <ac131313@redhat.com>
8452
8453 * language.c (local_hex_string_custom): Simplify. Do not depend
8454 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8455
8456 * memattr.c (mem_info_command): Replace calls to
8457 longest_local_hex_string and longest_local_hex_string_custom.
8458 * buildsym.c (make_blockvector): Ditto.
8459 * solib.c (info_sharedlibrary_command): Ditto.
8460 * tracepoint.c (tracepoints_info): Ditto.
8461 * symtab.c (print_msymbol_info): Ditto.
8462
8463 * language.c (local_hex_string): Delete.
8464 (local_hex_string_custom): Delete.
8465 (longest_local_hex_string): Rename to local_hex_string.
8466 (longest_local_hex_string_custom): Rename to
8467 local_hex_string_custom.
8468 * language.h (local_hex_string): Change parameter type to LONGEST.
8469 (local_hex_string_custom): Ditto.
8470 (longest_local_hex_string): Delete declaration.
8471 (longest_local_hex_string_custom): Ditto.
8472
8473 * solib.c: Update copyright.
8474 * memattr.c: Update copyright.
8475
13d01224
AC
84762002-05-11 Andrew Cagney <ac131313@redhat.com>
8477
8478 * arch-utils.h (legacy_register_to_value): Declare.
8479 (legacy_value_to_register): Declare.
8480 (legacy_convert_register_p): Declare.
8481 * arch-utils.c (legacy_register_to_value): New function.
8482 (legacy_value_to_register): New function.
8483 (legacy_convert_register_p): New function.
8484
8485 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8486 (VALUE_TO_REGISTER): Define.
8487 (CONVERT_REGISTER_P): Define.
8488 * gdbarch.h, gdbarch.c: Regenerate.
8489
8490 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8491 VALUE_TO_REGISTER.
8492 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8493 CONVERT_REGISTER_P.
8494
4a1970e4
DJ
84952005-05-11 Daniel Jacobowitz <drow@mvista.com>
8496 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8497
8498 * Makefile.in: Update dependencies for valops.c.
8499 * valops.c: Include "gdb_assert.h".
8500 (typecmp): Skip THIS parameter to methods.
8501 (find_method_list): Remove static_memfuncp argument,
8502 update callers. Check for stub methods.
8503 (find_value_oload_method_list): Don't set *static_memfuncp.
8504 (find_overload_match): Don't check for stub methods. Assert
8505 that methods are not stubbed. Handle static methods.
8506 (value_find_oload_method_list): Remove static_memfuncp argument.
8507 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8508 to the argument list for static stub methods.
8509 * value.h (value_find_oload_method_list): Update prototype.
8510
b2e75d78
AC
85112002-05-11 Andrew Cagney <ac131313@redhat.com>
8512
8513 * arch-utils.h (generic_register_size): Declare.
8514 (generic_register_raw_size, generic_register_virtual_size): Delete
8515 declarations.
8516 * arch-utils.c (generic_register_raw_size): Delete.
8517 (generic_register_size): New function.
8518 (generic_register_virtual_size): Delete.
8519
8520 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8521 default generic_register_size.
8522 * gdbarch.h, gdbarch.c: Re-generate.
8523
8524 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8525 register_virtual_size.
8526 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8527 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8528
451fbdda
AC
85292002-05-11 Andrew Cagney <ac131313@redhat.com>
8530
8531 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8532 * gdbarch.h, gdbarch.c: Regenerate.
8533 * gnu-v3-abi.c: Update copyright.
8534 (vtable_address_point_offset): Update.
8535 (gnuv3_rtti_type): Update.
8536 (gnuv3_baseclass_offset): Update.
8537 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8538 (init_fetch_link_map_offsets): Update.
8539 * remote.c (get_remote_state): Update.
8540
6d2f5cea
DJ
85412002-05-11 Daniel Jacobowitz <drow@mvista.com>
8542
8543 * TODO: Remove value_headof/value_from_vtable_info comment.
8544 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8545 * values.c (value_headof, value_from_vtable_info): Delete.
8546 * value.h (value_from_vtable_info): Delete prototype.
8547
d2324da4
AC
85482002-05-11 Andrew Cagney <ac131313@redhat.com>
8549
8550 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8551 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8552 $(gdb_regex_h).
8553 (gdb_assert_h): Define.
8554 (gdb_wait_h): Define.
8555 (gdb_regex_h): Define.
8556
5c717440
DJ
85572002-05-11 Daniel Jacobowitz <drow@mvista.com>
8558
8559 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8560 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8561
6c7861b3
JT
85622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 * nbsd-tdep.c: Fix comment.
8565
ea5bc2a6
JT
85662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8567
8568 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8569 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8570 (nbsd-tdep.o): New dependency list.
8571 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8572 nbsd-tdep.h.
8573 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8574 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8575 * nbsd-tdep.c: New file.
8576 * nbsd-tdep.h: New file.
8577 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8578 nbsd-tdep.h.
8579 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8580 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8581 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8582 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8583
b28da865
JT
85842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8585
8586 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8587 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8588 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8589 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8590 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8591 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8592
4b8ff1fa
JT
85932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8594
8595 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8596 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8597 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8598 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8599 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8600 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8601 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8602
dfe6eb1f
JT
86032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8604
8605 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8606 fetch_elfcore_registers to...
8607 * i386nbsd-tdep.c: ...here.
8608 (i386nbsd_use_struct_convention): Rename to...
8609 (i386nbsd_aout_use_struct_convention): ...this.
8610 (i386nbsd_supply_reg): New function.
8611 (i386nbsd_fill_reg): New function.
8612 (fetch_core_registers): Use i386nbsd_supply_reg.
8613 (fetch_elfcore_registers): Likewise.
8614 (_initialize_i386nbsd_tdep): New function.
8615 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8616 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8617 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8618 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8619 (i386nbsd_aout_use_struct_convention): ...this.
8620
20cb8cda
JT
86212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8622
8623 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8624 (store_inferior_registers): Use shnbsd_fill_reg.
8625 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8626 sh_nbsd_supply_register): Collapse into...
8627 (shnbsd_supply_reg): ...this.
8628 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8629 (shnbsd_fill_reg): ...this.
8630 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8631 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8632 (fetch_core_registers): Use shnbsd_supply_reg.
8633 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8634 (sh_nbsd_core_fns): Rename to...
8635 (shnbsd_core_fns): ...this.
8636 (sh_nbsd_elfcore_fns): Rename to...
8637 (shnbsd_elfcore_fns): ...this.
8638 (sh_nbsd_init_abi): Rename to...
8639 (shnbsd_init_abi): ...this.
8640 (_initialize_sh_nbsd_tdep): Rename to...
8641 (_initialize_shnbsd_tdep): ...this.
8642 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8643 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8644 sh_nbsd_fill_register): Remove prototypes.
8645 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8646
e750d25e
JT
86472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8648
8649 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8650 (i387-nat.o): Delete dependency list.
8651 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8652 (x86-64-linux-nat.o): Likewise.
8653 * i387-nat.c: Delete file, moving contents to...
8654 * i387-tdep.c: ...here.
8655 * i387-nat.h: Rename...
8656 * i387-tdep.h: ...to this.
8657 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8658 * i386-linux-nat.c: Likewise.
8659 * i386bsd-nat.c: Likewise.
8660 * i386gnu-nat.c: Likewise.
8661 * i386nbsd-nat.c: Likewise.
8662 * i386v4-nat.c: Likewise.
8663 * x86-64-linux-nat.c: Likewise.
8664 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8665 * config/i386/go32.mh (NATDEPFILES): Likewise.
8666 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8667 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8668 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8669 * config/i386/linux.mh (NATDEPFILES): Likewise.
8670 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8671 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8672 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8673 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8674
1aee598a
JT
86752002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8676
8677 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8678 (alphanbsd-nat.o): Remove dependency list.
8679 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8680 * alphanbsd-nat.c: Delete. Contents moved to...
8681 * alphanbsd-tdep.c: ...here.
8682 (_initialize_alphanbsd_tdep): Register core functions.
8683 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8684
12bcb0fe
JT
86852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8686
8687 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8688 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8689 (alphanbsd-nat.o): Likewise.
8690 (alphabsd-tdep.o): New dependency list.
8691 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8692 (fill_gregset): Use alphabsd_fill_reg.
8693 (supply_fpregset): Use alphabsd_supply_fpreg.
8694 (fill_fpregset): Use alphabsd_fill_fpreg.
8695 (fetch_inferior_registers): Use struct reg and struct fpreg
8696 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8697 and alphabsd_supply_fpreg.
8698 (store_inferior_registers): Use struct reg and struct fpreg
8699 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8700 and alphabsd_fill_fpreg.
8701 * alphabsd-tdep.c: New file.
8702 * alphabsd-tdep.h: New file.
8703 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8704 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8705 alphabsd_supply_fpreg.
8706 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8707 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8708
361d1df0
EC
87092002-05-11 Eric Christopher <echristo@redhat.com>
8710
8711 * mips-tdep.c (mips_double_register_type): Fix thinko.
8712 (mips_single_register_type): Ditto.
8713 * MAINTAINERS: Add self.
8714
92dd7cee
MK
87152002-05-11 Mark Kettenis <kettenis@gnu.org>
8716
8717 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8718 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8719 right thing on architectures with different endianness and/or
8720 integer sizes.
8721
e27da16d
JT
87222002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8723
8724 From Christian Limpach <chris@Pin.LU>
8725 * configure.in: Change sed expression which comments out
8726 NATDEPFILES to also comment out continuation lines.
8727 * configure: Regenerate.
8728
ddde02bd
EZ
87292002-05-10 Elena Zannoni <ezannoni@redhat.com>
8730
8731 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8732 big patch.
8733
1c922164
EZ
87342002-05-10 Elena Zannoni <ezannoni@redhat.com>
8735
8736 * sh-tdep.c: Include correct file.
8737
283150cd
EZ
87382002-05-10 Elena Zannoni <ezannoni@redhat.com>
8739
8740 New support for sh64-elf (sh5) target.
8741
8742 * configure.tgt: For sh64-elf target, default to sh-elf.
8743
8744 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8745 (struct gdbarch_tdep): Add new fields for new registers and ABI
8746 info.
361d1df0 8747
283150cd
EZ
8748 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8749 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8750 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8751 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8752 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8753 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8754 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8755 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8756 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8757 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8758 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8759 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8760 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8761 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8762 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8763 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8764 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8765 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8766 sign_extend, sh64_nofp_frame_init_saved_regs,
8767 sh64_init_extra_frame_info, sh64_get_saved_register,
8768 sh64_extract_struct_value_address, sh64_pop_frame,
8769 sh64_push_arguments, sh64_extract_return_value,
8770 sh64_store_return_value, sh64_show_media_regs,
8771 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8772 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8773 sh_sh64_register_virtual_type,
8774 sh_sh64_register_convert_to_virtual,
8775 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8776 sh64_register_read, sh64_pseudo_register_write,
8777 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8778 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8779 sh64_do_pseudo_register, sh_compact_do_registers_info,
8780 sh64_do_registers_info, sh_gdbarch_init): New functions.
8781
3117ed25
EZ
87822002-05-10 Elena Zannoni <ezannoni@redhat.com>
8783
8784 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8785
2654e6d4
DJ
87862002-05-10 Daniel Jacobowitz <drow@mvista.com>
8787
8788 * linespec.c (decode_line_1): Check for a double quote after
8789 a filename correctly.
8790
9ab3e532
JB
87912002-05-10 Jim Blandy <jimb@redhat.com>
8792
8793 Properly track the size of the current objfile's .debug_line section.
8794 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8795 (DWARF_LINE_SIZE): New macro.
8796 (dwarf2_build_psymtabs_hard): Record the line section's size in
8797 the partial symbol table.
8798 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8799 symbol table.
8800
126fa72d
PS
88012002-05-10 Petr Sorfa <petrs@caldera.com>
8802
8803 * ia64-tdep.c: Handle breakpoints on L instruction type
8804 in MLX instruction bundle by moving the breakpoint to
8805 the third slot (X instruction type) as L holds only data.
8806
1f077a3e
KB
88072002-05-10 Kevin Buettner <kevinb@redhat.com>
8808
8809 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8810 (process_one_symbol): Complain about discarding local symbols
8811 due to a misplaced N_LBRAC entry.
8812
8120c9d5 88132002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8814
8815 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8816 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8817 decrease the depth we are at, in the case of templates.
361d1df0 8818
67b2c998
DJ
88192002-05-09 Daniel Jacobowitz <drow@mvista.com>
8820
8821 * mips-tdep.c (mips_float_register_type): New function.
8822 (mips_double_register_type): New function.
8823 (mips_print_register): Use them.
8824 (do_fp_register_row): Likewise.
8825
fd326606
DJ
88262002-05-09 Daniel Jacobowitz <drow@mvista.com>
8827
6609d9af 8828 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8829 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8830 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8831
bef35864
MS
88322002-05-09 Michael Snyder <msnyder@redhat.com>
8833
8834 * remote-rdp.c (remote_rdp_can_run): Remove.
8835
c55a3f73
TT
88362002-05-09 Tom Tromey <tromey@redhat.com>
8837
8838 * jv-valprint.c (java_val_print): Handle `char' as a special case
8839 of TYPE_CODE_INT.
8840
b8d5e71d
MS
88412002-05-09 Michael Snyder <msnyder@redhat.com>
8842
8843 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8844 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8845 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8846 str r(0123),[sp,#nn].
361d1df0 8847 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8848 order-independent by placing it in a loop.
8849
e2cd42dd
MS
88502002-05-06 Michael Snyder <msnyder@redhat.com>
8851
8852 * stabsread.c (read_type): Add recognition for new attribute:
8853 "@V;" means that an array type is actually a vector.
8854 This is analogous to the vector flag that's been added to dwarf2.
8855
3ce1502b
MK
88562002-05-09 Mark Kettenis <kettenis@gnu.org>
8857
8858 * i386-tdep.h (i386_abi): New enum.
8859 (struct gdbarch_tdep): Replace os_ident member with abi.
8860 (i386_gdbarch_register_os_abi): New prototype.
8861 * i386-tdep.c (i386_abi_names): New array.
8862 (process_note_abi_tag_sections): Removed.
8863 (process_note_sections): New function.
8864 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8865 (struct i386_abi_handler): New struct.
8866 (i386_abi_handler_list): New variable.
8867 (i386_gdbarch_register_os_abi): New function.
8868 (i386_gdbarch_init): Adapt for the changes given above.
8869
084c156a
DJ
88702002-05-08 Daniel Jacobowitz <drow@mvista.com>
8871
8872 * gregset.h: Say "GNU/Linux".
8873
6599f021
EZ
88742002-05-08 Elena Zannoni <ezannoni@redhat.com>
8875
8876 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8877 (build_gdbtypes): Build builtin_type_v2_float.
8878 (_initialize_gdbtypes): Register new builtin type.
8879
40af4b0c
AC
88802002-05-08 Andrew Cagney <ac131313@redhat.com>
8881
8882 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8883 (clear_gdbarch_swap): New function.
8884 (initialize_non_multiarch): Call.
8885 (gdbarch_update_p): Before calling init(), swap out and clear the
8886 existing architecture.
8887 * gdbarch.c: Regenerate.
8888
4fe84f46
JT
88892002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8890
8891 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8892 alphanbsd-tdep.c.
8893
4015edd1
JT
88942002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8895
8896 * sh-nbsd-nat.c: Rename to...
8897 * shnbsd-nat.c: ...this.
8898 * sh-nbsd-tdep.c: Rename to...
8899 * shnbsd-tdep.c: ...this.
8900 * sh-nbsd-tdep.h: Rename to...
8901 * shnbsd-tdep.h: ...this.
8902 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8903 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8904
0e2bd219
RE
89052002-05-08 Richard Earnshaw <rearnsha@arm.com>
8906
8907 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8908 concatenation for command help messages.
8909
13a38d45
JT
89102002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8911
8912 * NEWS: Note new sh*-*-netbsdelf* configuration.
8913 * configure.host: Set gdb_host_cpu to sh for all sh*.
8914 (sh*-*-netbsdelf*): New host.
8915 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8916 (sh*-*-netbsdelf*): New target.
8917 * sh-nbsd-nat.c: New file.
8918 * sh-nbsd-tdep.c: New file.
8919 * sh-nbsd-tdep.h: New file.
8920 * config/sh/nbsd.mh: New file.
8921 * config/sh/nbsd.mt: New file.
8922 * config/sh/nm-nbsd.h: New file.
8923 * config/sh/tm-nbsd.h: New file.
8924
d658f924
JT
89252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8926
8927 * sh-tdep.c (sh_osabi_names): Declare.
8928 (process_note_abi_tag_sections): New function.
8929 (get_elfosabi): Ditto.
8930 (sh_gdbarch_register_os_abi): Ditto.
8931 (sh_dump_tdep): Ditto.
8932 _initialize_sh_tdep): Use gdbarch_register to register
8933 sh_gdbarch_init and sh_dump_tdep.
8934 * config/sh/tm-sh.h (sh_osabi): Declare.
8935 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8936
848cfffb
AC
89372002-05-07 Andrew Cagney <ac131313@redhat.com>
8938
8939 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8940 (thumb_scan_prologue): Ditto.
8941 (arm_find_callers_reg): Ditto.
8942 (arm_frame_chain): Ditto.
8943 (arm_init_extra_frame_info): Ditto.
8944 (arm_frame_saved_pc): Ditto.
8945 (arm_pop_frame): Ditto.
8946 (arm_push_return_address): New function.
8947 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8948 call_dummy_location, call_dummy_breakpoint_offset_p,
8949 call_dummy_breakpoint_offset, call_dummy_p,
8950 call_dummy_stack_adjust_p, call_dummy_words,
8951 sizeof_call_dummy_words, call_dummy_start_offset,
8952 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8953 call_dummy_address, push_return_address and push_dummy_frame for
8954 generic dummy frames.
8955
e7d717c0
JT
89562002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8957
8958 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8959 size computation for alloca.
8960 (sh_fp_frame_init_saved_regs): Likewise.
8961
7bbcf283
RE
89622002-05-07 Richard Earnshaw <rearnsha@arm.com>
8963
8964 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8965 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8966 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8967 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8968 * remote-rdp.c (remote_rdp_fetch_register): Use
8969 ARM_MAX_REGISTER_RAW_SIZE.
8970 (remote_rdp_store_register): Likewise.
8971
4657573b
ML
89722002-05-07 Michal Ludvig <mludvig@suse.cz>
8973
361d1df0 8974 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8975 added default labels to switch {} statements.
8976 * x86-64-tdep.c: Ditto.
8977 * x86-64-linux-nat.c: Ditto.
8978
010f3b2f
JT
89792002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8980
8981 * solib.h: Protect against multiple inclusion.
8982
debd256d
JB
89832002-05-06 Jim Blandy <jimb@redhat.com>
8984
9ab3e532
JB
8985 Add first preprocessor macro-expansion files.
8986 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8987 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8988 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8989 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8990 (COMMON_OBS): Add macrotab.o, macroexp.o.
8991 (macroexp.o, macrotab.o): New rules.
8992
debd256d
JB
8993 Separate the job of reading the line number info statement program
8994 header (...expialidocious) out into its own function.
8995 * dwarf2read.c (struct line_head, struct filenames, struct
8996 directories): Replace with...
8997 (struct line_header): New structure, containing the full
8998 contents of the statement program header, including the
8999 include directory and file name tables.
9000 (read_file_scope): If we have line number info, instead of just
9001 calling dwarf_decode_lines to do all the work, call
9002 dwarf_decode_line_header first to get a `struct line_header'
9003 containing the data in the statement program header, and then
9004 pass that to dwarf_decode_lines, which will pick up where that
9005 left off. Be sure to clean up the `struct line_header' object.
9006 (dwarf_decode_line_header, free_line_header, add_include_dir,
9007 add_file_name): New functions.
9008 (dwarf_decode_lines): Move all the code to read the statement
9009 program header into dwarf_decode_line_header. Take the line
9010 header it built as the first argument, instead of the offset to
9011 the compilation unit's line number info. Use the new `struct
9012 line_header' type instead of the old structures. No need to do
9013 cleanups here now, since we don't allocate anything.
9014 (dwarf2_statement_list_fits_in_line_number_section,
9015 dwarf2_line_header_too_long): New complaints.
9016
ac3aafc7
EZ
90172002-05-06 Elena Zannoni <ezannoni@redhat.com>
9018
9019 * gdbtypes.c (init_vector_type): New function.
9020 (build_builtin_type_vec128): Simplify the representation of SIMD
9021 registers.
9022 (build_gdbtypes): Initialize new builtin vector types.
9023 (_initialize_gdbtypes): Register new vector types with gdbarch.
9024 (builtin_type_v4_float, builtin_type_v4_int32,
9025 builtin_type_v8_int16, builtin_type_v16_int8,
9026 builtin_type_v2_int32, builtin_type_v4_int16,
9027 builtin_type_v8_int8): New (renamed) SIMD types.
9028
13e49980
MK
90292002-05-06 Mark Kettenis <kettenis@gnu.org>
9030
9031 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9032 (i387_fill_fxsave): Likewise.
9033
997b20b8
AO
90342002-05-05 Alexandre Oliva <aoliva@redhat.com>
9035
9036 * alpha-tdep.c (alpha_extract_return_value): Don't use
9037 non-constant array size in prototype.
9038
535c96ce
AC
90392002-05-04 Andrew Cagney <ac131313@redhat.com>
9040
9041 From Brian Taylor <briant at model dot com>:
9042 * ui-out.c (ui_out_field_core_addr): Use the function
9043 longest_local_hex_string_custom'to format addresses > 32 bits
9044 wide.
9045
9046 * ui-out.c (ui_out_field_core_addr): Update comment.
9047
bedfa57b
AC
90482002-05-04 Andrew Cagney <ac131313@redhat.com>
9049
9050 * stack.c (select_and_print_frame): Make static. Delete the
9051 parameter `level'.
9052 (func_command): Update call.
9053 (select_frame_command): Delete code computing the frame level.
9054 * frame.h (select_and_print_frame): Delete declaration.
9055
f621c63e
AC
90562002-05-04 Andrew Cagney <ac131313@redhat.com>
9057
9058 * sparc-tdep.c (sparc_get_saved_register): Comment why
9059 get_prev_frame call is safe.
9060
0f7d239c
AC
90612002-05-04 Andrew Cagney <ac131313@redhat.com>
9062
9063 * frame.h (select_frame): Delete level parameter.
9064 * stack.c (select_frame): Update. Use frame_relative_level to
9065 obtain the frame's level.
9066 (select_and_print_frame): Update call.
9067 (select_frame_command): Ditto.
9068 (up_silently_base): Ditto.
9069 (down_silently_base): Ditto.
9070 * ocd.c (ocd_start_remote): Ditto.
9071 * remote-rdp.c (remote_rdp_open): Ditto.
9072 * remote-mips.c (mips_initialize): Ditto.
9073 (common_open): Ditto.
9074 * remote-e7000.c (e7000_start_remote): Ditto.
9075 * m3-nat.c (select_thread): Ditto.
9076 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9077 (child_get_current_exception_event): Ditto.
9078 * varobj.c (varobj_create): Ditto.
9079 (varobj_update): Ditto.
9080 (c_value_of_root): Ditto.
9081 * tracepoint.c (finish_tfind_command): Ditto.
9082 * corelow.c (core_open): Ditto.
9083 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9084 * thread.c (info_threads_command): Ditto.
9085 (switch_to_thread): Ditto.
9086 * infrun.c (normal_stop): Ditto.
9087 (restore_selected_frame): Ditto.
9088 (restore_inferior_status): Ditto.
9089 * breakpoint.c (insert_breakpoints): Ditto.
9090 (watchpoint_check): Ditto.
9091 (bpstat_stop_status): Ditto.
9092 (do_enable_breakpoint): Ditto.
9093 * blockframe.c (flush_cached_frames): Ditto.
9094 (reinit_frame_cache): Ditto.
9095
71d6c7b1
AC
90962002-05-04 Andrew Cagney <ac131313@redhat.com>
9097
9098 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9099 maintainer.
9100
cda6c68a
JB
91012002-05-04 Jim Blandy <jimb@redhat.com>
9102
9103 * gdbtypes.c (replace_type): Doc fix.
9104
5c1c87f0
AC
91052002-05-04 Andrew Cagney <ac131313@redhat.com>
9106
9107 * valprint.c (strcat_longest): Delete commented out function.
9108 Update copyright.
9109
cd9bfe15
AC
91102002-05-04 Andrew Cagney <ac131313@redhat.com>
9111
9112 * MAINTAINERS: Mark a29k as deleted.
9113 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9114 Move new configurations to the top.
9115 * configure.tgt: Remove a29k.
9116 * config/a29k/tm-vx29k.h: Delete.
9117 * config/a29k/vx29k.mt: Delete.
9118 * config/a29k/tm-a29k.h: Delete.
9119 * config/a29k/a29k-udi.mt: Delete.
9120 * config/a29k/a29k.mt: Delete.
9121 * a29k-tdep.c: Delete.
9122 * remote-udi.c: Delete.
9123 * remote-mm.c: Delete.
9124 * remote-eb.c: Delete.
9125 * remote-adapt.c: Delete.
9126 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9127 * config/s390/s390x.mt: Ditto.
9128 * config/s390/s390.mt: Ditto.
9129 * config/sparc/sparclynx.mh: Ditto.
9130 * config/sparc/linux.mh: Ditto.
9131 * config/pa/hppaosf.mh: Ditto.
9132 * config/pa/hppabsd.mh: Ditto.
9133 * config/ns32k/nbsd.mt: Ditto.
9134 * config/mips/vr5000.mt: Ditto.
9135 * config/m68k/sun3os4.mh: Ditto.
9136 * config/m68k/nbsd.mt: Ditto.
9137 * config/m68k/m68klynx.mh: Ditto.
9138 * config/m32r/m32r.mt: Ditto.
9139 * config/i386/x86-64linux.mt: Ditto.
9140 * config/i386/nbsdelf.mt: Ditto.
9141 * config/i386/nbsd.mt: Ditto.
9142 * config/i386/i386lynx.mh: Ditto.
9143
bf0c5130
AC
91442002-05-04 Andrew Cagney <ac131313@redhat.com>
9145
9146 * target.c (debug_print_register): New function. Handle oversize
9147 registers.
9148 (debug_to_fetch_registers): Call.
9149 (debug_to_store_registers): Call.
9150
2ae1c2d2
JB
91512002-05-03 Jim Blandy <jimb@redhat.com>
9152
13a393b0
JB
9153 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9154 (read_type): Doc fix.
9155 * gdbtypes.c (replace_type): Doc fix.
9156
2ae1c2d2
JB
9157 * stabsread.c (multiply_defined_struct): New complaint.
9158 (read_struct_type): If the type we were passed isn't empty, or
9159 incomplete, don't read the new struct type into it; complain,
9160 and return the original type unchanged. Take a new `type_code'
9161 argument, which is the type code for the new type.
9162 (read_type): Rather than storing the type's type code here, pass
9163 it as an argument to read_struct_type, and let that take care of
9164 storing it. That way, we don't overwrite the original type code,
9165 so read_struct_type can use it to decide whether we're overwriting
9166 something we shouldn't.
9167 (complain_about_struct_wipeout): New function.
9168
8de9bdc4
AC
91692002-05-03 Andrew Cagney <ac131313@redhat.com>
9170
9171 * gdbarch.sh: Assert that gdbarch is non-NULL.
9172 * gdbarch.c: Regenerate.
9173
f773fdbb
JM
91742002-05-03 Jason Merrill <jason@redhat.com>
9175
9176 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9177 and return NULL.
9178
0e04a514
ML
91792002-05-03 Michal Ludvig <mludvig@suse.cz>
9180
9181 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9182 (x86_64_dwarf2gdb_regno_map_length),
9183 (x86_64_dwarf2_reg_to_regnum): Added.
9184 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9185 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9186 (_initialize_x86_64_tdep): Synced with the change above.
9187 (x86_64_skip_prologue): Reformulated message.
9188
065432a8
PM
91892002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9190
9191 * f-exp.y: Also use new prev_lexptr variable
9192 to improve error reporting. Based on Michael Snyder
9193 2002-04-24 dated patch to c-exp.y.
9194 * jv-exp.y: Likewise.
9195 * m2-exp.y: Likewise.
9196
a3162708
EZ
91972002-05-02 Elena Zannoni <ezannoni@redhat.com>
9198
9199 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9200 we are dealing with vectors.
9201
03620c38
PM
92022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9203
9204 * config/m68k/tm-nbsd.h: Obvious fix,
9205 correct machine name.
9206
6604db2e
PM
92072002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9208
9209 * p-typeprint.c (pascal_type_print_base): Add support
9210 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9211
0906b739
PM
92122002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9213
9214 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9215 for fondamental pascal 'char' type.
9216
e2625b33
PM
92172002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9218
9219 * p-lang.h (is_pascal_string_type): Declaration changed,
9220 new sixth argument of type char ** added.
361d1df0 9221 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9222 changed. Args length_pos, length_size, string_pos, char_size
9223 can now be NULL. New argument arrayname set to the field
9224 name of the char array. Return value set to char array
9225 field index plus one.
361d1df0 9226 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9227 is_pascal_string_type function.
9228
cf17c188
AC
92292002-05-02 Andrew Cagney <cagney@redhat.com>
9230
9231 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9232 <cagney@redhat.com> change.
9233 * gdbarch.c: Regenerate.
9234
52bca491
AC
92352002-05-02 Andrew Cagney <cagney@redhat.com>
9236
9237 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9238 before probing for a new one. Detect errorenous gdbarch_init
9239 functions.
9240 * gdbarch.c: Regenerate.
9241
d5e72505
AC
92422002-05-01 Andrew Cagney <cagney@redhat.com>
9243
9244 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9245 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9246 * config/v850/tm-v850.h: Ditto. Update copyright.
9247
af566d9f
AC
92482002-04-30 Andrew Cagney <ac131313@redhat.com>
9249
9250 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9251 current_gdbarch.
9252
880d85fa
MS
92532002-04-30 Michael Snyder <msnyder@redhat.com>
9254
94c30b78
MS
9255 * arm-tdep.c: Whitespace clean-ups.
9256 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9257 should have been removed as part of 4/24 change.
9258
6f5987a6
KB
92592002-04-30 Kevin Buettner <kevinb@redhat.com>
9260
9261 * rs6000-tdep.c: Added comment describing how fpscr register
9262 numbers were chosen.
9263
1a113c93
MS
92642002-04-30 Michael Snyder <msnyder@redhat.com>
9265
9266 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9267
9a6f53fe
EZ
92682002-04-29 Elena Zannoni <ezannoni@redhat.com>
9269
9270 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9271 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9272 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9273
11ed25ac
KB
92742002-04-29 Kevin Buettner <kevinb@redhat.com>
9275
9276 From Louis Hamilton <hamilton@redhat.com>:
9277 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9278 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9279 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9280 not bfd-private xcoff data, to determine wordsize.
9281 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9282
ae232405
AC
92832002-04-29 Andrew Cagney <ac131313@redhat.com>
9284
9285 GDB 5.2 released from 5.2 branch.
9286
91fd20f7
ML
92872002-04-29 Michal Ludvig <mludvig@suse.cz>
9288
9289 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9290 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9291 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9292
2dc5091b
EZ
92932002-04-29 Elena Zannoni <ezannoni@redhat.com>
9294
9295 * rs6000-tdep.c (rs6000_extract_return_value,
9296 rs6000_store_return_value): Handle returning vectors.
9297 (rs6000_gdbarch_init): Use
9298 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9299 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9300 New function.
9301 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9302 vectors.
9303 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9304 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9305
2b9848d8
PM
93062002-04-24 Pierre Muller <ics.u-strasbg.fr>
9307
9308 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9309 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9310 with fprintf_unfiltered (gdb_stderr,...).
9311
f8d17dc5
PM
93122002-04-24 Pierre Muller <ics.u-strasbg.fr>
9313
9314 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9315 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9316 Replace fprintf (stderr,...
9317 with fprintf_unfiltered (gdb_stderr,....
9318 * remote-es.c: Likewise.
9319 * remote-os9k.c: Likewise.
9320 * remote-st.c: Likewise.
9321
2f2f1ad1
AS
93222002-04-28 Andreas Schwab <schwab@suse.de>
9323
9324 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9325 linux-proc.o and gcore.o.
9326
b6779aa2
AC
93272002-04-26 Michal Ludvig <mludvig@suse.cz>
9328
9329 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9330 code without frame pointers.
9331
7e57f5f4
AC
93322002-04-26 Andrew Cagney <ac131313@redhat.com>
9333
9334 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9335 ON_STACK is needed.
9336
2ceb85d0
BE
93372002-04-26 Ben Elliston <bje@redhat.com>
9338
9339 * target.c (do_xfer_memory): Correct reference to the new option
9340 "trust-readonly-sections".
9341
f5f8a009
EZ
93422002-04-26 Elena Zannoni <ezannoni@redhat.com>
9343
9344 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9345 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9346 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9347 vectors.
9348 (read_array_type): Record the fact that this array type is really a
9349 vector (i.e. are passed in by value).
9350
5868c862
JT
93512002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9352
9353 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9354 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9355 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9356 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9357 * alpha-linux-tdep.c: Include frame.h.
9358 (alpha_linux_sigcontext_addr): New function.
9359 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9360 alpha_linux_sigcontext_addr.
9361 * alpha-osf1-tdep.c: Include gdbcore.h.
9362 (alpha_osf1_sigcontext_addr): New function.
9363 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9364 alpha_osf1_sigcontext_addr.
9365 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9366 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9367
bfb01f37
AC
93682002-04-26 Andrew Cagney <ac131313@redhat.com>
9369
361d1df0 9370 * stack.c (selected_frame_level):
bfb01f37
AC
9371 (select_frame): Do not set selected_frame_level.
9372 * frame.h (selected_frame_level): Delete declaration.
9373
15813d3f
AC
93742002-04-26 Andrew Cagney <ac131313@redhat.com>
9375
9376 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9377 convert_from_func_ptr-addr when AIX / PowerOpen.
9378
6096c27a
AC
93792002-04-25 Andrew Cagney <ac131313@redhat.com>
9380
9381 * valops.c (hand_function_call): Call
9382 generic_save_call_dummy_addr.
9383 * frame.h (generic_save_call_dummy_addr): Declare.
9384 * blockframe.c (struct dummy_frame): Add fields call_lo and
9385 call_hi.
9386 (generic_find_dummy_frame): Check for PC in range call_lo to
9387 call_hi instead of entry_point_address.
9388 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9389 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9390 (generic_save_call_dummy_addr): New function.
9391
f510d44e
DM
93922002-04-24 David S. Miller <davem@redhat.com>
9393
9394 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9395 sparc_skip_prologue.
9396 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9397 information to find prologue when possible.
9398 (sparc_prologue_frameless_p): Call examine_prologue directly.
9399 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9400 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9401 second argument.
9402 (SKIP_PROLOGUE): Likewise.
9403
15d72a92
JT
94042002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9405
9406 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9407 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9408 indicate that the condition it was testing is always true.
9409 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9410 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9411 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9412
accc6d1f
JT
94132002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9414
9415 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9416 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9417 tdep->jb_pc and tdep->jb_elt_size.
9418 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9419 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9420 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9421 * alpha-nat.c (get_longjmp_target): Remove.
9422 (JB_ELEMENT_SIZE): Ditto.
9423 (JB_PC): Ditto.
9424 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9425 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9426 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9427 to alpha_get_longjmp_target.
9428 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9429 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9430 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9431
1bfdc549
AC
94322002-04-25 Andrew Cagney <ac131313@redhat.com>
9433
9434 * README: Update to GDB 5.2.
9435
1bd316f0
AC
94362002-04-25 Andrew Cagney <ac131313@redhat.com>
9437
9438 * gdbarch.sh (LC_ALL): Set to `c'.
9439
2e5ff58c
TR
94402002-04-25 Theodore A. Roth <troth@verinet.com>
9441
9442 * avr-tdep.c: Ran through gdb_indent.sh.
9443
e33ce519
TR
94442002-04-25 Theodore A. Roth <troth@verinet.com>
9445
9446 * MAINTAINERS: Add myself as AVR maintainer.
9447 * NEWS: Note new target avr.
9448
8818c391
TR
94492002-04-25 Theodore A. Roth <troth@verinet.com>
9450
9451 * Makefile.in: Add support for AVR target.
9452 * configure.tgt: Add support for AVR target.
9453 * avr-tdep.c: New file
9454 * config/avr/avr.mt: New file.
9455
79509c2d
TR
94562002-04-25 Theodore A. Roth <troth@verinet.com>
9457
9458 * MAINTAINERS: Add myself to write-after-approval.
9459
dac8068e
PM
94602002-04-24 Pierre Muller <ics.u-strasbg.fr>
9461
9462 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9463 with fprintf_unfiltered (gdb_stderr,....
9464
25bf3106
PM
94652002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9466
9467 Fix PR gdb/508.
9468 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9469
24467a86
PM
94702002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9471
9472 * p-exp.y: Also use new prev_lexptr variable
9473 to improve error reporting. Based on Michael Snyder
9474 2002-04-24 dated patch to c-exp.y.
9475
95b80706
JT
94762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9477
9478 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9479 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9480 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9481 to 0.
9482 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9483 and struct value.
9484 (FUNCTION_START_OFFSET): Remove.
9485 (BREAKPOINT): Ditto.
9486
e90cc612
JT
94872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9488
9489 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9490 * NEWS: Ditto.
9491
6c72f9f9
JT
94922002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9493
9494 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9495 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9496 alpha_linux_pc_in_sigtramp.
9497 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9498 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9499 alpha_osf1_pc_in_sigtramp.
9500 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9501 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9502 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9503 alphafbsd_pc_in_sigtramp.
9504 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9505 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9506 alphanbsd_pc_in_sigtramp.
9507 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9508 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9509
5e4f3379
JT
95102002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9511
9512 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9513
da8ca43d
JT
95142002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9515
9516 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9517 alphanbsd-tdep.c.
9518 (alphanbsd-nat.o): New dependency list.
9519 (alphanbsd-tdep.o): Ditto.
9520 * NEWS: Note new native NetBSD/alpha configuration.
9521 * alphanbsd-nat.c: New file.
9522 * alphanbsd-tdep.c: Ditto.
9523 * configure.host (alpha*-*-netbsd*): New host.
9524 * configure.tgt (alpha*-*-netbsd*): New target.
9525 * config/alpha/nbsd.mh: New file.
9526 * config/alpha/nbsd.mt: Ditto.
9527 * config/alpha/nm-nbsd.h: Ditto.
9528 * config/alpha/tm-nbsd.h: Ditto.
9529
36a6271d
JT
95302002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9531
9532 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9533 (alpha-osf1-tdep.o): New dependency list.
9534 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9535 and skip_sigtramp_frame members.
9536 * alpha-linux-tdep.c: Include gdbcore.h.
9537 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9538 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9539 * alpha-osf1-tdep.c: New file.
9540 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9541 alpha-osf1-dep.c.
9542 (alpha_frame_past_sigtramp_frame): New function.
9543 (alpha_dynamic_sigtramp_offset): Ditto.
9544 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9545 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9546 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9547 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9548 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9549 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9550 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9551 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9552 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9553 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9554 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9555 to find_solib_trampoline_target.
9556 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9557 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9558 (SKIP_TRAMPOLINE_CODE): Remove.
9559 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9560 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9561 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9562 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9563 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9564 (PROC_SIGTRAMP_MAGIC): Ditto.
9565 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9566 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9567 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9568 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9569 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9570
2f4bc57b
JT
95712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9572
9573 * NEWS: Note that Alpha targets are now multi-arch.
9574
665132f9
MS
95752002-04-24 Michael Snyder <msnyder@redhat.com>
9576
9577 * parser-defs.h (prev_lexptr): New external variable.
9578 * parse.c (parse_exp_1): Set prev_lexptr to null before
9579 calling the language-specific parser.
9580 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9581 (yyerror): Use prev_lexptr in error reporting.
9582
32872fa7
DJ
95832002-04-24 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9586 * gregset.h: If FILL_FPXREGSET is defined, provide
9587 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9588 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9589 is defined, call fill_fpxregset.
9590
57e76fac
MS
95912002-04-24 Roland McGrath <roland@frob.com>
9592
9593 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9594 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9595 (supply_gregset, supply_fpregset): New functions.
9596
9597 * gnu-nat.c (gnu_find_memory_regions): New function.
9598 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9599 (gnu_xfer_memory): Add a cast.
9600
f43845b3
MS
96012002-04-24 Michael Snyder <msnyder@redhat.com>
9602
361d1df0 9603 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9604 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9605 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9606 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9607 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9608 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9609
a0abec03
AC
9610Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9611
9612 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9613 NUM_PSEUDO_REGS can be used.
9614
d7bd68ca
AC
96152002-04-24 Andrew Cagney <ac131313@redhat.com>
9616
9617 * arch-utils.h: Update copyright.
9618
9619 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9620 * gdbarch.h, gdbarch.c: Re-generate.
9621
9622 * inferior.h (IN_SIGTRAMP): Delete definition.
9623 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9624 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9625
9626 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9627 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9628 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9629 (find_proc_framesize): Ditto.
9630 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9631 (alpha_init_extra_frame_info): Ditto.
9632 * infrun.c (handle_inferior_event): Ditto.
9633 (handle_inferior_event): Ditto.
9634 (check_sigtramp2): Ditto.
9635 * blockframe.c (create_new_frame): Ditto.
9636 (get_prev_frame): Ditto.
9637 * ppc-linux-tdep.c: Update comments.
9638 * i386-linux-tdep.c: Update comments.
9639 * breakpoint.c (bpstat_what): Update comment.
9640
4867e41e
DM
96412002-04-24 David S. Miller <davem@redhat.com>
9642
21d83aa5
DM
9643 * i960-tdep.c (register_in_window_p): New function.
9644 (i960_find_saved_register): Use it instead of
9645 REGISTER_IN_WINDOW_P.
9646 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9647
4867e41e
DM
9648 * symtab.h (find_stab_function_addr): Kill extern.
9649 * minsyms.c (find_stab_function_addr): Remove from here...
9650 * dbxread.c: ... to here, and mark it static.
9651
69cdf6a2
DM
96522002-04-20 David S. Miller <davem@redhat.com>
9653
9654 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9655 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9656
5a595886
DM
96572002-04-21 David S. Miller <davem@redhat.com>
9658
9659 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9660 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9661 (vx_write_register): Likewise.
9662
1da1a192
JB
96632002-04-23 J. Brobecker <brobecker@gnat.com>
9664
9665 * source.c (is_regular_file): New function.
9666 (openp): Check wether file to open is a regular file
9667 to avoid opening directories.
9668
baa6f10b
JT
96692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9670
9671 * findvar.c (extract_signed_integer): Cast printf argument
9672 to suppress format warning.
9673 (extract_unsigned_integer): Likewise.
9674 * infcmd.c (registers_info): Likewise.
9675 * top.c (get_prompt_1): Likewise.
9676 * valops.c (value_assign): Likewise.
9677 * valprint.c (print_decimal): Likewise.
9678
b2c4da81
L
96792002-04-22 H.J. Lu (hjl@gnu.org)
9680
9681 * c-exp.y (typebase): Support
361d1df0 9682
b2c4da81
L
9683 [long|long long|short] [signed|unsigned] [int|]
9684
9685 and
9686
9687 signed [long|long long|short] int
9688
f267bd6a
JT
96892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9690
9691 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9692 and vax-tdep.h.
9693 * vax-tdep.h: New file.
9694 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9695 Make several routines static.
9696 (vax_get_saved_register): New function.
9697 (vax_gdbarch_init): New function.
9698 (_initialize_vax_tdep): Register vax_gdbarch_init.
9699 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9700 Remove macros now under the control of gdbarch.
9701
da3c6d4a
MS
97022002-04-22 Michael Snyder <msnyder@redhat.com>
9703
11d3b27d
MS
9704 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9705 Some whitespace and coding standards tweaks.
da3c6d4a 9706
a33f7558
JT
97072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9708
9709 * vax-tdep.c: Include regcache.h.
9710 (vax_call_dummy_words): New.
9711 (sizeof_vax_call_dummy_words): New.
9712 (vax_fix_call_dummy): New function.
9713 (vax_saved_pc_after_call): Ditto.
9714 * config/vax/tm-vax.h: Don't include regcache.h.
9715 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9716 (CALL_DUMMY): Remove.
9717 (CALL_DUMMY_WORDS): Define.
9718 (SIZEOF_CALL_DUMMY_WORDS): Define.
9719 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9720
47a73475
MS
97212002-04-18 Michael Snyder <msnyder@redhat.com>
9722
9723 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9724
52efde73
JT
97252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9726
9727 * vax-tdep.c (vax_frame_chain): New function.
9728 (vax_push_dummy_frame): Ditto.
9729 (vax_pop_frame): Ditto.
9730 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9731 (FRAMELESS_FUNCTION_INVOCATION): Use
9732 generic_frameless_function_invocation_not.
9733 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9734 (POP_FRAME): Use vax_pop_frame.
9735
ea74468c
JT
97362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9737
9738 * vax-tdep.c (vax_store_struct_return): New function.
9739 (vax_extract_return_value): Ditto.
9740 (vax_store_return_value): Ditto.
9741 (vax_extract_struct_value_address): Ditto.
9742 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9743 vax_store_struct_return.
9744 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9745 (STORE_RETURN_VALUE): Use vax_store_return_value.
9746 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9747
5516aa92
JT
97482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9749
9750 * vax-tdep.c (vax_frame_saved_pc): New function.
9751 (vax_frame_args_address_correct): Ditto.
9752 (vax_frame_args_address): Ditto.
9753 (vax_frame_locals_address): Ditto.
9754 (vax_frame_num_args): Move code to be in proximity to
9755 other frame-related functions.
9756 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9757 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9758 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9759 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9760 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9761
36af0b35
L
97622002-04-22 H.J. Lu (hjl@gnu.org)
9763
9764 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9765 includedir.
9766
ab62c900
JT
97672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9768
9769 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9770 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9771 (FRAME_INIT_SAVED_REGS): New macro.
9772
7232b100
JT
97732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9774
9775 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9776
b70d2aee
JT
97772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9778
9779 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9780 where needed.
9781 (fetch_osf_core_registers): Likewise.
9782 (supply_gregset): Likewise.
9783
a0e8a2d1 97842002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9785
a0e8a2d1
JB
9786 * symfile.h (get_section_index): Define.
9787 * symfile.c (get_section_index): New function.
9788 * mdebugread.c (SC_IS_SBSS): New macro.
9789 (SC_IS_BSS): Return true for the scBss storage class only, as
9790 the scSBss storage class refers to the .sbss section.
9791 (parse_partial_symbols): Discard the symbols which associated
9792 section does not exist.
9793 Make sure to use the .sbss section index for symbols which
9794 storage class is scBss, rather than using the .bss section index.
9795
51eb8b08
JT
97962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9797
9798 * vax-tdep.c: Update copyright years.
9799 (vax_register_name): New function.
9800 (vax_register_byte): Ditto.
9801 (vax_register_raw_size): Ditto.
9802 (vax_register_virtual_size): Ditto.
9803 (vax_register_virtual_type): Ditto.
9804 * config/vax/tm-vax.h: Update copyright years.
9805 (REGISTER_NAMES): Remove.
9806 (REGISTER_NAME): Define.
9807 (REGISTER_BYTE): Use vax_register_byte.
9808 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9809 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9810 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9811
6cc1c0a8
AC
98122002-04-21 Andrew Cagney <ac131313@redhat.com>
9813
9814 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9815 declaration
9816 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9817
9319a2fe
DM
98182002-04-21 David S. Miller <davem@redhat.com>
9819
9820 * arch-utils.c (generic_prologue_frameless_p): Kill
9821 SKIP_PROLOGUE_FRAMELESS_P code.
9822 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9823 references.
9824 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9825 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9826 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9827 references.
9828 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9829 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9830 (sparc_gdbarch_init): Pass it to
9831 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9832
e9ed6d01
JT
98332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9834
9835 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9836 (alphabsd-nat.o): New dependency list.
9837
36012033
JT
98382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9839
9840 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9841 alphafbsd-tdep.c.
9842 (alpha-linux-tdep.o): New dependency list.
9843 (alphafbsd-tdep.o): Likewise.
9844
3379287a
JT
98452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9846
9847 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9848 to here...
9849 * alpha-tdep.c: ...from here.
9850 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9851
4bcbd6cb
JT
98522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9853
9854 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9855 prototype from here...
9856 * alpha-tdep.h: ...to here.
9857
b31da25e
AC
98582002-04-21 Andrew Cagney <ac131313@redhat.com>
9859
9860 * frame.h (selected_frame_level): Document as deprecated.
9861 (frame_relative_level): Declare.
9862 * stack.c (frame_relative_level): New function.
9863 (selected_frame_level): Document as deprecated.
9864 (select_frame): Do not set the selected_frame_level.
9865
9866 * stack.c (frame_info, record_selected_frame): Update.
9867 (frame_command, current_frame_command): Update.
9868 (up_silently_base, up_command, down_silently_base): Update.
9869 (down_command): Update.
9870 * inflow.c (kill_command): Update.
9871 * tracepoint.c (finish_tfind_command): Update.
9872 * corelow.c (core_open): Update.
9873 * thread.c (info_threads_command): Update.
9874 (do_captured_thread_select): Update.
9875 * infcmd.c (finish_command): Update.
9876 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9877
9c1d6fe5
JT
98782002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9879
9880 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9881
ab89facf
AC
98822002-04-21 Andrew Cagney <ac131313@redhat.com>
9883
9884 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9885 type const.
9886
82a4efa1
JT
98872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9888
9889 * alphafbsd-tdep.c: Update copyright years. Include
9890 alpha-tdep.h.
9891 (alphafbsd_use_struct_convention): Make static.
9892 (alphafbsd_init_abi): New function.
9893 (_initialize_alphafbsd_tdep): New function.
9894 * config/alpha/tm-fbsd.h: Update copyright years.
9895 (USE_STRUCT_CONVENTION): Remove.
9896
44dffaac
JT
98972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9898
9899 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9900 an Alpha ABI variant.
9901 (alpha_abi_handler_list): Declare.
9902 (alpha_gdbarch_register_os_abi): New function.
9903 (alpha_gdbarch_init): Give registered ABI variant handlers a
9904 chance to tweak the gdbarch once we have set up defaults.
9905 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9906
65585be4
JT
99072002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9908
9909 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9910 to standard_coerce_float_to_double.
9911 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9912
d9b023cc
JT
99132002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9914
9915 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9916 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9917 from gdbarch_tdep rather than a constant.
9918 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9919 the default text address for all Alpha Unix ABIs.
9920 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9921 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9922
dc129d82
JT
99232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9924
9925 * alpha-tdep.h: New file. Includes several Alpha target constants
9926 taken from...
9927 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9928 let gdbarch deal with.
9929 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9930 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9931 to dependency list.
9932 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9933 Alpha target register names.
9934 * alphabsd-nat.c: Likewise.
9935 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9936 Alpha target register names. Make serveral routines static.
9937 (alpha_get_saved_register): New function.
9938 (alpha_abi_names): New.
9939 (process_note_abi_tag_sections): New function.
9940 (get_elfosabi): New function.
9941 (alpha_gdbarch_init): New function.
9942 (alpha_dump_tdep): New function.
9943 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9944
d49d1e0a
AC
99452002-04-21 Andrew Cagney <ac131313@redhat.com>
9946
9947 * frame.c (find_saved_register): Delete #ifdef
9948 HAVE_REGISTER_WINDOWS code.
9949 * config/sparc/tm-sparc.h: Update comments.
9950 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9951
92e8c9ed
AC
99522002-04-21 Andrew Cagney <ac131313@redhat.com>
9953
9954 * i960-tdep.c (i960_find_saved_register): New function.
9955 (i960_get_saved_register): New function.
9956 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9957 (i960_get_saved_register): Declare.
9958 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9959
e1925118
DM
99602002-04-20 David S. Miller <davem@redhat.com>
9961
9962 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9963
29673b29
AC
99642002-04-20 Andrew Cagney <ac131313@redhat.com>
9965
9966 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9967 instead of NUM_PSEUDO_REGS.
9968
6c86dcd5
DM
99692002-04-20 David S. Miller <davem@redhat.com>
9970
9971 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9972 GDB_MULTI_ARCH_PARTIAL
9973 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9974 define, let tm-sp64.h do it.
9975
aa40ec90
JT
99762002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9977
9978 * frame.c (find_saved_register): Avoid a NULL pointer
9979 dereference and actually walk the frame list.
9980
0f79675b
AC
99812002-04-20 Andrew Cagney <ac131313@redhat.com>
9982
9983 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9984 sorted in most most-recent-used order. Document.
9985 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9986
f91305dd 99872002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9988
9989 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9990 instead of ->prev.
9991 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9992 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9993 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9994 instead of ->prev.
9995
73d322b1
EZ
99962002-04-19 Elena Zannoni <ezannoni@redhat.com>
9997
9998 Fix PR gdb/471.
9999 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10000 (build_builtin_type_vec128): Ditto.
10001 (append_composite_type_field): Fix calculation of type length in
10002 union case.
10003
ccd9a834
EZ
100042002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10005
10006 * config/djgpp/README: Update.
10007
10008 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10009 compiler warnings.
10010
a57f9e49
JT
100112002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10012
10013 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10014 (alpha_setup_arbitrary_frame): ...to this.
10015 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10016 for alpha_setup_arbitrary_frame.
10017
f4f9705a
AC
100182002-04-18 Andrew Cagney <cagney@redhat.com>
10019
10020 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10021 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10022
f4f9705a
AC
10023 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10024 * target.h (memory_breakpoint_from_pc): Update declaration.
10025 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10026
10027 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10028 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10029 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10030 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10031 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10032 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10033 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10034 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10035 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10036 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10037 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10038 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10039
10040 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10041 const pointer.
10042 * monitor.c (monitor_insert_breakpoint): Ditto.
10043 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10044
10045 * config/mcore/tm-mcore.h: Update copyright.
10046 * mem-break.c: Ditto.
10047 * xstormy16-tdep.c: Ditto.
10048
29f319b8
PM
100492002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10050
10051 * p-exp.y: Add precedence rule for '^' token.
10052 This removes the shift/reduce conflicts.
10053 Remove the comment concerning these shift/reduce conflicts.
10054
ebeac11a
EZ
100552002-04-18 Elena Zannoni <ezannoni@redhat.com>
10056
10057 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10058 (registers_powerpc_nofp): New register set for processors
10059 without floating point unit.
10060
27c31547
DM
100612002-04-18 David S. Miller <davem@redhat.com>
10062
10063 * MAINTAINERS: Add myself to write-after-approval.
10064
47a73475
MS
100652002-04-17 Michael Snyder <msnyder@redhat.com>
10066
10067 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10068
953836b2
AC
100692002-04-17 Andrew Cagney <ac131313@redhat.com>
10070
10071 * rs6000-tdep.c (frame_initial_stack_address): Use
10072 frame_register_read to read the alloca_reg.
10073
8b0d4340
AC
100742002-04-17 Andrew Cagney <ac131313@redhat.com>
10075
10076 * frame.c (find_saved_register): Find saved registers in the next
10077 not prev frame.
10078 Fix PR gdb/365.
10079
d8864532
AC
100802002-04-17 Andrew Cagney <ac131313@redhat.com>
10081
10082 * gdbarch.sh (LANG): Set to ``c''.
10083
36cc83a3 100842002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10085
36cc83a3 10086 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10087
2f4150cc 100882002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10089
10090 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10091 Update copyright.
10092
628703c6 10093 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10094 Also fix PR gdb/391.
361d1df0 10095
56157b4a
AC
100962002-04-14 Andrew Cagney <ac131313@redhat.com>
10097
10098 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10099 * aclocal.m4, configure: Re-generate.
10100 Fix PR gdb/391.
361d1df0 10101
6d1e3329
EZ
101022002-04-14 Elena Zannoni <ezannoni@redhat.com>
10103
10104 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10105 instead of tm_print_insn.
10106
cb06fa07
EZ
101072002-04-14 Elena Zannoni <ezannoni@redhat.com>
10108
10109 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10110
f208ba17
AC
101112002-04-14 Andrew Cagney <ac131313@redhat.com>
10112
10113 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10114 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10115 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10116
20f01a46
DH
101172002-04-12 Don Howard <dhoward@redhat.com>
10118
10119 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10120 max_user_call_depth.
10121 (init_cmd_lists): Initialize the new value;
10122 * cli/cli-script.c (execute_user_command): Limit the call depth of
10123 user defined commands. This avoids a core-dump when user commands
10124 are infinitly recursive.
10125
a88376a3
KB
101262002-04-12 Kevin Buettner <kevinb@redhat.com>
10127
10128 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10129 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10130 from tdep struct instead of DEFAULT_LR_SAVE.
10131 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10132 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10133 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10134
f2172603
MS
101352002-04-12 Michael Snyder <msnyder@redhat.com>
10136
694f61fb 10137 * Remote.c: Spelling fix.
20fe79c8
MS
10138 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10139 If no symbol found for "sbrk", try "_sbrk".
10140 (make_output_phdrs): Use bfd_section_name.
10141 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10142 * eval.c: Indentation fix-ups.
169a7369
MS
10143 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10144 in case it gets applied to an address that is already
10145 in the instruction space.
de74f71f
MS
10146 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10147 * symfile.c: Fix indentation, long lines.
f2172603
MS
10148 * source.c: White space fix-up.
10149
cda5a58a
AC
101502002-04-12 Andrew Cagney <cagney@redhat.com>
10151
10152 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10153 * frame.c (frame_register_read): New function. Return non-zero on
10154 success.
10155 (read_relative_register_raw_bytes_for_frame): Delete.
10156 (read_relative_register_raw_bytes): Delete.
10157 * frame.h (frame_register_read): Declare.
10158 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10159 * sh-tdep.c: Ditto.
10160 * infcmd.c (do_registers_info): Ditto.
10161 * hppa-tdep.c: Ditto.
10162 * rs6000-tdep.c: Ditto.
10163 * h8500-tdep.c: Ditto.
10164 * mips-tdep.c: Ditto.
10165 * h8300-tdep.c: Ditto.
10166 * z8k-tdep.c: Ditto.
10167
2ea5f656
KB
101682002-04-12 Kevin Buettner <kevinb@redhat.com>
10169
10170 From Jimi X <jimix@watson.ibm.com>:
10171 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10172 64-bit SysV ABI.
10173
27b15785
KB
101742002-04-12 Kevin Buettner <kevinb@redhat.com>
10175
10176 From Jimi X <jimix@watson.ibm.com>:
10177 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10178 bfd info.
10179
5d57ee30
KB
101802002-04-12 Kevin Buettner <kevinb@redhat.com>
10181
10182 From Jimi X <jimix@watson.ibm.com>:
10183 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10184 register sets for these processor variants.
10185
bc1e36ca
DJ
101862002-04-11 Daniel Jacobowitz <drow@mvista.com>
10187
bc1e36ca
DJ
10188 * regformats/reg-ppc.dat: Support FPSCR.
10189
e3f36dbd
KB
101902002-04-11 Kevin Buettner <kevinb@redhat.com>
10191
10192 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10193 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10194 Add fpscr as an invalid/unfetchable register.
10195 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10196 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10197 (fill_fpregset): Add support for register fpscr.
10198 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10199 (fill_gregset): Account for the fact that register ``mq'' might
10200 not exist.
10201 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10202 (registers_power): Add fpscr to register set at slot 71.
10203 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10204 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10205
943c9c25
MS
102062002-04-11 Michael Snyder <msnyder@redhat.com>
10207
10208 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10209 * configure: Regenerate.
10210 * config.in: Regenerate.
10211 * acconfig.h: Add define for _SYSCALL32.
10212 * core-sol2.c: Remove #define _SYSCALL32.
10213 * solib-legacy.c: Remove #define _SYSCALL32.
10214
d8c0a2e7
AC
102152002-04-10 Andrew Cagney <ac131313@redhat.com>
10216
10217 * stack.c (select_frame): Cleanup internal error message, do not
10218 use %p.
10219
7cc19214
AC
102202002-04-10 Andrew Cagney <ac131313@redhat.com>
10221
10222 * stack.c (select_frame): Check that selected_frame and the
10223 specified level are as expected.
10224 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10225 Update copyright.
10226 * frame.h (struct frame_info): Add field `level'. Update
10227 copyright.
10228 Work-in-progress PR gdb/464.
10229
67a2b77e
AC
102302002-04-10 Andrew Cagney <ac131313@redhat.com>
10231
10232 * maint.c (maint_print_section_info): Rename print_section_info.
10233 (print_bfd_section_info, print_objfile_section_info): Update.
10234 * inferior.h (struct gdbarch): Add opaque declaration.
10235 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10236 * gdbarch.h: Regenerate.
10237
8cfda98c
ML
102382002-04-10 Michal Ludvig <mludvig@suse.cz>
10239
10240 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10241 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10242 (kernel_u_size): Added.
10243 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10244 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10245
ca439ad2 102462002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10247
ca439ad2
JI
10248 * valarith.c (find_size_for_pointer_math): New function, either returns
10249 the size for a pointer's target, returns 1 for void *, or errors for
10250 incomplete types.
10251 (value_add, value_sub): use find_size_for_pointer_math.
10252
2f2893d9
DJ
102532002-04-09 Daniel Jacobowitz <drow@mvista.com>
10254
10255 * linux-low.c (linux_look_up_symbols): New hook.
10256 (linux_target_ops): Add linux_look_up_symbols.
10257 * remote-utils.c (decode_address): New function.
10258 (look_up_one_symbol): New function.
10259 * server.c (handle_query): Call target look_up_symbols hook.
10260 * server.h (look_up_one_symbol): Add prototype.
10261 * target.h (struct target_ops): Add look_up_symbols hook.
10262
96cb11df
AC
102632002-04-09 Andrew Cagney <ac131313@redhat.com>
10264
10265 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10266 override FP_REGNUM with frame->fp. Update copyright.
10267 * parse.c (num_std_regs, std_regs): Delete.
10268 (target_map_name_to_register): Do not search std_regs. Update
10269 function description.
10270 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10271 declarations. Update copyright.
10272 Fix PR gdb/251.
361d1df0 10273
97658e92
DJ
102742002-04-09 Daniel Jacobowitz <drow@mvista.com>
10275
10276 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10277 after the last symbol in a block.
10278
6044e3eb
PM
102792002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10280
10281 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10282 is non zero as a found symbol.
10283
0406ec40
AC
102842002-04-08 Andrew Cagney <ac131313@redhat.com>
10285
10286 * findvar.c: Include "builtin-regs.h".
10287 (value_of_register): Call value_of_builtin_reg when applicable.
10288 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10289 (target_map_name_to_register): Call
10290 builtin_reg_map_name_to_regnum.
10291 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10292 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10293 (builtin_regs_h): Define.
10294 (builtin-regs.o): New target.
10295 (findvar.o): Add $(builtin_regs_h).
10296 * builtin-regs.c, builtin-regs.h: New files.
10297 * std-regs.c: New file.
10298 Partial fix for PR gdb/251.
10299
56a6dfb9
KB
103002002-04-08 Kevin Buettner <kevinb@redhat.com>
10301
10302 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10303 it's no longer required.
10304
3a808432
AC
103052002-04-08 Andrew Cagney <ac131313@redhat.com>
10306
10307 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10308
7c40d541
KB
103092002-04-08 Kevin Buettner <kevinb@redhat.com>
10310
10311 From Jimi X <jimix@watson.ibm.com>:
10312 * rs6000-tdep.c (rs6000_software_single_step): Use
10313 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10314 and size. Use target_insert_breakpoint() and
10315 target_remove_breakpoint() to insert and remove breakpoints
10316 instead of explicit memory reads and writes.
10317
cc9836a8
KB
103182002-04-08 Kevin Buettner <kevinb@redhat.com>
10319
10320 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10321 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10322 ELF_OBJECT_FORMAT ifdef.
10323
7495d1dc
KB
103242002-04-08 Kevin Buettner <kevinb@redhat.com>
10325
10326 From Jimi X <jimix@watson.ibm.com>:
10327 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10328
4288e836
KB
103292002-04-08 Kevin Buettner <kevinb@redhat.com>
10330
10331 From Jimi X <jimix@watson.ibm.com>:
10332 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10333 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10334
a4e4e501
MK
103352002-04-07 Mark Kettenis <kettenis@gnu.org>
10336
10337 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10338 s/asprintf/xasprintf/.
10339 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10340
006defba
AC
103412002-04-07 Andrew Cagney <ac131313@redhat.com>
10342
10343 I believe Jeff Law denies responsability for this one:
10344 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10345 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10346 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10347 Work-around for PR gdb/366.
10348
7aa83cac
EZ
103492002-04-07 Elena Zannoni <ezannoni@redhat.com>
10350
10351 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10352 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10353 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10354
cf1fcca1
EZ
103552002-04-07 Elena Zannoni <ezannoni@redhat.com>
10356
10357 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10358 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10359 information.
10360
3f289e6f
AC
103612002-04-07 Andrew Cagney <ac131313@redhat.com>
10362
10363 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10364 maintainer.
10365
129188f6
AC
103662002-04-07 Andrew Cagney <ac131313@redhat.com>
10367
10368 * README (Reporting Bugs in GDB): Document the bug web page as the
10369 prefered way of submitting bugs.
10370 Fix PR gdb/402.
10371
1200cd6e
AC
103722002-04-06 Andrew Cagney <ac131313@redhat.com>
10373
10374 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10375 -1. Update comment.
10376 * gdbarch.h, gdbarch.c: Re-generate.
10377
2853c33c
AS
103782002-04-07 Andreas Schwab <schwab@suse.de>
10379
10380 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10381 buffer to regcache_collect.
10382
c2169756
AC
103832002-04-06 Andrew Cagney <ac131313@redhat.com>
10384
10385 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10386 * gdbarch.c, gdbarch.h: Re-generate.
10387
25f1b008
AC
103882002-04-06 Andrew Cagney <ac131313@redhat.com>
10389
10390 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10391 declaration. Fix -Werror.
10392
59263426
DJ
103932002-04-05 Daniel Jacobowitz <drow@mvista.com>
10394
10395 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10396 * gdbarch.c: Regenerate.
10397
f5db4da3
MS
103982002-04-05 Michael Snyder <msnyder@redhat.com>
10399
80f8a6eb
MS
10400 * breakpoint.c (clear_command): Rewrite middle section to
10401 combine two loops with identical control conditions.
10402 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10403 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10404
ad3dcc5c
L
104052002-04-05 H.J. Lu (hjl@gnu.org)
10406
10407 * solib-svr4.c (bkpt_names): Add "__start".
10408
f32e7a74
AC
104092002-04-04 Andrew Cagney <ac131313@redhat.com>
10410
10411 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10412 as test for 64 bit target.
10413
8227c0ff
AC
104142002-04-05 Andrew Cagney <ac131313@redhat.com>
10415
10416 * h8500-tdep.c (h8500_write_fp): Delete function.
10417 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10418 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10419 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10421 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10422 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10423 (s390_write_fp):
10424 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10425 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10426 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10427 (d10v_write_fp): Delete function.
10428 * inferior.h (write_fp, generic_target_write_fp): Delete
10429 declarations.
10430 * regcache.c (generic_target_write_fp): Delete function.
10431 (write_fp): Delete function.
10432 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10433 * gdbarch.h, gdbarch.c: Regenerate.
10434 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10435 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10436 (sparc64_write_fp): Delete declaration.
10437 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10438 (h8500_write_fp): Delete declaration.
10439
2757dd86
AC
104402002-04-04 Andrew Cagney <ac131313@redhat.com>
10441
10442 * sparc-tdep.c (sparc64_write_fp): Delete.
10443 (sparc_push_dummy_frame): Replace write_fp call with code to store
10444 the FP directly.
10445 (sparc_gdbarch_init): Do not initialize write_fp.
10446
c69255e1
KB
104472002-04-05 Kevin Buettner <kevinb@redhat.com>
10448
10449 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10450 clause.
10451
ae767bfb
JB
104522002-03-29 Jim Blandy <jimb@redhat.com>
10453
10454 * stack.c (get_selected_block): Add new argument `addr_in_block',
10455 used to return the exact code address we used to select the block,
10456 not just the block.
10457 * blockframe.c (get_frame_block, get_current_block): Same.
10458 * frame.h (get_frame_block, get_current_block,
10459 get_selected_block): Update declarations.
10460 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10461 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10462
84d2ac95
MS
104632002-04-05 Michael Snyder <msnyder@redhat.com>
10464
10465 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10466 warning message.
10467
596aa3bf
JB
104682002-04-05 J. Brobecker <brobecker@gnat.com>
10469
10470 * utils.c (xfullpath): New function.
10471 * defs.h (xfullpath): Add declaration.
10472 * source.c (openp): Use xfullpath in place of gdb_realpath to
10473 avoid resolving the basename part of filenames when the
10474 associated file is a symbolic link. This fixes a potential
10475 inconsistency between the filenames known to GDB and the
10476 filenames it prints in the annotations.
10477 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10478 to be able to match a filename with either the real filename, or
10479 the name of any symbolic link to this file.
10480 (lookup_partial_symtab): Ditto.
10481
c02f5703
MS
104822002-04-04 Michael Snyder <msnyder@redhat.com>
10483
10484 * breakpoint.c: Add support for hardware breakpoints in overlays.
10485 (overlay_events_enabled): New state variable.
10486 (insert_breakpoints): Use overlay_events_enabled to decide
10487 whether to attempt to set a breakpoint at the overlay load addr.
10488 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10489 (remove_breakpoint): Use overlay_events_enabled to decide
10490 whether breakpoints need to be removed from overlay load addr.
10491 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10492 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10493 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10494 disable_overlay_breakpoints): Update overlay_events_enabled.
10495
5fb290d7
DJ
104962002-04-04 Daniel Jacobowitz <drow@mvista.com>
10497
10498 * dwarf2read.c (struct function_range): New.
10499 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10500 (check_cu_functions): New.
10501 (read_file_scope): Initialize global function lists.
10502 Call dwarf_decode_line after processing children.
10503 (read_func_scope): Add to global function list.
10504 (dwarf_decode_lines): Call check_cu_functions everywhere
10505 record_line is called. Call record_line with a linenumber
10506 of 0 to mark sequence ends.
10507
7b3fabf0
ML
105082002-04-04 Michal Ludvig <mludvig@suse.cz>
10509
361d1df0 10510 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10511 change sync with glibc.
10512
bce58c09
JB
105132002-04-03 Jim Blandy <jimb@redhat.com>
10514
10515 * configure.in: Call AC_C_INLINE.
10516 * configure: Regenerated.
361d1df0 10517
2fccf04a
DJ
105182002-04-01 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10521 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10522
2d1bfe2e
MK
105232002-03-31 Mark Kettenis <kettenis@gnu.org>
10524
a5941fbf
MK
10525 * NEWS: Mention gcore support on FreeBSD/i386.
10526
a90cd31d
MK
10527 * fbsd-proc.c: New file.
10528 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10529 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10530
2d1bfe2e
MK
10531 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10532 while statement.
10533
9eb6e5a1
JB
105342002-03-29 Jim Blandy <jimb@redhat.com>
10535
10536 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10537 unescaped newlines in string literals, but newer ones don't. So
10538 escape them.
10539
f02df580
MS
105402002-03-26 Michael Snyder <msnyder@redhat.com>
10541 Andrew Cagney <cagney@redhat.com>
10542
361d1df0 10543 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10544 restore file to memory.
10545 * cli/cli-dump.h: New file.
10546 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10547 * NEWS: Mention new commands.
f02df580 10548
109f874e
MS
105492002-03-28 Michael Snyder <msnyder@redhat.com>
10550
10551 * symfile.c (symbol_file_add): Move test for null symbols to later.
10552
520f6ade
AC
105532002-03-27 Andrew Cagney <ac131313@redhat.com>
10554
10555 From veksler at il.ibm.com:
10556 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10557 the xstrduped original path.
10558 Fix PR gdb/417.
10559
d4654627
MS
105602002-03-27 Michael Snyder <msnyder@redhat.com>
10561
10562 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10563 * infcmd.c (_initialize_infcmd): Ditto.
10564 * language.c (_initialize_language): Ditto.
10565 * symfile.c (_initialize_symfile): Ditto.
10566 * top.c (_init_main): Ditto.
10567 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10568
6be8bc0c
EZ
105692002-03-27 Elena Zannoni <ezannoni@redhat.com>
10570
10571 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10572 vector registers handling.
10573 (skip_prologue): Handle new AltiVec instructions. Fill in new
10574 fields of frame data.
10575 (frame_get_saved_regs): Fill in information for AltiVec registers.
10576
12af6855
JB
105772002-03-27 Jim Blandy <jimb@redhat.com>
10578
10579 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10580 a function; leave this macro here to invoke that function.
10581 (symbol_init_mangled_name): Declaration for that function.
10582 * symtab.c (symbol_init_mangled_name): New function.
10583
dc672865
AC
105842002-03-27 Andrew Cagney <ac131313@redhat.com>
10585
10586 * valarith.c: Replace strerror with safe_strerror.
10587 * tracepoint.c: Ditto.
10588 * lin-lwp.c: Ditto.
10589 * go32-nat.c: Ditto.
10590 * inflow.c: Ditto.
10591 * gnu-nat.c: Ditto.
10592
d96429cd
AS
105932002-03-27 Andreas Schwab <schwab@suse.de>
10594
10595 * event-top.c (command_line_handler): Remove useless if.
10596
7e336ba1
AJ
105972002-03-27 Andreas Jaeger <aj@suse.de>
10598
10599 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10600 comment.
10601
de220d0f
ML
106022002-03-27 Michal Ludvig <mludvig@suse.cz>
10603
10604 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10605 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10606 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10607 (x86_64_linux_dr_get_status, supply_gregset),
10608 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10609 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10610 (x86_64_register_info_table): Add.
10611 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10612 (x86_64_register_raw_size, x86_64_register_virtual_type),
10613 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10614 general x86_64_register_info_table.
10615 (i386_gdbarch_init): gdbarch_register_bytes is now set
10616 dynamicaly during initialization.
10617 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10618 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10619
0e98d0a7
DJ
106202002-03-27 Daniel Jacobowitz <drow@mvista.com>
10621
10622 * gdbserver/server.c (main): Call target_signal_to_host_p
10623 and target_signal_to_host on signals received from the remote.
10624 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10625 target_signal_from_host on signals sent to the remote.
10626 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10627 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10628
3130066b
DJ
106292002-03-27 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * signals/signals.c: Include "server.h" in gdbserver build.
10632 (target_signal_from_name): Don't use STREQ.
10633 (_initialize_signals): Likewise. Don't include function in
10634 gdbserver build.
10635
9aedf4f4
DJ
106362002-03-27 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * signals.c: Moved to...
10639 * signals/signals.c: Here.
7e336ba1 10640 * Makefile (signals.o): Update.
9aedf4f4 10641
3fa41cdb
JL
106422002-03-26 Jeff Law (law@redhat.com)
10643
10644 * somread.c (som_symtab_read): Remove some commented out code and
10645 updated related comments. Do not set the minimal symbol table to
10646 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10647 in a dynamic executable.
10648 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10649 where we are unable to find the minimal symbol for the given
10650 PC value.
10651
ee677e8d
MS
106522002-03-25 Jeff Law (law@redhat.com)
10653
10654 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10655
e76e1718
ML
106562002-03-25 Michal Ludvig <mludvig@suse.cz>
10657
10658 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10659
18a642a1
AC
106602002-03-23 Andrew Cagney <ac131313@redhat.com>
10661
10662 * command.h: Update copyright.
10663 (struct cmd_list_element): Replace definition with opaque
10664 declaration.
10665 (enum cmd_types): Document that it will eventually be moved to
10666 cli/cli-decode.h
10667 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10668 (MALLOCED_REPLACEMENT): Delete macro.
10669 * Makefile.in (cli_decode_h): Add $(command_h).
10670 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10671 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10672 * completer.c: Include "cli/cli-decode.h".
10673 * maint.c: Include "cli/cli-decode.h".
10674 * cli/cli-decode.h: Include "command.h".
10675 (enum command_class): Delete.
10676 (enum cmd_types): Comment out.
10677 (enum cmd_auto_boolean): Delete.
10678 (enum var_types): Delete.
10679
b2875cc0
AC
106802002-03-23 Andrew Cagney <ac131313@redhat.com>
10681
10682 * cli/cli-decode.c: Include "gdb_assert.h".
10683 (add_set_or_show_cmd): New static function.
10684 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10685 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10686 all fields, such as func, from the set command.
10687
3b45974e
AC
106882002-03-23 Andrew Cagney <ac131313@redhat.com>
10689
10690 * MAINTAINERS (sh-elf): Change warning flag to -w.
10691
823ca731
AC
106922002-03-23 Andrew Cagney <cagney@redhat.com>
10693
10694 * defs.h (error): Add printf format attribute.
10695 * thread-db.c (thread_from_lwp): Fix error format string.
10696 * stack.c (parse_frame_specification): Ditto.
10697 * cli/cli-decode.c (undef_cmd_error): Ditto.
10698 * scm-lang.c (scm_lookup_name): Ditto.
10699 * tracepoint.c (trace_error): Ditto.
10700 * remote-utils.c (usage): Ditto.
10701 * remote.c (compare_sections_command): Ditto.
10702 Fix PR gdb/328.
10703
0e101458
AC
107042002-03-22 Andrew Cagney <ac131313@redhat.com>
10705
10706 * gdbtypes.c (append_composite_type_field): New function.
10707 (init_composite_type): New function.
10708 * gdbtypes.h (append_composite_type_field): Declare.
10709 (init_composite_type): Ditto.
10710
8e0662df
EZ
107112002-03-22 Elena Zannoni <ezannoni@redhat.com>
10712
10713 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10714 function.
8e0662df
EZ
10715 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10716 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10717 structure returning convention for SYSV ABI case, but not
10718 for GNU/Linux, FreeBSD, or NetBSD.
10719
3121eff0
DJ
107202002-03-22 Daniel Jacobowitz <drow@mvista.com>
10721
10722 * symtab.h (lookup_block_symbol): Add mangled_name argument
10723 to prototype.
10724
10725 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10726 with new mangled_name argument.
10727 * linespec.c (decode_line_1): Likewise.
10728 * valops (value_of_this): Likewise.
10729 * symtab.c (lookup_transparent_type): Likewise.
10730 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10731 (lookup_symbol): If we are given a mangled name, pass it down
10732 to lookup_symbol_aux.
10733 (lookup_block_symbol): If we are given a mangled name to check
10734 against, only return symbols which match it.
10735
349b409f
CF
107362002-03-22 Christopher Faylor <cgf@redhat.com>
10737
10738 * win32-nat.c (child_create_inferior): Check for proper shell to use
10739 here, in case the user changes it on the fly.
10740 (_initialize_inftarg): Remove shell path considerations.
10741
2a873819
EZ
107422002-03-21 Elena Zannoni <ezannoni@redhat.com>
10743
10744 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10745 for gdbarch_max_register_raw_size and max_register_virtual_size.
10746 Adjust copyright year.
10747
a1b9830c
DJ
107482002-03-21 Daniel Jacobowitz <drow@mvista.com>
10749
10750 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10751 in a function to cover the entire beginning of the function
10752 as well if it does not already.
10753
8b5790f2
TR
107542002-03-21 Tom Rix <trix@redhat.com>
10755
10756 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10757 (rs6000_ptrace64): Renamed from ptrace64.
10758
bdbe5747
MH
107592002-03-20 Martin M. Hunt <hunt@redhat.com>
10760
10761 * gdbserver/remote-utils.c (remote_open): Don't call
10762 getprotobyname, we're all using TCP here so just use
10763 IPPROTO_TCP.
7e336ba1 10764 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10765
107662002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10767
bdbe5747
MH
10768 * regcache.c (_initialize_regcache): No need to call
10769 build_regcache() at this time; it gets called whenever
10770 the gdbarch changes.
10771
7781cd62
DB
107722002-03-20 David O'Brien <obrien@FreeBSD.org>
10773
10774 * sparc-nat.c: Include sys/param.h where possible.
10775
f65ca430
DJ
107762002-03-20 Daniel Jacobowitz <drow@mvista.com>
10777
10778 Fix PR gdb/422.
10779 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10780 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10781 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10782 complex types.
10783 * stabsread.c (rs6000_builtin_type): Likewise.
10784 (read_sun_floating_type): Likewise.
10785
0c867556
PS
107862002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10787
10788 * stabsread.c (read_member_functions): Remove skip code for duplicate
10789 constructor/destructor methods. Use standard parsing for these
10790 methods and just do not chain them to the list of methods after
10791 parsing.
10792
12b9c64f
AO
107932002-03-19 Alexandre Oliva <aoliva@redhat.com>
10794
10795 * coffread.c: Remove redundant static declarations. Replace
10796 occurrences of `PTR' with `void *'.
10797 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10798 * top.h (quit_cover): Likewise.
10799 * defs.h (catch_errors): Likewise.
10800
349c5d5f
AC
108012002-03-18 Andrew Cagney <ac131313@redhat.com>
10802
10803 * defs.h (XMALLOC): Define.
10804 * gdb-events.sh (XMALLOC): Delete macro.
10805 * gdb-events.c, gdb-events.h: Regenerate.
10806 * gdbarch.sh (XMALLOC): Delete macro.
10807 * gdbarch.c: Regenerate.
10808 * serial.c (XMALLOC): Delete macro.
10809 * ui-file.c (XMALLOC): Ditto.
10810 * ser-unix.h (XMALLOC): Ditto.
10811 * sh-tdep.c (XMALLOC): Ditto.
10812 * ui-out.c (XMALLOC): Ditto.
10813 * utils.c (XMALLOC): Ditto.
10814 * i386-tdep.c (XMALLOC): Ditto.
10815 * gdb-events.c (XMALLOC): Ditto.
10816 * d10v-tdep.c (XMALLOC): Ditto.
10817 * cli-out.c (XMALLOC): Ditto.
10818
10819 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10820 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10821 * ui-file.c, ui-out.c: Ditto.
10822
7d0766f3
AC
108232002-03-18 Andrew Cagney <ac131313@redhat.com>
10824
10825 * command.h (struct cmd_list_element): Add field context.
10826 (set_cmd_context, get_cmd_context): Declare.
10827 * cli/cli-decode.h: Ditto.
10828 * cli/cli-decode.c (get_cmd_context): New function.
10829 (set_cmd_context): New function.
10830 (add_cmd): Initialize context.
10831 Part of fixing PR gdb/145 and PR gdb/146.
10832
5913bcb0
AC
108332002-03-17 Andrew Cagney <ac131313@redhat.com>
10834
1868c04e
AC
10835 * cli/cli-decode.c (cmd_type): New function.
10836 * command.h (cmd_type): Declare.
10837 * infrun.c (set_schedlock_func): Call function cmd_type.
10838 * kod.c (kod_set_os): Call cmd_type.
10839 * cris-tdep.c (cris_version_update): Use function cmd_type.
10840 (cris_mode_update, cris_abi_update): Ditto.
10841
5913bcb0
AC
10842 * command.h: (execute_cmd_post_hook): Declare.
10843 (execute_cmd_pre_hook): Declare.
10844 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10845 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10846 functions. Execute pre/post hook while ensuring that afterwords
10847 hook_in is cleared.
10848 * top.c (execute_command): Use execute_cmd_post_hook, and
10849 execute_cmd_pre_hook to execute pre/post commands.
10850 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10851 hook_stop_stub.
10852 (hook_stop_stub): Call execute_cmd_pre_hook.
10853
b51450c9
AC
108542002-03-17 Andrew Cagney <ac131313@redhat.com>
10855
10856 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10857 set'' and this leads to a core dump. Move xstrdup of
10858 operating_system to after check that it is not NULL.
10859
f66c9f11
AC
108602002-03-17 Andrew Cagney <ac131313@redhat.com>
10861
8e694ecf
AC
10862 * kod.c (kod_set_os): Remove unnecessary check that
10863 ``command->type'' is set_cmd.
10864
f66c9f11
AC
10865 * valprint.c (set_input_radix): Use input_radix.
10866 (set_output_radix): Use output_radix.
10867 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10868 isn't reverted.
10869
9d01611c
AC
108702002-03-16 Andrew Cagney <ac131313@redhat.com>
10871
10872 * value.h (struct value): Delete field ``substring_addr''. Change
10873 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10874 force_core_addr_align and force_pointer_aligh.
10875
10876 * value.h (struct value): Fix typo in above change.
9d01611c 10877
4156bb53
PS
108782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10879
10880 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10881 to fix internal_error from ``maintenance print architecture''.
10882
0e5e3ea6
PS
108832002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10884
10885 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10886 for gcc versions after gcc-2.8.1.
10887
9b013045
PS
108882002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10889
10890 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10891 for method resolution. Restore adjustment of ``this'' pointer after
10892 calling value_struct_elt, which was accidentally removed during the
10893 HP merge.
10894
376c9600
AC
108952002-03-15 Andrew Cagney <ac131313@redhat.com>
10896
10897 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10898 value_of_register.
10899 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10900 get_saved_register.
10901 * value.h (value_of_register): Update.
10902
a4db0f07
RH
109032002-03-14 Richard Henderson <rth@redhat.com>
10904
10905 * configure.in: Detect declaration for canonicalize_file_name.
10906 * utils.c (canonicalize_file_name): Declare, if needed.
10907 (gdb_realpath): Prefer realpath if available and usable.
10908 * config.in, configure: Rebuild.
10909
96383835
RH
109102002-03-14 Richard Henderson <rth@redhat.com>
10911
10912 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10913 a constant array bound.
10914
10915 * MAINTAINERS: Add myself to write-after-approval.
10916
75245b24
MS
109172002-03-14 Michael Snyder <msnyder@redhat.com>
10918
10919 * symfile.c (syms_from_objfile): Return immediately if no syms.
10920 (symbol_file_add): Return immediately if no syms.
10921 (find_sym_fns): Return immediately if no syms.
10922
e641a1ca
ML
109232002-03-13 Michal Ludvig <mludvig@suse.cz>
10924
10925 * gdbserver/remote-util.c (remote_open): Print remote-side's
10926 IP address when remote debugging over the network.
7e336ba1 10927
df08bfec
DB
109282002-03-12 David O'Brien <obrien@FreeBSD.org>
10929
10930 * config/sparc/fbsd.mh: Fix copyright.
10931 * config/sparc/fbsd.mt: Likewise.
10932
9a57864f
RE
109332002-03-11 Richard Earnshaw <rearnsha@arm.com>
10934
10935 * MAINTAINERS: Fix typo in name of gdb warnings option.
10936 (x86-64): Fix formating so that this can be parsed by awk.
10937
dd7bf85e
DJ
109382002-03-10 Daniel Jacobowitz <drow@mvista.com>
10939
10940 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10941 * defs.h: Include "gdb/signals.h".
10942 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10943
33a0a2ac
ML
109442002-03-10 Michal Ludvig <mludvig@suse.cz>
10945
10946 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10947 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10948 from x86-64-tdep.h
10949
dd824b04
DJ
109502002-03-10 Daniel Jacobowitz <drow@mvista.com>
10951 Don Howard <dhoward@redhat.com>
10952
10953 * mips-tdep.c (ST0_FR): Define.
10954 (mips2_fp_compat): New function, temporarily disabled.
10955 (mips_read_fp_register_single): New function.
10956 (mips_read_fp_register_double): New function.
10957 (mips_print_register): Use them.
10958 (do_fp_register_row): Likewise.
10959
6a41ff59
AC
109602002-03-09 Andrew Cagney <ac131313@redhat.com>
10961
10962 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10963 approval''.
10964
4ea09c10
PS
109652002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10966
10967 * stabsread.c (read_member_functions): Fix is_stub test for
10968 static member functions, improve comment.
10969
6ccc741d
RE
109702002-03-07 Richard Earnshaw <rearnsha@arm.com>
10971
10972 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10973 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10974 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10975 commands that set boolean values.
10976 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10977 (arm_rdi_resume): Always initialize PC.
10978 (arm_rdi_open): Don't use rslt as a boolean.
10979 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10980 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10981 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10982 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10983
438013df
AO
109842002-03-06 Alexandre Oliva <aoliva@redhat.com>
10985
10986 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10987 * configure: Rebuilt.
10988
70ed8774
SC
109892002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10990
10991 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10992 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10993
5ba2abeb
AC
109942002-03-06 Andrew Cagney <ac131313@redhat.com>
10995
10996 * cli/cli-decode.c (set_cmd_completer): New function.
10997 * command.h (set_cmd_completer): Declare.
10998 * cli/cli-decode.h (set_cmd_completer): Ditto.
10999
11000 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11001 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11002 * win32-nat.c (_initialize_inftarg): Ditto.
11003 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11004 * proc-api.c (_initialize_proc_api): Ditto.
11005 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11006 * source.c (_initialize_source): Ditto.
11007 * exec.c (_initialize_exec): Ditto.
11008 * solib.c (_initialize_solib): Ditto.
11009 * top.c (init_main): Ditto.
11010 * tracepoint.c (_initialize_tracepoint): Ditto.
11011 * symfile.c (_initialize_symfile): Ditto.
11012 * printcmd.c (_initialize_printcmd): Ditto.
11013 * infcmd.c (_initialize_infcmd): Ditto.
11014 * corefile.c (_initialize_core): Ditto.
11015
f779ca99
AC
110162002-03-05 Andrew Cagney <ac131313@redhat.com>
11017
11018 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11019
01a3934b
AC
110202002-03-05 Andrew Cagney <ac131313@redhat.com>
11021
11022 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11023
37057839
AC
110242002-03-05 Andrew Cagney <ac131313@redhat.com>
11025
11026 * NEWS: Update headings, 5.2 has branched.
11027
c6ecbae5
DJ
110282002-03-04 Daniel Jacobowitz <drow@mvista.com>
11029
11030 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11031 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11032 (register_addr, REGISTER_RAW_SIZE): Likewise.
11033 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11034 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11035
e9f30c21
ML
110362002-03-03 Michal Ludvig <mludvig@suse.cz>
11037
11038 * MAINTAINERS (x86-64): Add myself.
11039 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11040 changed value_ptr -> struct value *
11041
54394ac3
DB
110422002-03-01 David O'Brien <obrien@FreeBSD.org>
11043
11044 * configure.host (sparc64-*-freebsd): Add.
11045 * configure.tgt: Likewise.
11046 * config/sparc/fbsd.mh: New file.
11047 * config/sparc/fbsd.mt: Likewise.
11048 * config/sparc/nm-fbsd.h: Likewise.
11049 * config/sparc/tm-fbsd.h: Likewise.
11050
bfe95955
DJ
110512002-03-01 Daniel Jacobowitz <drow@mvista.com>
11052
11053 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11054 regformats/reg-s390x.dat.
11055
f33c6cbf
AC
110562002-03-01 Andrew Cagney <ac131313@redhat.com>
11057
11058 * utils.c: Add FIXME explaining true/false problem.
11059
5ecaa7dd
AC
110602002-02-28 Andrew Cagney <ac131313@redhat.com>
11061
11062 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11063
2a251cc2
MC
110642002-02-28 Michael Chastain <mec@shout.net>
11065
11066 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11067
6a8031a3 110682002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11069
11070 * gdbserver/linux-s390-low.c: New file.
11071 * regformats/reg-s390.dat: New file.
11072 * regformats/reg-s390x.dat: New file.
11073 * gdbserver/configure.srv: Add S/390.
11074 * gdbserver/Makefile.in: Add S/390.
11075 * configure.tgt: Enable gdbserver for S/390.
11076
ac469903
EZ
110772002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11078
11079 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11080 first line of the doc string for "info dos", except at the end of
11081 the sentence, since the short help stops at the first period.
11082
985cb1a3
JM
110832002-02-28 Jason Merrill <jason@redhat.com>
11084
11085 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11086
c570663e
FF
110872002-02-27 Fred Fish <fnf@redhat.com>
11088
11089 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11090 comment (dumy -> dummy).
11091
43630227
PS
110922002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11093
11094 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11095
b84911e8
RB
110962002-02-27 Rodney Brown <rbrown64@csc.com.au>
11097
11098 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11099
58caa3dc
DJ
111002002-02-27 Daniel Jacobowitz <drow@mvista.com>
11101
11102 * gdbserver/acconfig.h: New file.
11103 * gdbserver/i387-fp.c: New file.
11104 * gdbserver/i387-fp.h: New file.
11105 * gdbserver/linux-x86-64.c: New file.
11106 * regformats/reg-x86-64.dat: New file.
11107 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11108 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11109 * gdbserver/configure.in: Add support for regsets.
11110 * gdbserver/config.in: Regenerate.
11111 * gdbserver/configure: Regenerate.
11112 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11113 * gdbserver/linux-low.h: New file.
11114 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11115 for regsets.
11116 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11117 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11118 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11119 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11120 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11121 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11122 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11123 "i387-fp.h". Add PTRACE_GETREGS and friends.
11124 * gdbserver/regcache.c (supply_register): New function.
11125 (supply_register_by_name): New function.
11126 (collect_register): New function.
11127 (collect_register_by_name): New function.
11128
93652174
DJ
111292002-02-27 Daniel Jacobowitz <drow@mvista.com>
11130
11131 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11132 (config.status): Add configure.srv dependency.
11133 (server_h): Add config.h dependency.
11134
a02e4a61
DJ
111352002-02-27 Daniel Jacobowitz <drow@mvista.com>
11136
11137 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11138 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11139 * gdbserver/configure.srv: Change i386-*-linux* to use
11140 reg-i386-linux.o.
11141
ce0eebec
AC
111422002-02-26 Andrew Cagney <ac131313@redhat.com>
11143
11144 * x86-64-tdep.c: Re-indent. Update copyright date.
11145
82dbc5f7
AC
111462002-02-26 Andrew Cagney <ac131313@redhat.com>
11147
11148 From Michal Ludvig <mludvig@suse.cz>:
11149 * x86-64-tdep.c (value.h): Delete.
11150 (gdb_assert.h): Include.
11151 (x86_64_register_convert_to_virtual,
11152 x86_64_register_convert_to_raw ): Add check which lets only
11153 floating-point values to be converted.
11154 (value_push): Delete.
11155 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11156 (i386_gdbarch_init): Number of register_bytes fixed.
11157
e4621584
AC
111582002-02-26 Andrew Cagney <ac131313@redhat.com>
11159
11160 * MAINTAINERS: Add x86-64 target.
11161
81a9a963
AC
111622002-02-26 Andrew Cagney <ac131313@redhat.com>
11163
11164 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11165 * osfsolib.c (solib_map_sections): Ditto.
11166 * irix5-nat.c (solib_map_sections): Ditto.
11167 * corelow.c (gdb_check_format): Ditto.
11168 * symfile.c (symfile_bfd_open): Ditto.
11169 * solib.c (solib_map_sections): Ditto.
11170 Fix PR gdb/354.
7e336ba1 11171
0f017ab9
AC
111722002-02-26 Andrew Cagney <ac131313@redhat.com>
11173
11174 * remote.c (_initialize_remote): By default, disable ``e'' and
11175 ``E'' step out-of-range packets.
11176
75738c29
AS
111772002-02-26 Andreas Schwab <schwab@suse.de>
11178
11179 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11180 m68k_linux_frame_saved_pc.
11181 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11182 in_sigtramp.
11183 (SIGCONTEXT_PC_OFFSET): Remove.
11184 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11185 m68k_linux_sigtramp_saved_pc): New functions.
11186 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11187 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11188 (UCONTEXT_PC_OFFSET): Define.
11189 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11190 non-RT and RT signal trampolines.
11191
7e8ed687
RE
111922002-02-26 Richard Earnshaw <rearnsha@arm.com>
11193
11194 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11195 (TARGET_NBPG, STACK_END_ADDR): Delete
11196 (VARIABLES_INSIDE_BLOCK): Delete.
11197
6972bc8b
AC
111982002-02-25 Andrew Cagney <ac131313@redhat.com>
11199
11200 * utils.c (perror_with_name): Make string parameter constant.
11201 (print_sys_errmsg): Ditto.
11202 (query): Ditto.
11203 * defs.h (perror_with_name): Update.
11204 (print_sys_errmsg): Update.
11205 (query): Update.
11206
aa32f823
DJ
112072002-02-25 Daniel Jacobowitz <drow@mvista.com>
11208
11209 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11210 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11211
19caaa45
PS
112122002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11213
11214 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11215 if it already matches the current architecture from the exec file.
11216 Include arch-utils.h for gdbarch_info_init prototype.
11217 * Makefile.in (rs6000-nat.o): Update dependencies.
11218
d951901f
EZ
112192002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11220
11221 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11222 list of exported variables.
11223
7ea81414
DJ
112242002-02-24 Daniel Jacobowitz <drow@mvista.com>
11225
11226 * gdbserver/configure.srv: New file.
11227 * gdbserver/configure.in: Use configure.srv instead
11228 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11229 from it.
11230 * gdbserver/configure: Regenerated.
11231 * gdbserver/terminal.h: New file.
11232 * gdbserver/Makefile.in: Update for configure changes. Remove
11233 more unneeded include paths.
11234
080fe24b
AC
112352002-02-24 Andrew Cagney <ac131313@redhat.com>
11236
11237 From wiz at danbala:
11238 * config/sparc/tm-sp64.h: Fix grammar and typos.
11239 Fix PR gdb/287.
11240
8605d56e
AC
112412002-02-24 Andrew Cagney <ac131313@redhat.com>
11242
11243 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11244 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11245 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11246 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11247 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11248 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11249 * s390-tdep.c: Ditto.
92362027
AC
11250 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11251 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11252 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11253 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11254 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11255 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11256 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11257 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11258 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11259 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11260 Fix PR gdb/378.
7e336ba1 11261
8ed32cc0
AC
112622002-02-23 Andrew Cagney <ac131313@redhat.com>
11263
a3007b6f
AC
11264 * lin-thread.c: Delete file.
11265 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11266 to gdb_proc_service.h.
11267 * configure: Re-generate.
11268
50a9e2f1
AC
11269 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11270 * serial.c (serial_open): Delete check for "ocd".
11271 Fix PR gdb/349.
11272
8b6e7932
AC
11273 * Makefile.in (linux-thread.o): Delete target.
11274 * linux-thread.c: Delete file.
11275
d155c46b
AC
11276 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11277 renamed SH files to be consistent.
11278
8ed32cc0
AC
11279 * symtab.c (sort_search_symbols): Use xfree.
11280
0e18d038
RE
112812002-02-23 Richard Earnshaw <rearnsha@arm.com>
11282
11283 * arm-linux-tdep.c (arm_linux_init_abi): Register
11284 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11285 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11286 definition with undef, since we don't want the sysvr4 definition.
11287 (SKIP_TRAMPOLINE_CODE): Likewise.
11288
27aac7ff
AC
112892002-02-23 Andrew Cagney <ac131313@redhat.com>
11290
11291 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11292
11293 * configure.in: (AC_CHECK_FUNCS) Added test for
11294 canonicalize_file_name Regenerated.
11295 * config.in, configure: Regenerated.
11296 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11297 defined use canonicalize_file_name.
7e336ba1 11298
65a6e0ee
MC
112992002-02-23 Michael Chastain <mec@shout.net>
11300
11301 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11302
47b95330
AC
113032002-02-23 Andrew Cagney <ac131313@redhat.com>
11304
11305 * README: Remove references to cygnus.com.
11306 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11307 dot com'' form. Remove references to cygnus.com and sourceware.
11308
696f451b
AC
113092002-02-23 Andrew Cagney <ac131313@redhat.com>
11310
11311 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11312 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11313 1003.1-2001 no longer allows "head -1".
11314 * gdb/Makefile.in (version.c): Likewise.
11315 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11316 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11317 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11318
bbaca940
AC
113192002-02-23 Andrew Cagney <ac131313@redhat.com>
11320
11321 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11322 * command.h (cmd_cfunc_eq): Declare.
11323 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11324
11325 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11326 ``struct cmd_list_element *''.
11327 * cli/cli-cmds.c (is_complete_command): Update. Use
11328 cmd_cfunc_eq.
11329 * top.c (execute_command): Pass the command to
11330 is_complete_command.
11331 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11332
b8b8b047
AC
113332002-02-23 Andrew Cagney <ac131313@redhat.com>
11334
11335 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11336 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11337 architecture defines.
11338 * s390-tdep.c (s390_gdbarch_init): Likewise.
11339
19d3fc80
RE
113402002-02-23 Richard Earnshaw <rearnsha@arm.com>
11341
11342 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11343 (arm_linux_push_arguments): Likewise.
11344 (arm_linux_init_abi): Register them. Also register linux-specific
11345 call_dummy_words.
11346 (find_minsym_and_objfile): Use strcmp, not STREQ.
11347 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11348 (arm_linux_call_dummy_words): Delete declaration.
11349 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11350 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11351 declarations.
11352 (LOWEST_PC): Delete.
11353
3ab13650
PS
113542002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11355
11356 * maint.c (print_section_info): Do not prepend `0x' to filepos
11357 output, it will be handled by local_hex_string_custom.
11358
19d3fc80 113592002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11360
11361 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11362 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11363 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11364
d85a5daf
JB
113652002-02-22 Jim Blandy <jimb@redhat.com>
11366
11367 Indicate that the bcache functions don't change the strings
11368 they're passed.
11369 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11370 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11371
eeb25b8a
PM
113722002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11373
11374 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11375
6badb179
CF
113762002-02-21 Christopher Faylor <cgf@redhat.com>
11377
11378 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11379 find the complete path to a loaded DLL.
11380
e8717518
FF
113812002-02-21 Fred Fish <fnf@redhat.com>
11382
11383 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11384 that marks the end of the range of a function, enter a line number
11385 entry that has a line number of zero and a PC offset that matches
11386 the end of the function. This starts a range of PC's for which no
11387 line number information is known.
11388 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11389 PC's for which no line number info is found (line number is zero)
11390 then we didn't find any valid line information.
11391 * symtab.h: Document use of zero line number entry.
11392
9abe5450
EZ
113932002-02-21 Elena Zannoni <ezannoni@redhat.com>
11394
11395 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11396 (have_ptrace_getvrregs): Define for run time checks.
11397 (gdb_vrregset_t): New type for Altivec register handling.
11398 (fetch_register, store_register): Fetch/store altivec register
11399 when needed.
11400 (fetch_altivec_register, store_altivec_register): New functions.
11401 (supply_vrregset, fill_vrregset): New functions.
11402 (fetch_altivec_registers, store_altivec_registers): New functions.
11403 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11404 registers as well.
11405
aaa38bb5
AJ
114062002-02-21 Jiri Smid <smid@suse.cz>
11407
11408 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11409
b34db576
RE
114102002-02-21 Richard Earnshaw <rearnsha@arm.com>
11411
11412 * Makefile.in (armnbsd-nat.o): Update dependencies.
11413 * armnbsd-nat.c (supply_gregset): New function. Common code to
11414 supply the integer register set.
11415 (supply_fparegset): New function. Similar for FPA registers.
11416 (fetch_regs, fetch_fp_regs): Use them.
11417 (fetch_core_registers): Likewise.
11418 (fetch_elfcore_registers): New function.
11419 (arm_netbsd_elfcore_fns): New core-file type specification.
11420 (_initialize_arm_netbsd_nat): Register it.
11421
3e56fc4b
RE
114222002-02-21 Richard Earnshaw <rearnsha@arm.com>
11423
11424 * armnbsd-nat.c: Include gdbcore.h.
11425 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11426 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11427 'void' to declaration, to shut up ARI.
11428 (fetch_core_registers): Make static. Rewrite using supply_register.
11429 (arm_netbsd_core_fns): New core-file type specification.
11430 (_initialize_arm_netbsd_nat): New function.
11431
097f6b0b
CF
114322002-02-21 Christopher Faylor <cgf@redhat.com>
11433
11434 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11435 value.
11436
c914e0cc
CF
114372002-02-20 Christopher Faylor <cgf@redhat.com>
11438
11439 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11440 fails.
11441
385fa495
DJ
114422002-02-20 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * jv-exp.y (parse_number): Change type of implicit longs
11445 to builtin_type_uint64.
11446
e5f1222d
DJ
114472002-02-20 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11450 to be an integer instead of a `union wait'.
11451
75c9abc6
DJ
114522002-02-20 Daniel Jacobowitz <drow@mvista.com>
11453
11454 * mips-linux-nat.c: Call the operating system GNU/Linux.
11455 * mips-linux-tdep.c: Likewise.
11456 * mips-tdep.c: Likewise.
11457
551792a5
DJ
114582002-02-20 Daniel Jacobowitz <drow@mvista.com>
11459
11460 Fix PR gdb/265.
11461 * jv-exp.y (parse_number): Handle 64-bit integers.
11462
ee6e2b82
DJ
114632002-02-20 Daniel Jacobowitz <drow@mvista.com>
11464
11465 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11466 AC_STDC_HEADERS to AC_HEADER_STDC.
11467 * gdbserver/configure: Regenerated.
11468
a48442a0
RE
114692002-02-20 Richard Earnshaw <rearnsha@arm.com>
11470
11471 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11472 is defined.
11473 * sparc-tdep.c (get_longjmp_target): Likewise.
11474
fe419ffc
RE
114752002-02-20 Richard Earnshaw <rearnsha@arm.com>
11476
11477 * News: Add news about ARM and Multi-arch. Mention the new target
11478 arm*-*-netbsd*.
11479
5832ed7e
JB
114802002-02-19 Jim Blandy <jimb@redhat.com>
11481
11482 * stabsread.c (error_type_complaint): Improve error message.
11483
84563040
DJ
114842002-02-19 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * gdbserver/README: Update documentation.
11487 * gdbserver/configure.in: Update configury to match documentation.
11488 * gdbserver/Makefile.in: Likewise.
11489 * gdbserver/configure: Regenerated.
11490 * gdbserver/aclocal.m4: New file, generated by aclocal.
11491 * gdbserver/config.in: New file, generated by autoheader.
11492
375fd65b
RE
114932002-02-19 Richard Earnshaw <rearnsha@arm.com>
11494
11495 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11496 armnbsd-nat.c.
11497
08216dd7
RE
114982002-02-19 Richard Earnshaw <rearnsha@arm.com>
11499
11500 * arm-tdep.h (enum arm_float_model): New enum.
11501 (struct gdbarch_tdep): Add fp_model.
11502 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11503 up floating-point conversions until we know the floating-point model
11504 in use by the inferior. Don't complain about being unable to
11505 determine the ABI of the inferior when we don't have one.
11506 (arm_extract_return_value): Support different floating-point models.
11507 (arm_store_return_value): Likewise.
aaa38bb5 11508 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11509 ARM_FLOAT_SOFT.
11510 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11511
65d6d66a
PS
115122002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11513
11514 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11515 of ``current_gdbarch''.
11516
47221191
RE
115172002-02-19 Richard Earnshaw <rearnsha@arm.com>
11518
11519 * armnbsd-nat.c : ANSIfy all function declarations.
11520 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11521 (fetch_inferior_registers): Re-implement in terms of above.
11522 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11523 (store_inferior_registers): Re-implement in terms of above.
11524
fdf39c9a
RE
115252002-02-19 Richard Earnshaw <rearnsha@arm.com>
11526
aaa38bb5 11527 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11528 kernel.
11529 * arm-linux-tdep.c: Likewise.
11530 * config/arm/tm-linux.h: Likewise.
11531
93247f88
RE
115322002-02-19 Richard Earnshaw <rearnsha@arm.com>
11533
11534 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11535 * config/arm/nbsd.mt (TM_FILE): Delete.
11536 * config/arm/tm-nbsd.h: Delete.
11537
d7b486e7
RE
115382002-02-19 Richard Earnshaw <rearnsha@arm.com>
11539
11540 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11541 Initialize CALL_DUMMY_LENGTH.
11542
41d39a95
RE
115432002-02-19 Richard Earnshaw <rearnsha@arm.com>
11544
11545 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11546 function.
11547 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11548 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11549 defines one thing and that is incorrect for this port.
11550 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11551
e1195560
PM
115522002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11553
11554 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11555
c1748f97
PM
115562002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11557
11558 * win32-nat.c (display_selector): New function. Displays information
11559 about the information returned by GetThreadSelectorEntry API function.
11560 (display_selectors): New function. Displays the infomation of
11561 the selector given as argument, or of CS, DS ans FS selectors
11562 if no argument is given.
11563 ( _initialize_inftarg): Add "w32" as info prefix command.
11564 Add "info w32 selector" as command calling display_selectors.
11565
e41e6bbf
PM
115662002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11567
11568 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11569 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11570 if not defined.
11571
0d3a9f48
RE
115722002-02-18 Richard Earnshaw <rearnsha@arm.com>
11573
11574 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11575
3fb4b924
RE
115762002-02-18 Richard Earnshaw <rearnsha@arm.com>
11577
11578 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11579 (arm_fix_call_dummy): Call it.
11580 (arm_call_dummy_breakpoint_offset): Delete.
11581 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11582 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11583
7f55af32
AC
115842002-02-18 Andrew Cagney <ac131313@redhat.com>
11585
11586 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11587 Default to func_frame_chain_valid.
11588 * gdbarch.h, gdbarch.c: Re-generate.
11589 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11590
05f13b9c
EZ
115912002-02-18 Elena Zannoni <ezannoni@redhat.com>
11592
11593 * ppc-linux-nat.c: Update copyright.
11594 (fetch_register, store_register): Add tid parameter, don't compute
11595 tid here.
11596 (fetch_ppc_registers, store_ppc_registers): Add tid
11597 parameter. Pass it along to callees.
11598 (fetch_inferior_registers, store_inferior_registers): Compute tid
11599 here, and pass it to calleed functions.
11600 (fill_gregset, supply_fpregset): Clean up formatting.
11601
d7afb4c9
RE
116022002-02-18 Richard Earnshaw <rearnsha@arm.com>
11603
11604 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11605 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11606
9df628e0
RE
116072002-02-18 Richard Earnshaw <rearnsha@arm.com>
11608
11609 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11610 * gdbarch.c gdbarch.h: Regenerate.
11611 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11612 function.
11613 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11614 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11615 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11616
11617 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11618 * arm-tdep.c (arm_get_longjmp_target): New function.
11619 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11620 this to a positive value register arm_get_longjmp_target as the
11621 longjmp handler.
11622 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11623 (arm_linux_init_abi): Set up longjmp description in tdep.
11624 * armnbsd-nat.c (get_longjmp_target): Delete.
11625 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11626 description in tdep.
11627 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11628 (get_longjmp_target): Delete declaration.
11629 (GET_LONGJMP_TARGET): Delete.
11630 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11631 (GET_LONGJMP_TARGET): Delete.
11632
57bc8964
KB
116332002-02-17 Kevin Buettner <kevinb@redhat.com>
11634
11635 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11636 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11637 of ``current_gdbarch''.
11638
83d31a92
TT
116392002-02-17 Tom Tromey <tromey@redhat.com>
11640
11641 * cli/cli-cmds.c (compare_strings): New function.
11642 (complete_command): Only print each unique item once.
11643 * completer.h (complete_line): Declare.
11644 * completer.c (complete_line): New function.
11645 (line_completion_function): Use it.
11646
17ef5d92
AC
116472002-02-16 Andrew Cagney <ac131313@redhat.com>
11648
11649 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11650 * gdbarch.h, gdbarch.c: Re-generate.
11651
491b8946
DJ
116522002-02-16 Daniel Jacobowitz <drow@mvista.com>
11653
11654 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11655
116562002-02-16 Daniel Jacobowitz <drow@mvista.com>
11657
11658 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11659 * valops.c (value_arg_coerce): Don't take the address of a reference
11660 to convert an argument to a reference.
11661
dfe7f3ac
CF
116622002-02-15 Christopher Faylor <cgf@redhat.com>
11663
11664 * win32-nat.c (get_image_name): New function.
11665 (handle_load_dll): Use get_image_name function.
11666 (get_child_debug_event): Avoid registering debug events until possibly
11667 execed process is started.
11668 (child_create_inferior): Allow invocation via shell so that command
11669 line redirection, etc. works ok.
11670 (_initialize_inftarg): Add new command: "set shell" to control whether
11671 a shell is used to start a process.
11672
1d33e73a
DJ
116732002-02-15 Daniel Jacobowitz <drow@mvista.com>
11674
11675 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11676 instead of find_register_by_number.
11677 (cannot_store_register): Likewise.
11678
48cd0caa
PM
116792002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11680
aaa38bb5 11681 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11682 fprintf_unfiltered (gdb_stderr, ...).
11683
8656e7d8
DJ
116842002-02-15 Daniel Jacobowitz <drow@mvista.com>
11685
11686 * gdbserver/gdbserver.1: Document --attach.
11687
66e810cd
RE
116882002-02-15 Richard Earnshaw <rearnsha@arm.com>
11689
11690 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11691 descriptions.
11692 * arm-tdep.c (arm_default_arm_le_breakpoint)
11693 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11694 (arm_default_thumb_be_breakpoint): New. Initialize them from
11695 traditional breakpoint defines.
11696 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11697 (arm_gdbarch_init): Initialize new breakpoint variables.
11698 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11699 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11700 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11701 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11702 code out to ...
11703 (arm_netbsd_init_abi_common): ... here; new function.
11704 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11705 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11706 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11707 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11708
97e03143
RE
117092002-02-15 Richard Earnshaw <rearnsha@arm.com>
11710
11711 * arm-tdep.h (enum arm_abi): New enum.
11712 (struct gdbarch_tdep): New structure.
11713 (LOWEST_PC): Provide a default.
11714 (arm_gdbarch_register_os_abi): Declare new function.
11715 * arm-tdep.c (arm_abi_names): New array.
11716 (process_note_abi_tag_sections): New function.
11717 (get_elfosabi): New function.
11718 (arm_gdbarch_register_os_abi): New function.
11719 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11720 support for that ABI has been built in, then call the appropriate
11721 configuration routine. Use gdbarch_num_regs() to get the number
11722 of registers.
11723 (arm_dump_tdep): New function.
11724 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11725 place-holder functions.
11726 (_initialize_arm_tdep): Register them.
11727 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11728
11729 * armnbsd-tdep.c: New file.
11730 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11731 * config/arm/nbsd.mt (TDEPFILES): Add it.
11732 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11733
11734 * armnbsd-nat.c: Include regcache.h.
11735 * Makefile.in (armnbsd-nat.o): Update dependency list.
11736
11737 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11738
ad68be46
DJ
117392002-02-14 Daniel Jacobowitz <drow@mvista.com>
11740
11741 * gdbserver/Makefile.in: Fix typos in target rules.
11742
003d6d1d
DJ
117432002-02-14 Daniel Jacobowitz <drow@mvista.com>
11744
aaa38bb5 11745 Fix part of PR gdb/267.
003d6d1d
DJ
11746 * linespec.c (find_methods): Handle constructors specially for now.
11747
6b230f1b
CV
117482002-02-14 Corinna Vinschen <vinschen@redhat.com>
11749
11750 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11751 handling.
11752 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11753 standard_coerce_float_to_double().
11754
1ea98d12
CF
117552002-02-14 Christopher Faylor <cgf@redhat.com>
11756
11757 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11758 GDBINIT_FILENAME.
11759
dd47e6fd
EZ
117602002-02-14 Elena Zannoni <ezannoni@redhat.com>
11761
11762 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11763 find_variant_by_name, because it confuses the multiarch
11764 framework. Return NULL if there isn't an architecture with the
11765 user supplied name, instead of forcing a different one without
11766 recording the change with the multiarch machinery.
11767 (find_variant_by_name): Delete.
11768
d7e39b9e
PS
117692002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11770
11771 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11772 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11773
76e42a4f
MH
117742002-02-13 Martin M. Hunt <hunt@redhat.com>
11775
aaa38bb5 11776 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11777 print_frame_info_listing_hook, set current_source_symtab.
11778
0a30fbc4
DJ
117792002-02-14 Daniel Jacobowitz <drow@mvista.com>
11780
11781 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11782 and remove unused $(INCLUDE_DIR).
11783 Add regcache.c to OBS.
11784 Add generated register protocol files to clean target.
11785 Update dependencies for new objects, obsolete old target code.
11786
11787 * gdbserver/linux-low.c: Remove all platform-specific code to
11788 new files. Remove various dead code. Update to use regcache
11789 functionality.
11790 * gdbserver/remote-utils.c (fromhex): Add return statement
11791 to quiet warning.
11792 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11793 constant.
11794 (input_interrupt): Add integer parameter to match prototype
11795 of a signal handler.
11796 (outreg): Use register_data ().
11797 (prepare_resume_reply): Use gdbserver_expedite_regs.
11798 * gdbserver/server.c (main): Dynamically allocate own_buf because
11799 PBUFSIZ is no longer constant. Use registers_to_string () and
11800 registers_from_string ().
11801 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11802 for error (), fatal (), and warning (). Update definition of
11803 PBUFSIZ to use regcache functionality. Add include guard.
11804 * gdbserver/utils.c (fatal): Add missing ``const''.
11805 (warning): New function.
11806
11807 * regformats/regdat.sh: Include "regcache.h" in generated files.
11808 Provide init_registers () function.
11809 * regformats/regdef.h: Add prototype for set_register_cache ().
11810 Add include guard.
11811
11812 * gdbserver/linux-arm-low.c: New file.
11813 * gdbserver/linux-i386-low.c: New file.
11814 * gdbserver/linux-ia64-low.c: New file.
11815 * gdbserver/linux-m68k-low.c: New file.
11816 * gdbserver/linux-mips-low.c: New file.
11817 * gdbserver/linux-ppc-low.c: New file.
11818 * gdbserver/linux-sh-low.c: New file.
11819
11820 * gdbserver/regcache.c: New file.
11821 * gdbserver/regcache.h: New file.
11822
11823 * gdbserver/low-linux.c: Removed obsolete file.
11824
4cc841d0
DJ
118252002-02-14 Daniel Jacobowitz <drow@mvista.com>
11826
11827 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11828 * config/i386/linux.mt: Likewise.
11829 * config/ia64/linux.mt: Likewise.
11830 * config/m68k/linux.mh: Likewise.
11831 * config/powerpc/linux.mh: Likewise.
11832 * config/mips/linux.mt: Likewise.
11833
11834 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11835
11836 * config/i386/i386lynx.mh: Mark gdbserver variables
11837 as (currently) obsolete for this target.
11838 * config/i386/nbsd.mt: Likewise.
11839 * config/i386/nbsdelf.mt: Likewise.
11840 * config/m32r/m32r.mt: Likewise.
11841 * config/m68k/m68klynx.mh: Likewise.
11842 * config/m68k/nbsd.mt: Likewise.
11843 * config/m68k/sun3os4.mh: Likewise.
11844 * config/mips/vr5000.mt: Likewise.
11845 * config/ns32k/nbsd.mt: Likewise.
11846 * config/pa/hppabsd.mh: Likewise.
11847 * config/pa/hppaosf.mh: Likewise.
11848 * config/powerpc/nbsd.mt: Likewise.
11849 * config/rs6000/rs6000lynx.mh: Likewise.
11850 * config/s390/s390.mt: Likewise.
11851 * config/s390/s390x.mt: Likewise.
11852 * config/sparc/sparclynx.mh: Likewise.
11853 * config/sparc/sun4os4.mh: Likewise.
11854 * config/i386/x86-64linux.mt: Likewise.
11855 * config/sparc/linux.mh: Likewise.
11856
a85f51e7
DJ
118572002-02-14 Daniel Jacobowitz <drow@mvista.com>
11858
11859 * configure.tgt: Configure gdbserver only for known working
11860 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11861 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11862 SUBDIRS if it is configured. Update comment for ${nativefile}.
11863 * configure: Regenerated.
11864
65554fef
MS
118652002-02-13 Michael Snyder <msnyder@redhat.com>
11866
670a52db
MS
11867 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11868
6dbdc4a3
MS
11869 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11870 (default_gcore_mach): Just return 0, work around a problem in bfd.
11871 (default_gcore_target): OK to return NULL if exec_bfd is null.
11872 (make_mem_sec): Use a cast, avoid a warning.
11873
11874 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11875 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11876 sizeof (host pointer) != sizeof (target pointer)).
11877 (procfs_make_note_section): Avoid overflow in psargs string.
11878
aaa38bb5 11879 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11880 implementation return an error.
11881
118822002-02-13 Rodney Brown <rbrown64@csc.com.au>
11883
11884 * procfs.c (procfs_make_note_section): Provide a default definition
11885 (for alpha-dec-osf4.0f). Fix typos.
11886
1e4d76e7
EZ
118872002-02-13 Elena Zannoni <ezannoni@redhat.com>
11888
11889 * linux-proc.c: Add include of regcache.h.
11890 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11891
b6d1a1d5
AC
118922002-02-13 Andrew Cagney <ac131313@redhat.com>
11893
11894 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11895 * memattr.c (create_mem_region): Disallow useless empty region.
11896 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11897 non-overlapping.
b6d1a1d5 11898
6c6ea35e
MC
118992002-02-13 Michael Chastain <mec@shout.net>
11900
11901 * defs.h: Kill CONST_PTR.
11902 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11903 * c-lang.c (c_builtin_types): Likewise.
11904 * ch-lang.c (ch_builtin_types): Likewise.
11905 * f-lang.c (f_builtin_types): Likewise.
11906 * language.c (unknown_builtin_types): Likewise.
11907 * m2-lang.c (m2_builtin_types): Likewise.
11908 * p-lang.c (pascal_builtin_types): Likewise.
11909 * scm-lang.c (c_builtin_types): Likewise.
11910
3e0b0f48
KS
119112002-02-13 Keith Seitz <keiths@redhat.com>
11912
11913 * arm-tdep.h (arm_get_next_pc): Add declaration.
11914
67255d04
RE
119152002-02-13 Richard Earnshaw <rearnsha@arm.com>
11916
11917 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11918 with other related struct-returning functions.
11919 (arm_extract_struct_value_address): New function.
11920 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11921 initialize float_format, double_format and long_double_format as
11922 appropriate to the endianness of the target.
11923 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11924 (arm_use_struct_convention): Delete declaration.
11925 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11926
079777f6
KS
119272002-02-13 Keith Seitz <keiths@redhat.com>
11928
11929 * defs.h (core_addr_to_string_nz): New function.
11930
34588f23
MK
119312002-02-13 Mark Kettenis <kettenis@gnu.org>
11932
11933 Apply missing bits of 2002-01-15 patch.
11934 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11935 (fill_fpregset): Use i387_fill_fsave.
11936
49b563f9
KS
119372002-02-12 Keith Seitz <keiths@redhat.com>
11938
49b563f9
KS
11939 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11940 (core_addr_to_string_nz): New function.
11941
aeb98c60
RE
119422002-02-11 Richard Earnshaw <rearnsha@arm.com>
11943
11944 * arm-linux-nat.c: Really include arm-tdep.h.
11945 * config/arm/tm-linux.h (struct type, struct value): Declare.
11946
65554fef
MS
119472002-02-11 Michael Snyder <msnyder@redhat.com>
11948
11949 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11950 (gcore section): Ifdef for Solaris and Unixware only.
11951 (procfs_do_thread_registers): Unixware needs one lwpstatus
11952 per thread (not one prstatus or pstatus).
11953 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11954 not over all gdb threads. For unixware, call elfcore_write_pstatus
11955 once before iterating over threads.
11956
34e8f22d
RE
119572002-02-11 Richard Earnshaw <rearnsha@arm.com>
11958
11959 * arm-tdep.h: New file.
11960 * arm-tdep.c: Include arm-tdep.h.
11961 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11962 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11963 (arm_print_float_info, arm_register_type, convert_to_extended)
11964 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11965 (arm_extract_return_value, arm_register_name): Make static.
11966 (arm_software_single_step): Similarly. Fix types in declaration.
11967 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11968 (arm_store_return_value, arm_store_struct_return): New functions.
11969 (arm_gdbarch_init): Register the above functions. Also register
11970 call_dummy_start_offset, sizeof_call_dummy_words,
11971 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11972 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11973 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11974 prologue_cache.saved_regs here, rather than ...
11975 (_initialize_arm_tdep): ... here.
11976 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11977 declarations.
11978 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11979 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11980 (arm_print_float_info, arm_register_type, convert_to_extended)
11981 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11982 (arm_extract_return_value, arm_register_name): Delete declarations.
11983 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11984 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11985 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11986 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11987 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11988 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11989 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11990 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11991 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11992 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11993 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11994 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11995 interface.
11996 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11997 * remote-rdi.c remote-rdp.c: Likewise.
11998 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11999 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12000 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12001 definition.
12002
12003 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12004 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12005 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12006 from non-ARM_ prefixed definitions.
12007 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12008 all uses of above.
12009 * remote-rdi.c remote-rdp.c: Likewise.
12010 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12011
148754e5
RE
120122002-02-11 Richard Earnshaw <rearnsha@arm.com>
12013
12014 * arm-tdep.c (arm_frameless_function_invocation)
12015 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12016 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12017 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12018 (arm_pop_frame, arm_get_next_pc): Make static.
12019 (arm_gdbarch_init): Register above in gdbarch structure.
12020 (arm_read_fp): Renamed from arm_target_read_fp.
12021 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12022 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12023 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12024 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12025 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12026 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12027 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12028 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12029 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12030 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12031 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12032
434d2d4f
DJ
120332002-02-10 Daniel Jacobowitz <drow@mvista.com>
12034
12035 * symtab.c (compare_search_syms): New function.
12036 (sort_search_symbols): New function.
12037 (search_symbols): Sort symbols after searching rather than
12038 before.
12039
55241689
AC
120402002-02-10 Andrew Cagney <ac131313@redhat.com>
12041
12042 * NEWS: Linux -> GNU/Linux.
12043
028c194b
AC
120442002-02-10 Andrew Cagney <ac131313@redhat.com>
12045
12046 * gdbarch.sh: For for level one methods, disallow a definition
12047 when partially multi-arched. Add comments explaining rationale.
12048 * gdbarch.h: Re-generate.
12049
6acf50cd
AC
120502002-02-10 Andrew Cagney <ac131313@redhat.com>
12051
12052 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12053 multi-arch partial.
aaa38bb5 12054
50248794
AC
120552002-02-10 Andrew Cagney <ac131313@redhat.com>
12056
12057 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12058 field. Use diff -u.
12059 * gdbarch.c: Re-generate.
12060
c30e0066
AC
120612002-02-10 Andrew Cagney <ac131313@redhat.com>
12062
9b56c5f3 12063 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12064 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12065 partial.
12066
6e6d6484
AC
120672002-02-10 Andrew Cagney <ac131313@redhat.com>
12068
12069 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12070 multi-arch partial.
12071 (PUSH_ARGUMENTS): Switch to using predefault.
12072 * gdbarch.c: Regenerate.
12073
c203844d
AC
120742002-02-10 Andrew Cagney <ac131313@redhat.com>
12075
12076 * valops.c (PUSH_ARGUMENTS): Delete definition.
12077 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12078 partial. Default to default_push_arguments.
12079 * gdbarch.h, gdbarch.c: Regenerate.
12080
b5a2688f
AC
120812002-02-09 Andrew Cagney <ac131313@redhat.com>
12082
12083 * defs.h (throw_exception): Rename return_to_top_level. Update
12084 comments.
12085 * utils.c (error_stream, internal_verror, quit): Ditto.
12086 * top.c (throw_exception, catcher): Ditto.
12087 * sparclet-rom.c (sparclet_load): Ditto.
12088 * remote.c (interrupt_query, minitelnet): Ditto.
12089 * remote-sds.c (interrupt_query): Ditto.
12090 * remote-mips.c (mips_error, mips_kill): Ditto.
12091 * ocd.c (interrupt_query): Ditto.
12092 * monitor.c (monitor_interrupt_query): Ditto.
12093 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12094 * target.h: Update comment.
aaa38bb5 12095
b5a2688f 12096 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12097
2fa5c1e0
AC
120982002-02-09 Andrew Cagney <ac131313@redhat.com>
12099
12100 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12101 default_double_format.
12102 * gdbarch.h, gdbarch.c: Re-generate.
12103 * findvar.c (floatformat_unknown): Delete variable definition.
12104 * doublest.h (floatformat_unknown): Delete variable declaration.
12105
da966255
JB
121062002-02-09 Jim Blandy <jimb@redhat.com>
12107
12108 * stabsread.c (read_type): Add code to parse Sun's syntax for
12109 prototyped function types.
12110
123a4891
AC
121112002-02-09 Andrew Cagney <ac131313@redhat.com>
12112
12113 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12114 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12115
fb39c8f3
PS
121162002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12117
12118 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12119 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12120 now _initialize_xcoffsolib gets called again and overrides the
12121 commands from solib.c in a native configuration.
12122
0b87a11d
MK
121232002-02-09 Mark Kettenis <kettenis@gnu.org>
12124
12125 * doublest.c (store_typed_floating): Don't try to return a value.
12126 Fixes PR gdb/290.
12127
bdc2fc72
JB
121282002-02-08 Jim Blandy <jimb@redhat.com>
12129
12130 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12131 is prototyped and has no arguments, print its argument list as
12132 `(void)'.
12133
da69bbcf
CD
121342002-02-08 Chris Demetriou <cgd@broadcom.com>
12135
12136 * MAINTAINERS (write-after-approval): Add myself.
12137 (paper-trail): I've escaped!
aaa38bb5 12138
b69571f5
CF
121392002-02-08 Christopher Faylor <cgf@redhat.com>
12140
12141 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12142 changes.
12143 (_initialize_check_for_gdb_ini): Ditto.
12144
f6871398
MH
121452002-02-08 Martin M. Hunt <hunt@redhat.com>
12146
12147 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12148 xaprintf -> xasprintf.
12149
4e52d31c
PM
121502002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12151
12152 * win32-nat.c: Remove use of printf and sprintf functions.
12153
39bbf761
RE
121542002-02-08 Richard Earnshaw <rearnsha@arm.com>
12155
12156 * arm-tdep.c (arm_frame_chain_valid): Make static.
12157 (arm_push_arguments): Likewise.
12158 (arm_gdbarch_init): New function.
12159 (_initialize_arm_tdep): Call it.
12160 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12161 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12162 (FRAME_CHAIN_VALID): Delete.
12163 (arm_frame_chain_valid): Delete declaration.
12164 (PUSH_ARGUMENTS): Delete.
12165 (arm_push_arguments): Delete declaration.
12166 (CALL_DUMMY_P): Delete.
12167
9c9532c9
CV
121682002-02-08 Andrew Cagney <ac131313@redhat.com>
12169 Corinna Vinschen <vinschen@redhat.com>
12170
12171 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12172 on builtin float types.
12173
4e8f7a8b
DJ
121742002-02-08 Daniel Jacobowitz <drow@mvista.com>
12175
12176 * utils.c: Include <curses.h> before "bfd.h".
12177 * tui/tui-hooks.c: Likewise.
12178 * tui/tui.c: Likewise.
12179 * tui/tuiCommand.c: Likewise.
12180 * tui/tuiData.c: Likewise.
12181 * tui/tuiDataWin.c: Likewise.
12182 * tui/tuiDisassem.c: Likewise.
12183 * tui/tuiGeneralWin.c: Likewise.
12184 * tui/tuiIO.c: Likewise.
12185 * tui/tuiLayout.c: Likewise.
12186 * tui/tuiRegs.c: Likewise.
12187 * tui/tuiSource.c: Likewise.
12188 * tui/tuiSourceWin.c: Likewise.
12189 * tui/tuiStack.c: Likewise.
12190 * tui/tuiWin.c: Likewise.
12191
cd4bffcf
EZ
121922002-02-07 Elena Zannoni <ezannoni@redhat.com>
12193
12194 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12195 to include space for pseudoregs as well. Update loops accordingly.
12196 (sh_fp_frame_init_saved_regs): Ditto.
12197 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12198
26806ce2
AC
121992002-02-07 Andrew Cagney <ac131313@redhat.com>
12200
12201 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12202 Add Richard Earnshaw to Arm maintainers.
12203
97fdab62
AC
122042002-02-07 Andrew Cagney <ac131313@redhat.com>
12205
a6b98203
AC
12206 * defs.h (warning_begin): Delete declaration.
12207
97fdab62
AC
12208 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12209 Delete macro.
12210
78b29b40
MS
122112002-02-07 Michael Snyder <msnyder@redhat.com>
12212
aaa38bb5 12213 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12214 Logic bug, remove misplaced else.
12215
d8849953
KD
122162002-02-07 Klee Dienes <klee@apple.com>
12217
12218 * fork-inferior.c (fork_inferior): Add '!' to the list of
12219 characters that need to be quoted when building a string for the
12220 shell. Quote '!' specifically with a backslash, since CSH chokes
12221 when trying to evaluate "str!str".
aaa38bb5 12222
095778a0
NC
122232002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12224
12225 * rdi-share/host.h: Only provide a typedef for bool if it is not
12226 defined.
12227
1900040c
MS
122282002-02-04 Michael Snyder <msnyder@redhat.com>
12229
12230 * breakpoint.h (enum bptype): Add new overlay event bp type.
12231 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12232
1900040c
MS
12233 * breakpoint.c (create_internal_breakpoint): New function.
12234 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12235 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12236 (create_thread_event_breakpoint): Ditto.
12237 (create_solib_event_breakpoint): Ditto.
12238 (create_overlay_event_breakpoint): New function.
12239 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12240 (update_breakpoints_after_exec): Delete and re-initialize
12241 overlay event breakpoints after an exec. Add FIXME comment
12242 about longjmp breakpoint.
12243 (print_it_typical): Ignore overlay event breakpoints.
12244 (print_one_breakpoint): Ditto.
12245 (mention): Ditto.
12246 (bpstat_what): Do not stop for overlay event breakpoints.
12247 (delete_breakpoint): Don't delete overlay event breakpoints.
12248 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12249 (breakpoint_re_set): Re-create overlay event breakpoint.
12250
12251 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12252 (overlay_manual_command): Disable overlay breakpoints.
12253 (overlay_off_command): Disable overlay breakpoints.
12254
082fc60d
RE
122552002-02-06 Richard Earnshaw <rearnsha@arm.com>
12256
12257 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12258 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12259 to here from config/tm-arm.h.
12260 (coff_sym_is_thumb): Make static.
12261 (arm_elf_make_msymbol_special): New function.
12262 (arm_coff_make_msymbol_special): New function.
12263 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12264 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12265 (coff_sym_is_thumb): Delete declaration.
12266 (arm_elf_make_msymbol_special): Declare.
12267 (arm_coff_make_msymbol_special): Declare.
12268 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12269 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12270
039c5766
RE
122712002-02-06 Richard Earnshaw <rearnsha@arm.com>
12272
12273 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12274
122752002-02-06 Richard Earnshaw <rearnsha@arm.com>
12276
12277 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12278 * gdbarch.c gdbarch.h: Regenerate.
12279 * arch-utils.c (default_print_float_info): New function.
12280 * arch-utils.h (default_print_float_info): Prototype it.
12281 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12282 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12283 (PRINT_FLOAT_INFO): Document it.
12284
12285 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12286 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12287 (PRINT_FLOAT_INFO): Define.
12288
58fa08f0
PM
122892002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12290
aaa38bb5 12291 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12292 Add typecast to sprintf argument to suppress a warning.
12293
7393af7c
PM
122942002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12295
58fa08f0 12296 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12297 to allow easier handling of pass state.
12298 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12299 that gives exception name and address.
12300 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12301 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12302 exceptions added.
aaa38bb5
AJ
12303 (child_continue): Correctly report continue_status.
12304 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12305 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12306 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12307 the exception should be passed to debuggee or not.
12308
6af4589c
MS
123092002-02-05 Michael Snyder <msnyder@redhat.com>
12310
12311 * regcache.c (fetch_register): Call target_fetch_register
12312 only if we don't call FETCH_PSEUDO_REGISTER.
12313 (store_register): Call target_store_register only if we
12314 don't call STORE_PSEUDO_REGISTER.
12315
a2cf933a
EZ
123162002-02-05 Elena Zannoni <ezannoni@redhat.com>
12317
12318 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12319 ELF_MAKE_MSYMBOL_SPECIAL.
12320 * gdbarch.c, gdbarch.h: Regenerate.
12321 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12322 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12323 * elfread.c (elf_symtab_read): Compile use of
12324 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12325 multiarched.
12326 * coffread.c (coff_symtab_read): Ditto, for
12327 COFF_MAKE_MSYMBOL_SPECIAL.
12328
6bb7be43
JB
123292002-02-05 Jim Blandy <jimb@redhat.com>
12330
12331 * solib-svr4.c (svr4_truncate_ptr): New function.
12332 (svr4_relocate_section_addresses): Do the address arithmetic with
12333 the appropriate truncation for target addresses, even when
12334 CORE_ADDR is larger than a target address.
12335
e18651ec
DJ
123362002-02-05 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12339 to (int *).
12340
6b2725be
DJ
123412002-02-05 Daniel Jacobowitz <drow@mvista.com>
12342
12343 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12344 code.
12345
fca9e603
DJ
123462002-02-05 Daniel Jacobowitz <drow@mvista.com>
12347
12348 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12349
6c537a52
DJ
123502002-02-05 Daniel Jacobowitz <drow@mvista.com>
12351
12352 * gdbserver/linux-low.c: Remove unused include files.
12353
d844cde6
DJ
123542002-02-05 Daniel Jacobowitz <drow@mvista.com>
12355
12356 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12357 (read_inferior_memory): Use it.
12358 (write_inferior_memory): Likewise.
12359
d07c63e7
DJ
123602002-02-05 Daniel Jacobowitz <drow@mvista.com>
12361
12362 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12363 grubbing through sys_errlist.
12364
da6d8c04
DJ
123652002-02-05 Daniel Jacobowitz <drow@mvista.com>
12366
12367 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12368
5b421780
PM
123692002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12370 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12371
9f60d481
AC
123722002-02-04 Andrew Cagney <ac131313@redhat.com>
12373
12374 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12375 (do_sfunc, set_cmd_sfunc): New functions.
12376
12377 * command.h (struct cmd_list_element): Add field func.
12378 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12379 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12380 * cli/cli-decode.h: Ditto.
12381
12382 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12383 (help_all, help_cmd_list): Ditto.
12384 (find_cmd, complete_on_cmdlist): Ditto.
12385 * top.c (execute_command): Ditto.
12386
12387 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12388 function.sfunc.
12389
12390 * infcmd.c (notice_args_read): Fix function signature.
12391
12392 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12393 * cli/cli-decode.c (add_set_cmd): Ditto.
12394 * utils.c (initialize_utils): Ditto.
12395 * maint.c (_initialize_maint_cmds): Ditto.
12396 * infrun.c (_initialize_infrun): Ditto.
12397 * demangle.c (_initialize_demangler): Ditto.
12398 * remote.c (add_packet_config_cmd): Ditto.
12399 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12400 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12401 * proc-api.c (_initialize_proc_api): Ditto.
12402 * kod.c (_initialize_kod): Ditto.
12403 * valprint.c (_initialize_valprint): Ditto.
12404 * top.c (init_main): Ditto.
12405 * infcmd.c (_initialize_infcmd): Ditto.
12406 * corefile.c (_initialize_core): Ditto.
12407 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12408 * arch-utils.c (initialize_current_architecture): Ditto.
12409 (_initialize_gdbarch_utils): Ditto.
12410 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12411
12412 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12413 * wince.c (_initialize_inftarg): Ditto.
12414 * symfile.c (_initialize_symfile): Ditto.
12415 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12416 * language.c (_initialize_language): Ditto.
12417 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12418
f9ba0717
MS
124192002-02-04 Michael Snyder <msnyder@redhat.com>
12420
12421 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12422
0c74b2a7
DJ
124232002-02-04 Daniel Jacobowitz <drow@mvista.com>
12424
12425 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12426 Add rules for building the register data files.
12427
c638789f
DJ
124282002-02-04 Daniel Jacobowitz <drow@mvista.com>
12429
12430 * regformats/regdat.sh: Add braces to the definition of
12431 expedite_regs_${arch}.
12432
db253027
DJ
124332002-02-04 Daniel Jacobowitz <drow@mvista.com>
12434
12435 * regformats/regdef.h (struct reg): Add comment describing the
12436 requirements for offset and size fields.
12437
206be19c
AS
124382002-02-04 Andreas Schwab <schwab@suse.de>
12439
12440 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12441 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12442
181c1381
RE
124432002-02-04 Richard Earnshaw <rearnsha@arm.com>
12444
12445 * gdbarch.sh (copyright): Update years in generated header.
12446 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12447 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12448 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12449 * dbxread.c: Likewise.
12450 * dwarfread.c: Likewise.
12451 * elfread.c: Likewise.
12452 * somread.c: Likewise.
12453
12454 * arm-tdep.c (arm_smash_text_address): New function.
12455 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12456
fa4ba8da
PM
124572002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12458
12459 Add support for hardware watchpoints on win32 native.
aaa38bb5 12460 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12461 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12462 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12463 of debug registers.
12464 (debug_registers_changed): New variable. Reflects when debug registers
12465 are changed and need to be written to inferior.
aaa38bb5 12466 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12467 was set, used when new threads are created.
12468 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12469 i386-nat code.
12470 (thread_rec): Set dr array if id is the thread of current_event .
12471 (child_continue, child_resume): Change the debug registers for all
12472 threads if debug_registers_changed.
12473 (child_add_thread): Change the debug registers if debug_registers_used.
12474 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12475 Link nm.h to new nm-cygwin.h file.
12476 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12477 of hardware registers.
12478
a73c86fb
AC
124792002-02-03 Andrew Cagney <ac131313@redhat.com>
12480
12481 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12482 Restore behavour broken by 2002-01-20 Andrew Cagney
12483 <ac131313@redhat.com> IEEE_FLOAT removal.
12484
acf5ed49
DJ
124852002-02-03 Daniel Jacobowitz <drow@mvista.com>
12486
12487 * c-valprint.c (c_val_print): Pass a proper valaddr to
12488 cp_print_class_method.
12489 * valops.c (search_struct_method): If there is only one method
12490 and args is NULL, return that method.
12491
493d28d5
DJ
124922002-02-03 Daniel Jacobowitz <drow@mvista.com>
12493
12494 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12495 accessing tag_name directly.
12496
7495dfdb
DJ
124972002-02-03 Daniel Jacobowitz <drow@mvista.com>
12498
12499 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12500 of accessing tag_name directly.
12501
dd6bda65
DJ
125022002-02-03 Daniel Jacobowitz <drow@mvista.com>
12503
12504 PR gdb/280
12505 * gdbtypes.c (replace_type): New function.
12506 * gdbtypes.h (replace_type): Add prototype.
12507 * stabsread.c (read_type): Use replace_type.
12508
88fe217c
RE
125092002-02-03 Richard Earnshaw <rearnsha@arm.com>
12510
12511 * Makefile.in (memattr.o): Add missing dependencies rule.
12512
e5d66720
PS
125132002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12514
12515 * breakpoint.c (break_at_finish_command): Really export.
12516 (break_at_finish_at_depth_command): Ditto.
12517 (tbreak_at_finish_command): Ditto.
12518 * hppa-tdep.c: Include completer.h.
12519 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12520 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12521
fffee0be
AC
125222002-02-01 Andrew Cagney <ac131313@redhat.com>
12523
12524 * utils.c (do_write): New function.
12525 (error_stream): Rewrite combining the code from error_begin and
12526 verror.
12527 (verror): Rewrite using error_stream.
12528 (error_begin): Delete function.
12529
255e7dbf
AC
125302002-02-01 Andrew Cagney <ac131313@redhat.com>
12531
12532 * utils.c (error_begin): Make static.
12533 * defs.h (error_begin): Delete declaration.
12534
12535 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12536 (decode_line_1): Use cplusplus_error instead of error_begin,
12537 cplusplus_hint and return_to_top_level.
12538 * coffread.c (coff_symfile_read): Use error instead of error_begin
12539 and return_to_top_level.
12540 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12541
ddfe3c15
AC
125422002-02-01 Andrew Cagney <ac131313@redhat.com>
12543
12544 * language.h (type_error, range_error): Make string parameter
12545 constant.
12546 * language.c (warning_pre_print): Delete extern declaration.
12547 * dwarfread.c (warning_pre_print): Ditto.
12548 * language.c (type_error, range_error): Rewrite to use verror and
12549 vwarning instead of warning_begin.
12550
03ac34d5
MS
125512002-02-01 Michael Snyder <msnyder@redhat.com>
12552
261c4ca2
MS
12553 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12554 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12555
e00d1dc8
AC
125562002-02-01 Andrew Cagney <ac131313@redhat.com>
12557
12558 * command.h (NO_FUNCTION): Delete macro.
12559 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12560 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12561 * tracepoint.c (_initialize_tracepoint): Ditto.
12562 * cli/cli-decode.c (add_set_cmd): Ditto.
12563 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12564
76b79d6e
DJ
125652002-02-01 Daniel Jacobowitz <drow@mvista.com>
12566
12567 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12568 Update ``this'' pointer when calling virtual functions.
12569
799f9e91
MS
125702002-02-01 Michael Snyder <msnyder@redhat.com>
12571
c7bd442c 12572 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12573 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12574
3cf384d4
DJ
125752002-02-01 Daniel Jacobowitz <drow@mvista.com>
12576
12577 * regformats/reg-arm.dat: New file.
12578 * regformats/reg-i386.dat: New file.
12579 * regformats/reg-ia64.dat: New file.
12580 * regformats/reg-m68k.dat: New file.
12581 * regformats/reg-mips.dat: New file.
12582 * regformats/reg-ppc.dat: New file.
12583 * regformats/reg-sh.dat: New file.
12584 * regformats/regdef.h: New file.
12585 * regformats/regdat.sh: New file.
12586
0defa245
RE
125872002-02-01 Richard Earnshaw <reanrsha@arm.com>
12588
12589 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12590 (arm_frame_args_address, arm_frame_locals_address): New functions.
12591 (arm_frame_num_args): New function.
12592 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12593 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12594 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12595
405f26e6
MS
125962002-01-31 Michael Snyder <msnyder@redhat.com>
12597
502fd408
MS
12598 * breakpoint.c (break_at_finish_command): Export.
12599 (break_at_finish_at_depth_command): Export.
12600 (tbreak_at_finish_command): Export.
d6020d45 12601 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12602 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12603 "txbreak" commands, which are HPPA specific.
502fd408 12604
7d35e135
MS
12605 * printcmd.c (disassemble_command): Remove an ancient
12606 artifact of an old merge.
12607
aaa38bb5 12608 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12609 Define enum constant values for overlay mode.
12610 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12611 (overlay_is_mapped, overlay_auto_command,
12612 overlay_manual_command): Ditto.
d874f1e2 12613
aaa38bb5
AJ
12614 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12615 breakpoint_here_p, breakpoint_inserted_here_p,
12616 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12617 describe_other_breakpoints, check_duplicates, clear_command):
12618 Coding standard fixes.
12619
8add0441 12620 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12621 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12622 code: check bfd SEC_READONLY flag for section.
12623
e351066e
AC
126242002-01-31 Andrew Cagney <ac131313@redhat.com>
12625
7d35e135 12626 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12627
8a48e967
DJ
126282002-01-30 Daniel Jacobowitz <drow@mvista.com>
12629
12630 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12631 data symbols, since we search based on textlow and texthigh.
12632 (find_pc_sect_symtab): Likewise.
12633
f5a96129
AC
126342002-01-30 Andrew Cagney <ac131313@redhat.com>
12635
12636 * defs.h (vwarning): Declare.
f5a96129
AC
12637 * utils.c (vwarning): New function.
12638 (warning): Call vwarning.
12639 (warning_begin): Delete function.
12640
12641 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12642 the warning message.
12643 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12644 warning_begin.
12645
cefd4ef5
MS
126462002-01-30 Michael Snyder <msnyder@redhat.com>
12647
1a703748
MS
12648 * NEWS: Mention "set trust-readonly-sections" command.
12649 Mention generate-core-file command.
cefd4ef5 12650
3a11626d
MS
126512002-01-15 Michael Snyder <msnyder@redhat.com>
12652
12653 * target.c: New command, "set trust-readonly-sections on".
12654 (do_xfer_memory): Honor the suggestion to trust readonly sections
12655 by reading them from the object file instead of from the target.
12656 (initialize_targets): Register command "set trust-readonly-sections".
12657
d1c7e53b
AC
126582002-01-29 Andrew Cagney <ac131313@redhat.com>
12659
12660 * parse.c (target_map_name_to_register): Simplify, search regs and
12661 pseudo-regs using a single loop.
12662
e2c9a72c
AC
126632002-01-30 Andrew Cagney <ac131313@redhat.com>
12664
12665 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12666
69824b4e
MK
126672002-01-15 Rodney Brown <rbrown64@csc.com.au>
12668
12669 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12670 * config/i386/i386v42mp.mh: Add i387-nat.o .
12671 * i386v4-nat.c: Include i387-nat.h.
12672 (supply_fpregset): Use i387_supply_fsave.
12673 (fill_fpregset): Use i387_fill_fsave.
12674
6eb69eab
RE
126752002-01-30 Richard Earnshaw <rearnsha@arm.com>
12676
12677 * arm-tdep.c (arm_call_dummy_words): Define.
12678 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12679 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12680 (CALL_DUMMY_WORDS): Define.
12681 (arm_call_dummy_words): Declare.
12682 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12683 (arm_linux_call_dummy_words): Declare.
12684
9852326a
AS
126852002-01-30 Andreas Schwab <schwab@suse.de>
12686
12687 * m68klinux-nat.c: Fix last change to use regcache_collect
12688 instead of referencing registers[] directly.
12689
977a3030
AC
126902002-01-29 Andrew Cagney <ac131313@redhat.com>
12691
12692 * parse.c (target_map_name_to_register): Delete code wrapped in
12693 #ifdef REGISTER_NAME_ALIAS_HOOK.
12694
2076c72b
MS
126952002-01-28 Michael Snyder <msnyder@redhat.com>
12696
12697 * regcache.c (legacy_read_register_gen): Need to be able to
12698 read pseudo-register as well as real register.
12699 (legacy_write_register_gen): Ditto.
12700
8fcc723b
AC
127012002-01-28 Andrew Cagney <ac131313@redhat.com>
12702
12703 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12704 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12705 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12706 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12707 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12708 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12709 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12710 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12711 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12712 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12713 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12714 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12715 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12716 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12717 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12718 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12719 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12720 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12721 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12722 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12723
afe64c1a
AC
127242002-01-28 Andrew Cagney <ac131313@redhat.com>
12725
12726 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12727 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12728 (initialize_current_architecture): Update target_byte_order using
12729 information from BFD.
aaa38bb5 12730 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12731 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12732
75bc7ddf
AC
127332002-01-28 Andrew Cagney <ac131313@redhat.com>
12734
12735 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12736 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12737
12738 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12739 #ifdef INVALID_FLOAT.
12740 * infcmd.c (do_registers_info): Ditto.
12741 * values.c (unpack_double): Ditto. Add comment.
12742
12743 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12744 already commented out.
12745
0280a90a
AS
127462002-01-26 Andreas Schwab <schwab@suse.de>
12747
12748 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12749 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12750 registers and add support for PTRACE_GETREGS.
12751
7072a954
AC
127522002-01-24 Andrew Cagney <ac131313@redhat.com>
12753
12754 GDB 5.1.1 released from 5.1 branch.
12755 * NEWS: Add 5.1.1 news.
12756 * README: Sync with 5.1 branch.
12757
86f902e0
FF
127582002-01-23 Fred Fish <fnf@redhat.com>
12759
12760 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12761 stabstring on initial malloc. Reallocing will copy it for us,
12762 if necessary.
12763
8af51c36
EZ
127642002-01-23 Elena Zannoni <ezannoni@redhat.com>
12765
aaa38bb5 12766 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12767 (HFILES_NO_SRCDIR): Remove hpread.h.
12768 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12769 (hpread.o): Update dependencies.
12770 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12771
12772 * hp-psymtab-read.c: Remove file.
12773 * hp-symtab-read.c: Remove file.
12774 * hpread.h: Remove file.
12775
12776 * hpread.c: Merge all contents of hp-psymtab-read.c,
12777 hp-symtab-read.c and hpread.h into this file, as it was prior to
12778 January 1999.
12779
12780 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12781 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12782 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12783 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12784
dc5cfeb6
EZ
127852002-01-23 Elena Zannoni <ezannoni@redhat.com>
12786
12787 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12788 fill_gregset): Call gdbarch_tdep() just once, assign result to
12789 variable and use that, instead of calling the function several
12790 times.
12791
ea87b71b
AO
127922002-01-24 Alexandre Oliva <aoliva@redhat.com>
12793
12794 * configure.host: Accept sparcv9 as alias for sparc64.
12795 * configure.tgt: Likewise.
12796
13fc0c2f
KB
127972002-01-22 Kevin Buettner <kevinb@redhat.com>
12798
12799 * solib-aix5.c (build_so_list_from_mapfile)
12800 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12801 arguments is not reversed.
12802 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12803 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12804
7bd872fe
EZ
128052002-01-22 Elena Zannoni <ezannoni@redhat.com>
12806
12807 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12808 modified version of obsolete sh_fetch_pseudo_register.
12809 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12810 (sh4_register_read): New function.
12811 (sh_pseudo_register_write): New function. Renamed and modified
12812 version of obsolete sh_store_pseudo_register.
12813 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12814 (sh4_register_write): New function.
12815 (sh_gdbarch_init): Remove setting of gdbarch function
12816 fetch_pseudo_register and store_pseudo_register. Remove setting of
12817 register_convert_to_raw, register_convert_to_virtual,
12818 register_convertible.
12819 (sh_sh4_register_convertible): Delete. No longer needed. All is
12820 taken care by architecture specific functions
12821 register_read/register_write.
12822 (sh_sh4_register_convert_to_virtual): Make static.
12823 (sh_sh4_register_convert_to_raw): Ditto.
12824
069e84fd
AC
128252002-01-22 Andrew Cagney <ac131313@redhat.com>
12826
12827 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12828 (floatformat_is_nan, floatformat_mantissa): Ditto.
12829
12830 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12831 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12832 builtin_type_ieee_double_little,
12833 builtin_type_ieee_double_littlebyte_bigword,
12834 builtin_type_m68881_ext, builtin_type_i960_ext,
12835 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12836 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12837 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12838 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12839
211a4f69
CV
128402002-01-22 Corinna Vinschen <vinschen@redhat.com>
12841
12842 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12843 parameter. Set frameless flag if it exists and depended of
12844 whether the scanned function is frameless or not.
12845 (xstormy16_skip_prologue): If function is frameless, return
12846 result of xstormy16_scan_prologue().
12847 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12848 call.
12849
f81353e4
EZ
128502002-01-21 Elena Zannoni <ezannoni@redhat.com>
12851
12852 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12853 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12854 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12855 sh_sh4_register_byte, sh_sh4_register_raw_size,
12856 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12857 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12858 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12859 sh_store_pseudo_register, sh_do_pseudo_register): Call
12860 gdbarch_tdep() just once, assign result to variable and use that,
12861 instead of calling the function several times.
12862
63c73a17
MK
128632002-01-20 Mark Kettenis <kettenis@gnu.org>
12864
12865 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12866 macros instead of LAST_FPU_CTRL_REGNUM.
12867 (store_register): Likewise.
12868
39ad761d
JB
128692002-01-21 Jim Blandy <jimb@redhat.com>
12870
12871 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12872 is up-to-date before running the program, not just when a program
12873 exits.
12874
3d74b771
FF
128752002-01-21 Fred Fish <fnf@redhat.com>
12876
12877 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12878 when we have found all instructions we are looking for.
12879
966fbf70
RE
128802002-01-21 Richard Earnshaw <rearnsha@arm.com>
12881
12882 * arm-tdep.c (arm_register_name): New function.
12883 (arm_registers_names): Make static.
12884 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12885 (arm_register_name): Declare.
12886 (REGISTER_NAME): Use it.
12887
c3b4394c
RE
128882002-01-21 Richard Earnshaw <rearnsha@arm.com>
12889 Kevin Buettner <kevinb@redhat.com>
12890
12891 Convert arm targets to new FRAME interface.
12892 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12893 (arm_frame_find_save_regs): Delete.
12894 (arm_frame_init_saved_regs): New.
12895 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12896 Allocate extra_info as required. Convert all uses of fsr.regs
12897 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12898 to use extra_info.
12899 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12900 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12901 (check_prologue_cache, save_prologue_cache): Likewise.
12902 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12903 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12904 (FRAME_FIND_SAVED_REGS): Delete.
12905 (arm_frame_find_saved_regs): Delete prototype.
12906 (arm_frame_init_saved_regs): New prototype.
12907 (FRAME_INIT_SAVED_REGS): Define.
12908
61d99182
AC
129092002-01-20 Andrew Cagney <ac131313@redhat.com>
12910
12911 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12912
6aaea291
AC
129132002-01-20 Andrew Cagney <ac131313@redhat.com>
12914
12915 From Jeff Law <law@redhat.com>:
12916 * infttrace.c: Include <sys/pstat.h>.
12917 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12918 exec file if the ttrace equivalent fails.
12919
15f698d2
AC
129202002-01-20 Andrew Cagney <ac131313@redhat.com>
12921
12922 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12923 (closeLogFile): Ditto.
12924
f86ddd7c
MC
129252002-01-20 Michael Chastain <mec@shout.net>
12926
12927 * top.c (print_gdb_version): Bump copyright year to 2002.
12928
904507ce
AC
129292002-01-20 Andrew Cagney <ac131313@redhat.com>
12930
12931 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12932 Zannoni and Eli Zaretskii.
12933
d7f0b9ce
DJ
129342002-01-20 Daniel Jacobowitz <drow@mvista.com>
12935
12936 * buildsym.c: Update copyright years.
12937 * c-typeprint.c: Likewise.
12938 * dwarf2read.c: Likewise.
12939 * f-typeprint.c: Likewise.
12940 * gdbtypes.c: Likewise.
12941 * gdbtypes.h: Likewise.
12942 * hp-symtab-read.c: Likewise.
12943 * hpread.c: Likewise.
12944 * mdebugread.c: Likewise.
12945 * p-typeprint.c: Likewise.
12946
3fd3d7d2
AC
129472002-01-20 Andrew Cagney <ac131313@redhat.com>
12948
12949 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12950 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12951 byte-order selectable.
12952 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12953 * arch-utils.c: Ditto.
12954 (set_endian): Ditto.
12955 (set_endian_from_file): Ditto.
12956 * gdbserver/low-sim.c (create_inferior): Ditto.
12957 * gdbarch.sh: Ditto.
12958 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12959 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12960 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12961 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12962 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12963 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12964 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12965 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12966 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12967 macro definition.
12968 * config/mips/tm-wince.h: Remove #undef of macro
12969 TARGET_BYTE_ORDER_SELECTABLE.
12970 * config/sh/tm-wince.h: Ditto.
12971
b02dede2
DJ
129722002-01-20 Daniel Jacobowitz <drow@mvista.com>
12973
12974 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12975 member function fields. Add accessor macro
12976 TYPE_FN_FIELD_ARTIFICIAL.
12977 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12978 * c-typeprint.c (c_type_print_base): Skip artificial member
12979 functions.
12980
c3643761
DJ
129812002-01-20 Daniel Jacobowitz <drow@mvista.com>
12982
12983 * f-typeprint.c: Delete unused function f_type_print_args.
12984 * p-typeprint.c: Delete unused function pascal_type_print_args.
12985
8176bb6d
DJ
129862002-01-20 Daniel Jacobowitz <drow@mvista.com>
12987
12988 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12989 comment. Add ``artificial'' to ``union field_location''.
12990
12991 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12992
12993 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12994 * mdebugread.c (parse_symbol): Likewise.
12995 * stabsread.c (define_symbol): Likewise.
12996 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12997 initializing TYPE_FIELD_BITPOS to n (obsolete).
12998 (hpread_doc_function_type): Likewise.
12999 * hpread.c (hpread_function_type): Likewise.
13000
7fd60527
AC
130012002-01-20 Andrew Cagney <ac131313@redhat.com>
13002
13003 * configure.in (host_makefile_frag): Only require a host makefile
13004 fragment when a native build.
13005 * configure: Re-generate.
13006
c2f05ac9
AC
130072002-01-20 Andrew Cagney <ac131313@redhat.com>
13008
13009 * doublest.h (floatformat_from_type): Declare.
13010 * doublest.c (floatformat_from_type): New function.
13011 (convert_typed_floating): Use.
13012
13013 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13014 call to function floatformat_from_type.
13015
13016 * gdbarch.sh (IEEE_FLOAT): Delete.
13017 * gdbarch.h, gdbarch.c: Re-generate.
13018 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13019 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13020 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13021 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13022 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13023 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13024 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13025 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13026 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13027 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13028 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13029 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13030
13031 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13032 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13033 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13034 * sh-tdep.c (sh_gdbarch_init): Ditto.
13035 * mips-tdep.c (mips_gdbarch_init): Ditto.
13036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13037 * cris-tdep.c (cris_gdbarch_init): Ditto.
13038
abf22e64
AJ
130392002-01-20 Jiri Smid <smid@suse.cz>
13040
13041 * configure.host, configure.tgt: Support x86-64.
13042 * NEWS: Note new target x86-64.
13043
b7c4cbf8
AJ
13044 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13045 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13046 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13047 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13048 x86-64-linux-nat.o): Fix dependencies.
13049
82600034
AC
130502002-01-19 Andrew Cagney <ac131313@redhat.com>
13051
13052 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13053 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13054 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13055 * config/sparc/xm-sun4os4.h: Delete file.
13056 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13057
bbe5c628
AC
130582002-01-19 Andrew Cagney <ac131313@redhat.com>
13059
13060 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13061 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13062 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13063 * config/i386/i386lynx.mh (XM_FILE): Delete.
13064 * config/rs6000/xm-rs6000ly.h: Delete file.
13065 * config/sparc/xm-sparclynx.h: Delete file.
13066 * config/m68k/xm-m68klynx.h: Delete file.
13067 * config/i386/xm-i386lynx.h: Delete file.
13068 * config/xm-lynx.h: Delete file.
13069 * config/djgpp/fnchange.lst: Update.
13070
f8453e34
JT
130712002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13072
13073 * alpha-tdep.c (alpha_register_byte): New function.
13074 (alpha_register_raw_size): Ditto.
13075 (alpha_register_virtual_size): Ditto.
13076 (alpha_skip_prologue_internal): Renamed from
13077 alpha_skip_prologue.
13078 (alpha_skip_prologue): New version that calls
13079 alpha_skip_prologue_internal.
13080 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13081 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13082 second argument from alpha_skip_prologue.
13083 (REGISTER_BYTE): Use alpha_register_byte.
13084 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13085 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13086 (FRAMELESS_FUNCTION_INVOCATION): Use
13087 generic_frameless_function_invocation_not.
13088 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13089 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13090
52d9e613
AC
130912002-01-19 Andrew Cagney <ac131313@redhat.com>
13092
13093 * config/mips/xm-news-mips.h: Delete file.
13094 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13095
13096 * config/m88k/xm-m88k.h: Delete file.
13097 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13098 * config/m88k/xm-delta88v4.h: Ditto.
13099 * config/m88k/xm-delta88.h: Ditto.
13100
13101 * config/alpha/xm-fbsd.h: Delete file.
13102 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13103
13104 * config/sparc/xm-sparc.h: Delete file.
13105 * Makefile.in (xm-sun4os4.h): Delete dependency.
13106 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13107 * config/sparc/xm-sun4os4.h: Ditto.
13108 * config/sparc/xm-linux.h: Ditto.
13109
13110 * config/i386/xm-windows.h: Delete file.
13111
2d1b2124
AC
131122002-01-19 Andrew Cagney <ac131313@redhat.com>
13113
13114 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13115 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13116
ee1f65f0
JT
131172002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13118
13119 * alpha-tdep.c (alpha_call_dummy_words): New.
13120 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13121 (CALL_DUMMY_P): Define.
13122 (CALL_DUMMY_WORDS): Define.
13123 (SIZEOF_CALL_DUMMY_WORDS): Define.
13124
98081e55
PB
131252002-01-19 Per Bothner <per@bothner.com>
13126
13127 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13128 isn't NULL, which can happen with some gcj-3.x-produced code.
13129
0d056799
JT
131302002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13131
13132 * alpha-tdep.c (alpha_register_virtual_type): New function.
13133 (alpha_init_frame_pc_first): Ditto.
13134 (alpha_fix_call_dummy): Ditto.
13135 (alpha_store_struct_return): Ditto.
13136 (alpha_extract_struct_value_address): Ditto.
13137 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13138 alpha_register_virtual_type.
13139 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13140 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13141 alpha_extract_struct_value_address.
13142 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13143 (INIT_FRAME_PC): Use init_frame_pc_noop.
13144 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13145
4604bcad
MK
131462002-01-19 Mark Kettenis <kettenis@gnu.org>
13147
13148 * i386gnu-nat.c: Include "i386-tdep.h".
13149 (fetch_fpregs): Simplify code dealing with uninitialized floating
13150 point states such that it doesn't require FP7_REGNUM.
13151
140f9984
JT
131522002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13153
abf22e64
AJ
13154 * alpha-tdep.c (frame_extra_info): New.
13155 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13156 frame->extra_info.
13157 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13158 (alpha_frame_saved_pc): Use frame->extra_info.
13159 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13160 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13161 (init_extra_frame_info): Rename to...
13162 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13163 (alpha_print_extra_frame_info): New function.
140f9984
JT
13164 (alpha_frame_locals_address): Ditto.
13165 (alpha_frame_args_address): Ditto.
abf22e64 13166 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13167 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13168 alpha_frame_args_address.
abf22e64 13169 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13170 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13171 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13172 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13173 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13174 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13175
d734c450
JT
131762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13177
13178 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13179 (alpha_cannot_fetch_register): Ditto.
13180 (alpha_cannot_store_register): Ditto.
13181 (alpha_register_convertible): Ditto.
13182 (alpha_use_struct_convention): Ditto.
13183 * config/alpha/tm-alpha.h: Update copyright years.
13184 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13185 (INNER_THAN): Use core_addr_lessthan.
13186 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13187 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13188 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13189 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13190 (FRAME_CHAIN): Remove unnecessary cast.
13191
b4ceaee6
AC
131922002-01-18 Andrew Cagney <ac131313@redhat.com>
13193
13194 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13195 obsolete.
13196
0a65a603
AC
131972002-01-18 Andrew Cagney <ac131313@redhat.com>
13198
13199 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13200 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13201 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13202 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13203 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13204 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13205 * x86-64-linux-nat.c: Ditto.
13206
636a6dfc
JT
132072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13208
abf22e64 13209 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13210 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13211 (REGISTER_NAME): Define.
13212
acceddb6
JT
132132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13214
13215 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13216
ec32e4be
JT
132172002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13218
13219 * alpha-tdep.c: Update copyright years.
13220 (alpha_next_pc): New function.
13221 (alpha_software_single_step): Ditto.
13222 * config/alpha/tm-alpha.h: Add prototype for
13223 alpha_software_single_step.
13224
e771a871
JT
132252002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13226
13227 * alphabsd-nat.c: Update copyright years.
13228 (fill_gregset): Use regcache_collect.
13229 (fill_fpregset): Likewise.
13230 (fetch_inferior_registers): Only fetch integer registers
13231 if requested to do so.
13232 (store_inferior_registers): Only store integer registers
13233 if requested to do so.
13234
7708fa01
AC
132352002-01-17 Andrew Cagney <ac131313@redhat.com>
13236
13237 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13238 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13239 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13240 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13241 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13242 * config/arm/linux.mh (XDEPFILES): Delete.
13243 * config/arm/nbsd.mh (XDEPFILES): Delete.
13244 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13245 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13246 * config/i386/i386m3.mh (XDEPFILES): Delete.
13247 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13248 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13249 * config/i386/fbsd.mh (XDEPFILES): Delete.
13250 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13251 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13252 * config/i386/i386v4.mh (XDEPFILES): Delete.
13253 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13254 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13255 * config/i386/i386aix.mh (XDEPFILES): Delete.
13256 * config/i386/go32.mh (XDEPFILES): Delete.
13257 * config/i386/cygwin.mh (XDEPFILES): Delete.
13258 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13259 * config/i386/i386mach.mh (XDEPFILES): Delete.
13260 * config/i386/i386v32.mh (XDEPFILES): Delete.
13261 * config/i386/linux.mh (XDEPFILES): Delete.
13262 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13263 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13264 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13265 * config/i386/i386sco.mh (XDEPFILES): Delete.
13266 * config/i386/i386v.mh (XDEPFILES): Delete.
13267 * config/i386/nbsd.mh (XDEPFILES): Delete.
13268 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13269 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13270 * config/i386/symmetry.mh (XDEPFILES): Delete.
13271 * config/i386/obsd.mh (XDEPFILES): Delete.
13272 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13273 * config/ia64/linux.mh (XDEPFILES): Delete.
13274 * config/ia64/aix.mh (XDEPFILES): Delete.
13275 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13276 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13277 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13278 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13279 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13280 * config/m68k/linux.mh (XDEPFILES): Delete.
13281 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13282 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13283 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13284 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13285 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13286 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13287 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13288 * config/m88k/delta88.mh (XDEPFILES): Delete.
13289 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13290 * config/m88k/m88k.mh (XDEPFILES): Delete.
13291 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13292 * config/mips/linux.mh (XDEPFILES): Delete.
13293 * config/mips/irix6.mh (XDEPFILES): Delete.
13294 * config/mips/irix5.mh (XDEPFILES): Delete.
13295 * config/mips/irix4.mh (XDEPFILES): Delete.
13296 * config/mips/irix3.mh (XDEPFILES): Delete.
13297 * config/mips/decstation.mh (XDEPFILES): Delete.
13298 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13299 (NATDEPFILES): Move core-aout.o to here.
13300 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13301 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13302 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13303 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13304 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13305 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13306 * config/pa/hpux11.mh (XDEPFILES): Delete.
13307 * config/powerpc/aix.mh (XDEPFILES): Delete.
13308 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13309 * config/powerpc/linux.mh (XDEPFILES): Delete.
13310 * config/romp/rtbsd.mh: Rename XDEPFILES.
13311 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13312 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13313 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13314 * config/s390/s390.mh (XDEPFILES): Delete.
13315 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13316 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13317 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13318 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13319 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13320 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13321 * config/sparc/linux.mh (XDEPFILES): Delete.
13322 * config/vax/vaxult.mh (XDEPFILES): Delete.
13323 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13324 * Makefile.in (DEPFILES): Remove XDEPFILES.
13325
375fc983
AC
133262002-01-17 Andrew Cagney <ac131313@redhat.com>
13327
13328 * utils.c (internal_verror): Fix comments, default is yes not no.
13329 Update queries to match. Default to quit and dump core.
13330
8926118c
AC
133312002-01-17 Andrew Cagney <ac131313@redhat.com>
13332
13333 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13334 copyright.
13335 * defs.h, event-top.c, gdbcmd.h: Ditto.
13336 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13337 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13338 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13339 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13340 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13341 * mi/mi-main.c:Ditto.
13342
13343 * stack.c, symfile.c: Update copyright.
13344
45b7b345
DJ
133452002-01-17 Daniel Jacobowitz <drow@mvista.com>
13346
db728ff7
DJ
13347 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13348 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13349 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13350 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13351
db728ff7
DJ
133522002-01-17 Daniel Jacobowitz <drow@mvista.com>
13353
13354 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13355 * gdbserver/low-lynx.c (myattach): Likewise.
13356 * gdbserver/low-nbsd.c (myattach): Likewise.
13357 * gdbserver/low-sim.c (myattach): Likewise.
13358 * gdbserver/low-sparc.c (myattach): Likewise.
13359 * gdbserver/low-sun3.c (myattach): Likewise.
13360
13361 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13362
db728ff7 13363 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13364 (main): Handle "--attach".
13365
8de3c354
AC
133662002-01-16 Andrew Cagney <ac131313@redhat.com>
13367
13368 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13369 maintainer.
13370
b0129042
DJ
133712002-01-15 Daniel Jacobowitz <drow@mvista.com>
13372
13373 * c-typeprint.c (is_type_conversion_operator): Add additional
13374 check for non-conversion operators.
13375
ba8679fb 133762002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13377
13378 * linux-proc.c: Add "info proc" command, a la procfs.c.
13379 (read_mapping): New function, abstract and re-use code.
13380 (linux_find_memory_regions): Use new func read_mapping.
13381 (linux_info_proc_cmd): New function, implement "info proc".
13382 (_initialize_linux_proc): Add new command "info proc".
13383
e4f9b4d5
MS
133842002-01-15 Michael Snyder <msnyder@redhat.com>
13385
13386 * symfile.c (generic_load): Use bfd_map_over_sections method
13387 instead of manipulating bfd structure members directly.
13388 (add_section_size_callback): New function, bfd sections callback
13389 used by generic_load.
13390 (load_sections_callback): New function, bfd sections callback
13391 used by generic_load.
13392
08cf96df
EZ
133932002-01-15 Elena Zannoni <ezannoni@redhat.com>
13394
abf22e64 13395 [Based on work by Jim Blandy]
08cf96df
EZ
13396 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13397 (builtin_type_vec128): Export.
13398 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13399 types.
13400 (builtin_type_vec128): New builtin type for 128 bit vector
13401 registers.
13402 (build_gdbtypes): Initialize builtin_type_v16qi and
13403 builtin_type_v8hi. Create the vec128 register builtin type
13404 structure.
13405 (build_builtin_type_vec128): New function.
abf22e64 13406 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13407 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13408 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13409 AltiVec register to new builtin type.
13410
d7242108
DJ
134112001-01-15 Daniel Jacobowitz <drow@mvista.com>
13412
13413 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13414 to make_cv_type.
13415
4ee3352d
AC
134162002-01-14 Andrew Cagney <ac131313@redhat.com>
13417
13418 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13419 CLEAN_UP_REGISTER_VALUE.
13420 * regcache.c (supply_register): Update only call.
13421
f015b2e7
AC
134222002-01-14 Andrew Cagney <ac131313@redhat.com>
13423
13424 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13425 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13426 a29k-*-vxworks* targets as obsolete.
13427
356ae49d
MS
134282002-01-14 Michael Snyder <msnyder@redhat.com>
13429
13430 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13431 until we can resolve portability issues.
13432 * gregset.h: Remove references to fpxregs.
13433 * gcore.c (gcore_command): Initialize note_sec to NULL.
13434
ade8f45e
AC
134352002-01-13 Andrew Cagney <ac131313@redhat.com>
13436
13437 * signals.c (target_signal_to_name): Rewrite. Only use
13438 signals[].name when in bounds and non-NULL.
abf22e64 13439
89c49e7a
AC
134402002-01-13 Andrew Cagney <ac131313@redhat.com>
13441
13442 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13443 * signals.c (target_signal_to_name): Verify that SIG is within the
13444 bounds of the signals array.
13445
4daa9f9f
AC
134462002-01-13 Andrew Cagney <ac131313@redhat.com>
13447
13448 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13449
ba4bbdcb
KS
134502002-01-13 Keith Seitz <keiths@redhat.com>
13451
13452 * stack.c (print_frame_info_base): Print the frame's pc
13453 only if when print_frame_info_listing_hook is not defined.
13454
575bbeb6
KS
134552002-01-13 Keith Seitz <keiths@redhat.com>
13456
13457 * varobj.c (varobj_set_value): Make sure that there were no
13458 errors evaluating the object before attempting to set its
13459 value.
13460 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13461 so this offset adjustment is no longer necessary.
13462 (create_child): Don't set the error flag if the child is
13463 a CPLUS_FAKE_CHILD.
13464 (value_of_child): If value_fetch_lazy fails, return NULL
13465 so that callers will be notified that an error occurred.
13466 (c_value_of_variable): Delay check of variable's validity
13467 until later. We actually want all structs and unions to have
13468 the value "{...}".
13469 Do not return "???" for variables which could not be evaluated.
13470 This error condition must be returned to the caller so that it
13471 can get the error condition from gdb.
13472 (cplus_name_of_child): Adjust index for vptr before figuring
13473 out the name of the child.
13474 (cplus_value_of_child): If a child's (real) parent is not valid,
13475 don't even bother trying to give a value for it. Just return
13476 an error. Change all instances in this function.
13477 (cplus_type_of_child): If our parent is one of the "fake"
13478 parents, we need to get at the type of the real parent, and
13479 derive the child's true type using this information.
13480
b76898ab
AC
134812002-01-13 Andrew Cagney <ac131313@redhat.com>
13482
13483 From 2002-01-09 John Marshall <johnm@falch.net>:
13484 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13485 sources.redhat.com, and tweak some related URLs which had
13486 suffered from linkrot.
13487
b6649e88
AC
134882002-01-13 Andrew Cagney <ac131313@redhat.com>
13489
13490 From Jeff law:
13491 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13492 structures passed in registers.
13493
82cc5033
EZ
134942002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13495
13496 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13497 white space which prevented compilation. Reported by DSK
13498 <dsk@student.unsw.edu.au>.
13499
ba5f2f8a
MS
135002002-01-11 Michael Snyder <msnyder@redhat.com>
13501
fbd35540
MS
13502 * symfile.c (build_section_addr_info_from_section_tab):
13503 Use bfd access method instead of manipulating bfd directly.
13504 (syms_from_objfile): Ditto.
13505 (simple_overlay_update_1): Ditto.
13506 (simple_overlay_update): Ditto.
13507 (generic_load): Ditto.
13508 (overlay_unmapped_address): FIXME comment, bfd access methods.
13509 (sections_overlap): FIXME comment, bfd access methods.
13510 (pc_in_mapped_range): FIXME comment, bfd access methods.
13511 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13512 (section_is_mapped): FIXME comment, bfd access methods.
13513 (section_is_overlay): FIXME comment, bfd access methods.
13514
ba5f2f8a
MS
13515 * symfile.c (generic_load): Whitespace and long line cleanups.
13516 Remove duplicate variable, change several local variables to
13517 more appropriate data types.
13518 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13519
17df2af6
AC
135202002-01-12 Andrew Cagney <ac131313@redhat.com>
13521
13522 From Peter Schauer:
13523 * language.c (longest_local_hex_string_custom): Use phex_nz to
13524 convert NUM to a hex string.
13525
ec920329
EZ
135262002-01-12 Elena Zannoni <ezannoni@redhat.com>
13527
13528 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13529 the function.
538a76d6 13530 Update Copyright year.
ec920329 13531
3abd2e01
AC
135322002-01-12 Andrew Cagney <ac131313@redhat.com>
13533
13534 * language.c (longest_raw_hex_string): Delete unused function.
13535
b21b22e0
PS
135362002-01-11 Petr Sorfa <petrs@caldera.com>
13537
13538 * MAINTAINERS (write-after-approval): Add myself.
13539 * dwarf2read.c (read_tag_string_type): Handling of
13540 DW_AT_byte_size.
13541 (read_tag_string_type): FORTRAN fix to prevent propagation of
13542 first string size.
13543 (set_cu_language): Handling of DW_LANG_Fortran95
13544
747fe712
RE
135452002-01-11 Richard Earnshaw <rearnsha@arm.com>
13546
13547 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13548 GETPID(inferior_ptid).
13549 (store_inferior_registers): Likewise.
13550
f1bea926
JM
135512002-01-10 Jason Merrill <jason@redhat.com>
13552
13553 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13554 Fix DW_OP_minus.
13555
ae940673
AC
135562002-01-10 Andrew Cagney <ac131313@redhat.com>
13557
13558 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13559 and bfd/elf32-sh-nbsd.c.
13560
00546b04
MS
135612002-01-10 Michael Snyder <msnyder@redhat.com>
13562
352ed7b4
MS
13563 * NEWS: Mention --pid and corefile/proc-id behavior change.
13564
c18be923
MS
13565 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13566 * gcore.c: Include cli/cli-decode.h instead of command.h.
13567
00546b04
MS
13568 * main.c (captured_main): Add new command line option "--pid".
13569 If the second command line argument (following the symbol-file)
13570 begins with a digit, try to attach to it before trying to open
13571 it as a corefile.
13572 (print_gdb_help): Document the "--pid" argument.
13573
db60ec62
EZ
135742002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13575
13576 * completer.c (command_completer): New function.
13577
13578 * completer.h <command_completer>: Add prototype.
13579
13580 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13581 completer for the "help" command.
13582
39c22d1a
JM
135832002-01-09 Jason Merrill <jason@redhat.com>
13584
13585 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13586
c564377f
MS
135872002-01-09 Michael Snyder <msnyder@redhat.com>
13588
975aec09
MS
13589 * i386-linux-nat.c (fill_fpxregset): Make global.
13590 (store_fpxregset): Ditto.
13591
db4a10fa
MS
13592 * gregset.h (gdb_fpxregset_t): Define.
13593 (supply_fpxregset): Prototype.
13594 (fill_fpxregset): Prototype.
13595
c564377f
MS
13596 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13597
c3d45d70
RE
135982002-01-09 Richard Earnshaw <rearnsha@arm.com>
13599
13600 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13601 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13602 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13603
fcc87af1
AC
136042002-01-09 Andrew Cagney <ac131313@redhat.com>
13605
13606 * MAINTAINERS: Update target maintainer rules so that any
13607 Maintainer can approve a tested patch for a maintenance-only
13608 target.
13609
dd96c05b
RE
136102002-01-09 Richard Earnshaw <rearnsha@arm.com>
13611
d4297db9 13612 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13613
d4297db9 13614 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13615 IN_SIGTRAMP.
13616
145fdc6e
MS
136172002-01-08 Michael Snyder <msnyder@redhat.com>
13618
13619 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13620 real name of the executable, rather than the /proc name.
13621
be4d1333
MS
136222002-01-03 Michael Snyder <msnyder@redhat.com>
13623
13624 Implement a "generate-core-file" command in gdb, save target state.
13625 * gcore.c: New file. Implement new command 'generate-core-file'.
13626 Save a corefile image of the current state of the inferior.
13627 * linux-proc.c: Add linux-specific code for saving corefiles.
13628 * target.h (struct target_ops): Add new target vectors for saving
13629 corefiles; to_find_memory_regions and to_make_corefile_notes.
13630 (target_find_memory_regions): New macro.
13631 (target_make_corefile_notes): New macro.
13632 * target.c (update_current_target): Inherit new target methods.
13633 (dummy_find_memory_regions): New place-holder method.
13634 (dummy_make_corefile_notes): New place-holder method.
13635 (init_dummy_target): Initialize new dummy target vectors.
13636 * exec.c (exec_set_find_memory_regions): New function.
13637 Allow the exec_ops vector for memory regions to be taken over.
13638 (exec_make_note_section): New function, target vector method.
13639 * defs.h (exec_set_find_memory_regions): Export prototype.
13640 * procfs.c (proc_find_memory_regions): New function, corefile method.
13641 (procfs_make_note_section): New function, corefile method.
13642 (init_procfs_ops): Set new target vector pointers.
13643 (find_memory_regions_callback): New function.
13644 (procfs_do_thread_registers): New function.
13645 (procfs_corefile_thread_callback): New function.
13646 * sol-thread.c (sol_find_memory_regions): New function.
13647 (sol_make_note_section): New function.
13648 (init_sol_thread_ops): Initialize new target vectors.
13649 * inftarg.c (inftarg_set_find_memory_regions): New function.
13650 Allow to_find_memory_regions vector to be taken over.
13651 (inftarg_set_make_corefile_notes): New function.
13652 Allow to_make_corefile_notes vector to be taken over.
13653 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13654 interface layer if not target_has_execution (may be a corefile).
13655 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13656 * config/sparc/sun4sol2.mh: Ditto.
13657 * config/alpha/alpha-linux.mh: Ditto.
13658 * config/arm/linux.mh: Ditto.
13659 * config/i386/x86-64linux.mh: Ditto.
13660 * config/ia64/linux.mh: Ditto.
13661 * config/m68k/linux.mh: Ditto.
13662 * config/mips/linux.mh: Ditto.
13663 * config/powerpc/linux.mh: Ditto.
13664 * config/sparc/linux.mh: Ditto.
13665
c6b92abd
MS
136662002-01-07 Michael Snyder <msnyder@redhat.com>
13667
13668 * arm-linux-nat.c: Remove references to regcache.c internal data
13669 (registers[] and register_valid[]).
13670
4b09dc8c
MS
136712002-01-07 Michael Snyder <msnyder@redhat.com>
13672
abf22e64
AJ
13673 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13674 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13675 symbol file and shlibs.
13676 * Makefile.in: Add rule for linux-proc.o.
13677 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13678 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13679 * config/arm/linux.mh: Ditto.
13680 * config/i386/linux.mh: Ditto.
13681 * config/i386/x86-64linux.mh: Ditto.
13682 * config/ia64/linux.mh: Ditto.
13683 * config/m68k/linux.mh: Ditto.
13684 * config/mips/linux.mh: Ditto.
13685 * config/powerpc/linux.mh: Ditto.
13686 * config/sparc/linux.mh: Ditto.
13687
c25b74ac
PM
136882002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13689
13690 * win32-nat.c: Add i386-tdep.h dependency.
13691
94cd915f
MS
136922002-01-07 Michael Snyder <msnyder@redhat.com>
13693
c7cccb76
MS
13694 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13695 instead of bfd_get_arch_size. Don't bail out just because
13696 there's no exec_bfd.
abf22e64 13697
34c0bd93
MS
13698 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13699 * p-valprint.c (pascal_object_print_value): Ditto.
13700 * somread.c (som_symtab_read): Ditto.
13701 * symfile.c (simple_free_overlay_region_table): Ditto.
13702 * valops.c (value_assign): Ditto.
13703
21c1c920
MS
13704 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13705 use tilde_expand and strerror for opening save-tracepoints file.
13706
5bbd998e
MS
13707 * thread-db.c (thread_db_new_objfile): Indendation fix.
13708
94cd915f
MS
13709 * infptrace.c (GDB_MAX_ALLOCA): New define.
13710 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13711 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13712 can be overridden with whatever value is appropriate to the host).
13713 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13714 alloca to allocate potentially large buffer.
13715 * rs6000-nat.c (child_xfer_memory): Ditto.
13716 * symm-nat.c (child_xfer_memory): Ditto.
13717 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13718
494e8a93
JSC
137192002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13720
13721 From Nick Clifton <nickc@redhat.com>
13722 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13723
d0e1d48e
MS
137242002-01-07 Michael Snyder <msnyder@redhat.com>
13725
abf22e64 13726 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13727 Don't use exec_bfd if it's NULL.
13728
290b2c7a
MK
137292002-01-06 Mark Kettenis <kettenis@gnu.org>
13730
abf22e64 13731 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13732
aef21287
AC
137332002-01-06 Andrew Cagney <ac131313@redhat.com>
13734
13735 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13736 * gnu-nat.c: Ditto.
13737
30efa627
AC
137382002-01-06 Andrew Cagney <ac131313@redhat.com>
13739
13740 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13741 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13742 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13743 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13744 z8k-coff have not been multi-arched. Update z8k-coff build
13745 status.
13746
9b4ff276
AC
137472002-01-06 Andrew Cagney <ac131313@redhat.com>
13748
13749 * MAINTAINERS: Mark a29k target as obsolete.
13750 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13751 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13752 comments.
13753 * NEWS: Note that a29k targets are obsolete.
13754 * a29k-tdep.c: Mark as obsolete.
13755 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13756 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13757 a29k-*-vxworks* targets as obsolete.
13758 * remote-adapt.c: Obsolete.
13759 * remote-eb.c: Obsolete.
13760 * remote-mm.c: Obsolete.
13761 * remote-udi.c: Obsolete.
13762 * config/a29k/a29k-udi.mt: Obsolete.
13763 * config/a29k/a29k.mt: Obsolete.
13764 * config/a29k/tm-a29k.h: Obsolete.
13765 * config/a29k/tm-vx29k.h: Obsolete.
13766 * config/a29k/vx29k.mt: Obsolete.
13767
a9011d31
AC
137682002-01-05 Andrew Cagney <ac131313@redhat.com>
13769
13770 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13771 with BFD_ENDIAN_BIG.
13772
9299404e
AC
137732002-01-05 Andrew Cagney <ac131313@redhat.com>
13774
13775 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13776 * configure, config.in: Re-generate.
13777 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13778 * defs.h: Do not include <endian.h>.
13779
7e89e357
JT
137802002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13781
13782 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13783 * config.in: Regenerate.
13784 * configure.in: Update copyright years.
13785 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13786 * configure: Regenerate.
13787 * i386bsd-nat.c: Update copyright years.
13788 (fill_gregset): Use regcache_collect.
13789 (fetch_inferior_registers): Only fetch integer registers
13790 if requested to do so. Add support for XMM registers
13791 using PT_GETXMMREGS.
13792 (store_inferior_registers): Only store integer registers
13793 if requested to do so. Add support for XMM registers
13794 using PT_SETXMMREGS.
13795 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13796 (store_inferior_registers): Remove.
13797 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13798 (fetch_elfcore_registers): New function.
13799 (i386nbsd_elfcore_fns): New.
13800 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13801 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13802 i386bsd-nat.o.
13803 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13804 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13805 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13806 * config/i386/tm-nbsd.h: Update copyright years.
13807 (HAVE_SSE_REGS): Define.
13808 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13809 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13810 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13811 (SIGCONTEXT_PC_OFFSET): Remove.
13812 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13813
a752853e
AC
138142002-01-05 Andrew Cagney <ac131313@redhat.com>
13815
13816 * configure.tgt: Remove powerpc-*-macos* target.
13817 * config/m68k/xm-mpw.h: Delete file.
13818 * config/xm-mpw.h: Delete file.
13819 * ser-mac.c: Delete file.
13820 * mpw-make.sed: Delete file.
13821 * mpw-config.in: Delete file.
13822 * mac-xdep.c: Delete file.
13823 * mac-gdb.r: Delete file.
13824 * mac-defs.h: Delete file.
13825 * mac-nat.c: Delete file.
13826 * config/powerpc/macos.mh: Delete file.
13827 * config/powerpc/macos.mt: Delete file.
13828 * config/powerpc/nm-macos.h: Delete file.
13829 * config/powerpc/tm-macos.h: Delete file.
13830 * source.c (openp, open_source_file): Remove obsolete code.
13831 * top.c (gdb_readline): Ditto.
13832 * utils.c (query): Ditto.
13833 * event-top.c (display_gdb_prompt): Ditto.
13834 * Makefile.in (ser-mac.o): Delete obsolete target.
13835 * NEWS: Update.
13836
d7449b42
AC
138372002-01-04 Andrew Cagney <ac131313@redhat.com>
13838
13839 * defs.h (BIG_ENDIAN): Delete macro definition.
13840 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13841 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13842 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13843 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13844 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13845 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13846 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13847 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13848 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13849 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13850 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13851 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13852 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13853 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13854 * gdbarch.c: Re-generate.
13855
356374e8
DJ
138562002-01-04 Daniel Jacobowitz <drow@mvista.com>
13857
13858 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13859 for core files.
13860
a2b8f8f8
JT
138612002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13862
13863 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13864
12466af9
AC
138652002-01-04 Andrew Cagney <ac131313@redhat.com>
13866
13867 * value.h (value_ptr): Delete typedef.
13868
3549ab40
JT
138692002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13870
13871 * i386nbsd-nat.c: Update copyright years.
13872 Include i386-tdep.h.
13873
fedbd091
EZ
138742002-01-04 Elena Zannoni <ezannoni@redhat.com>
13875
13876 * stabsread.c: Update copyright years.
13877
13878 From Debashis Mahata <debashis.mahata@wipro.com>:
13879 (read_struct_fields): Deal with Sun C compiler erroneous stab
13880 output for structs and unions.
fec8b34f 13881 Fix PR gdb/269.
fedbd091 13882
eb43544b
DJ
138832002-01-04 Daniel Jacobowitz <drow@mvista.com>
13884
13885 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13886 prototype.
13887
1514d34e
DJ
138882002-01-04 Daniel Jacobowitz <drow@mvista.com>
13889
13890 * cp-abi.c: Fix whitespace.
13891 (baseclass_offset): New wrapper function.
13892 * cp-abi.h (baseclass_offset): Add prototype.
13893 (struct cp_abi_ops): Add baseclass_offset pointer.
13894
13895 * valops.c (vb_match): Move to...
13896 * gnu-v2-abi.c (vb_match): here.
13897 * valops.c (baseclass_offset): Move to...
13898 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13899
13900 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13901
13902 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13903 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13904 * hpacc-abi.c (init_hpacc_ops): Likewise.
13905
7f8c9282
DJ
139062002-01-04 Daniel Jacobowitz <drow@mvista.com>
13907
13908 * valops.c (find_overload_match): Accept obj as a
13909 reference parameter. Update it before returning.
13910 * value.h (find_overload_match): Update prototype.
13911 * eval.c (evaluate_subexp_standard): Pass object to
13912 find_overload_match by reference.
13913
f23631e4
AC
139142002-01-03 Andrew Cagney <ac131313@redhat.com>
13915
13916 * valarith.c: Replace value_ptr with struct value pointer. Remove
13917 register attribute from value declarations.
13918 * valops.c: Ditto.
13919 * value.h: Ditto.
13920 * scm-lang.c (scm_lookup_name): Ditto.
13921
79e10fab 139222002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13923
79e10fab
AC
13924 Abstract the functionality of iterating over mapped memory
13925 regions into a general purpose iterator function.
abf22e64 13926 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13927 iterator for memory sections.
13928 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13929 (solib_mappings_callback): New function, callback for above.
13930 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13931 (info_mappings_callback): New function, callback for above.
13932
13933 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13934
c5ad026a
MK
139352002-01-01 Mark Kettenis <kettenis@gnu.org>
13936
d2a7c97a
MK
13937 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13938 * i386-tdep.c: Include "elf-bfd.h".
13939 (process_note_abi_tag_sections): New function.
13940 (i386_gdbarch_init): Add code to recognize various OS/ABI
13941 combinations.
13942
c5ad026a
MK
13943 * maint.c (_initialize_maint_cmds): Add missing \ in
13944 string-literal.
13945
a1a5b71e 13946For older changes see ChangeLog-2001
c906108c
SS
13947\f
13948Local Variables:
13949mode: change-log
13950left-margin: 8
13951fill-column: 74
13952version-control: never
13953End:
This page took 0.948538 seconds and 4 git commands to generate.