* gas/m68hc11/bug-1825.s: Add some tests.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
52f87c51
AC
12002-12-07 Andrew Cagney <ac131313@redhat.com>
2
3 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
4 the format name.
5 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
6 * gdbarch.c: Regenerate.
7
2ca6c561
AC
82002-12-06 Andrew Cagney <ac131313@redhat.com>
9
10 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
11 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
12 provide a default value.
13 * gdbarch.h, gdbarch.c: Regenerate.
14 * frame.c (get_prev_frame): Update. Check
15 DEPRECATED_INIT_FRAME_PC_FIRST_P.
16 * s390-tdep.c (s390_gdbarch_init): Update.
17 * mips-tdep.c (mips_gdbarch_init): Update.
18 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
19 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
20 * alpha-tdep.c (alpha_gdbarch_init): Update.
21
e162d11b
EZ
222002-12-06 Elena Zannoni <ezannoni@redhat.com>
23
24 * ia64-linux-nat.c: Include gdb_string.h.
25 * alpha-nat.c: Ditto.
2b298b5d
EZ
26 * ppc-linux-nat.c: Ditto.
27 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
28 Update dependencies.
e162d11b 29
aa0cd9c1
AC
302002-12-05 Andrew Cagney <ac131313@redhat.com>
31
32 * gdbthread.h: Include "frame.h".
33 (struct thread_info): Replace step_frame_address with
34 step_frame_id.
35 * inferior.h: Include "frame.h".
36 (step_frame_id): Replace external variable step_frame_address.
37 * gdbthread.h (save_infrun_state): Replace step_frame_address
38 parameter with step_frame_id parameter.
39 (load_infrun_state): Ditto.
40 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
41 * infcmd.c (step_frame_id, step_1, step_once): Update.
42 * thread.c (load_infrun_state, save_infrun_state): Update.
43 * infrun.c (clear_proceed_status, save_inferior_status): Update.
44 (handle_inferior_event, step_over_function): Update.
45 (normal_stop, context_switch, restore_inferior_status): Update.
46 (struct inferior_status): Replace step_frame_address with
47 step_frame_id.
48
a9a9bd0f
DC
492002-12-05 David Carlton <carlton@math.stanford.edu>
50
51 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
52 DW_TAG_member as well as a declaration as being a C++ static data
53 member.
54 (read_structure_scope): Combine tests for DW_TAG_member and
55 DW_TAG_variable.
56
614b3b14
DC
572002-12-05 David Carlton <carlton@math.stanford.edu>
58
59 * linespec.c (decode_compound): New function.
60 (decode_line_1): Move code into decode_compound.
61
e4051eeb
DC
622002-12-05 David Carlton <carlton@math.stanford.edu>
63
64 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
65 argument.
66 (lookup_symbol_aux): Do the 'field_of_this' check before checking
67 the static block. See PR gdb/804.
68
f61e8913
DC
692002-12-05 David Carlton <carlton@math.stanford.edu>
70
71 * symtab.c (lookup_symbol_aux_block): New function.
72 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
73
1e9f55d0
AC
742002-12-05 Andrew Cagney <ac131313@redhat.com>
75
76 * gdbarch.sh: Dump the predicate function and macro values.
77 (read): Print error on standard error.
78 * gdbarch.c: Regenerate.
79
d1973055
KB
802002-12-04 Kevin Buettner <kevinb@redhat.com>
81
82 * Makefile.in (mips_tdep_h): Define.
83 (mips-tdep.o): Add mips_tdep_h to dependency list.
84 * mips-tdep.h: New file.
85 * mips-tdep.c (mips-tdep.h): Include.
86 (enum mips_abi): Move to mips-tdep.h.
87 (mips_abi): New function.
88
f1253c7b
DC
892002-12-04 David Carlton <carlton@math.stanford.edu>
90
91 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
92
406bc4de
DC
932002-12-04 David Carlton <carlton@math.stanford.edu>
94
95 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
96 function.
97 (lookup_symbol_aux_minsyms): New function.
98
2a3750c5
JB
992002-12-04 J. Brobecker <brobecker@gnat.com>
100
101 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
102
961d8652
JB
1032002-12-04 J. Brobecker <brobecker@gnat.com>
104
105 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
106 which is an obsolete macro name.
107
38c52d5a
DJ
1082002-12-04 Daniel Jacobowitz <drow@mvista.com>
109
110 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
111 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
112
d8ef46f5
DJ
1132002-12-03 H.J. Lu (hjl@gnu.org)
114
115 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
116 (create_breakpoints): Make sure the addr_string field is not
117 NULL.
118
02ae7771
AC
1192002-12-03 Andrew Cagney <ac131313@redhat.com>
120
121 * sparc-nat.c (fetch_inferior_registers)
122 (store_inferior_registers): Add comment on problem of LWP vs
123 threads.
124
125 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
126 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
127 (lin_lwp_store_registers): Remove.
128 (init_lin_lwp_ops): Use fetch_inferior_registers
129 and store_inferior_registers directly.
130 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
131 (store_inferior_registers): Likewise.
132 Fix PR gdb/725.
133
7a424e99
AC
1342002-12-03 Andrew Cagney <ac131313@redhat.com>
135
136 * frame.h (get_frame_id): Convert to a function.
137 (null_frame_id, frame_id_p): Declare.
138 (frame_id_eq, frame_id_inner): Declare.
139 (frame_id_build): New function.
140 * frame.c (get_frame_id): Update. Use null_frame_id.
141 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
142 frame_id_inner.
143 (null_frame_id, frame_id_p): Define.
144 (frame_id_eq, frame_id_inner): Define.
145 (frame_id_build): New function.
146 * varobj.c (varobj_create): Update.
147 (varobj_update): Update.
148 * valops.c (value_assign): Update.
149 (new_root_variable): Update.
150 * infrun.c (save_inferior_status): Update.
151 * breakpoint.c (watch_command_1): Update.
152
891c7f5f
JB
1532002-12-03 J. Brobecker <brobecker@gnat.com>
154
155 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
156 (SNAP2): Likewise.
157
144da3c1
AC
1582002-12-03 Andrew Cagney <cagney@redhat.com>
159
46248966
AC
160 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
161 patch.
162
144da3c1
AC
163 * PROBLEMS: Mention PR gdb/725.
164
03c6228e
AS
1652002-12-03 Andreas Schwab <schwab@suse.de>
166
167 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
168
36e53c63
AF
1692002-12-02 Adam Fedor <fedor@gnu.org>
170 Klee Dienes <kdienes@apple.com>
171
172 * objc-lang.c (objc_printstr): Add width arg to match
173 printstr prototype.
174 (compare_selectors): Add 'const' to arg types.
175 (compare_classes): Likewise.
176 (find_imps): Cast msym pointer to avoid compiler warning.
177 (print_object_command): Validate the address before
178 passing it to the print routine.
179 (find_objc_msgcall_submethod): Change function argument to
180 return an int.
181 * objc-lang.h: Add 'extern' to all function declarations.
182 (value_nsstring): Add declaration.
183
504d5c7e
JB
1842002-12-02 J. Brobecker <brobecker@gnat.com>
185
186 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
187 Fixes a build failure on HP/UX.
188
189 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
190 failure on HP/UX.
191 (hpread_has_name): Advance declaration to avoid a compilation warning.
192 (pst_syms_count): Add missing variable type. By change, the compiler
193 was defaulting to int, which seems a good choice. Fixes a compilation
194 warning.
195 (pst_syms_size): Likewise.
196
59623e27
JB
1972002-12-02 J. Brobecker <brobecker@gnat.com>
198
199 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
200 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
201 later to set the proper gdbarch methods depending on the osabi.
202 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
203
a09a320d
JB
2042002-12-02 J. Brobecker <brobecker@gnat.com>
205
206 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
207 * osabi.c (gdb_osabi_name): Add strings images for the two new
208 enum values.
209 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
210
8a81a99e
AC
2112002-12-02 Andrew Cagney <ac131313@redhat.com>
212
213 * MAINTAINERS (Java): Global maintainers are responible for Java.
214 (Past Maintainers): Mention both Anthony Green and Per Bothner as
215 part Java maintainers.
216
7af35dad
JB
2172002-12-02 J. Brobecker <brobecker@gnat.com>
218
219 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
220 Fixes a compilation failure on AiX.
221
f4ede9bc
JB
2222002-12-02 J. Brobecker <brobecker@gnat.com>
223
224 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
225 why aix-thread.o is not listed.
226
ae45cd16
AC
2272002-12-01 Andrew Cagney <ac131313@redhat.com>
228
229 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
230 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
231 * gdbarch.h, gdbarch.c: Re-generate.
232 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
233 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
234 * config/pa/tm-hppa.h, frame.h: Update.
235 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
236 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
237 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
238 * cris-tdep.c, alpha-tdep.c: Update.
239 * frame.c (set_unwind_by_pc, create_new_frame): Use either
240 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
241 (get_prev_frame): Ditto.
242
020cc13c
AC
2432002-11-30 Andrew Cagney <cagney@redhat.com>
244
245 * exec.c (xfer_memory): Replace boolean with int.
246 * p-exp.y: Use 0 instead of false.
247 * corelow.c (gdb_check_format): Change return type to int from
248 boolean.
249 * utils.c: Don't include <curses.h> or <term.h> first.
250
1d9b2aa8
SC
2512002-11-29 Stephane Carrez <stcarrez@nerim.fr>
252
253 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
254 (m68hc11_register_byte): Remove.
255 (m68hc11_gdbarch_init): Don't set the above.
256
a193e397
AC
2572002-11-29 Andrew Cagney <cagney@redhat.com>
258
259 * remote-mips.c (mips_initialize): Force a selected frame rebuild
260 by calling get_selected_frame.
261 * ocd.c (ocd_start_remote): Use get_selected frame instead of
262 set_current_frame, create_new_frame, select_frame and
263 get_current_frame.
264 * remote-e7000.c (e7000_start_remote): Ditto.
265 * remote-mips.c (common_open): Ditto
266 * remote-rdp.c (remote_rdp_open): Ditto.
267
b5fc49aa
AS
2682002-11-29 Andreas Schwab <schwab@suse.de>
269
270 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
271 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
272 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
273 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
274 read_memory_unsigned_integer instead of read_memory_integer when
275 dealing with addresses and instruction opcodes.
276 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
277 (m68k_linux_frame_saved_pc): Likewise.
278
6e7f8b9c
AC
2792002-11-29 Andrew Cagney <ac131313@redhat.com>
280
281 * stack.c (selected_frame, select_frame): Move from here ...
282 * frame.c (selected_frame, select_frame): ... to here. Include
283 "language.h".
284 * Makefile.in (frame.o): Update dependencies.
285 * frame.c (get_selected_frame): New function.
286 * frame.h (get_selected_frame): Declare.
287 (deprecated_selected_frame): Rename selected_frame.
288 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
289 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
290 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
291 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
292 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
293 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
294 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
295 * z8k-tdep.c, cli/cli-cmds.c: Update.
296
805e2818
AC
2972002-11-29 Andrew Cagney <ac131313@redhat.com>
298
299 * frame.h (get_selected_block): Add comments.
300
1058bca7
AC
3012002-11-28 Andrew Cagney <ac131313@redhat.com>
302
303 * frame.c (pc_notcurrent): New function.
304 (find_frame_sal): New function.
305 * frame.h (find_frame_sal): Declare.
306 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
307 * stack.c (print_frame_info_base): Use find_frame_sal instead of
308 find_pc_line.
1058bca7
AC
309 (frame_info): Ditto.
310 * ada-lang.c (find_printable_frame): Ditto.
311
d92419e5
JB
3122002-11-28 J. Brobecker <brobecker@gnat.com>
313
314 * configure.in: Check that the pthdebug library is recent enough
315 before enabling thread support on native AiX.
316 * configure: Regenerate.
317
318 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
319 from the list of object files as it is now appended by configure
320 if thread support is enabled.
321 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
322 if thread support is enabled.
323
8c69fc49
AC
3242002-11-28 Andrew Cagney <cagney@redhat.com>
325
326 * stack.c (get_selected_block): In-line get_current_block.
327 * frame.h (get_current_block): Delete declaration.
328 * blockframe.c (get_current_block): Delete function.
329
07555a72
AC
3302002-11-28 Andrew Cagney <ac131313@redhat.com>
331
332 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
333 USE_GENERIC_DUMMY_FRAMES.
334 * gdbarch.h, gdbarch.c: Regenerate.
335 * valops.c, frame.c: Update.
336 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
337 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
338 * config/pa/tm-hppa.h, blockframe.c: Update.
339 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
340 * m68k-tdep.c, alpha-tdep.c: Ditto.
341
342 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
343 * mips-tdep.c: Ditto.
344
b99fa2d2
AC
3452002-11-27 Andrew Cagney <ac131313@redhat.com>
346
347 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
348 (USE_GENERIC_DUMMY_FRAMES): Default to true.
349 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
350 * gdbarch.c, gdbarch.h: Re-generate.
351 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
352 (CALL_DUMMY_LOCATION): Delete macro definition.
353 (PC_IN_CALL_DUMMY): Delete macro definitions.
354
355 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
356 default is already generic_pc_in_call_dummy.
357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
358 * v850-tdep.c (v850_gdbarch_init): Ditto.
359 * sh-tdep.c (sh_gdbarch_init): Ditto.
360 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
361 * mips-tdep.c (mips_gdbarch_init): Ditto.
362 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
363 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
364 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
365 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
366 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
367 * avr-tdep.c (avr_gdbarch_init): Ditto.
368
369 * arm-tdep.c (arm_gdbarch_init): Do not set
370 use_generic_dummy_frames, default is already 1.
371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
372 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
373 * v850-tdep.c (v850_gdbarch_init): Ditto.
374 * sh-tdep.c (sh_gdbarch_init): Ditto.
375 * s390-tdep.c (s390_gdbarch_init): Ditto.
376 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
378 * mips-tdep.c (mips_gdbarch_init): Ditto.
379 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
381 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
382 * i386-tdep.c (i386_gdbarch_init): Ditto.
383 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
384 * frv-tdep.c (frv_gdbarch_init): Ditto.
385 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
386 * cris-tdep.c (cris_gdbarch_init): Ditto.
387 * avr-tdep.c (avr_gdbarch_init): Ditto.
388
389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
390 call_dummy_location, default is already AT_ENTRY_POINT.
391 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
392 * v850-tdep.c (v850_gdbarch_init): Ditto.
393 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
394 * sh-tdep.c (sh_gdbarch_init): Ditto.
395 * s390-tdep.c (s390_gdbarch_init): Ditto.
396 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
397 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
398 * mips-tdep.c (mips_gdbarch_init): Ditto.
399 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
401 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
402 * i386-tdep.c (i386_gdbarch_init): Ditto.
403 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
404 * frv-tdep.c (frv_gdbarch_init): Ditto.
405 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
406 * cris-tdep.c (cris_gdbarch_init): Ditto.
407 * avr-tdep.c (avr_gdbarch_init): Ditto.
408 * arm-tdep.c (arm_gdbarch_init): Ditto.
409 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
410
abc0af47
AC
4112002-11-28 Andrew Cagney <cagney@redhat.com>
412
413 * frame.h: Update comments on set_current_frame, create_new_frame,
414 flush_cached_frames, reinit_frame_cache, select_frame and
415 selected_frame.
416
ed5cedc5
AC
4172002-11-27 Andrew Cagney <cagney@redhat.com>
418
419 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
420 deprecated pc_in_call_dummy function.
421 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
422 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
423 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
424 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
425 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
426
b2a1bd4f
MH
4272002-11-26 Martin M. Hunt <hunt@redhat.com>
428
429 * Makefile.in: Remove Tix dependencies.
430 * acinclude.m4: Ditto.
431 * aclocal.m4: Ditto.
432 * configure.in: Ditto.
433 * configure: Regenerated.
434
f09cffaa
AC
4352002-11-26 Andrew Cagney <ac131313@redhat.com>
436
437 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
438 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
439 * gdbarch.c: Re-generate.
440
e92b0cc9
AC
4412002-11-26 Andrew Cagney <ac131313@redhat.com>
442
443 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
444 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
445 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
446 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
447 pc_in_call_dummy_at_entry_point.
448 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
449 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
450 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
451 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
452 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
453 pc_in_call_dummy_on_stack.
454 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
455 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
456 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
457 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
458 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
459
b4b88177
AC
4602002-11-26 Andrew Cagney <ac131313@redhat.com>
461
462 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
463 pc_in_call_dummy_before_text_end
464 (deprecated_pc_in_call_dummy_after_text_end): Rename
465 pc_in_call_dummy_after_text_end.
466 (deprecated_pc_in_call_dummy_on_stack): Rename
467 pc_in_call_dummy_on_stack.
468 (deprecated_pc_in_call_dummy_at_entry_point): Rename
469 pc_in_call_dummy_at_entry_point.
470 * m68k-tdep.c (m68k_gdbarch_init): Update.
471 * s390-tdep.c (s390_gdbarch_init): Update.
472 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
473 * vax-tdep.c (vax_gdbarch_init): Update.
474 * sparc-tdep.c (sparc_gdbarch_init): Update.
475 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
477 * i386-tdep.c (i386_gdbarch_init): Update.
478 * frv-tdep.c (frv_gdbarch_init): Update.
479 * cris-tdep.c (cris_gdbarch_init): Update.
480 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
481 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
482 (deprecated_pc_in_call_dummy_after_text_end)
483 (deprecated_pc_in_call_dummy_on_stack)
484 (deprecated_pc_in_call_dummy_at_entry_point): Update.
485 * alpha-tdep.c (alpha_gdbarch_init): Update.
486
eb784848
DJ
4872002-11-25 Daniel Jacobowitz <drow@mvista.com>
488
489 * acconfig.h (HAVE_PREAD64): Add.
490 * configure.in: Check for pread64.
491 * config.in: Regenerated.
492 * configure: Regenerated.
493 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
494 * linux-proc.c (linux_proc_xfer_memory): New function.
495 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
496
933c6fe4
DC
4972002-11-25 David Carlton <carlton@math.stanford.edu>
498
499 * dwarf2read.c (scan_partial_symbols): Descend into namespace
500 pdi's with no name.
501
158a8022
AC
5022002-11-25 Andrew Cagney <ac131313@redhat.com>
503
504 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
505 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
506
481d0f41
JB
5072002-11-25 Jim Blandy <jimb@redhat.com>
508
e8289572
JB
509 * symfile.c (init_objfile_sect_indices): New function.
510 (default_symfile_offsets): Move the section-index-initializing
511 stuff into init_objfile_sect_indices, and call that.
512
b29c9944
JB
513 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
514 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
515
13de58df
JB
516 * symfile.c (syms_from_objfile): Adjust indentation.
517
481d0f41
JB
518 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
519 || info_verbose isn't true.
520
7d6a26a7
AC
5212002-11-24 Andrew Cagney <ac131313@redhat.com>
522
523 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
524 default to get_frame_base.
525 * gdbarch.h, gdbarch.c: Regenerate.
526 * arch-utils.c (default_frame_address): Delete function.
527 * arch-utils.h (default_frame_address): Delete declaration
528
6abe1021
PM
5292002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
530
531 * varobj.c (find_frame_addr_in_frame_chain):
532 Use get_frame_base instead of FRAME_FP,
533 obvious fix.
534
c193f6ac
AC
5352002-11-19 Andrew Cagney <ac131313@redhat.com>
536
537 * frame.h (FRAME_FP): Delete macro.
538 (get_frame_base): New function declaration.
539 * frame.c (get_frame_base): New function.
540 (get_frame_id): Use ->frame.
541 (frame_find_by_id): Rewrite to use get_frame_id.
542 * blockframe.c: Use get_frame_base instead of FRAME_FP.
543 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
544 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
545 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
546 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
547 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
548 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
549
e5d2af14
AC
5502002-11-24 Andrew Cagney <ac131313@redhat.com>
551
552 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
553
931d12c6
AC
5542002-11-24 Andrew Cagney <ac131313@redhat.com>
555
556 * frame.c (set_unwind_by_pc): Revert change below, use
557 PC_IN_CALL_DUMMY.
558 (get_prev_frame): Ditto.
559
5e0f933e
AC
5602002-11-24 Andrew Cagney <ac131313@redhat.com>
561
562 * dummy-frame.c (pc_in_dummy_frame): New function.
563 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
564 (find_dummy_frame): Update comment.
565 (generic_pop_current_frame): Use get_frame_type.
566 * dummy-frame.h (pc_in_dummy_frame): Declare.
567 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
568 (create_new_frame): Use pc_in_dummy_frame.
569 (get_prev_frame): Use pc_in_dummy_frame.
570 (frame_saved_regs_register_unwind): Use get_prev_frame.
571 (deprecated_generic_get_saved_register): Use get_prev_frame.
572
7d8547c9
AC
5732002-11-23 Andrew Cagney <ac131313@redhat.com>
574
575 * blockframe.c (find_frame_addr_in_frame_chain): Move function
576 from here ...
577 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
578 (varobj_create): Note that frame ID should be used.
579 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
580
0225421b
AC
5812002-11-23 Andrew Cagney <ac131313@redhat.com>
582
583 * breakpoint.c: Include "gdb_assert.h".
584 (deprecated_frame_in_dummy): Assert that generic dummy frames are
585 not being used.
586 * Makefile.in (breakpoint.o): Update dependencies.
587 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
588 deprecated_frame_in_dummy.
589 * stack.c (print_frame_info_base): Ditto.
590 (frame_info): Ditto.
591 (print_frame_info_base): Ditto. Delete dead code.
592
32eeb91a
AS
5932002-11-23 Andreas Schwab <schwab@suse.de>
594
595 * Makefile.in (m68k_tdep_h): Define.
596 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
597 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
598 * m68k-tdep.c: Move register number enum ...
599 * m68k-tdep.h: ... to this new file and rename the constants from
600 E_* to M68K_*. All uses changed.
601 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
602 * abug-rom.c: Include "m68k-tdep.h". Use
603 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
604 * cpu32bug-rom.c: Likewise.
605 * dbug-rom.c: Likewise.
606 * m68k-tdep.c: Likewise.
607 * m68klinux-nat.c: Likewise.
608 * remote-est.c: Likewise.
609 * rom68k-rom.c: Likewise.
610 * config/m68k/tm-linux.h: Likewise.
611
9648bac8
AC
6122002-11-23 Andrew Cagney <ac131313@redhat.com>
613
614 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
615 dummy frame initialization code.
616 * mips-tdep.c (mips_gdbarch_init): Ditto.
617
91a175b3
CF
6182002-11-22 Christopher Faylor <cgf@redhat.com>
619
620 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
621 attach will hang.
622
f4ded5b1
AC
6232002-11-22 Andrew Cagney <ac131313@redhat.com>
624
625 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
626 to default_frame_address.
627 * gdbarch.h, gdbarch.c: Re-generate.
628
629 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
630 or frame_locals_address to default_frame_address.
631 * m68k-tdep.c (m68k_gdbarch_init): Update.
632 * i386-tdep.c (i386_gdbarch_init): Update.
633 * frv-tdep.c (frv_gdbarch_init): Update.
634 * sh-tdep.c (sh_gdbarch_init): Update.
635 * v850-tdep.c (v850_gdbarch_init): Update.
636 * sparc-tdep.c (sparc_gdbarch_init): Update.
637 * mips-tdep.c (mips_gdbarch_init): Update.
638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
639 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
640 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
641
642 * cris-tdep.c (cris_frame_args_address): Delete function.
643 (cris_frame_locals_address): Delete function.
644 (cris_gdbarch_init): Do not set frame_args_address or
645 frame_locals_address.
646
f7c1e0f3
MS
6472002-11-22 Michael Snyder <msnyder@redhat.com>
648
649 * thread-db.c (thread_db_load): Tell the user what's going on
650 if dlopen fails on libthread_db.
651
03dac896
AS
6522002-11-23 Andreas Schwab <schwab@suse.de>
653
654 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
655 invariant return values.
656
7a67d0fe
AS
6572002-11-22 Andreas Schwab <schwab@suse.de>
658
659 * valops.c (value_slice): Move declaration of `offset' to avoid
660 warning.
661
5633f842
CF
6622002-11-22 Christopher Faylor <cgf@redhat.com>
663
664 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
665 (struct so_stuff): Add end_addr field.
666 (register_loaded_dll): Calculate and store end address of loaded dll.
667 (solib_address): New function.
668 (child_solib_loaded_library_pathname): Pass carefully constructed
669 section info to safe_symbol_file_add rather than ignoring it.
670 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
671 DLL is loaded.
672 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
673 (child_create_inferior): Fix a compiler warning.
674 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
675 (solib_address): Declare new function.
676
d85fe7f7
AS
6772002-11-22 Andreas Schwab <schwab@suse.de>
678
679 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
680 and FPS registers.
681
8308e54c
DJ
6822002-11-21 Daniel Jacobowitz <drow@mvista.com>
683
684 * maint.c (_initialize_maint_cmds): Fix typo. From
685 Francesco Potorti` <pot@gnu.org>.
686
8997bd5e
AC
6872002-11-21 Andrew Cagney <cagney@redhat.com>
688
689 * mips-tdep.c (mips_dump_tdep): Delete references to
690 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
691 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
692 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
693 * printcmd.c (build_address_symbolic): Delete calls to
694 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
695 (address_info): Ditto.
696 Fix PR gdb/773.
697
4e87b832
KD
6982002-11-19 Klee Dienes <kdienes@apple.com>
699 Adam Fedor <fedor@gnu.org>
700
701 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
702 the ability to explicitly specify the quote characters and word
703 break characters; if NULL is specified for either, use the old
704 behavior of using the characters used by the completer.
705 (skip_chars): New function. Convenience wrapper around
706 skip_quoted_chars to provide the original skip_chars behavior.
707 * completer.h (skip_quoted_chars): Add prototype.
708
9ba8d803
AC
7092002-11-19 Andrew Cagney <ac131313@redhat.com>
710
711 Problems reported by Paul Eggert.
712 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
713
0a595803
AS
7142002-11-19 Andreas Schwab <schwab@suse.de>
715
716 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
717 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
718 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
719 (m68k_linux_frame_saved_pc): Move to ...
720 * m68klinux-tdep.c: ... here. New file.
721 * Makefile.in (m68klinux-tdep.o): Add dependencies.
722 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
723
e8afa4d7
AF
7242002-11-19 Adam Fedor <fedor@gnu.org>
725
726 * objc-exp.y: Revert to old skip_quoted usage.
727
a76c9d72
AF
7282002-11-19 Adam Fedor <fedor@gnu.org>
729
730 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
731 (objc_lang_h): Define.
732 (YYFILES): Add objc-exp.tab.c.
733 (local-maintainer-clean): Remove objc-exp.tab.c.
734 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
735
fd0e9d45
PM
7362002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
737
738 * p-exp.y (typecast rule): Add automatic dereference of
739 pascal classes if needed.
740 (THIS): Set current_type.
741 Automatically dereference pascal classes.
742 (typebase rule): Add ^typebase recognition.
743
82eeeb94
AF
7442002-11-18 Adam Fedor <fedor@gnu.org>
745
746 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
747 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
748 (op_name): Handle OP_OBJC_SELF.
749 * Makefile.in (expprint.o): Add additional depends.
750
646df18d
AF
7512002-11-18 Adam Fedor <fedor@gnu.org>
752
753 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
754 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
755 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
756 * objc-exp.y: Likewise.
757
379b85df
AF
7582002-11-18 Adam Fedor <fedor@gnu.org>
759
760 * gdb/parser-defs.h: (struct objc_class_str): New structure
761 for parsing ObjC classes.
762
85cf597a
AC
7632002-11-18 Andrew Cagney <ac131313@redhat.com>
764
765 * stack.c (frame_relative_level): Copy function from here ...
766 * frame.c (frame_relative_level): ...to here.
767
5a203e44
AC
7682002-11-18 Andrew Cagney <ac131313@redhat.com>
769
770 * frame.h (enum frame_type): Define.
771 (get_frame_type): Declare.
772 (struct frame_info): Add field `type'. Delete field
773 signal_handler_caller.
774 (deprecated_set_frame_signal_handler_caller): Declare.
775 * frame.c (get_frame_type): New function.
776 (deprecated_set_frame_type): New function.
777 (create_new_frame): Set the frame's type.
778 (get_prev_frame): Similar.
779 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
780 * s390-tdep.c: Ditto.
781 * m68klinux-nat.c: Ditto.
782 * ns32k-tdep.c: Ditto.
783 * x86-64-linux-tdep.c: Ditto.
784 * vax-tdep.c: Ditto.
785 * rs6000-tdep.c: Ditto.
786 * ppc-linux-tdep.c: Ditto.
787 * i386-interix-tdep.c: Ditto.
788 * mips-tdep.c: Ditto.
789 * m68k-tdep.c: Ditto.
790 * hppa-tdep.c: Ditto.
791 * ia64-tdep.c: Ditto.
792 * cris-tdep.c: Ditto.
793 * arm-tdep.c: Ditto.
794 * alpha-tdep.c: Ditto.
795 * i386-tdep.c: Ditto.
796 * stack.c: Ditto.
797 * ada-lang.c: Ditto.
798 * blockframe.c: Update.
799 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
800 deprecated_set_frame_type instead of signal_handler_caller.
801 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
802 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
803 * breakpoint.h: Delete FIXME suggesting get_frame_type.
804
bf4ae8b2
KD
8052002-11-18 Klee Dienes <kdienes@apple.com>
806
807 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
808
a672ef13
KD
8092002-11-18 Klee Dienes <kdienes@apple.com>
810
811 * buildsym.c (pop_context): Add comment.
812
0c5e171a
KD
8132002-11-18 Klee Dienes <kdienes@apple.com>
814
815 * buildsym.h (pop_context): Convert to function, defined in
816 buildsym.c.
817 * buildsym.c: Include gdb_assert.h.
818 (pop_context): Implement as C function. Add check for stack
819 underflow.
820 * dbxread.c (process_one_symbol): Complain and stop processing
821 that symbol if we are already at the top of the context stack for
822 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
823 when processing N_RBRAC.
824
8a1f4c4c
DJ
8252002-11-16 Daniel Jacobowitz <drow@mvista.com>
826
827 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
828 define.
829 (struct target_waitstatus): Add opaque definition.
830 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
831 * exec.c (init_exec_ops): Likewise.
832 * fork-child.c (clone_and_follow_inferior): Remove.
833 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
834 * inferior.h (clone_and_follow_inferior): Remove prototype.
835 * infrun.c (follow_fork_mode_both): Remove.
836 (follow_fork_mode_kind_names): Remove commented out "both".
837 (follow_inferior_fork): Remove follow_fork_mode_both support.
838 * inftarg.c (child_clone_and_follow_inferior): Remove.
839 (child_post_follow_inferior_by_clone): Remove.
840 (init_child_ops): Don't set to_clone_and_follow_inferior
841 or to_post_follow_inferior_by_clone.
842 * target.c (default_clone_and_follow_inferior): Remove.
843 (cleanup_target): Don't set to_clone_and_follow_inferior
844 or to_post_follow_inferior_by_clone.
845 (find_default_clone_and_follow_inferior): Remove.
846 (init_dummy_target): Don't set to_clone_and_follow_inferior.
847 (debug_to_clone_and_follow_inferior): Remove.
848 (debug_to_post_follow_inferior_by_clone): Remove.
849 (setup_target_debug): Don't set to_clone_and_follow_inferior
850 or to_post_follow_inferior_by_clone.
851 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
852 and to_post_follow_inferior_by_clone.
853 (child_clone_and_follow_inferior): Remove prototype.
854 (child_post_follow_inferior_by_clone): Remove prototype.
855 (target_clone_and_follow_inferior): Remove macro.
856 (target_post_follow_inferior_by_clone): Remove macro.
857 (find_default_clone_and_follow_inferior): Remove prototype.
858
47932f85
DJ
8592002-11-16 Daniel Jacobowitz <drow@mvista.com>
860
861 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
862 inferior_has_vforked, and inferior_has_execd instead of
863 target_has_forked, target_has_vforked, and target_has_execd.
864 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
865 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
866 (CHILD_WAIT): Define.
867 (child_wait): Add prototype.
868 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
869 Add prototype.
870 (hpux_has_vforked): Likewise, from child_has_vforked.
871 (hpux_has_execd): Likewise, from child_has_execd.
872 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
873 (not_same_real_pid, child_wait): New, copied from inftarg.c.
874 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
875 and hpux_has_syscall_event instead of the target hooks.
876 * infrun.c (inferior_has_forked, inferior_has_vforked)
877 (inferior_has_execd): New functions.
878 * inftarg.c (not_same_real_pid): Remove.
879 (child_wait): Remove references to not_same_real_pid,
880 target_has_forked, target_has_vforked, target_has_execd,
881 and target_has_syscall_event.
882 (child_has_forked, child_has_vforked, child_has_execd)
883 (child_has_syscall_event): Remove.
884 (init_child_ops): Remove references to child_has_forked,
885 child_has_vforked, child_has_execd, and child_has_syscall_event.
886 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
887 (hpux_has_vforked): Likewise, from child_has_vforked.
888 (hpux_has_execd): Likewise, from child_has_execd.
889 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
890 * target.c (cleanup_target): Remove references to
891 to_has_forked, to_has_vforked, to_has_execd, and
892 to_has_syscall_event.
893 (update_current_target): Likewise.
894 (setup_target_debug): Likewise.
895 (debug_to_has_forked): Remove.
896 (debug_to_has_vforked): Remove.
897 (debug_to_has_execd): Remove.
898 (debug_to_has_syscall_event): Remove.
899 * target.h (struct target_ops): Remove to_has_forked.
900 to_has_vforked, to_has_execd, and to_has_syscall_event.
901 (child_has_forked, child_has_vforked, child_has_execd)
902 (child_has_syscall_event): Remove prototypes.
903 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
904 prototypes.
905 (target_has_forked, target_has_vforked, target_has_execd)
906 (target_has_syscall_event): Remove macros.
907
4088142a
DJ
9082002-11-16 Daniel Jacobowitz <drow@mvista.com>
909
910 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
911 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
912 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
913 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
914 * target.c (cleanup_target): Remove reference to
915 to_can_follow_vfork_prior_to_exec.
916 (update_current_target): Likewise.
917 (debug_to_can_follow_vfork_prior_to_exec): Remove.
918 (setup_target_debug): Remove reference to
919 to_can_follow_vfork_prior_to_exec.
920 * target.h (struct target_ops): Remove
921 to_can_follow_vfork_prior_to_exec.
922 (child_can_follow_vfork_prior_to_exec): Remove prototype.
923 (target_can_follow_vfork_prior_to_exec): Remove definition.
924 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
925 define.
926 * infrun.c (follow_vfork_when_exec): Remove.
927 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
928 (follow_exec): Likewise.
929 (handle_inferior_event): Likewise.
930 (keep_going): Likewise.
931
18cde8d5
AC
9322002-11-15 Andrew Cagney <cagney@redhat.com>
933
934 * frame.c (generic_unwind_get_saved_register): Make static.
935 * frame.h (generic_unwind_get_saved_register): Delete declaration.
936 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
937 defaults to generic_unwind_get_saved_register.
938 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
939 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
940 * frv-tdep.c (frv_gdbarch_init): Ditto.
941 * i386-tdep.c (i386_gdbarch_init): Ditto.
942 * s390-tdep.c (s390_gdbarch_init): Ditto.
943 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
944 * v850-tdep.c (v850_gdbarch_init): Ditto.
945 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
946 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
947 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
948
a6b063af
AC
9492002-11-15 Andrew Cagney <cagney@redhat.com>
950
951 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
952 i386-tdep.c.
953
f407986f
AC
9542002-11-15 Andrew Cagney <cagney@redhat.com>
955
956 * frame.h (sigtramp_saved_pc): Delete declaration.
957 * blockframe.c (sigtramp_saved_pc): Delete function.
958 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
959 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
960 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
961 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
962
f18c5a73
AC
9632002-11-15 Andrew Cagney <ac131313@redhat.com>
964
965 * frame.c (frame_pc_unwind): New function.
966 (frame_saved_regs_pc_unwind): New function.
967 (frame_register_unwind): Pass unwind_cache instead of
968 register_unwind_cache.
969 (set_unwind_by_pc): Add unwind_pc parameter, set.
970 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
971 (get_prev_frame): Ditto.
972 * frame.h (frame_pc_unwind_ftype): Declare.
973 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
974 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
975 (frame_pc_unwind): Declare.
976 * dummy-frame.c (dummy_frame_pc_unwind): New function.
977 (struct dummy_frame): Add comment mentioning that values are for
978 previous frame.
979 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
980 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
981 (generic_file_frame_chain_valid): Ditto.
982 * stack.c (frame_info): Ditto.
983
d9285969 9842002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
985
986 * linespec.c (locate_first_half): New function.
987 (decode_line_1): Move code into locate_first_half.
988
d741b867
AC
9892002-11-15 Andrew Cagney <ac131313@redhat.com>
990
991 * complaints.h: Add comment explaining how to eliminate a
992 deprecated_complain call.
24382c5c 993 * complaints.h: Fix spelling errors.
d741b867 994
82d03c99
DC
9952002-11-15 David Carlton <carlton@math.stanford.edu>
996
997 * printcmd.c: Remove #include "disasm.h".
998
c97eb5d9
AC
9992002-11-14 Andrew Cagney <ac131313@redhat.com>
1000
1001 * frame.h: Move the most relevant interface functions to the start
1002 of the file.
1003
524d7c18
AC
10042002-11-14 Andrew Cagney <ac131313@redhat.com>
1005
1006 * regcache.h (deprecated_registers): Rename registers.
1007 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1008 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1009 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1010 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1011 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1012 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1013 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1014 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1015 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1016 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1017 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1018 * v850ice.c: Update.
1019
6411e720
AC
1020Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1021
1022 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1023 NULL buffer.
1024
73937e03
AC
10252002-11-13 Andrew Cagney <cagney@redhat.com>
1026
1027 * regcache.h (deprecated_read_register_bytes): Rename
1028 read_register_bytes.
1029 (deprecated_write_register_bytes): Rename write_register_bytes.
1030 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1031 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1032 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1033 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1034 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1035 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1036 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1037 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1038 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1039 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1040 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1041 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1042 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1043 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1044
fb0cd46e
JB
10452002-11-13 Jim Blandy <jimb@redhat.com>
1046
1047 * findvar.c (read_var_value): Doc fix.
1048
2d28509a
AC
10492002-11-13 Andrew Cagney <cagney@redhat.com>
1050
1051 * regcache.c (struct regcache): Replace passthough_p with
1052 readonly_p.
1053 (regcache_xmalloc): Initialize readonly_p.
1054 (build_regcache): Initialize readonly_p.
1055 (regcache_save): New function.
1056 (regcache_restore): New function.
1057 (regcache_cpy): Re-implement using regcache_save and
1058 regcache_restore.
1059 (regcache_raw_read): Update.
1060 (regcache_cooked_read): When a read-only cache, checked for cached
1061 pseudo register values.
1062 (regcache_raw_write): Assert that the cache is not read-only.
1063 Remove code handling a non-passthrough cache.
1064 * regcache.h (regcache_save): Declare.
1065 (regcache_restore): Declare.
1066
067df2e5
AC
10672002-11-13 Andrew Cagney <cagney@redhat.com>
1068
1069 * regcache.c (struct regcache_descr): Add fields
1070 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1071 (init_legacy_regcache_descr): Compute the size of a cooked
1072 register cache and then assign that to sizeof_raw_registers. Set
1073 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1074 (init_legacy_regcache_descr): Ditto.
1075
51b1fe4e
AC
10762002-11-13 Andrew Cagney <cagney@redhat.com>
1077
1078 * regcache.c (register_buffer): Move to near start of file, update
1079 description.
1080 (regcache_raw_read): Use.
1081 (regcache_raw_write): Use.
1082 (struct regcache): Rename raw_registers to registers and
1083 raw_register_valid_p to register_valid_p.
1084 (regcache_xmalloc): Update.
1085 (regcache_xfree): Update.
1086 (register_buffer): Update.
1087 (regcache_cpy): Update.
1088 (regcache_cpy_no_passthrough): Update.
1089 (regcache_valid_p): Update.
1090 (deprecated_grub_regcache_for_registers): Update.
1091 (deprecated_grub_regcache_for_register_valid): Update.
1092 (set_register_cached): Update.
1093 (regcache_raw_write): Update.
1094
80b4c677
PM
10952002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1096
1097 * p-exp.y (name_not_typename): Use copy_name to
1098 set current_type variable for fields of THIS.
1099
0f3fafde
DJ
11002002-11-12 Daniel Jacobowitz <drow@mvista.com>
1101
1102 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1103 * monitor.c (init_base_monitor_ops): Likewise.
1104 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1105 * remote-array.c (init_array_ops): Likewise.
1106 * remote-e7000.c (init_e7000_ops): Likewise.
1107 * remote-es.c (init_es1800_ops): Likewise.
1108 (init_es1800_child_ops): Likewise.
1109 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1110 * remote-sim.c (init_gdbsim_ops): Likewise.
1111 * remote-st.c (init_st2000_ops): Likewise.
1112 * sol-thread.c (init_sol_core_ops): Likewise.
1113 (init_sol_thread_ops): Likewise.
1114 * v850ice.c (init_850ice_ops): Likewise.
1115 * win32-nat.c (init_child_ops): Likewise.
1116 * wince.c (init_child_ops): Likewise.
1117
82c0260e
AC
11182002-11-12 Andrew Cagney <ac131313@redhat.com>
1119
1120 * utils.c (gdb_realpath): Make rp a constant pointer.
1121
70d35819
AC
11222002-11-12 Andrew Cagney <ac131313@redhat.com>
1123
1124 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1125 a constant buffer; cannonicalize_file_name(); realpath() with a
1126 pathconf() defined buffer, xstrdup().
1127
9835a8b0
AC
11282002-11-12 Andrew Cagney <ac131313@redhat.com>
1129
1130 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1131 to hang2.C; hang3.c to hang3.C.
1132
3f47be5c
EZ
11332002-11-11 Elena Zannoni <ezannoni@redhat.com>
1134
1135 * findvar.c (read_var_value): Reenable TLS code.
1136
11372002-11-11 Elena Zannoni <ezannoni@redhat.com>
1138 Jim Blandy <jimb@redhat.com>
1139
1140 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1141 * target.c (update_current_target): Add
1142 to_get_thread_local_address.
1143 * target.h (to_get_thread_local_address): Export.
1144 (target_get_thread_local_address): Define.
1145 (target_get_thread_local_address_p): Define.
1146 * thread-db.c: Include solib-svr4.h.
1147 (td_thr_tls_get_addr_p): Define.
1148 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1149 (thread_db_get_thread_local_address): New function.
1150 (init_thread_db_ops): Initialize to_get_thread_local_address.
1151 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1152 * configure: Regenerate.
1153 * config.in: Regenerate.
1154
636b1a6d
DC
11552002-11-11 David Carlton <carlton@math.stanford.edu>
1156
1157 * linespec.c (set_flags): New function.
1158 (decode_line_1): Move code into set_flags.
1159
44fe14ab
DC
11602002-11-11 David Carlton <carlton@math.stanford.edu>
1161
1162 * linespec.c (decode_line_1): Move chunks of code to separate
1163 functions.
1164 (initialize_defaults): New function.
1165 (decode_indirect): New function.
1166
e6f181f5
AC
11672002-11-11 Andrew Cagney <ac131313@redhat.com>
1168
8971b011
AC
1169 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1170 instead of void_code_ptr.
1171 (sigtramp_saved_pc): Ditto.
1172
e6f181f5
AC
1173 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1174 i386_fp_regnum_p.
1175
01ad7f36
DJ
11762002-11-10 Daniel Jacobowitz <drow@mvista.com>
1177
1178 * gdbtypes.h (struct main_type): Move artificial flag out of
1179 loc. New member of ``struct field'' named static_kind. Reduce
1180 overloaded meaning of bitsize.
1181 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1182 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1183 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1184
1185 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1186 new fields.
1187 (template_to_fixed_record_type, template_to_static_fixed_type)
1188 (to_record_with_fixed_variant_part): Likewise.
1189 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1190 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1191 * dwarfread.c (struct_type, enum_type): Likewise.
1192 * hpread.c (hpread_read_enum_type)
1193 (hpread_read_function_type, hpread_read_doc_function_type)
1194 (hpread_read_struct_type): Likewise.
1195 * mdebugread.c (parse_symbol): Likewise.
1196
bf1e52be
AC
11972002-11-10 Andrew Cagney <ac131313@redhat.com>
1198
1199 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1200 * stack.c (print_frame_info_base): Update.
1201 (print_frame_info_base, frame_info): Update.
1202 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1203 (sparc_frame_saved_pc): Update.
1204 * ada-lang.c (find_printable_frame): Update.
1205 * breakpoint.c (deprecated_frame_in_dummy): Update.
1206
ce556f85
MK
12072002-11-09 Mark Kettenis <kettenis@gnu.org>
1208
1209 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1210 defined.
1211 (regmap): Extend to cover all registers.
1212 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1213 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1214 definitions.
1215 (fetch_register, sore_register): Simplify.
1216 (old_fetch_inferior_registers, old_store_inferior_registers):
1217 Remove functions.
1218 (cannot_fetch_register, cannot_store_register): Change
1219 implementation to use regmap array to decide which registers
1220 cannot be fetched/stored. This removes $orig_eax from the
1221 registers that cannot be fetched/stored.
1222 (fetch_inferior_registers): Call fetch_register directly instead
1223 of calling old_fetch_inferior_registers.
1224 (store_inferior_registers): Call store_register directly instead
1225 of calling old_store_inferior_registers.
1226 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1227 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1228 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1229
932bb524
KD
12302002-11-09 Klee Dienes <kdienes@apple.com>
1231
1232 * i387-tdep.c (i387_supply_register): When called with NULL as a
1233 buffer, mark the register as not provided (to mirror the behavior
1234 of supply_register).
1235 (i387_supply_fxsave): Ditto.
1236 (i387_supply_fsave): Ditto (inherits the behavior from
1237 i387_supply_register).
1238
ebe68b27
KD
12392002-11-09 Klee Dienes <kdienes@apple.com>
1240
1241 * blockframe.c (sigtramp_saved_pc): Use
1242 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1243 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1244 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1245
15220c65
AC
12462002-11-09 Andrew Cagney <ac131313@redhat.com>
1247
1248 * frame.c (get_prev_frame): Test prev_p to identify a previously
1249 unwound frame. Initialize prev_p.
1250 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1251 comment.
1252
95adb866
AC
12532002-11-09 Andrew Cagney <ac131313@redhat.com>
1254
1255 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1256 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1257 more comments. Zap dead code.
1258
e71ecd70
MK
12592002-11-09 Mark Kettenis <kettenis@gnu.org>
1260
1261 * infcmd.c (print_vector_info, print_float_info): Move code that
1262 checks whether the target has any registers and whether there is a
1263 selected frame up, such that it is also used if a target provides
1264 multi-arch definitions of these functions.
1265
c525330d
AC
12662002-11-08 Andrew Cagney <ac131313@redhat.com>
1267
72bdd927
AC
1268 * Makefile.in (DESTDIR): Define.
1269 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1270 prefix.
1271
c525330d
AC
1272 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1273 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1274
38c968cf
AC
12752002-11-08 Andrew Cagney <ac131313@redhat.com>
1276
1277 * i386-linux-tdep.c: Include "reggroups.h".
1278 (i386_linux_register_reggroup_p): New function.
1279 (i386_linux_init_abi): Set register_reggroup_p to
1280 i386_linux_register_reggroup_p.
1281 * i386-tdep.h (i386_register_reggroup_p): Declare.
1282 * i386-tdep.c: Include "reggroups.h".
1283 (i386_init_reggroups): New function.
1284 (i386_add_reggroups): New function.
1285 (i386_register_reggroup_p): New function.
1286 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1287 (_initialize_i386_tdep): Call i386_init_reggroups.
1288 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1289 specific reggroups.
1290
19e33363
MK
12912002-11-09 Mark Kettenis <kettenis@gnu.org>
1292
371a6e84
MK
1293 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1294 request that's available in *BSD.
1295
94ba925a
MK
1296 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1297
19e33363
MK
1298 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1299 FDOFF_REGNUM.
1300
8779790c
AC
13012002-11-08 Andrew Cagney <ac131313@redhat.com>
1302
1303 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1304 * dummy-frame.c (find_dummy_frame): Rename
1305 generic_find_dummy_frame, make static. Return the dummy frame
1306 instead of the regcache.
1307 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1308 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1309 (dummy_frame_register_unwind): Rename
1310 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1311 * dummy-frame.h (dummy_frame_register_unwind): Rename
1312 generic_call_dummy_register_unwind.
1313
8674b74f
MK
13142002-11-08 Mark Kettenis <kettenis@gnu.org>
1315
1316 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1317 except the inclusion of "i386/tm-i386.h", to...
1318 * config/i386/nm-i386v42mp.h: ...here.
1319 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1320
4c1e7e9d
AC
13212002-11-08 Andrew Cagney <ac131313@redhat.com>
1322
1323 * Makefile.in (frame.o): Update dependencies.
1324 * blockframe.c (current_frame, frame_obstack_alloc)
1325 (frame_saved_regs_zalloc, get_current_frame)
1326 (set_current_frame, create_new_frame)
1327 (set_unwind_by_pc, get_next_frame)
1328 (flush_cached_frames, reinit_frame_cache)
1329 (frame_saved_regs_register_unwind)
1330 (deprecated_generic_get_saved_register)
1331 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1332 (_initialize_blockframe): Move frame code from here...
1333 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1334 "annotate.h" and "dummy-frame.h".
1335 (_initialize_frame): New function.
1336
921e78cf
JB
13372002-11-08 Jim Blandy <jimb@redhat.com>
1338
1339 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1340 when we finish a function a context.
1341 * buildsym.h (outermost_context_p): New macro.
1342 (Bug analyzed by David Edelsohn.)
1343
9c1412c1
AC
13442002-11-08 Andrew Cagney <ac131313@redhat.com>
1345
1346 * blockframe.c: Include "dummy-frame.h".
1347 (struct dummy_frame, dummy_frame_stack)
1348 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1349 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1350 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1351 (generic_save_call_dummy_addr, generic_pop_current_frame)
1352 (generic_pop_dummy_frame, generic_fix_call_dummy)
1353 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1354 dummy frame code from here...
1355 * dummy-frame.c: ...to here. New file.
1356 * dummy-frame.h: New file.
1357 (generic_call_dummy_register_unwind): Declare.
1358 (generic_find_dummy_frame): Declare.
1359 * Makefile.in (SFILES): Add dummy-frame.c.
1360 (dummy-frame.o): Specify dependencies.
1361 (dummy_frame_h): Define.
1362 (COMMON_OBS): Add dummy-frame.o.
1363 (blockframe.o): Update dependencies.
1364
208d8187
JB
13652002-11-08 Jim Blandy <jimb@redhat.com>
1366
1367 * dwarf2read.c (read_func_scope): Restore local_symbols and
1368 param_symbols after we finish the function context. (Based on a
1369 patch from David Edelsohn.)
1370
413dad4d
DC
13712002-11-08 David Carlton <carlton@math.stanford.edu>
1372
1373 * linespec.c (symbol_found): New function.
1374 (minsym_found): New function.
1375 (decode_line_1): Separate out some code into separate functions.
1376
5512c44a
JB
13772002-11-08 Joel Brobecker <brobecker@gnat.com>
1378
1379 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1380 the benefit of the interix target.
1381 * i386-tdep.h (i386_frameless_signal_p): Declare.
1382
1b33ef47
AC
13832002-11-08 Andrew Cagney <ac131313@redhat.com>
1384
1385 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1386 declaration that snuck in from change below.
1387
23a34459
AC
13882002-11-06 Andrew Cagney <cagney@redhat.com>
1389
1390 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1391 all callers.
1392 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1393 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1394 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1395 (i386_mxcsr_regnum_p): new function. Use instead of
1396 MXCSR_REGNUM_P.
1397 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1398 (i386_sse_regnum_p): Declare.
1399 (i386_mxcsr_regnum_p): Declare.
1400 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1401 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1402 (IS_FP_REGNUM): Update definition.
1403 (IS_FPU_CTRL_REGNUM): Update definition..
1404 (IS_SSE_REGNUM): Update definition..
1405 * i386v-nat.c (register_u_addr): Update.
1406 * go32-nat.c (fetch_register): Update.
1407 (store_register): Update.
1408
d709c020
JB
14092002-11-07 Joel Brobecker <brobecker@gnat.com>
1410
1411 Preparation work to convert the hppa targets to multiarch partial.
1412
1413 * hppa-tdep.c: Add new functions replacing macro bodies from
1414 config/pa/tm-hppa.h. These function will be used to initialize
1415 the gdbarch structure. Import some comments from tm-hppa.h,
1416 and place them where appropriate, to avoid loosing them when
1417 we cleanup this file.
1418 (hppa_reg_struct_has_addr): New function.
1419 (hppa_inner_than): New function.
1420 (hppa_stack_align): New function.
1421 (hppa_pc_requires_run_before_use): New function.
1422 (hppa_instruction_nullified): New function.
1423 (hppa_register_byte): New function.
1424 (hppa_register_virtual_type): New function.
1425 (hppa_store_struct_return): New function.
1426 (hppa_cannot_store_register): New function.
1427 (hppa_frame_args_address): New function.
1428 (hppa_frame_locals_address): New function.
1429 (hppa_smash_text_address): New function.
1430 (hppa_coerce_float_to_double): New function. Requires the inclusion
1431 of "language.h".
1432
1433 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1434
1435 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1436 gdbarch-eligible macro to a call to the new associated function
1437 created in hppa-tdep.c.
1438 (INNER_THAN): Likewise.
1439 (STACK_ALIGN): Likewise.
1440 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1441 (INSTRUCTION_NULLIFIED): Likewise.
1442 (REGISTER_BYTE): Likewise.
1443 (REGISTER_VIRTUAL_TYPE): Likewise.
1444 (STORE_STRUCT_RETURN): Likewise.
1445 (CANNOT_STORE_REGISTER): Likewise.
1446 (FRAME_ARGS_ADDRESS): Likewise.
1447 (FRAME_LOCALS_ADDRESS): Likewise.
1448 (SMASH_TEXT_ADDRESS): Likewise.
1449 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1450 (ABOUT_TO_RETURN): Delete, as no longer used.
1451
83c31e7d
FN
14522002-11-07 Fernando Nasser <fnasser@redhat.com>
1453
1454 * printcmd.c (disassemble_command): Remove obsolete function.
1455 (_initialize_printcmd): Do not create disassemble command here.
1456 * cli/cli-cmds.c (disassemble_command): New function. Implements
1457 disassemble command.
1458 (init_cli_cmds): Create disassemble command here instead.
1459
0ec30a36
AC
14602002-11-07 Andrew Cagney <ac131313@redhat.com>
1461
1462 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1463
e600bd34
AC
14642002-11-07 Andrew Cagney <ac131313@redhat.com>
1465
1466 * regcache.h (regcache_cooked_read_using_offset_hack)
1467 (regcache_cooked_write_using_offset_hack): Delete declarations.
1468 (register_changed): Delete declaration.
1469 * regcache.c (regcache_cooked_read_using_offset_hack)
1470 (regcache_cooked_write_using_offset_hack): Delete functions.
1471 (cooked_xfer_using_offset_hack): Delete function.
1472 (register_changed): Delete function.
1473
568f8739
JB
14742002-11-07 Jim Blandy <jimb@redhat.com>
1475
1476 * macroscope.c: #include "complaints.h".
1477 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1478 but not in the macro table.
1479 * Makefile.in (macroscope.o): Record dependency.
1480
b0718b7b
JB
14812002-11-07 Joel Brobecker <brobecker@gnat.com>
1482
1483 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1484
2b9e5f3f
AC
14852002-11-07 Andrew Cagney <ac131313@redhat.com>
1486
1487 * regcache.c (deprecated_registers_fetched): Update.
1488 * regcache.h (deprecated_registers_fetched): Rename
1489 registers_fetched.
1490 * remote-vxsparc.c (vx_read_register): Update.
1491 * remote-vxmips.c (vx_read_register): Update.
1492 * remote-vx68.c (vx_read_register): Update.
1493 * irix5-nat.c (fetch_core_registers): Update.
1494 * mipsm3-nat.c (fetch_inferior_registers): Update.
1495 * sun3-nat.c (fetch_inferior_registers): Update.
1496 * symm-nat.c (fetch_inferior_registers): Update.
1497 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1498 (fetch_core_registers): Update.
1499 (fetch_kcore_registers): Update.
1500 * mips-nat.c (fetch_inferior_registers): Update.
1501 * corelow.c (get_core_registers): Update.
1502 * a68v-nat.c (fetch_inferior_registers): Update.
1503
e6e68f1f
JB
15042002-11-06 Joel Brobecker <brobecker@gnat.com>
1505
1506 Put in place the framework necessary for multiarching the hppa targets.
1507 * hppa-tdep.c (hppa_gdbarch_init): New function.
1508 (hppa_dump_tdep): New function.
1509 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1510 tdep structure dumper.
1511 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1512 until the multi-arching conversion has partially been completed.
1513
492254e9
AC
15142002-11-06 Andrew Cagney <ac131313@redhat.com>
1515
1516 * valops.c (value_assign): Merge lval_register case into
1517 lval_reg_frame_relative. Use frame_register and
1518 regcache_cooked_write instead of get_saved_register and
1519 write_register_bytes. After flushing the register cache, try to
1520 re-select the selected frame.
1521
8262ee23
AC
15222002-11-06 Andrew Cagney <ac131313@redhat.com>
1523
1524 * regcache.h (deprecated_register_valid): Rename register_valid.
1525 * regcache.c: Update.
1526 * ia64-aix-nat.c: Update.
1527 * i386gnu-nat.c: Update.
1528 * alpha-nat.c: Update.
1529 * sparc-nat.c: Update.
1530 * lynx-nat.c: Update.
1531 * remote-mips.c: Update.
1532
4facf7e8
JB
15332002-11-06 Joel Brobecker <brobecker@gnat.com>
1534
1535 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1536 to end of file, to be more consistent with the pratice followed
1537 by other targets.
1538
f9418c0f
AC
15392002-11-06 Andrew Cagney <ac131313@redhat.com>
1540
1541 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1542 (print_float_info): Print registers in float_reggroup.
1543 (print_vector_info): Print registers in vector_reggroup.
1544 (default_print_registers_info): When all, print registers in
1545 all_reggroup. Otherwize, print registers in general_reggroup.
1546 (registers_info): Rewrite. Add support for register groups.
1547 Eliminate a goto.
1548
3fe235a7
EZ
15492002-11-06 Elena Zannoni <ezannoni@redhat.com>
1550
1551 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1552 ages.
1553 (symtab_symbol_info): Remove eons old ifdeffed out code.
1554 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1555 command.
1556
ef944135
TR
15572002-11-06 Theodore A. Roth <troth@openavr.org>
1558
1559 * c-exp.y: Add missing semi-colons.
1560 * f-exp.y: Add missing semi-colons.
1561 * m2-exp.y: Add missing semi-colons.
1562 * p-exp.y: Add missing semi-colons.
1563 Add empty action to start rule to avoid a type clash error when
1564 building with bison >= 1.50.
1565
f8302a57
JB
15662002-11-06 Jim Blandy <jimb@redhat.com>
1567
1568 * macrotab.h (struct macro_source_file): Doc fix.
1569
6e382aa3
JJ
15702002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1571
1572 * varobj.c (child_exists, cplus_number_of_children): Change
1573 STREQ macro references to strcmp.
1574 (cplus_name_of_child): Change code to handle the fact that
1575 fields are not necessarily contiguous with regards to their
1576 access control. This is a fix for PR gdb/792.
1577
a216a322
AC
15782002-11-05 Andrew Cagney <ac131313@redhat.com>
1579
1580 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1581 * gdbarch.h, gdbarch.c: Regnerate.
1582 * frame.h (frame_register): Declare.
1583 * frame.c (frame_register): New function.
1584 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1585 GET_SAVED_REGISTER, otherwize call
1586 generic_unwind_get_saved_register.
1587 (frame_register_read): Use frame_register instead of
1588 get_saved_register.
1589
7d5b6fdd
EZ
15902002-11-05 Elena Zannoni <ezannoni@redhat.com>
1591
1592 From Jim Ingham <jingham@apple.com>:
1593 * event-top.c (gdb_disable_readline): New function.
1594 (_initialize_event_loop): Move comment.
1595
b7c64260
EZ
15962002-11-05 Elena Zannoni <ezannoni@redhat.com>
1597
1598 * event-loop.c (start_event_loop): Add comment.
1599 Update copyright.
1600
c2e1b8f2
AC
16012002-11-05 Andrew Cagney <ac131313@redhat.com>
1602
1603 * infcmd.c (default_print_registers_info): Do not call
1604 PRINT_REGISTER_HOOK.
1605
87647bb0
AC
16062002-11-05 Andrew Cagney <ac131313@redhat.com>
1607
1608 * sparc-tdep.c (sparc_print_register_hook): Make static.
1609 (sparc_print_registers_info): New function.
1610 (sparc_do_registers_info): New function.
1611 (sparclet_print_registers_info): New function.
1612 (sparclet_do_registers_info): New function.
1613 (do_sparc_print_registers_info): New function.
1614 (sparc_print_registers): New static function, clone of infcmd.c's
1615 default_print_registers_info.
1616 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1617 (sparclet_do_registers_info): Declare.
1618 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1619 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1620 Re-define.
1621 (sparc_do_registers_info): Declare.
1622 (PRINT_REGISTER_HOOK): Delete macro.
1623 (sparc_print_register_hook): Delete declaration.
1624
8155455b
DC
16252002-11-05 David Carlton <carlton@math.stanford.edu>
1626
1627 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1628 functions.
1629 (lookup_symbol_aux_local): New function.
1630 (lookup_symbol_aux_symtabs): New function.
1631 (lookup_symbol_aux_psymtabs): New function.
1632
29924310
DC
16332002-11-05 David Carlton <carlton@math.stanford.edu>
1634
1635 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1636 previous values of 'objfile' and 'block'.
1637
cc303028
PM
16382002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1639
1640 * values.c (value_change_enclosing_type): Set
1641 enclosing_type field correctly also for the case where
1642 more memory needs to be allocated.
1643
1d70089a
MK
16442002-11-03 Mark Kettenis <kettenis@gnu.org>
1645
f16a25ae
MK
1646 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1647 of puts_filtered.
1648
1d70089a
MK
1649 * i387-tdep.c (i387_print_float_info): Replace calls to
1650 register_read and deprecated_read_register_gen with calls to
1651 frame_register_read, and make the necessary adjustments to the
1652 surrounding code.
1653
7e20f3fb
AC
16542002-11-02 Andrew Cagney <ac131313@redhat.com>
1655
1656 * gdbarch.sh (register_reggroup_p): Allow default value.
1657 * gdbarch.h, gdbarch.c: Regenerate.
1658
192dbe33
AC
16592002-11-02 Andrew Cagney <ac131313@redhat.com>
1660
1661 * regcache.h: Add coment indicating replacements for deprecated
1662 functions.
1663
b59ff9d5
AC
16642002-11-02 Andrew Cagney <cagney@redhat.com>
1665
1666 * reggroups.h, reggroups.c: New files.
1667 * regcache.c: Include "reggroups.h".
1668 (enum regcache_dump_what): Add `regcache_dump_groups'.
1669 (regcache_dump): Contract size of the "Type" column. When
1670 specified, dump the register's groups.
1671 (maintenance_print_register_groups): New function.
1672 (_initialize_regcache): Add command `maint print register-groups'.
1673 * Makefile.in (COMMON_OBS): Add reggroups.o
1674 (SFILES): Add reggroups.c.
1675 (reggroups_h): Define.
1676 (regcache.o, gdbarch.o): Update dependencies.
1677 (reggroups.o): Specify dependencies.
1678 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1679 Add opaque declaration for `struct reggroup' in generated .h file.
1680 Include "reggroups.h" in generated .c file.
1681 gdbarch.h, gdbarch.c: Re-generate.
1682
4caf0990
AC
16832002-11-02 Andrew Cagney <cagney@redhat.com>
1684
1685 * regcache.h (deprecated_read_register_gen): Rename
1686 read_register_gen.
1687 (deprecated_write_register_gen): Rename write_register_gen.
1688 * i387-tdep.c: Update.
1689 * x86-64-linux-nat.c: Update
1690 * wince.c: Update.
1691 * thread-db.c: Update.
1692 * win32-nat.c: Update.
1693 * mips-tdep.c: Update.
1694 * d10v-tdep.c: Update.
1695 * cris-tdep.c: Update.
1696 * remote-sim.c: Update.
1697 * remote-rdi.c: Update.
1698 * remote-rdp.c: Update.
1699 * frame.c: Update.
1700 * target.c: Update.
1701 * blockframe.c: Update.
1702 * x86-64-tdep.c: Update.
1703 * xstormy16-tdep.c: Update.
1704 * sh-tdep.c: Update.
1705 * s390-tdep.c: Update.
1706 * rs6000-tdep.c: Update.
1707 * sparc-tdep.c: Update.
1708 * i386-tdep.c: Update.
1709 * dwarf2cfi.c: Update.
1710 * regcache.c: Update.
1711
7a7adcdf
JB
17122002-11-01 Joel Brobecker <brobecker@gnat.com>
1713
1714 New interix-specific files:
1715 * config/i386/nm-interix.h: New file.
1716 * config/i386/interix.mh: New file.
1717 * config/i386/interix.mt: New file.
1718 * i386-interix-nat.c: New file.
1719 * i386-interix-tdep.c: New file.
1720
bdcdd535
AC
17212002-11-01 Andrew Cagney <cagney@redhat.com>
1722
1723 * frame.h (deprecated_generic_get_saved_register): Rename
1724 generic_get_saved_register.
1725 * blockframe.c (deprecated_generic_get_saved_register): Update.
1726 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1727 (xstormy16_frame_saved_register): Update.
1728 * sh-tdep.c (sh_gdbarch_init): Update.
1729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1730 * ia64-tdep.c (ia64_get_saved_register): Update.
1731 * cris-tdep.c (cris_gdbarch_init): Update.
1732 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1733 * arm-tdep.c (arm_gdbarch_init): Update.
1734
2a4b7c45
DJ
17352002-10-31 Daniel Jacobowitz <drow@mvista.com>
1736
1737 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1738
ef17e74b
DJ
17392002-10-31 Daniel Jacobowitz <drow@mvista.com>
1740
1741 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1742 trampolines in sigaction.
1743
4904ba5b
AC
17442002-10-31 Andrew Cagney <cagney@redhat.com>
1745
1746 * h8300-tdep.c: Include "gdb_assert.h".
1747 (h8300_print_register): Add gdbarch, file and frame parameters.
1748 Use frame_read_unsigned_register to read the register's value.
1749 Use fprintf_filtered to display output.
1750 (h8300_print_registers_info): Replace h8300_do_registers_info.
1751 (h8300_gdbarch_init): Set print_registers_info.
1752
f908a0eb
AC
17532002-10-31 Andrew Cagney <cagney@redhat.com>
1754
1755 * frame.c (frame_read_unsigned_register): New function.
1756 (frame_read_signed_register): New function.
1757 * frame.h (frame_read_unsigned_register): Declare.
1758 (frame_read_signed_register): Declare.
1759
c5646e11
AC
17602002-10-31 Andrew Cagney <cagney@redhat.com>
1761
1762 * h8500-tdep.c (h8500_print_registers_info): New static function,
1763 clone of infcmd.c's default_print_registers_info.
1764 (h8500_do_registers_info): New funtion.
1765 (h8500_print_register_hook): Rename print_register_hook, make
1766 static.
1767
1768 * config/h8500/tm-h8500.h: Update copyright.
1769 (DEPRECATED_DO_REGISTERS_INFO): Define.
1770 (h8500_do_registers_info: Declare.
1771 (PRINT_REGISTER_HOOK): Delete macro.
1772 (print_register_hook): Delete function.
1773
0bdd672b
AC
17742002-10-31 Andrew Cagney <cagney@redhat.com>
1775
1776 * z8k-tdep.c (z8k_print_register_hook): Make static.
1777 (z8k_print_registers_info): New static function, clone of
1778 infcmd.c's default_print_registers_info.
1779 (z8k_do_registers_info): New function. Wrap
1780 z8k_print_registers_info.
1781 * config/z8k/tm-z8k.h: Update copyright.
1782 (PRINT_REGISTER_HOOK): Delete macro.
1783 (z8k_print_register_hook): Delete declaration.
1784 (DEPRECATED_DO_REGISTERS_INFO): Define.
1785 (z8k_do_registers_info): Declare.
1786
bf9c25dc
JB
17872002-10-30 Joel Brobecker <brobecker@gnat.com>
1788
1789 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1790 as this is already provided by value.h, and was actually causing
1791 a compilation error because of a conflict in parameter type
1792 declaration due to a missing const keyword.
1793 (low_text_segment_addres): Fix a compilation warning.
1794
2c665b51
DJ
17952002-10-29 Daniel Jacobowitz <drow@mvista.com>
1796
1797 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1798 registers without a name.
1799 (mips_linux_cannot_store_register): Don't store registers without
1800 a name.
1801
e70ea697
DC
18022002-10-28 David Carlton <carlton@math.stanford.edu>
1803
1804 * symtab.c (find_addr_symbol): Delete. (It was already commented
1805 out.)
1806 * symtab.h: Delete prototype for find_addr_symbol.
1807
903ad3a6
AC
18082002-10-26 Andrew Cagney <cagney@redhat.com>
1809
1810 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1811 DO_REGISTERS_INFO.
1812 gdbarch.h, gdbarch.c: Re-generate.
1813 * infcmd.c (default_print_registers_info): Update reference.
1814 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1815 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1816 * sh-tdep.c (sh_gdbarch_init): Ditto.
1817 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1818 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1819
ab91194c
MK
18202002-10-26 Mark Kettenis <kettenis@gnu.org>
1821
e3033f15
MK
1822 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1823 cfi_init_extra_frame_info.
1824 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1825 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1826
b83b026c
MK
1827 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1828 target where necessary. Add more comments and remove the ones
1829 that don't provide any useful information.
1830
267bf4bb
MK
1831 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1832 deprecated_read_register_dummy with
1833 frame_unwind_unsigned_register.
1834
751f1375
MK
1835 * i386-tdep.c (i386_extract_struct_value_address): Use
1836 regcache_raw_read_unsigned instead of
1837 regcache_cooked_read_unsigned since we know that the register
1838 we're reading isn't a pseudo register. Rename variable 'val' into
1839 the more descriptive 'addr'.
1840
26abbdc4
MK
1841 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1842 (x86_64_push_return_address): Add comment.
1843 (x86_64_pop_frame): Make static.
1844 (examine_argument): Clarify comment.
1845 (x86_64_skip_prologue): Make prolog_expact variable static.
1846
9f1549cc
MK
1847 * dwarf2cfi.c: Fix some formatting problems.
1848 (context_cpy, read_encoded_pointer): Clarify comments.
1849
ab91194c
MK
1850 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1851 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1852 i386 target back into x86_64_gdbarch_init. Add some comments and
1853 remove meaningless ones.
1854
72367fb4
AC
18552002-10-25 Andrew Cagney <cagney@redhat.com>
1856
1857 * complaints.h (struct deprecated_complaint): Rename `struct
1858 complaint'.
1859 * complaints.c (complain): Update.
1860 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1861 incorrect comment indicating that "symfile.h" was being included
1862 for the `struct complaint' definition.
1863 * remote-vx.c: Update.
1864 * objc-lang.c: Update.
1865 * xcoffread.c: Update.
1866 * hpread.c: Update.
1867 * mdebugread.c: Update.
1868 * stabsread.c: Update.
1869 * dwarf2read.c: Update.
1870 * dwarfread.c: Update.
1871 * elfread.c: Update.
1872 * coffread.c: Update.
1873 * stabsread.h: Update.
1874 * dbxread.c: Update.
1875 * buildsym.c: Update.
1876 * gdbtypes.c: Update.
1877 * macrotab.c: Update.
1878
1f2baacc
MK
18792002-10-25 Mark Kettenis <kettenis@gnu.org>
1880
0c1a73d6
MK
1881 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1882 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1883 (x86_64_init_abi): ...new function.
1884
6aee4d54 1885 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1886 * i386v-nat.c: Include "i386-tdep.h".
1887
8f9cbe01
AC
18882002-10-25 Andrew Cagney <cagney@redhat.com>
1889
5f11f355
AC
1890 * gdbtypes.c (address_space_name_to_int): Update.
1891 (address_space_int_to_name): Update.
1892 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1893 multi-arch predicate.
1894 (address_class_name_to_type_flags): Ditto.
1895 * gdbarch.h, gdbarch.c: Re-generate.
1896
8f9cbe01
AC
1897 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1898
e8d96a5d
MH
18992002-10-24 Martin M. Hunt <hunt@redhat.com>
1900
1901 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1902
fe39c653
EZ
19032002-10-24 Elena Zannoni <ezannoni@redhat.com>
1904
1905 * symtab.h (INIT_SAL): Delete macro.
1906 (init_sal): Export.
1907 * symtab.c (init_sal): New function.
1908
1909 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1910 to init_sal function call.
1911 (find_sal_from_funcs_and_line): Ditto.
1912 (all_sals_for_line): Ditto.
1913 * breakpoint.c (create_internal_breakpoint): Ditto.
1914 (create_fork_vfork_event_catchpoint): Ditto.
1915 (create_exec_event_catchpoint): Ditto.
1916 (parse_breakpoint_sals): Ditto.
1917 (watch_command_1): Ditto.
1918 (handle_gnu_4_16_catch_command): Ditto.
1919 (clear_command): Ditto.
1920 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1921 * infcmd.c (run_stack_dummy): Ditto.
1922 * infrun.c (process_event_stop_test): Ditto.
1923 (check_sigtramp2): Ditto.
1924 (step_over_function): Ditto.
1925 * linespec.c (decode_line_2): Ditto.
1926 (decode_line_1): Ditto.
1927 * source.c (line_info): Ditto.
1928 * symtab.c (find_pc_sect_line): Ditto.
1929
baed091b
ML
19302002-10-24 Michal Ludvig <mludvig@suse.cz>
1931
1932 * dwarf2cfi.c (struct context)
1933 (struct context_reg): Moved to dwarf2cfi.h
1934 (context_alloc, frame_state_alloc, context_cpy):
1935 Made extern instead of static, removed prototypes.
1936 * dwarf2cfi.h (struct context)
1937 (struct context_reg): New, moved from dwarf2cfi.c
1938 (context_alloc, frame_state_alloc, context_cpy):
1939 New prototypes.
1940 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1941 Changed from static to extern.
1942 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1943 (LINUX_SIGCONTEXT_FP_OFFSET)
1944 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1945 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1946 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1947 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1948 set_gdbarch_*() calls now use x86-64 specific functions
1949 instead of DWARF2 CFI ones.
1950 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1951 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1952 (x86_64_init_extra_frame_info): New prototypes.
1953
c38da1af
DC
19542002-10-23 David Carlton <carlton@math.stanford.edu>
1955
1956 * linespec.c: #include "parser-defs.h".
1957 Delete prototype for find_template_name_end.
1958 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1959
fb9b6b35
JJ
19602002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1961
1962 * NEWS: add recent mi fixes.
1963 * varobj.c (struct varobj): Add new "updated" flag.
1964 (new_variable): Default "updated" flag to 0.
1965 (varobj_set_value): Set "updated" flag to 1 if value
1966 changes.
1967 (varobj_update): Check varobj "updated" flag before
1968 comparing old and refreshed values. Fix for
1969 PR gdb/702.
1970
8da065d5
DC
19712002-10-23 David Carlton <carlton@math.stanford.edu>
1972
1973 * parse.c (parse_exp_1): Use BLOCK_START.
1974 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1975 SYMBOL_BLOCK_VALUE.
1976 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1977
87f2f08c
DC
19782002-10-23 David Carlton <carlton@math.stanford.edu>
1979
1980 * symtab.c: Delete cplusplus_hint.
1981 Delete prototype for find_template_name_end.
1982
88cda038
EZ
19832002-10-23 Elena Zannoni <ezannoni@redhat.com>
1984
1985 * symtab.h: Update comment.
1986
2625d86c
MS
19872002-10-23 Michael Snyder <msnyder@redhat.com>
1988
1989 * printcmd.c (address_info): Restore quotes in output.
1990 * valops.c (value_of_local): Restore quotes in error message.
1991
9cc0d196
EZ
19922002-10-23 Elena Zannoni <ezannoni@redhat.com>
1993
1994 * symtab.c (symbol_demangled_name): New function.
1995 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1996 turning most of it into a function.
1997 (symbol_demangled_name): Export.
1998
19de93d0
MS
19992002-10-23 Michael Snyder <msnyder@redhat.com>
2000
2001 * valops.c (value_of_local): Restore quotes in error message.
2002
89aad1f9
EZ
20032002-10-23 Elena Zannoni <ezannoni@redhat.com>
2004
2005 * symtab.c (symbol_init_language_specific): New function.
2006 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2007 turning most of it into a function.
2008 (symbol_init_language_specific): Export.
2009
d9fa45fe
DC
20102002-10-23 David Carlton <carlton@math.stanford.edu>
2011
2012 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2013 (dwarf_attr_name): Ditto.
2014 (dwarf_type_encoding_name): Ditto.
2015 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2016 (process_die): Handle DW_TAG_namespace,
2017 DW_TAG_imported_declaration, DW_TAG_imported_module.
2018 (read_namespace): New function.
2019
1045b512
JB
20202002-10-22 Joel Brobecker <brobecker@gnat.com>
2021
2022 * configure.in: Define NEW_PROC_API on Interix too.
2023 * configure: Regenerate.
2024
20252002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2026
2027 * configure: Regenerate using the proper version of autoconf.
2028
3987b9d4
EZ
20292002-10-21 Elena Zannoni <ezannoni@redhat.com>
2030
2031 * findvar.c (read_var_value): Temporarily disable TLS code, until
2032 complete TLS support is added.
2033
9d774e44
EZ
20342002-10-21 Jim Blandy <jimb@redhat.com>
2035 Elena Zannoni <ezannoni@redhat.com>
2036
2037 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2038 for thread local storage locations.
2039 (struct symbol): Add objfile field.
2040 (SYMBOL_OBJFILE): Define.
2041 * dwarf2read.c (is_thread_local): New static variable.
2042 (new_symbol): If variable is in thread local fill in address class
2043 and objfile appropriately.
2044 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2045 stack operation.
2046 * printcmd.c (address_info): Print the information for thread
2047 local storage variable.
2048 * findvar.c (read_var_value): In case of thread local variable,
2049 defer to the target vector code to compute address.
2050
bc4a16ae
EZ
20512002-10-21 Elena Zannoni <ezannoni@redhat.com>
2052
2053 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2054 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2055
407caf07
EZ
20562002-10-21 Elena Zannoni <ezannoni@redhat.com>
2057
2058 * symtab.h (address_class): Rename
2059 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2060 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2061 * printcmd.c (address_info): Ditto.
2062 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2063
005328e3
MK
20642002-10-20 Mark Kettenis <kettenis@gnu.org>
2065
afdb036a
MK
2066 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2067 DBREG_DRX macro to acces debug registers.
2068
ca02e098
MK
2069 * Makefile.in (i386obsd-tdep.o): New target.
2070
03cc47f7
MK
2071 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2072 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2073
005328e3
MK
2074 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2075 * config/i386/obsd.mt: New file.
2076 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2077 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2078 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2079 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2080 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2081 * i386obsd-tdep.c: New file.
2082
9c96f9f2
AF
20832002-10-19 Adam Fedor <fedor@gnu.org>
2084
2085 * objc-exp.y (name_not_typename): Fix invalid comment.
2086
ce1ed485
MK
20872002-10-20 Mark Kettenis <kettenis@gnu.org>
2088
2089 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2090 to allocate partial syms and macro byte caches.
2091
1efc7aaa
DC
20922002-10-18 David Carlton <carlton@math.stanford.edu>
2093
2094 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2095
7e1d63ec
AF
20962002-10-18 Adam Fedor <fedor@gnu.org>
2097
2098 * stabsread.c (find_name_end): New function.
2099 (define_symbol): Use it.
2100
6e8d29a9
DJ
21012002-10-18 Daniel Jacobowitz <drow@mvista.com>
2102
2103 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2104 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2105 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2106 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2107
1efc7aaa 21082002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2109
2110 * symfile.h: Add opaque declaration for struct obstack.
2111 Declare obsavestring to take a const char *.
2112 * symfile.c (obsavestring): Make first argument a const char *.
2113
1aeae86e
AF
21142002-10-16 Adam Fedor <fedor@gnu.org>
2115
2116 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2117 names when matching breakpoints in current file.
2118
8b2dbe47
KB
21192002-10-16 Kevin Buettner <kevinb@redhat.com>
2120
2121 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2122 (read_tag_pointer_type): Add address class support.
2123 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2124 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2125 New methods.
2126 * gdbarch.h, gdbarch.c: Regenerate.
2127 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2128 (make_type_with_address_space, recursive_type_dump): Add address
2129 class support.
2130 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2131 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2132 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2133
74451869
KD
21342002-10-16 Klee Dienes <kdienes@apple.com>
2135
2136 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2137 to get the last character of a char[] buffer, not
2138 name[sizeof(vptr_name)-1].
2139
ff4cb3e8
AF
21402002-10-14 Adam Fedor <fedor@gnu.org>
2141
2142 * symtab.h: New objc_specific struct.
2143 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2144 (SYMBOL_DEMANGLED_NAME): Likewise.
2145
da2cf7e0
AF
21462002-10-14 Adam Fedor <fedor@gnu.org>
2147
2148 * symfile.c (init_filename_language_table): Add ObjC file extension.
2149
4a351cef
AF
21502002-10-14 Adam Fedor <fedor@gnu.org>
2151
2152 * utils.c (puts_filtered_tabular): New function.
2153 (fprintf_symbol_filtered): Get ObjC demangled name.
2154 * defs.h (puts_filtered_tabular): Declared.
2155
9750e763
KB
21562002-10-14 Kevin Buettner <kevinb@redhat.com>
2157
2158 * c-lang.h (c_type_print_varspec_prefix): Delete.
2159 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2160 ``need_post_space'' parameter. Adjust all callers.
2161
eee771c1
DJ
21622002-10-14 Daniel Jacobowitz <drow@mvista.com>
2163
2164 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2165 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2166 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2167 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2168
46c82446
AF
21692002-10-13 Adam Fedor <fedor@gnu.org>
2170
2171 * source.c (print_source_lines): Update comments.
2172
d069f99d
AF
21732002-10-13 Adam Fedor <fedor@gnu.org>
2174
2175 * valops.c (value_of_local): New function.
2176 (value_of_this): Use it.
2177 * value.h (value_of_local): Declared.
2178
53c551b7
AF
21792002-10-13 Adam Fedor <fedor@gnu.org>
2180
2181 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2182 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2183
eb392fbf
AF
21842002-10-12 Adam Fedor <fedor@gnu.org>
2185
2186 * language.c (binop_result_type): Add language_objc to case.
2187 (integral_type): Likewise.
2188 (character_type): Likewise.
2189 (string_type): Likewise.
2190 (boolean_type): Likewise.
2191 (structured_type): Likewise.
2192 (binop_type_check): Likewise.
2193
e2b23ee9
AF
21942002-10-11 Adam Fedor <fedor@gnu.org>
2195
2196 * printcmd.c (address_info): Print 'self' for ObjC.
2197
b01ab485
AF
21982002-10-11 Adam Fedor <fedor@gnu.org>
2199
2200 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2201 OP_SELF.
2202
806e6073
AF
22032002-10-11 Adam Fedor <fedor@gnu.org>
2204
2205 * language.h (CAST_IS_CONVERSION): Add language_objc.
2206
50f85cdf
AF
22072002-10-11 Adam Fedor <fedor@gnu.org>
2208
2209 * defs.h (enum language): Add language_objc.
2210
0d540cdf
KD
22112002-10-11 Klee Dienes <kdienes@apple.com>
2212
69266111 2213 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2214 * gdbcore.h (read_memory_typed_address): Add prototype.
2215 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2216 to read a value destined for a CORE_ADDR, not read_memory_integer.
2217 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2218 (f77_get_dynamic_lowerbound): Ditto.
2219
d5dc7960
MH
22202002-10-11 Martin M. Hunt <hunt@redhat.com>
2221
2222 * utils.c (string_to_core_addr): After turning string into
2223 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2224 which will do necessary sign-extension, etc.
2225
8343f86c
DJ
22262002-10-11 Daniel Jacobowitz <drow@mvista.com>
2227
2228 * c-exp.y (THIS): Delete token and grammar rule.
2229 (yylex): Don't return THIS.
2230 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2231 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2232 * demangle.c (cplus_markers): Update comment. Put '$'
2233 first. Remove CPLUS_MARKER.
2234 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2235 * jv-exp.y (THIS): Delete token and grammar rule.
2236 (yylex): Don't return THIS.
2237 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2238 * objc-exp.y (THIS): Delete token and grammar rule.
2239 (yylex): Don't return THIS.
2240 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2241 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2242 (read_member_functions): Likewise for opname.
2243 (read_tilde_fields): Use is_cplus_marker.
2244
2245 * defs.h (CPLUS_MARKER): Don't define.
2246 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2247 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2248 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2249 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2250 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2251
2252 * config/i386/tm-i386v4.h: Delete file.
2253 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2254 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2255 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2256 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2257 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2258 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2259 * config/i386/i386v4.mt (TM_FILE): Likewise.
2260 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2261
967c0d83
MM
22622002-10-10 Marko Mlinar <markom@opencores.org>
2263
2264 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2265 accidentially not commited 2002-10-09
2266 * gdbarch.h, gdbarch.c: Re-generate.
2267
f74fa174
MM
22682002-10-09 Marko Mlinar <markom@opencores.org>
2269
2270 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2271 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2272 * gdbarch.h, gdbarch.c: Re-generate.
2273
57349743
JB
22742002-10-08 Petr Sorfa <petrs@caldera.com>
2275
2276 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2277
2278 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2279 so we can work on more than one compilation unit at a time. This
2280 helps prepare GDB to handle inter-CU die references.
2281 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2282 the code to be defined before struct comp_unit_head.
2283 (comp_unit_head): Added new members - offset, cu_head,
2284 begin_die, next and dwarf2_abbrevs.
2285 (dwarf2_abbrevs): Removed single static var; now member of
2286 struct comp_unit_head.
2287 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2288 members.
2289 (psymtab_to_symtab_1): Changed to work with the new
2290 struct comp_unit_head.
2291 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2292 constructs the dwarf2_abbrevs[] inside the cu_header.
2293 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2294 dwarf2_abbrev table to clean up.
2295 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2296 handling of dwarf2_abbrevs inside the cu_header.
2297 (read_partial_die): Now supports the call to the new
2298 dwarf2_lookup_abbrev.
2299 (read_full_die): Now supports the call to the new
2300 dwarf2_lookup_abbrev.
2301
4092aadb
CF
23022002-10-06 Christopher Faylor <cgf@redhat.com>
2303
2304 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2305 insure that shell variables, such as "transformed_name" are propagated
2306 to later shell statements in rule.
2307
af0b2512
MK
23082002-10-06 Mark Kettenis <kettenis@gnu.org>
2309
2310 * config/i386/nm-i386sco.h: Add protection against
2311 multiple-inclusion. Include "i386/nm-i386v.h".
2312 (REGISTER_U_ADDR): Remove define.
2313 (i386_register_u_addr): Remove prototype.
2314
d6020d45
MS
23152002-10-04 Michael Snyder <msnyder@redhat.com>
2316
2317 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2318 before treating it as a single-step event.
2319
7248f48e
AF
23202002-10-03 Adam Fedor <fedor@gnu.org>
2321
2322 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2323 (objc_demangle): Remove assignment in if statements, Replace
2324 free with xfree.
2325 (add_msglist): Likewise.
2326 (end_msglist): Likewise.
2327 (complare_selectors): Likewise.
2328 (selectors_info): Likewise.
2329 (compare_classes): Likewise.
2330 (classes_info): Likewise.
2331 (print_object_command): Likewise.
2332 (find_objc_msgcall_submethod): Replace PTR with void *.
2333 * objc-lang.h: Remove check for __STDC__.
2334
52c6a6ac
JJ
23352002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2336
2337 * ui-out.h (ui_out_field_fmt_int): New prototype.
2338 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2339 of field width and alignment.
2340 * stack.c (print_frame_info_base): When printing frame level, use
2341 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2342 PR gdb/192
2343
7e3cec17
JJ
23442002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2345
2346 * MAINTAINERS: Add self to Write After Approval list.
2347
a58dd373
EZ
23482002-10-02 Elena Zannoni <ezannoni@redhat.com>
2349
2350 * infcmd.c (interrupt_target_command_wrapper): Delete.
2351 (interrupt_target_command): Make non static.
2352 (nofp_registers_info): Make static.
2353 * stack.c (return_command_wrapper): Delete.
2354 (return_command): Make non static.
2355
cee6ddeb
EZ
23562002-10-02 Elena Zannoni <ezannoni@redhat.com>
2357
2358 * event-top.c (gdb_setup_readline): New function. Code moved from
2359 _initialize_event_loop().
2360 (_initialize_event_loop): Call gdb_setup_readline().
2361
c4ed33b9
AC
23622002-10-02 Andrew Cagney <ac131313@redhat.com>
2363
2364 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2365 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2366 * gdbarch.h, gdbarch.c: Re-generate.
2367
cef4f5dd
DJ
23682002-10-02 Daniel Jacobowitz <drow@mvista.com>
2369
2370 Fix PR gdb/778
2371 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2372 before recursing.
2373 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2374 of fill_in_vptr_fieldno.
2375
36dc181b 23762002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2377
36dc181b
EZ
2378 * inferior.h (registers_info, stepi_command, nexti_command,
2379 continue_command, interrupt_target_command): Export from infcmd.c.
2380 * frame.h (args_info, selected_frame_level_changed_hook,
2381 return_command): Export from stack.c.
2382 * v850ice.c (stepi_command, nexti_command, continue_command): use
2383 prototypes from inferior.h.
2384 * tracepoint.c (registers_info, args_info, locals_info): Use
2385 prototypes from frame.h and inferior.h.
2386 * Makefile.in (mi-main.o): Add dependency on frame.h.
2387
6f99cb26
AC
23882002-10-02 Andrew Cagney <ac131313@redhat.com>
2389
da3eff49
AC
2390 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2391 value in register 3 adjusted by ppc_gp0_regnum.
2392
6f99cb26
AC
2393 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2394
da615bee
MM
23952002-10-02 Marko Mlinar <markom@opencores.org>
2396
2397 * MAINTAINERS: Add myself to the Write After Approval list.
2398
d154bee2
AO
23992002-10-01 Alexandre Oliva <aoliva@redhat.com>
2400
62a49b2c
AO
2401 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2402 of the section for the N64 ABI, fixed.
2403
d154bee2
AO
2404 * config/mips/tm-irix6.h: Include solib.h.
2405
ed348acc
EZ
24062002-10-01 Elena Zannoni <ezannoni@redhat.com>
2407
2408 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2409 GNU operators.
2410
da0f9dcd
AC
24112002-10-01 Andrew Cagney <ac131313@redhat.com>
2412
2413 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2414 and that "mi0" syntax has been removed.
2415
bdf64bac
DC
24162002-09-30 David Carlton <carlton@math.stanford.edu>
2417
2418 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2419 * ppc-sysv-tdep.c: #include "gdb_string.h".
2420 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2421 pacify GCC.
2422
54c2a1e6
AC
24232002-10-01 Andrew Cagney <ac131313@redhat.com>
2424
2425 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2426 "vrsave"'s register number.
2427
cedea778
AC
24282002-09-30 Andrew Cagney <ac131313@redhat.com>
2429
2430 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2431 use frame_unwind_signed_register to obtain the PC.
2432 (mips_frame_chain): Handle a generic dummy frame.
2433 (mips_init_extra_frame_info): When a generic dummy frame, don't
2434 re-compute the frame base.
2435 (mips_pop_frame): Handle generic dummy frames.
2436 (mips_gdbarch_init): When generic dummy frames, set
2437 use_generic_dummy_frames, push_dummy_frame to
2438 generic_push_dummy_frame, pc_in_call_dummy to
2439 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2440 generic_save_dummy_frame_tos.
2441
68315eb8
AC
24422002-09-30 Andrew Cagney <ac131313@redhat.com>
2443
2444 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2445 against TOP when TOP was explictly set.
2446 (generic_push_dummy_frame): Set TOP to zero.
2447
3b8630c3
EZ
24482002-09-30 Elena Zannoni <ezannoni@redhat.com>
2449
2450 * event-loop.c (start_event_loop): Rename variable 'result' to
2451 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2452
28ee05e9
KS
24532002-09-30 Keith Seitz <keiths@redhat.com>
2454
2455 * gdb-events.sh (selected_thread_changed): New event.
2456 * gdb-events.c: Regenerated.
2457 * gdb-events.h: Regenerated.
2458
6eecb1c8
HPN
24592002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2460
2461 * MAINTAINERS: Add self to Write After Approval list.
2462
92df71f0
FN
24632002-09-30 Fernando Nasser <fnasser@redhat.com>
2464
3b8630c3
EZ
2465 * disasm.c: New file.
2466 * disasm.h: New file.
92df71f0
FN
2467 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2468 (compare_lines): Ditto.
2469 (dump_insns): Ditto.
3b8630c3
EZ
2470 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2471 argument.
92df71f0 2472 (do_assembly_only): Ditto.
3b8630c3
EZ
2473 (do_disassembly): Renamed to gdb_disassembly and moved to
2474 disasm.c. Sdded uiout argument.
2475 * Makefile.in: Add new files. Reorder SFILES list. Update
2476 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2477
0c22854d
AC
24782002-09-29 Andrew Cagney <ac131313@redhat.com>
2479
2480 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2481 bfd/elf64-alpha-fbsd.c.
2482
e67f2023
AC
24832002-09-29 Andrew Cagney <ac131313@redhat.com>
2484
2485 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2486 i386gnu-tdep.c.
2487
89396210
AC
24882002-09-29 Andrew Cagney <ac131313@redhat.com>
2489
2490 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2491 __FUNCTION__.
2492 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2493 function name.
2494 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2495 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2496 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2497 (S_msg_sig_post_reply): Ditto.
2498
7079c36c
CV
24992002-09-28 Corinna Vinschen <vinschen@redhat.com>
2500
89396210
AC
2501 * sh-tdep.c (sh_use_struct_convention): Use definition according
2502 to ABI.
7079c36c
CV
2503 (sh_push_arguments): Store in register with correct endianess.
2504 (sh_default_store_return_value): Ditto.
2505 (sh_gdbarch_init): Set sizeof long double to 8.
2506
975ac915
MK
25072002-09-27 Mark Kettenis <kettenis@gnu.org>
2508
2509 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2510 Fix some whitespace problems.
2511
9bbe19fb
DC
25122002-09-27 David Carlton <carlton@math.stanford.edu>
2513
2514 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2515 (mcore-tdep.o): Ditto.
2516 (ns32k-tdep.o): Ditto.
2517 (ns32knbsd-tdep.o): Ditto.
2518 (sh3-rom.o): Ditto.
2519 (vax-tdep.o): Ditto.
2520 * cris-tdep.c: #include "gdb_string.h"
2521 * mcore-tdep.c: Ditto.
2522 * ns32k-tdep.c: Ditto.
2523 * ns32knbsd-tdep.c: Ditto.
2524 * sh3-rom.c: Ditto.
2525 * vax-tdep.c: Ditto.
2526
43b2fdc7
DC
25272002-09-27 David Carlton <carlton@math.stanford.edu>
2528
2529 * config/djgpp/fnchange.lst: Add entries for
2530 gdb/testsuite/gdb.c++/m-static files.
2531
e8cfbbd9
JW
25322002-09-27 Jim Wilson <wilson@redhat.com>
2533
2534 * MAINTAINERS: Add myself to the Write After Approval list.
2535
43b2fdc7 25362002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2537
2538 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2539
2540
9f3b7f07
AC
25412002-09-26 Andrew Cagney <ac131313@redhat.com>
2542
2543 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2544 frame.
2545
11269d7e
AC
25462002-09-26 Andrew Cagney <ac131313@redhat.com>
2547
2548 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2549 (rs6000_struct_return_address): Delete variable.
2550 (rs6000_store_struct_return): Update.
2551 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2552 deprecated_extract_struct_value_address.
2553 (rs6000_frame_align): New function.
2554 (rs6000_gdbarch_init): Set frame_align.
2555
f15ab4a7
AC
25562002-09-26 Andrew Cagney <ac131313@redhat.com>
2557
2558 From Grace Sainsbury <graces@redhat.com>:
2559 * Makefile.in (gdbtk-main.o): New target.
2560 (gdb.o): New target.
2561 (main_h): Define.
2562 (main.o): Update dependencies.
2563 (gdb$(EXEEXT)): Add gdb.o.
2564 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2565 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2566 (SUBDIR_GDBTK_CLEAN): Set.
2567 (install-gdbtk): Install the insight binary.
2568 (uninstall-gdbtk): New target.
2569 (all-gdbtk, clean-gdbtk): New rule.
2570 * top.c (use_windows): Default to zero.
2571 * main.c: Include "main.h".
2572 (main): Delete.
2573 (struct captured_main_args): Delete.
2574 (gdb_main): New function.
2575 * main.h: New file.
2576 * gdb.c: New File.
2577
e36180d7
AC
25782002-09-25 Andrew Cagney <cagney@redhat.com>
2579
2580 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2581 (frame_map_regnum_to_name): New function.
2582 (frame_map_name_to_regnum): New function.
2583 * frame.h (frame_map_name_to_regnum): Declare.
2584 (frame_map_regnum_to_name): Declare.
2585 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2586 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2587 * parse.c: Do not include "builtin-regs.h".
2588 (target_map_name_to_register): Delete function.
2589 (write_dollar_variable): Use frame_map_name_to_regnum.
2590 * parser-defs.h (target_map_name_to_register): Delete declaration.
2591 * expprint.c: Include "frame.h".
2592 (print_subexp): Use frame_map_regnum_to_name.
2593 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2594 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2595
8b69000d
AC
25962002-09-25 Andrew Cagney <ac131313@redhat.com>
2597
2598 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2599 wasn't saved, and the next innermost frame is a dummy, return the
2600 dummy frame's link register.
2601
046ca86a
JB
26022002-09-24 Jim Blandy <jimb@redhat.com>
2603
2604 Fix from Paul Breed:
2605 * main.c (captured_main): Add a `break' after the case for 'b'.
2606
94b66fa7
KS
26072002-09-24 Keith Seitz <keiths@redhat.com>
2608
2609 * varobj.c (c_type_of_child): Use get_target_type instead
2610 of TYPE_TARGET_TYPE.
2611
c214a6fd
FN
26122002-09-22 Fernando Nasser <fnasser@redhat.com>
2613
53cb0458
FN
2614 * source.c (get_current_or_default_source_symtab_and_line): Remove
2615 function.
2616 (set_default_source_symtab_and_line): New function. Attempts to
2617 determine a source file to list lines from if one is not currently
2618 defined.
2619 (get_current_source_symtab_and_line): Initialize sal.pc and
2620 sal.end fields.
2621 (set_current_source_symtab_and_line): Mark argument as const.
2622 * source.h: Update declarations and comments.
2623 * linespec.c (decode_line_1): Replace call to removed routine above.
2624 * stack.c (print_frame_info_base): Ditto.
2625 * cli/cli-cmds.c (edit_command): Ditto.
2626 (list_command): Ditto.
2627
26282002-09-22 Fernando Nasser <fnasser@redhat.com>
2629
d6020d45 2630 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2631 sal.pc and sal.end fields.
c214a6fd
FN
2632 (get_current_or_default_source_symtab_and_line): Ditto.
2633 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2634 so we do not cause a new source symtab to be searched for (reverting an
2635 unintentional change from the 2002-09-20 patch).
2636 * scm-lang.c (scm_unpac): Ditto.
2637
cc3b68a5
AC
26382002-09-21 Andrew Cagney <cagney@redhat.com>
2639
2640 * complaints.c (symfile_explanations): Remove new-line from
2641 ``isolated_message''.
2642 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2643 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2644
5835abe7
NC
26452002-09-20 Nick Clifton <nickc@redhat.com>
2646
2647 * NEWS: Announce that V850EA ISA is no longer supported.
2648 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2649
a15ef5f5
DC
26502002-09-20 David Carlton <carlton@math.stanford.edu>
2651
06ba1b39
DC
2652 * Makefile.in (c-lang.o): Correct dependencies.
2653 (utils.o): Gather dependencies.
2654 (charset.o): Move.
a15ef5f5
DC
2655 * c-lang.c: #include "gdb_string.h"
2656
87885426
FN
26572002-09-20 Fernando Nasser <fnasser@redhat.com>
2658
2659 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2660 * cli/cli-cmds.c (list_command): New function. Implements the new
2661 cli edit command.
2662 (_init_cli_cmds): Add new command definition.
2663 * gdb.1: Document edit command.
2664 * doc/gdb.texinfo: Document edit command.
2665
26662002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2667
2668 * source.c: Make global variables current_source_symtab and
2669 current_source_line static.
2670 (list_command): Moved to cli/cli-cmds.c.
2671 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2672 (get_first_line_listed): New accessor function.
2673 (get_lines_to_list): New accessor function.
2674 (get_current_source_symtab_and_line): New function. Retrieves the
2675 position in the source code that we consider current.
2676 (get_current_or_default_source_symtab_and_line): New function.
2677 Like the above but attempts to determine a default position if one
2678 is not currently defined.
2679 (set_current_source_symtab_and_line): New function. Sets the source
2680 code position considered current and returns the previously set one.
2681 (clear_current_source_symtab_and_line): Reset stored information about
2682 a current source line.
2683 (_initialize_source): Remove registration for the "list" command and
2684 its alias.
2685 * source.h: Add declarations for the new functions above.
2686 * symtab.h: Remove declarations for the global variables mentioned
2687 above.
2688 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2689 obtain current source line.
2690 * linespec.c (decode_line_1): Ditto.
2691 * macroscope.c (default_macro_scope): Ditto.
2692 * scm-lang.c (scm_unpac): Ditto.
2693 * stack.c (print_frame_info_base): Ditto.
2694 * symfile.c (clear_symtab_users): Ditto.
2695 * symtab.c (decode_line_spec): Ditto.
2696 * cli/cli-cmds.c (list_command): Moved here from source.c.
2697 (ambiguous_line_spec): Moved here from source.c.
2698 (_init_cli_cmds): Add definition for "list" and its alias.
2699 * Makefile.in: Update dependencies.
2700
ddd216ea
CV
27012002-09-20 Corinna Vinschen <vinschen@redhat.com>
2702
2703 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2704 with what gcc thinks is correct.
2705
6d305052
CV
27062002-09-20 Corinna Vinschen <vinschen@redhat.com>
2707
2708 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2709 multiple register push instruction.
2710
234b45d4
KB
27112002-09-19 Jim Blandy <jimb@redhat.com>
2712
2713 Add support for distinct host and target character sets.
2714 * charset.c, charset.h: New files.
2715 * c-exp.y: #include "charset.h".
2716 (yylex): Convert character and string literals to the target
2717 character set, before returning them as the semantic value of the
2718 token.
2719 * c-lang.c: #include "charset.h".
2720 (c_emit_char): Use charset-specific methods to recognize
2721 characters with backslash escape forms, to decide which characters
2722 to print literally and which to print using numeric escape
2723 sequences, and to convert target characters to host characters
2724 before printing.
2725 * utils.c: #include "charset.h".
2726 (no_control_char_error): New function.
2727 (parse_escape): Use charset-specific methods to recognize
2728 backslash escapes, parse `control character' notation, and convert
2729 characters from the host character set to the target character set.
2730 * configure.in: Set the default host character set.
2731 Check where to find iconv, and what its argument types might be.
2732 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2733 * Makefile.in (SFILES): List charset.c.
2734 (COMMON_OBS): List charset.o.
2735 (charset.o): New rule.
2736 (charset_h): New header dependency variable.
2737 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2738 (LIBICONV): New variable, set by configure.
2739 (CLIBS): Include $(LIBICONV) here.
2740 * aclocal.m4, config.in, configure: Regenerated.
2741
525d6a61
JB
27422002-09-19 Joel Brobecker <brobecker@gnat.com>
2743
2744 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2745 bison 1.35 warning.
2746
3ed93867
RE
27472002-09-19 Richard Earnshaw <rearnsha@arm.com>
2748
2749 * gdb_mbuild.sh: New file.
2750
437666f8
AC
27512002-09-19 Andrew Cagney <ac131313@redhat.com>
2752
2753 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2754
389e51db
AC
27552002-09-18 Andrew Cagney <ac131313@redhat.com>
2756
2757 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2758 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2759 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2760 valops.c, value.h: Revert previous change.
2761
3b4efeaa
MS
27622002-09-18 Michael Snyder <msnyder@redhat.com>
2763
2764 Preliminary support for Objective-C:
2765 * defs.h (language_objc): New enum value.
2766 (puts_filtered_tabular): Declaration only, exported from utils.c.
2767 (skip_quoted): Delete, declared in completer.h.
2768 * c-exp.y: Include completer.h.
2769 * p-exp.y: Ditto.
2770 * jv-exp.y: Ditto.
2771 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2772 New operator enum values.
2773 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2774 * language.c (binop_result_type): Handle language_objc case.
2775 (integral_type, character_type, string_type, boolean_type,
2776 structured_type, binop_type_check): Ditto.
2777 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2778 (struct objc_specific): Add to general_symbol_info.
2779 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2780 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2781 * parser-defs.h (struct objc_class_str): New struct type.
2782 (start_msglist, end_msglist, add_msglist): Declaration only,
2783 exported from objc-lang.c.
2784 * value.h (value_of_local, value_nsstring,
2785 call_function_by_hand_expecting_type): Exported from valops.c.
2786 * valops.c (find_function_addr): Export.
2787 (call_function_by_hand_expecting_type): New function.
2788 (value_of_local): New function.
2789 * symfile.c (init_filename_language_table): Add ".m" extension
2790 for Objective-C.
2791 * utils.c (puts_filtered_tabular): New function.
2792 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2793 (set/show demangle): Extend help-string to refer to ObjC.
2794 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2795 * stabsread.c (symbol_reference_defined): Objective-C symbols
2796 may contain colons: make allowances when scanning stabs strings
2797 for colons.
2798 (objc_find_colon): New function.
2799 * printcmd.c (address_info): If language == objc then print
2800 "self" instead of "this".
2801 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2802 OP_NSSTRING, and OP_SELF.
2803 (prefixify_subexp): Ditto.
2804 * source.c (print_source_lines): Mention objc in comment.
2805 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2806 method names.
2807
b9caf505
AC
28082002-09-18 Andrew Cagney <ac131313@redhat.com>
2809
2810 * complaints.h: Update copyright.
2811 (struct complaints): Declare.
2812 (struct complaint): Make `message' constant.
2813 (internal_complaint): Declare.
2814 (complaint): Declare.
2815 (complaint_root): Delete declaration.
2816 (symfile_complaints): Delete declaration.
2817 (struct complaints): Add opaque declaration.
2818 (clear_complaints): Add a complaints parameter.
2819 * complaints.c: Update copyright.
2820 (enum complaint_series): Define.
2821 (complaint_root): Delete.
2822 (struct complaints): Define.
2823 (complaint_sentinel, symfile_complaint_book): New variables.
2824 (symfile_explanations, symfile_complaints): New variables.
2825 New variables.
2826 (get_complaints): New function.
2827 (vcomplaint): New function.
2828 (complaint): New function.
2829 (internal_complaint): New function.
2830 (complain): Call vcomplain with symfile_complaint.
2831 (clear_complaints): Rewrite.
2832 (_initialize_complaints): Use add_setshow_command.
2833 * Makefile.in (complaints.o): Update dependencies.
2834 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2835 to call to clear_complaints.
2836 (new_symfile_objfile, reread_symbols): Ditto.
2837 (oldsyms_complaint): Delete.
2838 (empty_symtab_complaint, unknown_option_complaint): Delete.
2839 (free_named_symtabs): Use complaint instead of complain.
2840
d2e6263c
MS
28412002-09-18 Michael Snyder <msnyder@redhat.com>
2842
5fb2031a
AC
2843 Contributed by Apple Computer, Inc. Merged with current sources
2844 by Adam Fedor <fedor@doc.com> [cagney].
2845
d2e6263c
MS
2846 * objc-lang.c: First clean-up round: comments, indentation.
2847 * objc-lang.h: Ditto.
2848 * objc-lang.y: Ditto.
2849
dec43320
AC
28502002-09-18 Andrew Cagney <ac131313@redhat.com>
2851
2852 * maint.c (maintenance_internal_error): Print the parameter as the
2853 error message.
2854 (maintenance_internal_warning): New function.
2855 (_initialize_maint_cmds): Add command `maint internal-warning'.
2856
2857 * defs.h (internal_warning, internal_vwarning): Declare.
2858 * utils.c (struct internal_problem): Define.
2859 (internal_vproblem): New function.
2860 (internal_warning): New function.
2861 (internal_vwarning): New function.
2862 (internal_warning_problem, internal_error_problem): New variables.
2863 (internal_verror): Just call internal_vproblem.
2864
b81654f1
MS
28652002-09-18 Michael Snyder <msnyder@redhat.com>
2866
2867 * objc-lang.c: New file, support for Objective-C.
2868 Preliminary check-in, not yet integrated into gdb.
2869 * objc-lang.h: New file.
2870 * objc-exp.y: New file.
2871
0542c381
AC
28722002-09-18 Andrew Cagney <ac131313@redhat.com>
2873
7bda5e4a
AC
2874 * infrun.c (signal_stop_update): Convert definition to ISO C.
2875 (signal_print_update): Ditto.
2876 (signal_pass_update): Ditto.
2877 * inflow.c (terminal_save_ours): Ditto.
2878
5247b418
AC
2879 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2880 comments.
2881
fc60962c
AC
2882 * config/djgpp/fnchange.lst: Handle name clashes between
2883 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2884 bfd/coff-tic80.c.
2885
0542c381
AC
2886 * i386-linux-tdep.h: Fix tipo.
2887
5b924b9b
AF
28882002-09-18 Adam Fedor <fedor@gnu.org>
2889
2890 * MAINTAINERS: Add myself to the Write After Approval list.
2891
5afc051b
JB
28922002-09-18 Jim Blandy <jimb@redhat.com>
2893
2894 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2895 texthigh and textlow to reader-specific structs caused
2896 objfile_relocate to miss them. This is fixable, but the work that
2897 the change was supposed to prepare GDB for never got done anyway.
2898
eb944380
DC
28992002-09-18 David Carlton <carlton@math.stanford.edu>
2900
2901 * MAINTAINERS: Alphabetize Write After Approval list.
2902
948e66d9
DJ
29032002-09-18 Daniel Jacobowitz <drow@mvista.com>
2904
2905 Fix PR gdb/709
2906 * values.c (value_static_field): Call read_var_value.
2907
dc604539
AC
29082002-09-18 Andrew Cagney <ac131313@redhat.com>
2909
2910 * valops.c (hand_function_call): Align the initial stack pointer
2911 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2912 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2913 return value.
2914 * mips-tdep.c (mips_frame_align): New function.
2915 (mips_gdbarch_init): Set frame_align.
2916 * gdbarch.sh (FRAME_ALIGN): New method.
2917 * gdbarch.h, gdbarch.c: Re-generate.
2918
cb7e422f
ML
29192002-09-18 Michal Ludvig <mludvig@suse.cz>
2920
2921 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2922 registers.
2923
a094c6fb
AC
29242002-09-17 Andrew Cagney <ac131313@redhat.com>
2925
2926 * NEWS: Mention that MIPS $fp behavior changed.
2927 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2928 reference to FP_REGNUM.
2929 (mipsnbsd_cannot_store_register): Ditto.
2930 * mips-linux-nat.c: Update copyright.
2931 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2932 (mips_linux_cannot_store_register): Ditto.
2933 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2934 * config/mips/tm-mips.h: Update copyright.
2935 (FP_REGNUM): Delete macro.
2936 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2937 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2938 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2939 (mips_r3041_reg_names, mips_r3051_reg_names)
2940 (mips_r3081_reg_names): Replace "fp" with "".
2941 Fix PR gdb/480.
2942
45cf40d1
TR
29432002-09-17 Theodore A. Roth <troth@verinet.com>
2944
2945 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2946 generic_read_register_dummy() (PR gdb/703).
2947 (avr_push_return_address): #if 0 out unused vars.
2948 (avr_gdbarch_init): Enable use of avr_push_return_address().
2949
c7e701b5
MS
29502002-09-17 Michael Snyder <msnyder@redhat.com>
2951
d76ba2a5 2952 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2953 RTE will take care of it.
2954
20bcf01c
AC
29552002-09-17 Andrew Cagney <ac131313@redhat.com>
2956
2957 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2958 invalid, return SP_REGNUM.
2959
009a9971 29602002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2961
2962 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2963 point registers without sign extension.
2964
135c175f
AC
29652002-09-17 Andrew Cagney <cagney@redhat.com>
2966
2967 * blockframe.c (deprecated_read_register_dummy): Rename
2968 generic_read_register_dummy.
2969 * frame.c (frame_unwind_signed_register): New function.
2970 (frame_unwind_unsigned_register): New function.
2971 * frame.h (frame_unwind_signed_register): Declare.
2972 (frame_unwind_unsigned_register): Declare.
2973 (deprecated_read_register_dummy): Rename
2974 generic_read_register_dummy.
2975
2976 * h8300-tdep.c (h8300_frame_chain): Update.
2977 (h8300_frame_saved_pc): Update.
2978 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2979 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2980 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2981 (s390_frame_chain): Update.
2982 * v850-tdep.c (v850_find_callers_reg): Update.
2983 (v850_frame_saved_pc): Update.
2984 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2985 (m32r_find_callers_reg): Update.
2986 (m32r_frame_saved_pc): Update.
2987 * sh-tdep.c (sh_find_callers_reg): Update.
2988 (sh64_get_saved_pr): Update.
2989 (sh_init_extra_frame_info): Update.
2990 (sh_init_extra_frame_info): Update.
2991 (sh64_init_extra_frame_info): Update.
2992 (sh64_init_extra_frame_info): Update.
2993 * mcore-tdep.c (mcore_find_callers_reg): Update.
2994 (mcore_frame_saved_pc): Update.
2995 (mcore_init_extra_frame_info): Update.
2996 * i386-tdep.c (i386_frame_saved_pc): Update.
2997 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2998 (ia64_init_extra_frame_info): Update.
2999 (ia64_init_extra_frame_info): Update.
3000 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3001 * cris-tdep.c (cris_init_extra_frame_info): Update.
3002 * avr-tdep.c (avr_frame_chain): Update.
3003 (avr_init_extra_frame_info): Update.
3004 (avr_frame_saved_pc): Update.
3005 * arm-tdep.c (arm_find_callers_reg): Update.
3006 (arm_init_extra_frame_info): Update.
3007 (arm_frame_saved_pc): Update.
3008
a741e514
TT
30092002-09-17 Tom Tromey <tromey@redhat.com>
3010
3011 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3012 is "'".
3013
d1a8e808
CV
30142002-09-17 Corinna Vinschen <vinschen@redhat.com>
3015
3016 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3017 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3018 NEXT_PROLOGUE_INSN.
3019 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3020 NEXT_PROLOGUE_INSN.
3021
d9025a18
JB
30222002-09-16 Joel Brobecker <brobecker@gnat.com>
3023
3024 * osfsolib.c: Remove file, replaced by solib-osf.c.
3025 * Makefile.in: Remove compilation rules for osfsolib.c.
3026
1b2ef1b6
DC
30272002-09-16 David Carlton <carlton@math.stanford.edu>
3028
3029 * cp-valprint.c (cp_print_class_method): Correct args to
3030 check_stub_method_group.
3031
928e48af
CV
30322002-09-16 Corinna Vinschen <vinschen@redhat.com>
3033
3034 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3035 `set architecture'. Unify naming convention of functions.
3036 (h8300_skip_prologue): Improve prologue analysis.
3037 (h8300_push_arguments): Rewritten to more closely match GCC's
3038 bizarre argument-passing behavior, along with the comment describing
3039 said behavior.
3040 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3041 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3042 sim, remote-e7000.c, remote-hms.c and remote.c
3043
5e3397bb
MK
30442002-09-15 Mark Kettenis <kettenis@gnu.org>
3045
3046 * i386-tdep.c (gdb_print_insn_i386): Removed.
3047 (i386_print_insn): New function.
3048 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3049 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3050 tm_print_insn_info.
3051
f710f4fc
MK
30522002-09-14 Mark Kettenis <kettenis@gnu.org>
3053
3054 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3055 zero.
3056
db54fef4
CV
30572002-09-14 Corinna Vinschen <vinschen@redhat.com>
3058
3059 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3060 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3061 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3062
2becadee
CF
30632002-09-13 Christopher Faylor <cgf@redhat.com>
3064
3065 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3066
de17c821
DJ
30672002-09-13 Daniel Jacobowitz <drow@mvista.com>
3068
3069 * gdbtypes.c (check_stub_method): Make static.
3070 (check_stub_method_group): New function.
3071 * gdbtypes.h: Update prototypes.
3072 * cp-support.c: New file.
3073 * cp-support.h: New file.
3074
3075 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3076 (update_method_name_from_physname): New function.
3077 (read_member_functions): Correct method names for operators
3078 and v3 constructors/destructors. Separate v2 constructors and
3079 destructors.
3080 * Makefile.in (stabsread.o): Update dependencies.
3081 (SFILES): Add cp-support.c.
3082 (COMMON_OBS): Add cp-support.o.
3083 (cp_support_h, cp-support.o): Add.
3084
3085 * cp-valprint.c (cp_print_class_method): Call
3086 check_stub_method_group instead of check_stub_method. Remove
3087 extraneous QUITs.
3088 * p-valprint.c (pascal_object_print_class_method): Likewise.
3089 * valops.c (search_struct_method): Likewise.
3090 (find_method_list, value_struct_elt_for_reference): Likewise.
3091
e76cff22
AC
30922002-09-13 Andrew Cagney <cagney@redhat.com>
3093
3094 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3095 * gdbarch.h, gdbarch.c: Regenerate.
3096
905abb3f
AC
30972002-09-13 Andrew Cagney <ac131313@redhat.com>
3098
3099 * frame.c (find_saved_register): Delete function.
3100 * frame.h (find_saved_register): Delete declaration.
3101 Fix PR gdb/631.
3102
64159455
AC
3103Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3104
3105 * mips-tdep.c (read_next_frame_reg): Re-hack using
3106 frame_register_unwind.
3107
795e1e11
AC
3108Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3109
3110 * mips-tdep.c (mips_get_saved_register): Re-hack using
3111 frame_register_unwind.
3112
5720643c
JB
31132002-09-12 Joel Brobecker <brobecker@gnat.com>
3114
3115 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3116 vector. Will be useful for Interix.
3117 * gdbarch.h, gdbarch.c: Regenerate.
3118
3119 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3120 name of the malloc function by NAME_OF_MALLOC.
3121
3bada2a2
JB
31222002-09-12 Joel Brobecker <brobecker@gnat.com>
3123
3124 * value.h (find_function_in_inferior): Add const keyword to
3125 one of the parameters. Allows us to invoke this function with
3126 a const char *.
3127 * valops.c (find_function_in_inferior): Likewise.
3128
3db26b01
JB
31292002-09-12 Joel Brobecker <brobecker@gnat.com>
3130
3131 * exec.c (xfer_memory): Fix compilation warning with old versions
3132 of GCC.
3133 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3134
17c5ed2c
DC
31352002-09-12 David Carlton <carlton@math.stanford.edu>
3136
3137 * symtab.h: Run through gdb_indent.h.
3138 Add 2002 to Copyright year list.
3139
ecd1107e
AM
31402002-09-12 Alan Modra <amodra@bigpond.net.au>
3141
3142 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3143 mach constants.
3144 * MAINTAINERS: Add myself to write after approval list.
3145
e64f66d1
JB
31462002-09-11 J. Brobecker <brobecker@gnat.com>
3147
3148 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3149
f9395794
JB
31502002-09-11 J. Brobecker <brobecker@gnat.com>
3151
3152 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3153 Interix.
3154
1a303dec
MS
31552002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3156
3157 * procfs.c (do_detach): Clear current signal, not just fault.
3158 Corrects problem with breakpoint trap signal leaking to detached
3159 process on Tru64.
3160
c0219d42
MS
31612002-09-10 Michael Snyder <msnyder@redhat.com>
3162
3163 * buildsym.c (finish_block): Protect against null pointer.
3164
9d84ac84
AC
31652002-09-10 Andrew Cagney <cagney@redhat.com>
3166
3167 * infcmd.c (default_print_registers_info): Send all output to
3168 ``file'' instead of ``gdb_stdout''.
3169
77d8f2b4
MS
31702002-09-10 Michael Snyder <msnyder@redhat.com>
3171
3172 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3173 LONGEST, and use signed register read (addresses are sign-
3174 extended for mips).
3175
99656a61
SC
31762002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3177
3178 * event-loop.c (gdb_do_one_event): Make public.
3179 * event-loop.h (gdb_do_one_event): Declare.
3180
da12f4d8
JL
31812002-09-10 Jeff Law <law@redhat.com>
3182
3183 * infttrace.c (child_resume): Simplify and rework to avoid
3184 TT_PROC_CONTINUE.
3185
d0aee0c4
FF
31862002-09-09 Fred Fish <fnf@intrinsity.com>
3187
3188 * printcmd.c (print_scalar_formatted): "len" is the number of
3189 target bytes, NOT the number of target bits.
3190
7cb3ec5e
EZ
31912002-09-09 Elena Zannoni <ezannoni@redhat.com>
3192
3193 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3194 * top.c (init_main): Set rl_terminal_name.
3195
4dc81987
AS
31962002-09-08 Aidan Skinner <aidan@velvet.net>
3197
3198 * ada-lang.c (ada_array_bound, ada_type_match,
3199 _initialize_ada_language): Fix K&R definitions.
3200 * ada-tasks.c (get_current_task): Fix K&R definitions.
3201 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3202
842330b4
CF
32032002-09-07 Christopher Faylor <cgf@redhat.com>
3204
3205 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3206 Add XP.
3207
43156d82
MK
32082002-09-06 Mark Kettenis <kettenis@gnu.org>
3209
66da5fd8
MK
3210 * i386-tdep.c (i386_register_virtual_type,
3211 i386_register_convertible, i386_register_convert_to_virtual,
3212 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3213 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3214 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3215 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3216 Don't set push_arguments twice.
3217
4b218c18
MK
3218 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3219 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3220 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3221 sigtramp_end to NULL.
3222 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3223 defines.
3224 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3225
4cc314d5
MK
3226 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3227 whitespace.
3228
43156d82
MK
3229 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3230 * gdbarch.h, gdbarch.c: Re-generate.
3231 * blockframe.c (find_pc_sect_partial_function): Convert to use
3232 SIGTRAMP_START_P predicate.
3233
6672060b
MS
32342002-09-05 Michael Snyder <msnyder@redhat.com>
3235
a90c3637
MS
3236 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3237 generic_dummy_frame method and old method. Also distinguish
3238 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3239 (arm_extract_return_value): Use new regcache method.
a90c3637 3240
6672060b
MS
3241 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3242 adjustment that doesn't conform to the ABI.
3243 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3244 saved regcache, not from current regcache.
3245
299ffc64
AC
32462002-09-05 Andrew Cagney <ac131313@redhat.com>
3247
3248 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3249 * README: Update.
3250
a3a2ee65
JT
32512002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3252
3253 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3254 if arm_apcs_32 is false.
3255
2bc7eea9
AC
32562002-09-04 Andrew Cagney <ac131313@redhat.com>
3257
3258 GDB 5.3 branch created.
3259
8a55a7c5
TR
32602002-09-03 Theodore A. Roth <troth@verinet.com>
3261
3262 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3263 generic_unwind_get_saved_register.
3264
e26fb1d7
DC
32652002-09-03 David Carlton <carlton@math.stanford.edu>
3266
3267 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3268 argument (PR gdb/653). Update call to smash_to_method_type.
3269 (read_structure_scope): Update call to dwarf2_add_member_fn.
3270
30d52491
ML
32712002-09-03 Michal Ludvig <mludvig@suse.cz>
3272
3273 * x86-64-linux-tdep.c: Include gdb_string.h
3274 * x86-64-linux-nat.c: Ditto.
3275
06891d83
JT
32762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3277
3278 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3279 when YYDEBUG is set to 1.
3280 * c-exp.y: Likewise.
3281 * f-exp.y: Likewise.
3282 * jv-exp.y: Likewise.
3283 * m2-exp.y: Likewise.
3284 * p-exp.y: Likewise.
3285
7d400e77
JT
32862002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3287
3288 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3289 dependency list.
3290 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3291 solib_svr4_fetch_link_map_offsets to
3292 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3293 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3294 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3295 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3296 solib-svr4.o, and solib-legacy.o.
3297 * config/i386/tm-nbsd.h: Include solib.h.
3298
704a27c4
JT
32992002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3300
3301 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3302 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3303 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3304 comment noting that this needs its own target configuration.
3305 * config/i386/nbsd.mt: New file.
3306 * config/i386/nbsdaout.mt: Remove.
3307 * config/i386/nbsdelf.mt: Ditto.
3308 * config/i386/tm-nbsdaout.h: Ditto.
3309
d66198e1
JT
33102002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3311
3312 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3313 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3314 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3315 tdep->sigtramp_end.
3316 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3317 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3318 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3319
3cac699e
JT
33202002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3321
3322 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3323 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3324 * i386-tdep.h (i386bsd_init_abi): New prototype.
3325 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3326 function declaration.
3327 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3328 for NetBSD-a.out or NetBSD-ELF.
3329 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3330 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3331 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3332 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3333 and nbsd-tdep.h.
3334 (i386nbsd_pc_in_sigtramp): New function.
3335 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3336 i386nbsd_pc_in_sigtramp.
3337 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3338 and i386nbsdelf_init_abi OS ABI handlers.
3339 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3340 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3341
7010ca0a
MK
33422002-09-02 Mark Kettenis <kettenis@gnu.org>
3343
3344 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3345 registers if the target really has them.
3346
6dd93b72
JT
33472002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3348
3349 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3350 than nbsd-tdep.h.
3351
2ca8ae21
JT
33522002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3353
3354 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3355 list.
3356 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3357 (alphanbsd_skip_sigtramp_frame): New functions.
3358 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3359 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3360 to alphanbsd_sigcontext_addr.
3361
3d9b49b0
JT
33622002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3363
3364 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3365 list.
3366 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3367 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3368 nbsd_pc_in_sigtramp.
3369 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3370 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3371 * nbsd-tdep.c: Include gdb_string.h.
3372 (nbsd_pc_in_sigtramp): New function.
3373 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3374 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3375 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3376 ppcnbsd_pc_in_sigtramp.
3377 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3378 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3379 shnbsd_pc_in_sigtramp.
3380 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3381 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3382 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3383
c860120c
PM
33842002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3385
3386 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3387 watchpoints to NULL.
3388 (insert_breakpoints): set val field of watchpoints if NULL.
3389
3390
c7612d53
JB
33912002-08-29 Jim Blandy <jimb@redhat.com>
3392
3393 * symtab.c (lookup_symbol_aux): In the cases where we find a
3394 minimal symbol of an appropriate name and use its address to
3395 select a symtab to read and search, use `name' (as passed to us)
3396 as the demangled name when searching the symtab's global and
3397 static blocks, not the minsym's name.
3398
66609862
KS
33992002-08-29 Keith Seitz <keiths@redhat.com>
3400
3401 * stack.c (print_frame_info_base): Always set current_source_symtab
3402 and current_source_line.
3403
151fefe2
JB
34042002-08-29 Donn Terry <donnte@microsoft.com>
3405
3406 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3407
bfb3754e
KS
34082002-08-28 Keith Seitz <keiths@redhat.com>
3409
3410 * stack.c (select_frame): Add FIXME concerning selected-frame
3411 events.
3412 (select_frame_command): Send selected-frame-level-changed
3413 event notification, but only if the level actually changed.
3414 (up_silently_base): Add selected-frame-level-changed event
3415 notification.
3416 (down_silently_base): Likewise.
3417
e822a2a0
AC
34182002-08-28 Andrew Cagney <ac131313@redhat.com>
3419
3420 * Makefile.in: Update dependencies for all gdb/*.c files.
3421
309367d4
TT
34222002-08-27 Tom Tromey <tromey@redhat.com>
3423
3424 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3425 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3426 Update dependencies.
3427 * i387-tdep.c: Include gdb_string.h.
3428 * osabi.c: Likewise.
3429 * i386-linux-nat.c: Likewise.
3430 * lin-lwp.c: Likewise.
3431 * ax-gdb.c: Likewise.
3432 * signals/signals.c: Likewise.
3433 * jv-valprint.c: Likewise.
3434 * p-lang.c: Likewise.
3435 * c-valprint.c: Likewise.
3436 * cp-abi.c: Likewise.
3437
e1507482
EZ
34382002-08-27 Elena Zannoni <ezannoni@redhat.com>
3439
3440 * cli/cli-script.h (copy_command_lines): Export.
3441 * breakpoint.c: Include cli/cli-script.h.
3442 * Makefile.in (breakpoint.o): Update dependencies.
3443
c6510018
MS
34442002-08-26 Michael Snyder <msnyder@redhat.com>
3445
3446 * breakpoint.c (insert_breakpoints): Protect all references
3447 to 'process_warning'. Shorten long lines.
3448
c2b8ed2c
MS
34492002-08-26 Joel Brobecker <brobecker@gnat.com>
3450
3451 * cli/cli-script.c (copy_command_lines): New function.
3452 * defs.h (copy_command_lines): Export.
3453 * testsuite/gdb.base/commands.exp: New tests for commands
3454 attached to a temporary breakpoint, and for commands that
3455 delete the breakpoint they are attached to.
3456
34572002-08-26 Michael Snyder <msnyder@redhat.com>
3458
3459 * breakpoint.c (bpstat_stop_status): Instead of copying the
3460 pointer to the breakpoint commands struct, make a new copy
3461 of the struct and point to that.
3462 (bpstat_clear): Free the commands struct.
3463 (bpstat_clear_actions): Free the commands struct.
3464 (bpstat_do_actions): Free the command actions. Also execute
3465 the local cleanups, instead of deleting them.
3466 (delete_breakpoint): Leave the commands field of the bpstat
3467 chain alone -- it will be freed later.
3468
64b84175
KB
34692002-08-26 Kevin Buettner <kevinb@redhat.com>
3470
3471 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3472 deleted in 2002-08-20 commit. This function is still used by
3473 ppc-linux-nat.c.
3474
55970da6
KS
34752002-08-26 Keith Seitz <keiths@redhat.com>
3476
3477 * gdb-events.sh: Add selected-frame-level-changed event.
3478 * gdb-events.c: Regenerated.
3479 * gdb-events.h: Regenerated.
3480
a790ad35
SC
34812002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3482
3483 Fix PR gdb/393:
3484 * inflow.c (terminal_save_ours): New function to save terminal
3485 settings.
3486 * inferior.h (terminal_save_ours): Declare.
3487 * target.c (debug_to_terminal_save_ours): New function.
3488 (cleanup_target): Defaults to_terminal_save_ours.
3489 (update_current_target): Inherit to_terminal_save_ours.
3490 (setup_target_debug): Set to_terminal_save_ours.
3491 * target.h (target_terminal_save_ours): New to save terminal settings.
3492 (target_ops): New member to_terminal_save_ours.
3493 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3494 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3495 * inftarg.c (init_child_ops): Likewise.
3496 * m3-nat.c (init_m3_ops): Likewise.
3497 * procfs.c (init_procfs_ops): Likewise.
3498 * wince.c (init_child_ops): Likewise.
3499 * win32-nat.c (init_child_ops): Likewise.
3500 * sol-thread.c (init_sol_thread_ops): Likewise.
3501
c00dcbe9
MK
35022002-08-26 Mark Kettenis <kettenis@gnu.org>
3503
3d7f4f49
MK
3504 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3505 use regcache_* functions.
3506 (i386_gdbarch_init): Set store_return_value instead of
3507 deprecated_store_return_value.
3508
c00dcbe9
MK
3509 * regcache.c (regcache_raw_write_signed,
3510 regcache_raw_write_unsigned): New functions.
3511 * regcache.h (regcache_raw_write_signed,
3512 regcache_raw_write_unsigned): New prototypes.
3513
0e0d15ca
AC
35142002-08-25 Andrew Cagney <ac131313@redhat.com>
3515
3516 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3517 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3518 source file dependencies. Cleanup corresponding generator rules.
3519
d3b22ed5
AC
35202002-08-25 Andrew Cagney <ac131313@redhat.com>
3521
3522 * regcache.h (register_offset_hack): Declare.
3523 (regcache_cooked_read_using_offset_hack): Declare.
3524 (regcache_cooked_write_using_offset_hack): Declare.
3525
3526 * regcache.c (register_offset_hack): New function.
3527 (regcache_cooked_read_using_offset_hack): New function.
3528 (regcache_cooked_write_using_offset_hack): New function.
3529 (regcache_dump): Check that the registers, according to their
3530 offset, are packed hard against each other.
3531 (cooked_xfer_using_offset_hack): New function.
3532
bb425013
AC
35332002-08-25 Andrew Cagney <ac131313@redhat.com>
3534
3535 * regcache.c (struct regcache_descr): Add field register_type.
3536 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3537 in as a parameter
3538 (init_regcache_descr): Initialize register_type. Pass the descr
3539 to init_legacy_regcache_descr. Use register_type instead of
3540 REGISTER_VIRTUAL_TYPE.
3541 (register_type): New function.
3542 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3543 * regcache.h (register_type): Declare.
3544
d0403e00
AC
35452002-08-25 Andrew Cagney <ac131313@redhat.com>
3546
3547 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3548 instead of deprecated_store_return_value. Fix fallout from
3549 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3550
0ed04cce
AC
35512002-08-25 Andrew Cagney <ac131313@redhat.com>
3552
3553 * regcache.c (max_register_size): New function.
3554 (init_legacy_regcache_descr): Ensure that max_register_size is
3555 large enough for REGISTER_VIRTUAL_SIZE.
3556 * regcache.h (max_register_size): Declare.
3557
46d79c04
AC
35582002-08-24 Andrew Cagney <ac131313@redhat.com>
3559
3560 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3561 store_return_value.
3562 (e500_extract_return_value): Change type of valbuf pointer to
3563 void.
3564
853c7bd0
MK
35652002-08-24 Mark Kettenis <kettenis@gnu.org>
3566
cd87e769
MK
3567 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3568 workaround.
3569
853c7bd0
MK
3570 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3571 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3572 long long) to prevent compiler warning on 64-bit systems.
3573
ebba8386
AC
35742002-08-23 Andrew Cagney <cagney@redhat.com>
3575
3576 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3577 (DEPRECATED_STORE_RETURN_VALUE): New method.
3578 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3579 * gdbarch.h, gdbarch.c: Re-generate.
3580
3581 * values.c (set_return_value): Pass current_regcache to
3582 STORE_RETURN_VALUE.
3583 * arch-utils.h (legacy_store_return_value): Declare.
3584 * arch-utils.c (legacy_store_return_value): New function.
3585 (legacy_extract_return_value): Update parameters.
3586
3587 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3588 STORE_RETURN_VALUE.
3589 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3590 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3591 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3592 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3593 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3594 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3595 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3596 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3597 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3598 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3599
3600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3601 * i386-tdep.c (i386_extract_return_value): Update.
3602 * arch-utils.c (legacy_extract_return_value): Update.
3603 * frv-tdep.c (frv_gdbarch_init): Update.
3604 * cris-tdep.c (cris_gdbarch_init): Update.
3605 * d10v-tdep.c (d10v_gdbarch_init): Update.
3606 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3607 * m68k-tdep.c (m68k_gdbarch_init): Update.
3608 * mcore-tdep.c (mcore_gdbarch_init): Update.
3609 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3610 * s390-tdep.c (s390_gdbarch_init): Update.
3611 * sparc-tdep.c (sparc_gdbarch_init): Update.
3612 * sh-tdep.c (sh_gdbarch_init): Update.
3613 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3614 * v850-tdep.c (v850_gdbarch_init): Update.
3615 * avr-tdep.c (avr_gdbarch_init): Update.
3616 * ia64-tdep.c (ia64_gdbarch_init): Update.
3617 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3618 * vax-tdep.c (vax_gdbarch_init): Update.
3619 * alpha-tdep.c (alpha_gdbarch_init): Update.
3620 * arm-tdep.c (arm_gdbarch_init): Update.
3621 * mips-tdep.c (mips_gdbarch_init): Update.
3622 * i386-tdep.c (i386_gdbarch_init): Update.
3623
5bd8c6d0
AC
36242002-08-23 Andrew Cagney <ac131313@redhat.com>
3625
3626 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3627 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3628
e73e1724
MK
36292002-08-24 Mark Kettenis <kettenis@gnu.org>
3630
3631 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3632 problems.
3633
3e6564e1
JB
36342002-08-23 Joel Brobecker <brobecker@gnat.com>
3635
3636 * infrun.c (handle_inferior_event): Move a comment outside of a
3637 function call, in order to avoid indent reformatting this part
3638 of the code in an unreadable way.
3639
81d0cc19
GS
36402002-08-23 Grace Sainsbury <graces@redhat.com>
3641
3642 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3643 when breakpoints fail. Move general breakpoint error messages to
3644 insert_breakpoints.
3645 * breakpoint.c (insert_breakpoints): Change warnings when
3646 breakpoints are nto inserted to specify the type. Remove call to
3647 memory_error when hardware breakpoints can't be inserted. Remove
3648 multiple calls to warning so all messages are sent to the user at
3649 once.
3650 (delete_breakpoints): Make insert error messsages more explicit.
3651
17574093
DJ
36522002-08-23 Daniel Jacobowitz <drow@mvista.com>
3653
3654 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3655 gdbserver/ChangeLog.
3656
8acc2935
MK
36572002-08-23 Mark Kettenis <kettenis@gnu.org>
3658
dfe01d39
MK
3659 * i386-tdep.c: Include "objfiles.h".
3660 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3661 skip_trampoline_code.
3662 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3663 (CPLUS_MARKER): Define to '.'.
3664
8acc2935
MK
3665 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3666 member.
3667 (linux_corefile_thread_callback): Increase args->num_notes.
3668 (linux_make_note_section): Initialize thread_args.num_notes, and
3669 use it to determine whether notes for any threads were created.
3670
151fefe2 36712002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3672
3673 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3674 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3675 and PCUNKILL.
3676 (write_with_trace): Conditionalize out the switch branch handling
3677 PCSHOLD if the corresponding macro is not defined. Likewise for
3678 PRSABORT and PRSTOP.
3679 This change will be needed by the Interix port.
3680
e1507482
EZ
36812002-08-22 Elena Zannoni <ezannoni@redhat.com>
3682
3683 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3684 write_register wherever possible instead of manipulating the
3685 register bytes directly.
3686 Assign VALUE_CONTENTS to a variable and use that.
3687 The GPR numbers are now dependent on the architecture.
3688
96ff0de4
EZ
36892002-08-22 Elena Zannoni <ezannoni@redhat.com>
3690
3691 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3692 ev_offset fields.
3693 (skip_prologue): Add support for BookE/e500 instructions.
3694 (e500_extract_return_value): New function.
3695 (frame_get_saved_regs): Add support for saving ev registers and
3696 pseudo gpr's.
3697 (e500_store_return_value): New function.
3698 (rs6000_gdbarch_init): Move up default intializations of
3699 deprecated_extract_return_value and store_return_value. Overwrite
3700 init of store_return_value with e500 specific version.
3701 Set extract_return_value for e500.
3702
fbefca5b
EZ
37032002-08-22 Elena Zannoni <ezannoni@redhat.com>
3704
3705 * blockframe.c (generic_call_dummy_register_unwind): Use
3706 regcache_cooked_read to catch cases in which the variable is
3707 stored in a pseudo register.
3708
4d210288
AC
37092002-08-22 Andrew Cagney <cagney@redhat.com>
3710
3711 * NEWS: Mention that the i960 has been made obsolete.
3712 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3713 i960-tdep.c
3714 (remote-nrom.o): Obsolete target.
3715 (remote-nindy.o, i960-tdep.o): Ditto.
3716 * remote-nrom.c: Make file obsolete.
3717 * remote-nindy.c, remote-vx960.c: Ditto.
3718 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3719 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3720 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3721 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3722 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3723 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3724 i960-*-vxworks* obsolete.
3725 * MAINTAINERS: Note that the i960 is obsolete.
3726
6c0c456d
CV
37272002-08-21 Corinna Vinschen <vinschen@redhat.com
3728
3729 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3730 detach to allow reinitialization.
3731
9f9d12b3
AC
37322002-08-22 Andrew Cagney <ac131313@redhat.com>
3733
3734 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3735 attempt).
3736
ebeb39fe
JB
37372002-08-22 Jim Blandy <jimb@redhat.com>
3738
3739 * coffread.c (coff_symfile_read): Don't try to read the line
3740 number table from disk if the image file doesn't have a symbol
3741 table; we'll never actually look at the info anyway, and Windows
3742 ships DLL's with bogus file offsets for the line number data.
3743
5bf1c677
EZ
37442002-08-21 Elena Zannoni <ezannoni@redhat.com>
3745
3746 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3747 an e500 executable.
3748
71b8ef93
MS
37492002-08-21 Michael Snyder <msnyder@redhat.com>
3750
3751 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3752 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3753 (DEFAULT_MIPS_TYPE): Delete unused macro.
3754 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3755 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3756
d174216d
JB
37572002-08-21 Jim Blandy <jimb@redhat.com>
3758
3759 * valops.c (value_cast): Simplify and correct logic for doing a
3760 static cast from a pointer to a base class to a pointer to a
3761 derived class.
3762
0ab7a791
AC
37632002-08-21 Andrew Cagney <ac131313@redhat.com>
3764
3765 * infcmd.c (default_print_registers_info): Replace
3766 do_registers_info.
3767 (registers_info): Use gdbarch_print_registers_info instead of
3768 DO_REGISTERS_INFO.
3769 * inferior.h (default_print_registers_info): Replace
3770 do_registers_info.
3771 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3772 (DO_REGISTERS_INFO): Change to a predicate function.
3773 * gdbarch.h, gdbarch.c: Regenerate.
3774
e23792cc
KS
37752002-08-21 Keith Seitz <keiths@redhat.com>
3776
3777 * gdb-events.sh: Add target-changed event.
3778 * gdb-events.c: Regenerated.
3779 * gdb-events.c: Regenerated.
3780 * valops.c (value_assign): Add target-changed event notification
3781 to inlval_register, lval_memory, and lval_reg_frame_relative.
3782
9fb14e79
JB
37832002-08-21 Joel Brobecker <brobecker@gnat.com>
3784
3785 * NEWS: Add an entry regarding the improvement of the next/step
3786 operation on Alpha Tru64 multi-processor machines.
3787
6d39a69f
AC
37882002-08-21 Andrew Cagney <ac131313@redhat.com>
3789
72acd513
AC
3790 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3791 directores.
342af04b 3792 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3793 * Makefile.in (install-gdbtk): Move to install section.
3794 (rdi-share/libangsd.a): Move to end of file.
3795
fa5f27c7
AC
37962002-08-19 Andrew Cagney <ac131313@redhat.com>
3797
3798 * frame.c (frame_register_unwind): When a register, set addrp to
3799 the register's byte.
3800
5a89d8aa
MS
38012002-08-20 Michael Snyder <msnyder@redhat.com>
3802
3803 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3804 used locally, so move them from the target machine header to here.
3805 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3806 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3807 Make static.
3808 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3809
822e978b
AC
38102002-08-20 Andrew Cagney <cagney@redhat.com>
3811
3812 * NEWS: Mention that the Apollo line was made obsolete.
3813 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3814 m68*-hp-hpux* obsolete.
3815 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3816 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3817 * buildsym.c (make_blockvector): Make static.
3818 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3819 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3820 (ALLDEPFILES): Remove dstread.c.
3821 (dstread.o): Obsolete make rule.
3822 * dstread.c: Makefile obsolete.
3823 * dst.h: Ditto.
3824 * config/m68k/hp300hpux.mt: Ditto.
3825 * config/m68k/hp300hpux.mh: Ditto.
3826 * config/m68k/hp300bsd.mt: Ditto.
3827 * config/m68k/hp300bsd.mh: Ditto.
3828 * config/m68k/apollo68b.mt: Ditto.
3829 * config/m68k/apollo68v.mh: Ditto.
3830 * config/m68k/apollo68b.mh: Ditto.
3831
e41b17f0
MS
38322002-08-20 Michael Snyder <msnyder@redhat.com>
3833
3834 * mips-tdep.c (mips_in_return_stub): Make static.
3835 (mips_gdbarch_init): Set in_solib_return_trampoline.
3836 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3837
d50355b6
MS
38382002-08-20 Michael Snyder <msnyder@redhat.com>
3839
3840 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3841 * gdbarch.c, gdbarch.h: Regenerate.
3842 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3843 Add.
3844 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3845
757a7cc6
MS
38462002-08-20 Michael Snyder <msnyder@redhat.com>
3847
3848 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3849 (mips_gdbarch_init): Set skip_trampoline_code,
3850 in_solib_call_trampoline.
3851 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3852 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3853
c8001721
EZ
38542002-08-20 Elena Zannoni <ezannoni@redhat.com>
3855
3856 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3857
3858 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3859 vector type for ev registers.
3860 (e500_pseudo_register_read): New function.
3861 (e500_pseudo_register_write): New function.
3862 (e500_dwarf2_reg_to_regnum): New function.
3863 (PPC_UISA_NOFP_SPRS): New macro.
3864 (PPC_EV_REGS): New macro.
3865 (PPC_GPRS_PSEUDO_REGS): New macro.
3866 (registers_e500): New register set for e500.
3867 (variants): Add e500 variant.
3868 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3869 before setting architectural dependent variations. Initialize ev
3870 registers numbers. Add case for e500 architecture. Set the
3871 number of pseudo registers.
3872
64366f1c
EZ
38732002-08-20 Elena Zannoni <ezannoni@redhat.com>
3874
3875 * rs6000-tdep.c: Clean up comments.
3876
7e78f0ca
AC
38772002-08-20 Andrew Cagney <cagney@redhat.com>
3878
3879 * h8300-tdep.c: Re-indent file.
3880
697f7479
JB
38812002-08-20 Jim Blandy <jimb@redhat.com>
3882
3883 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3884 default for this.
697f7479 3885
e86ae29f
KS
38862002-08-20 Keith Seitz <keiths@redhat.com>
3887
3888 * breakpoints.c (watch_command_1): Use internal breakpoint
3889 when setting a watchpoint_scope breakpoint.
3890
216b504f
EZ
38912002-08-20 Elena Zannoni <ezannoni@redhat.com>
3892
3893 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3894 (build_builtin_type_vec64i): Ditto.
3895 (build_builtin_type_vec128): Ditto.
3896 (build_builtin_type_vec128i): Ditto.
3897
f7ab6ec6
MS
38982002-08-19 Michael Snyder <msnyder@redhat.com>
3899
3900 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3901 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3902 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3903 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3904 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3905 CALL_DUMMY_ADDRESS): Delete.
3906 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3907 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3908 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3909 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3910 push_return_address.
3911 (mips_register_raw_size, mips_eabi_use_struct_convention,
3912 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3913 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3914 mips_init_extra_frame_info, mips_eabi_push_arguments,
3915 mips_n32n64_push_arguments, mips_push_return_address,
3916 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3917 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3918
b5d1566e
MS
39192002-08-19 Michael Snyder <msnyder@redhat.com>
3920
3921 * mips-tdep.c (mips_frame_num_args): New function.
3922 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3923 frame_saved_pc, frame_args_address, frame_locals_address,
3924 frame_num_args, and frame_args_skip.
3925 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3926 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3927 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3928 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3929
2f1488ce
MS
39302002-08-20 Michael Snyder <msnyder@redhat.com>
3931
3932 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3933 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3934 * mips-tdep.c (mips_store_struct_return): New function.
3935 (mips_extract_struct_value_address): New function.
3936 (mips_gdbarch_init): Set store_struct_return and
3937 extract_struct_value_address.
3938
41ff2da1
DC
39392002-08-20 David Carlton <carlton@math.stanford.edu>
3940
3941 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3942 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3943 (read_file_scope): Check that line_header is nonzero before
3944 decoding macro information.
3945
e5451d58
MK
39462002-08-20 Mark Kettenis <kettenis@gnu.org>
3947
3948 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3949 flag the general-purpose registers as floating-point on targets
3950 that don't support the floating-point registers.
3951
4a6daafa
EZ
39522002-08-20 Elena Zannoni <ezannoni@redhat.com>
3953
3954 * rs6000-tdep.c (altivec_register_p): Delete.
3955 (rs6000_do_altivec_registers): Delete.
3956 (rs6000_altivec_registers_info): Delete.
3957 (rs6000_do_registers_info): Delete.
3958 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3959 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3960
ab4327e0
EZ
39612002-08-20 Elena Zannoni <ezannoni@redhat.com>
3962
3963 * infcmd.c (do_registers_info): Print vector registers in hex
3964 format only.
3965 (print_vector_info): Check that printing registers
3966 makes sense.
3967 (print_float_info): Ditto.
3968
cb1d2653
AC
39692002-08-20 Andrew Cagney <ac131313@redhat.com>
3970
3971 * mips-tdep.c (mips_gdbarch_init): Update.
3972 (mips_o32_extract_return_value): Rewrite.
3973 (mips_o32_store_return_value): Rewrite.
3974 (mips_o32_xfer_return_value): New function.
3975 (mips_xfer_register): Tweak debug print message. Allow for
3976 buf_offset when dumping the value transfered.
3977
dfc3d9b2
AC
39782002-08-20 Andrew Cagney <ac131313@redhat.com>
3979
3980 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3981 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3982 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3983 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3984 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3985
7807aa61
MS
39862002-08-14 Michael Snyder <msnyder@redhat.com>
3987
3988 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3989
489461e2
EZ
39902002-08-19 Elena Zannoni <ezannoni@redhat.com>
3991
3992 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3993 register.
3994 (P): New macro to define a register as a pseudo register.
3995 (R, R4, R8, R16, FR32, R64, R0): Updated.
3996 (struct variant): Add new fields for number of pseudo registers
3997 and number of total registers.
3998 (tot_num_registers): New macro replacing....
3999 (num_registers): ...deleted macro.
4000 (num_registers): New function.
4001 (num_pseudo_registers): New function.
4002 (variants): Update all variants to intialize new fields correctly.
4003 Postpone initialization of number of pseudo regs and real regs.
4004 (init_variants): New function.
4005 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4006 registers offsets.
4007
fcaffe4c
DC
40082002-08-19 David Carlton <carlton@math.stanford.edu>
4009
2c2738a0
DC
4010 * valops.c (search_struct_field): Change error message to treat
4011 return value of 0 from value_static_field as meaning that field is
4012 optimized out.
4013 (value_struct_elt_for_reference): Ditto.
4014 * values.c (value_static_field): Treat an unresolved location the
4015 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4016 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4017 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4018 * MAINTAINERS: Add self to Write After Approval list.
4019
88658117
AC
40202002-08-19 Andrew Cagney <ac131313@redhat.com>
4021
4022 * mips-tdep.c (mips_xfer_register): New function.
4023 (mips_n32n64_extract_return_value): Rewrite.
4024 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4025 instead of deprecated_extract_return_value.
4026
21283beb
EZ
40272002-08-19 Elena Zannoni <ezannoni@redhat.com>
4028
4029 * rs6000-tdep.c (TDEP): Delete macro.
4030 (branch_dest): Replace use of TDEP macro with its body.
4031 (rs6000_pop_frame): Ditto.
4032 (rs6000_push_arguments): Ditto.
4033 (rs6000_skip_trampoline_code): Ditto.
4034 (rs6000_frame_saved_pc): Ditto.
4035 (rs6000_frame_chain): Ditto.
4036 (rs6000_register_name): Ditto.
4037 (rs6000_register_byte): Ditto.
4038 (rs6000_register_raw_size): Ditto.
4039 (rs6000_register_virtual_type): Ditto.
4040 (rs6000_register_convertible): Ditto.
4041 (rs6000_convert_from_func_ptr_addr): Ditto.
4042
bf072999
DJ
40432002-08-19 Daniel Jacobowitz <drow@mvista.com>
4044
4045 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4046 conditionally.
4047 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4048 MIPS_LINUX_JB_ELEMENT_SIZE.
4049 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4050 for MAX_REGISTER_RAW_SIZE arrays.
4051 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4052 MIPS_LINUX_JB_ELEMENT_SIZE.
4053
9b949a49
PM
40542002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4055
4056 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4057
6d3e79c6
AS
40582002-08-19 Aidan Skinner <aidan@velvet.net>
4059
4060 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4061 ada-valprint.c ada-tasks.c.
4062 (YYFILES): Add ada-exp.y.
4063 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4064 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4065 (ada-exp.tab.o): New target.
4066
06c0b04e
AC
40672002-08-18 Andrew Cagney <ac131313@redhat.com>
4068
4069 * regcache.c (regcache_xfer_part): New function.
4070 (regcache_raw_read_part): New function.
4071 (regcache_raw_write_part): New function.
4072 (regcache_cooked_read_part): New function.
4073 (regcache_cooked_write_part): New function.
4074 * regcache.h (regcache_raw_read_part): Declare.
4075 (regcache_raw_write_part): Declare.
4076 (regcache_cooked_read_part): Declare.
4077 (regcache_cooked_write_part): Declare.
4078
92d1e331
DJ
40792002-08-18 Daniel Jacobowitz <drow@mvista.com>
4080
4081 * remote.c (remote_open_1): Add async_p.
4082 (remote_async_open_1): Delete.
4083 (open_remote_target): Delete.
4084 (remote_open, extended_remote_open): Update calls to remote_open_1.
4085 (remote_async_open, extended_remote_async_open): Call
4086 remote_open_1 instead of remote_async_open_1.
4087
247055de
MK
40882002-08-19 Mark Kettenis <kettenis@gnu.org>
4089
4090 * blockframe.c: Fix a few coding standard violations.
4091
641eda39
MK
40922002-08-19 Mark Kettenis <kettenis@gnu.org>
4093
0b717710
MK
4094 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4095 here from ...
4096 * config/i386/tm-i386sco5.h: ... here. File removed.
4097 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4098
26d28e12 4099 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4100 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4101 (TM_FILE): Set to tm-i386.h.
4102 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4103 * config/i386/tm-i386v.h: Remove file.
4104 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4105 instead of "i386/tm-i386v.h".
4106 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4107 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4108 "i386/tm-i386v.h".
4109 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4110 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4111 "i386/tm-i386.h".
4112
d4e0bab4
MK
41132002-08-18 Mark Kettenis <kettenis@gnu.org>
4114
4115 * config/i386/nm-i386v.h: Add protection against
4116 multiple-inclusion.
4117 (i386_register_u_addr): Remove prototype.
4118 (register_u_addr): New prototype.
4119 (REGISTER_U_ADDR): Redefine accordingly.
4120 * i386v-nat.c: Improve several comments.
4121 (i386_register_u_addr): Change signature and rename to
4122 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4123 ubase variable.
4124
46cac009
AC
41252002-08-18 Andrew Cagney <ac131313@redhat.com>
4126
4127 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4128 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4129 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4130 deprecated_extract_return_value.
4131 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4132 rename mips_o32o64_push_arguments.
4133 (mips_gdbarch_init): Update.
4134 (mips_extract_return_value): Delete.
4135 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4136 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4137 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4138 (mips_n32n64_extract_return_value): Clone
4139 mips_extract_return_value.
4140 (mips_store_return_value): Delete.
4141 (mips_o32_store_return_value): Clone mips_store_return_value.
4142 (mips_o64_store_return_value): Clone mips_store_return_value.
4143 (mips_eabi_store_return_value): Clone mips_store_return_value.
4144 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4145
d2e4a39e
AS
41462002-08-18 Aidan Skinner <aidan@velvet.net>
4147
0c30c098
AS
4148 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4149 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4150
41512002-08-18 Aidan Skinner <aidan@velvet.net>
4152
4153 * ada-lang.c: Run through gdb_indent.sh.
4154 * ada-lang.h: Run through gdb_indent.sh.
4155 * ada-tasks.c: Run through gdb_indent.sh.
4156 * ada-typeprint.c: Run through gdb_indent.sh.
4157 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4158
01fc4e33
AC
41592002-08-18 Andrew Cagney <ac131313@redhat.com>
4160
4161 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4162 ABI.
4163
d8ee244c
MK
41642002-08-18 Mark Kettenis <kettenis@gnu.org>
4165
c38d8261
MK
4166 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4167
222db64c
MK
4168 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4169 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4170
c2848c82
MK
4171 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4172 write_register_gen instead of write_register_bytes.
4173
d8ee244c
MK
4174 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4175 i[3456]-*-osf1mk* configurations have been made obsolete.
4176 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4177 i[3456]86-*-osf1mk* hosts obsolete.
4178 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4179 targets obsolete.
4180 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4181 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4182 config/i386/i386m3.mt, config/i386/nm-m3.h,
4183 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4184 config/i386/i386mk.mh, config/i386/i386mk.mt,
4185 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4186 obsolete.
4187 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4188 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4189 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4190
61d8d407
AC
41912002-08-18 Andrew Cagney <ac131313@redhat.com>
4192
4193 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4194 (hppa_value_returned_from_stack): Declare.
4195 (hppa_extract_return_value): Declare.
4196 * config/pa/hppa.mt: New file.
4197 * configure.tgt: Recognize hppa*-*-*.
4198 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4199
0c52bd59
MK
42002002-08-18 Mark Kettenis <kettenis@gnu.org>
4201
4202 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4203 comment.
4204
b5686e99
MK
42052002-08-17 Mark Kettenis <kettenis@gnu.org>
4206
4207 * top.c (gdb_rl_operate_and_get_next): Make sure
4208 operate-and-get-next functions correctly even when the history
4209 list is completely filled.
4210
c1bab85b
AC
42112002-08-18 Andrew Cagney <ac131313@redhat.com>
4212
4213 * MAINTAINERS (Target Instruction Set Architectures): Rename
4214 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4215 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4216 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4217 already listed under Host/Native.
4218
4219 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4220 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4221 mips*-*-*.
4222
32089c7c
AC
42232002-08-17 Andrew Cagney <ac131313@redhat.com>
4224
4225 * config/ia64/ia64.mt: New file.
4226 * config/alpha/alpha.mt: New file.
4227 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4228 ia64-linux-gnu. Mention that ia64-elf is broken.
4229 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4230
b4671f85
MK
42312002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4232
4233 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4234 generic_func_frame_valid instead of func_frame_valid.
4235
c8edd8b4
JB
42362002-08-16 Joel Brobecker <brobecker@gnat.com>
4237
4238 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4239 procfs appears to be broken when debugging on multi-processor
4240 machines. So enable software single stepping in order to avoid
4241 using the procfs interface to do next/step operations, using
4242 internal breakpoints instead.
4243
4244 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4245 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4246 make this pc address equal to the value it would have if the
4247 system stepping capability was used. Also set a new flag used
4248 to ensure that we don't readjust the PC one more time later.
4249
4250 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4251 address by DECR_PC_AFTER_BREAK when software single step is
4252 in use for this architecture, as this has already been taken
4253 care of in handle_inferior_event().
4254
238617f6
JB
42552002-08-16 Joel Brobecker <brobecker@gnat.com>
4256
4257 * infrun.c (handle_inferior_event): Minor reformatting, to make
4258 a rather long condition expression easier to read.
4259
541a7aac
AC
42602002-08-16 Andrew Cagney <ac131313@redhat.com>
4261
4262 * Makefile.in (gdbtk.o): Move to end of file.
4263 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4264 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4265 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4266 (gdbtk-wrapper.o, gdbres.o): Ditto.
4267
f92d4a7b
AC
42682002-08-16 Andrew Cagney <ac131313@redhat.com>
4269
4270 * Makefile.in (copying.o): Separate out compile rule.
4271 (hpux-thread.o, procfs.o, signals.o): Ditto.
4272 (v850ice.o, z8k-tdep.o): Ditto.
4273 (tui-file.o): Move to TUI section.
4274 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4275 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4276
1cce71eb
JB
42772002-08-16 Joel Brobecker <brobecker@gnat.com>
4278
4279 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4280 skip_trampoline_code, for better namespace-proofing.
4281
4282 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4283
0851f23d
JB
42842002-08-16 Joel Brobecker <brobecker@gnat.com>
4285
4286 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4287
f8d40ec8
JB
42882002-08-16 Joel Brobecker <brobecker@gnat.com>
4289
4290 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4291 signal, check whether we hit a breakpoint before checking for a
4292 single step breakpoint. Otherwise, GDB fails to notice that a
4293 breakpoint has been hit when stepping onto a breakpoint.
4294
63d022e0
KS
42952002-08-16 Keith Seitz <keiths@redhat.com>
4296
4297 * gdb-events.sh (clear_gdb_event_hooks): New function.
4298 * gdb-events.c: Regenerate.
4299 * gdb-events.h: Regenerate.
4300
6e31adb3
AC
43012002-08-16 Andrew Cagney <ac131313@redhat.com>
4302
4303 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4304 not_a_sw_breakpoint.
4305 * breakpoint.h (bpstat_stop_status): Add parameter names.
4306
c8189ed1
GS
43072002-08-16 Grace Sainsbury <graces@redhat.com>
4308
4309 * remote.c (remote_insert_hw_breakpoint)
4310 (remote_remove_hw_breakpoint): Fix calculation of length field
4311 for Z-packet.
4312
d05285fa
MS
43132002-08-15 Michael Snyder <msnyder@redhat.com>
4314
466d7106
MS
4315 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4316 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4317 (supply_fpregset): Ditto.
4318
d05285fa
MS
4319 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4320 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4321 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4322 (TARGET_READ_SP): Delete.
bf1f5b4c 4323 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4324 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4325 Delete.
4326 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4327 from macros to functions.
bf1f5b4c 4328
d05285fa
MS
4329 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4330 (mips_register_convertible, mips_register_convert_to_virtual,
4331 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4332 (mips_read_sp): New function.
4333 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4334 (mips_do_registers_info): Make static.
4335 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4336 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4337 (mips_register_convert_from_type, mips_register_convert_to_type):
4338 New functions.
4339 (mips_gdbarch_init): Set up function_start_offset,
4340 register_virtual_size, pc_in_sigtramp.
d05285fa 4341
e76f1f2e
AC
43422002-08-15 Andrew Cagney <ac131313@redhat.com>
4343
4344 * infcmd.c (vector_info): New function.
4345 (_initialize_infcmd): Add command "info vector".
4346 (print_vector_info): New function.
4347
4348 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4349 * gdbarch.h, gdbarch.c: Regenerate.
4350
4782dc19
AC
43512002-08-15 Andrew Cagney <ac131313@redhat.com>
4352
4353 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4354 ``print_all''. Only print vector registers when ``print_all''.
4355
23e3a7ac
AC
43562002-08-15 Andrew Cagney <ac131313@redhat.com>
4357
8e186fd6
AC
4358 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4359 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4360
23e3a7ac
AC
4361 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4362 Add `args' parameter.
4363 * gdbarch.h, gdbarch.c: Regenerate.
4364
4365 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4366
4367 * infcmd.c (float_info): Call print_float_info.
4368 (print_float_info): New function. By default, print the
4369 floating-point registers.
4370
4371 * arch-utils.h (default_print_float_info): Delete declaration.
4372 * arch-utils.c (default_print_float_info): Delete function.
4373
e0ca2bb9
MK
43742002-08-16 Mark Kettenis <kettenis@gnu.org>
4375
3f733acc
MK
4376 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4377 out define.
4378
7d8d2918
MK
4379 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4380 FRAME.
4381
1c7cc583
MK
4382 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4383 * configure.host: Make i[3456]86-*-aix host obsolete.
4384 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4385 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4386 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4387 config/i386/xm-i386aix.h: Make files obsolete.
4388 * i386aix-nat.c: Make file obsolete.
4389 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4390 (i386aix-nat.o): Make target obsolete.
4391
e0ca2bb9
MK
4392 * config/i386/nm-gnu.h: Removed.
4393 * config/i386/nm-i386gnu.h: New file.
4394 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4395 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4396 Moved here from ...
4397 * config/i386/tm-i386gnu.h: ... here. Removed.
4398 * config/i386/xm-i386gnu.h: Removed.
4399 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4400 (NAT_FILE): Set to nm-i386gnu.h.
4401 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4402 * i386-tdep.c: New file.
4403 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4404 (i386gnu-tdep.o): Specify dependencies.
4405
16057ec7 44062002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4407
6b99ee2e
MK
4408 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4409 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4410 Adjust a few comments to reflect reality a bit closer.
4411 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4412 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4413 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4414 target_insert_watchpoint, target_remove_watchpoint):
4415 Move defines to ...
4416 * config/i386/nm-i386sco5.h: ... here.
4417 (kernel_u_size): Add prototype. Improve a few comments and add
4418 protection against multiple inclusion.
4419
d9a6f65c
MK
4420 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4421 out define.
4422
047eff6a
MK
4423 * uw-thread.c (SP_ARG0): Define if not already defined.
4424 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4425
dcdb1290
MK
4426 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4427
5d2d0b2a
MK
4428 * config/i386/tm-i386.h: Don't include "regcache.h".
4429
61113f8b
MK
4430 * i387-tdep.h (i387_print_float_info): New prototype.
4431 * i387-tdep.c (print_i387_value, print_i387_ext,
4432 print_i387_status_word, print_i387_control_word): Add `struct
4433 ui_file *' argument and use it for output.
4434 (i387_print_float_info): Renamed from i387_float_info. Add
4435 `struct gdbarch *' and `struct ui_file *' arguments and use the
4436 latter for output.
4437 * i386-tdep.c: Include "i387-tdep.h".
4438 (i386_gdbarch_init): Set print_float_info.
4439 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4440 (FLOAT_INFO): Remove define.
4441
46e0f506
MS
44422002-08-13 Michael Snyder <msnyder@redhat.com>
4443
4444 * mips-tdep.c (mips_push_arguments): Rename to
4445 mips_eabi_push_arguments, and tune for EABI.
4446 (MIPS_REGS_HAVE_HOME_P): Delete.
4447 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4448 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4449 Delete references to mips_regs_have_home_p.
4450
409268de
KS
44512002-08-14 Keith Seitz <keiths@redhat.com>
4452
4453 * Makefile.in (install-gdbtk): Create insight plugin directory.
4454 Install plugins.tcl file.
4455
ffc6a242
KS
44562002-08-14 Keith Seitz <keiths@redhat.com>
4457
4458 * configure.in: Move SUBDIRS to near top of the file so that
4459 --enable options may add things to it.
4460 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4461 * configure: Regenerate.
4462
ebafbe83
MS
44632002-08-13 Michael Snyder <msnyder@redhat.com>
4464
4465 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4466 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4467 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4468
32f6f25d
AC
44692002-08-13 Andrew Cagney <ac131313@redhat.com>
4470
4471 * vax-tdep.c (vax_get_saved_register): Delete function.
4472 (vax_gdbarch_init): Update.
4473 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4474 (ns32k_gdbarch_init): Update.
4475 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4476 (alpha_gdbarch_init): Update.
4477
53826de9
AC
44782002-08-13 Andrew Cagney <cagney@redhat.com>
4479
4480 * regcache.c (init_regcache_descr): Overallocate the
4481 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4482 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4483 nr_raw_registers.
4484 (set_register_cached): Add range checking assertions. Use
4485 current_regcache.
4486
16057ec7 44872002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4488
4489 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4490 numbers for MMX registers.
4491
7b4c2dce
AC
44922002-08-13 Andrew Cagney <cagney@redhat.com>
4493
4494 * i386-tdep.c (i386_gdbarch_init): Use
4495 generic_unwind_get_saved_register.
4496
1e03ad20
KB
44972002-08-13 Kevin Buettner <kevinb@redhat.com>
4498
4499 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4500 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4501 target vector.
4502 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4503 Delete. Add comment regarding this now-deleted target method.
4504
548bcbec
SC
45052002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4506
4507 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4508 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4509 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4510 real PC and the page number (if it's within the memory bank window).
4511 (m68hc11_pseudo_register_write): Likewise when saving.
4512 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4513 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4514 (m68hc11_register_raw_size): And use 32-bit for it.
4515 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4516 16K memory bank is used by the prog; also use the virtual pc.
4517
7df11f59
SC
45182002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4519
4520 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4521 (m68hc11_gdbarch_init): Install it in gdbarch.
4522 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4523 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4524 (MSYMBOL_SIZE): New for documentation.
4525 (insn_return_kind): Enum to specify how a function returns.
4526 (frame_extra_info): Cleanup and record the return mode.
4527 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4528 register in address computation.
4529 (m68hc11_get_return_insn): New to obtain the return instruction used
4530 by the function.
4531 (m68hc11_frame_init_saved_regs): Take into account the return
4532 instruction used by the function for far and interrupt functions.
4533 (m68hc11_init_extra_frame_info): Take into account page register.
4534 (m68hc11_frame_args_address): Adjust according to the return mode.
4535 (show_regs): Print page register only when it's used.
4536
5706502a
SC
45372002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4538
4539 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4540 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4541 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4542 registers.
4543 (m68hc11_register_raw_size): Likewise.
4544
28fc6740
AC
45452002-08-13 Andrew Cagney <cagney@redhat.com>
4546
4547 * i386-tdep.c (i386_register_name): Handle mmx registers.
4548 (mmx_regnum_p): New function.
4549 (i386_mmx_names): New array.
4550 (mmx_num_regs): New variable.
4551 (i386_pseudo_register_read): New function.
4552 (i386_pseudo_register_write): New function.
4553 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4554
4555 * regcache.c (regcache_raw_read_unsigned): New function.
4556 (regcache_raw_read_signed): New function.
4557 * regcache.h (regcache_raw_read_unsigned): Declare.
4558 (regcache_raw_read_signed): Declare.
4559
a378f419
AC
45602002-08-13 Andrew Cagney <cagney@redhat.com>
4561
4562 * regcache.c (regcache_raw_read_as_address): Delete function.
4563 (regcache_cooked_read_signed): New function.
4564 (regcache_cooked_read_unsigned): New function.
4565 * regcache.h (regcache_cooked_read_signed): Declare.
4566 (regcache_cooked_read_unsigned): Declare.
4567 (regcache_raw_read_as_address): Delete declaration.
4568
4569 * blockframe.c (generic_read_register_dummy): Use
4570 regcache_cooked_read_unsigned.
4571 * i386-tdep.c (i386_extract_struct_value_address): Use
4572 regcache_cooked_read_unsigned.
4573
81967506
SC
45742002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4575
4576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4577 double sizes according to ELF ABI flags.
4578 (gdbarch_tdep): Record elf_flags.
4579
ffe1f3ee
SC
45802002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4581
4582 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4583 (m6812_prolog): They can appear in 68HC12 function prologue.
4584 (m68hc11_frame_chain): Cleanup.
4585
98216c5d
AC
45862002-08-12 Andrew Cagney <cagney@redhat.com>
4587
4588 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4589 declarations.
4590 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4591 (i386_linux_register_raw_size): Delete function.
4592 (i386_linux_init_abi): Update.
4593 * i386-tdep.c (i386_register_raw_size): Delete function.
4594 (i386_register_byte): Delete function.
4595 (i386_gdbarch_init): Update.
4596 (i386_register_size): Delete array.
4597 (i386_register_offset): Delete array.
4598
4599 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4600 (REGISTER_RAW_SIZE): Delete macro.
4601 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4602 (REGISTER_BYTE): Delete macro.
4603
3b19021e
AS
46042002-08-11 Aidan Skinner <aidan@velvet.net>
4605
4606 * ada-lang.c (ada_lookup_partial_symbol)
4607 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4608 prototype names so that grep ^func works properly.
4609
4610 * ada-lang.c (ada_array_element_type)
4611 (ada_lookup_partial_symbol): Fix typos in parameter list.
4612
4613 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4614 Fix prototype names so that grep ^func works properly.
4615
b063e7a2
AC
46162002-08-10 Andrew Cagney <cagney@redhat.com>
4617 Elena Zannoni <ezannoni@redhat.com>
4618 Martin M. Hunt <hunt@redhat.com>
4619
4620 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4621 (build_builtin_type_vec128i): Set the vector bit.
4622 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4623 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4624 (build_builtin_type_vec64): New function.
4625 (build_builtin_type_vec64i): New function.
4626 (build_gdbtypes): Initialize builtin_type_vec64 and
4627 builtin_type_vec64i.
4628
a7e3c2ad
AC
46292002-08-09 Andrew Cagney <cagney@redhat.com>
4630
4631 * regcache.c (regcache_dump): Compare the register offset
4632 with REGISTER_BYTE.
4633 * arch-utils.c (generic_register_byte): New function.
4634 * arch-utils.h (generic_register_byte): Declare.
4635 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4636 * gdbarch.h, gdbarch.c: Regenerate.
4637
af030b9a
AC
46382002-08-09 Andrew Cagney <cagney@redhat.com>
4639
4640 * regcache.c: Include "gdbcmd.h"
4641 (_initialize_regcache): Add commands "maintenance print
4642 registers", "maintenance print raw-registers" and "maintenance
4643 print cooked-registers".
4644 (enum regcache_dump_what): Define.
4645 (dump_endian_bytes): New function.
4646 (regcache_dump): New function.
4647 (regcache_print): New function.
4648 (maintenance_print_registers): New function.
4649 (maintenance_print_raw_registers): New function.
4650 (maintenance_print_cooked_registers): New function.
4651 * Makefile.in (regcache.o): Update dependencies.
4652
cb3d25d1
MS
46532002-08-09 Michael Snyder <msnyder@redhat.com>
4654
4655 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4656 (mips_push_arguments): Correct some comments. Use paddr_nz
4657 for printing addresses in debug output. Replace static
4658 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4659 (mips_n32n64_push_arguments): New function, cloned from
4660 mips_push_arguments and tuned for the n32/n64 ABI.
4661 (mips_push_register): Buffer needs dynamic allocation.
4662 (mips_print_register): Ditto.
4663 (do_gp_register_row): Ditto.
4664 (mips_store_return_value): Ditto.
4665 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4666
2163ab9d
DH
46672002-08-09 Don Howard <dhoward@redhat.com>
4668
4669 * memattr.c (mem_info_command): Print special case of upper bound
4670 as max CORE_ADDR + 1.
4671
b78bcb18
MS
46722002-08-08 Michael Snyder <msnyder@redhat.com>
4673
4674 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4675 returns structs by ref if they're too big to fit in two registers.
4676
ffabd70d
KB
46772002-08-09 Kevin Buettner <kevinb@redhat.com>
4678
4679 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4680 saved regs value.
4681 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4682 mips_find_saved_regs().
4683 (mips_pop_frame): Likewise.
4684
fbcdb4a3
KB
46852002-08-09 Kevin Buettner <kevinb@redhat.com>
4686
4687 * blockframe.c (frame_saved_regs_register_unwind): Revise
4688 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4689 frames are in use.
4690
3c3bea1c
GS
46912002-08-09 Grace Sainsbury <graces@redhat.com>
4692
4693 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4694 T-packets; the 'a' is not taken as a register number.
4695 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4696 (remote_stopped_data_address): New functions; add to target
4697 vector.
4698 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4699 prototypes to match other implementations of this
4700 function. replace integer argument with pointer -- the length
4701 field in the Z-packet is the length of what is pointed to or 1 if
4702 pointer is null. Add to target vector.
4703 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4704 target vector.
4705
4706 From Mark Salter:
4707 * remote.c (remote_wait): Add support to extract optional
4708 watchpoint information from T-packet. Ignore unrecognized
4709 optional info in T-packet.
4710 (remote_async_wait): Ditto.
4711
5d1d95de
CV
47122002-08-09 Corinna Vinschen <vinschen@redhat.com>
4713
4714 * cli/cli-dump.c: Change fopen modes to use binary open modes
4715 as defined in include/fopen-bin.h throughout.
4716
c86b5b38
MS
47172002-08-08 Michael Snyder <msnyder@redhat.com>
4718
4719 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4720
b30590dc
KB
47212002-08-08 Kevin Buettner <kevinb@redhat.com>
4722
4723 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4724 assertion failure by returning early after a warning.
4725
498868ed
KB
47262002-08-08 Kevin Buettner <kevinb@redhat.com>
4727
4728 * mips-tdep.c (mips_find_saved_regs): Make static.
4729 (mips_frame_init_saved_regs): New function.
4730 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4731 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4732 (mips_find_saved_regs): Delete declaration.
4733
b2dd6311
GS
47342002-08-08 Grace Sainsbury <graces@redhat.com>
4735
3c3bea1c
GS
4736 * remote.c (remote_wait, remote_async_wait): Change
4737 thread_num from int to ULONGEST.
4738 (unpack_varlen_hex): Change result parameter from
4739 int * to ULONGEST *.
b2dd6311 4740
ea47855f
AC
47412002-08-08 Andrew Cagney <ac131313@redhat.com>
4742
4743 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4744 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4745 powerpc*-*-*.
4746 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4747
69db8bae
AC
47482002-08-08 Andrew Cagney <cagney@redhat.com>
4749
4750 * gcore.c (override_derive_stack_segment): Delete variable.
4751 (preempt_derive_stack_segment): Delete function.
4752 (derive_stack_segment): Delete function.
4753 (default_derive_stack_segment): Renamed to derive_stack_segment.
4754 (override_derive_heap_segment): Delete variable.
4755 (preempt_derive_heap_segment): Delete function.
4756 (derive_heap_segment): Delete function.
4757 (default_derive_heap_segment): Rename to derive_heap_segment.
4758
cb811fe7
MS
47592002-08-06 Michael Snyder <msnyder@redhat.com>
4760
4761 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4762 * mips-tdep.c (mips_EABI_use_struct_convention,
4763 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4764 New functions. (mips_use_struct_convention): Delete.
4765 (mips_gdbarch_init): set use_gdbarch_convention.
4766
8b389c40
MS
47672002-08-06 Michael Snyder <msnyder@redhat.com>
4768
4769 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4770 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4771 mips_o32_reg_struct_has_addr): New functions.
4772 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4773
5c27f28a
AC
47742002-08-07 Andrew Cagney <ac131313@redhat.com>
4775
4776 * regcache.c (pseudo_register): Delete function.
4777 (fetch_register): Delete function.
4778 (store_register): Delete function.
4779 (regcache_raw_read, legacy_read_register_gen): Use
4780 target_fetch_registers instead of fetch_register.
4781 (legacy_write_register_gen, regcache_raw_write): Use
4782 target_store_register instead of store_register.
4783 (write_register_bytes): Ditto.
4784
4785 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4786 (STORE_PSEUDO_REGISTER): Delete.
4787 * gdbarch.h, gdbarch.c: Regenerate.
4788
5b331675
CV
47892002-08-06 Corinna Vinschen <vinschen@redhat.com>
4790
4791 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4792 write dump file binary.
4793
6acdf5c7
MS
47942002-08-05 Michael Snyder <msnyder@redhat.com>
4795
4796 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4797 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4798 (mips_gdbarch_init): Set N32 target to be mips64.
4799
b2f01c35
KB
48002002-08-06 Kevin Buettner <kevinb@redhat.com>
4801
4802 * frame.c (find_saved_register): Break out of loop once saved
4803 register address is found. Don't mention sparc in loop comment
4804 anymore.
4805
63db5580
KB
48062002-08-06 Kevin Buettner <kevinb@redhat.com>
4807
4808 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4809 mips_default_saved_regsize to 8.
4810
5e34e75e
AC
48112002-08-06 Andrew Cagney <ac131313@redhat.com>
4812
4813 * gcore.c: Do not include <sys/procfs.h>.
4814 * Makefile.in (gcore.o): Update dependencies.
4815
eb4c54a2
AC
48162002-08-06 Andrew Cagney <cagney@redhat.com>
4817
4818 * configure.tgt: Make arc-*-* obsolete.
4819 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4820 * MAINTAINERS: Make arc-elf obsolete.
4821 * arc-tdep.c: Make file obsolete.
4822 * config/arc/arc.mt: Ditto.
4823 * config/arc/tm-arc.h: Ditto.
4824
ced15480
TR
48252002-08-05 Theodore A. Roth <troth@verinet.com>
4826
c1bab85b 4827 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4828
b4743822
AC
48292002-08-05 Andrew Cagney <ac131313@redhat.com>
4830
4831 * mcore-tdep.c (mcore_gdbarch_init): Use
4832 generic_unwind_get_saved_register instead of
4833 generic_get_saved_register.
4834 * v850-tdep.c (v850_gdbarch_init): Ditto.
4835 * frv-tdep.c (frv_gdbarch_init): Ditto.
4836 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4837 * s390-tdep.c (s390_gdbarch_init): Ditto.
4838 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4839 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4840 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4841
3956d554
JB
48422002-08-05 Joel Brobecker <brobecker@gnat.com>
4843
4844 * objfiles.h: Add missing #include "symfile.h"
4845
4846 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4847
8249c0d6
AC
48482002-08-04 Andrew Cagney <ac131313@redhat.com>
4849
4850 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4851 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4852 of FIELD_BITSIZE.
4853
b9d14705
DJ
48542002-08-04 Daniel Jacobowitz <drow@mvista.com>
4855
4856 * NEWS: Cleanup and nitpick.
4857
dd73b9bb
AC
48582002-08-03 Andrew Cagney <ac131313@redhat.com>
4859
4860 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4861
043a27f8
AC
48622002-08-03 Andrew Cagney <ac131313@redhat.com>
4863
4864 * Makefile.in (gdbtk-bp.o): Update dependencies.
4865 (gdbtk-register.o): Ditto.
4866 (gdbtk-varobj.o): Ditto.
4867
46ce284d
AC
48682002-08-03 Andrew Cagney <cagney@redhat.com>
4869
4870 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4871 m68hc11_fetch_pseudo_register.
4872 (m68hc11_pseudo_register_write): Replace
4873 m68hc11_store_pseudo_register.
4874 (m68hc11_gdbarch_init): Update.
4875
b66d6d2e
AC
4876Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4877
4878 * gdbarch.sh: Include "gdb_string.h".
4879 * gdbarch.c: Regenerate.
4880
4881 * regcache.c: Include "gdb_string.h".
4882 * ax-general.c: Ditto.
4883 * varobj.c: Ditto.
4884 * std-regs.c: Ditto.
4885 * fbsd-proc.c: Ditto.
4886 * thread.c: Ditto.
4887
4888 * Makefile.in (regcache.o): Update dependencies.
4889 (thread.o, gdbarch.o): Ditto.
4890 (ax-general.o, gdbarch.o): Ditto.
4891 (varobj.o, std-regs.o): Ditto.
4892 (fbsd-proc.o): Specify dependencies.
4893
29e1842b
AC
48942002-08-02 Andrew Cagney <cagney@redhat.com>
4895
4896 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4897 regnum.
4898 (regcache_cooked_write): Ditto.
4899
68365089
AC
49002002-08-02 Andrew Cagney <ac131313@redhat.com>
4901
4902 * regcache.c (regcache_cooked_read): New function.
4903 (regcache_cooked_write): New function.
4904 (read_register_gen): Rewrite using regcache_cooked_read.
4905 (write_register_gen): Rewrite using regcache_cooked_write.
4906
4907 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4908 Declare.
4909
d8124050
AC
49102002-08-02 Andrew Cagney <cagney@redhat.com>
4911
4912 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4913 Replace the architecture methods register_read and register_write.
4914 * gdbarch.h, gdbarch.c: Regenerate.
4915 * regcache.c (init_regcache_descr): Update.
4916 (read_register_gen): Update.
4917 (write_register_gen): Update.
4918 (supply_register): Update comment.
4919
4920 * sh-tdep.c (sh_gdbarch_init): Update.
4921 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4922 `regcache' and `gdbarch' parameters. Make `buffer' a void
4923 pointer. Update code.
4924 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4925 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4926 void pointer. Update code.
4927 (sh64_register_write): Delete.
4928 (sh4_register_read): Delete.
4929 (sh64_register_read): Delete.
4930 (sh4_register_write): Delete.
4931 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4932 void pointer, `to' parameter a void pointer.
4933 (sh_sh64_register_convert_to_raw): Ditto.
4934
a6425924
KB
49352002-08-01 Kevin Buettner <kevinb@redhat.com>
4936
4937 * mips-tdep.c (mips_register_virtual_type): Use architecture
4938 invariant return values.
4939
ff5922b5
AC
49402002-08-01 Andrew Cagney <cagney@redhat.com>
4941
4942 * linux-proc.c: Include "gdb_string.h".
4943 * Makefile.in (linux-proc.o): Update dependency list.
4944
32a6503c
KB
49452002-08-01 Kevin Buettner <kevinb@redhat.com>
4946
4947 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4948 comment.
4949
ccaa32c7
GS
49502002-08-01 Grace Sainsbury <graces@redhat.com>
4951
4952 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4953 to_insert_watchpoint, to_remove_watchpoint,
4954 to_stopped_by_watchpoint, to_stopped_data_address,
4955 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4956 target vecctor. Define their corresponding macros so they call
4957 them.
4958
4959 * target.c: Add default and debug versions of for
4960 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4961 to_insert_watchpoint, to_remove_watchpoint,
4962 to_stopped_by_watchpoint, to_stopped_data_address,
4963 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4964
78fde5f8
KB
49652002-08-01 Kevin Buettner <kevinb@redhat.com>
4966
4967 * mips-tdep.c (mips_register_virtual_type): New function.
4968 (mips_gdbarch_init): Register mips_register_virtual_type()
4969 with gdbarch machinery.
4970 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4971 this file instead of tm-bigmips.h.
4972 (MIPS_REGSIZE): Delete this macro.
4973 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4974 multiarch version in mips-tdep.c will be found.
4975
db034ac5
AC
49762002-08-01 Andrew Cagney <cagney@redhat.com>
4977
4978 * NEWS: Menion that CHILL has been made obsolete.
4979
4980 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4981 * stabsread.c (read_range_type): Ditto.
4982 * gdbtypes.h: Ditto.
4983 * language.c (binop_type_check): Ditto.
4984 (binop_result_type): Ditto.
4985 (integral_type): Ditto.
4986 (character_type): Ditto.
4987 (string_type): Ditto.
4988 (boolean_type): Ditto.
4989 (structured_type): Ditto.
4990 (lang_bool_type): Ditto.
4991 (binop_type_check): Ditto.
4992 * language.h (_LANG_chill): Ditto.
4993 * dwarfread.c (set_cu_language): Ditto.
4994 * dwarfread.c (CHILL_PRODUCER): Ditto.
4995 * dwarfread.c (handle_producer): Ditto.
4996 * expression.h (enum exp_opcode): Ditto.
4997 * eval.c: Ditto for comments.
4998 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4999 * expprint.c (print_subexp): Ditto.
5000 (print_subexp): Ditto.
5001 * valops.c (value_cast): Ditto.
5002 (search_struct_field): Ditto.
5003 * value.h (COERCE_VARYING_ARRAY): Ditto.
5004 * symfile.c (init_filename_language_table): Ditto.
5005 (add_psymbol_with_dem_name_to_list): Ditto.
5006 * valarith.c (value_binop): Ditto.
5007 (value_neg): Ditto.
5008 * valops.c (value_slice): Ditto.
5009 * symtab.h (union language_specific): Ditto.
5010 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5011 (SYMBOL_DEMANGLED_NAME): Ditto.
5012 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5013 * defs.h (enum language): Ditto.
5014 * symtab.c (got_symtab): Ditto.
5015 * utils.c (fprintf_symbol_filtered): Ditto.
5016
5017 * ch-typeprint.c: Make file obsolete.
5018 * ch-valprint.c: Make file obsolete.
5019 * ch-lang.h: Make file obsolete.
5020 * ch-exp.c: Make file obsolete.
5021 * ch-lang.c: Make file obsolete.
5022
5023 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5024 CHILL_LIB.
5025 (TARGET_FLAGS_TO_PASS): Ditto.
5026 (CHILLFLAGS): Obsolete.
5027 (CHILL): Obsolete.
5028 (CHILL_FOR_TARGET): Obsolete.
5029 (CHILL_LIB): Obsolete.
5030 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5031 ch-valprint.c.
5032 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5033 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5034 ch-lang.o.
5035 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5036 targets.
5037
8aaf0b47
JB
50382002-07-31 Joel Brobecker <brobecker@gnat.com>
5039
5040 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5041 This does not change anything at the moment, but will be helpful
5042 later when full Ada support is integrated.
5043
f3a7b3a5
KB
50442002-07-31 Kevin Buettner <kevinb@redhat.com>
5045
5046 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5047 help message.
5048
fb850278
KB
50492002-07-31 Kevin Buettner <kevinb@redhat.com>
5050
5051 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5052 and save it in a local variable. Use variable in later test.
5053
e3bddbfa
KB
50542002-07-31 Kevin Buettner <kevinb@redhat.com>
5055
5056 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5057 test. (Thanks to Daniel Jacobowitz.)
5058
28d169de
KB
50592002-07-31 Kevin Buettner <kevinb@redhat.com>
5060
5061 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5062 (mips_abi_strings): Add "n64".
5063 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5064
7fe7e44e
KB
50652002-07-31 Kevin Buettner <kevinb@redhat.com>
5066
5067 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5068 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5069
c6caf090
KB
50702002-07-31 Kevin Buettner <kevinb@redhat.com>
5071
5072 * utils.c (host_pointer_to_address, address_to_host_pointer):
5073 Use gdb_assert() instead of explicit call to internal_error().
5074
c41669e0
KB
50752002-07-30 Kevin Buettner <kevinb@redhat.com>
5076
5077 * Makefile.in (rs6000-nat.o): Update dependencies.
5078
5079 From Nicholas Duffek:
5080 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5081 (aix-thread.o): New rule.
5082 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5083 * config/powerpc/aix432.mh: New file.
5084
2fda4977
DJ
50852002-07-30 Daniel Jacobowitz <drow@mvista.com>
5086
5087 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5088 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5089 (fetch_core_registers, ppc_linux_supply_gregset)
5090 (ppc_linux_supply_fpregset): New functions.
5091 (ppc_linux_regset_core_fns): New.
5092 (_initialize_ppc_linux_tdep): Call add_core_fns.
5093 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5094 and ppc_linux_supply_gregset.
5095 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5096 (supply_fpregset): Call ppc_linux_supply_fpregset.
5097 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5098 corelow.o.
5099 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5100
729051e6
DJ
51012002-07-30 Daniel Jacobowitz <drow@mvista.com>
5102
5103 * symtab.c (lookup_symbol): Demangle before lowercasing.
5104
5f8a3188
AC
51052002-07-30 Andrew Cagney <ac131313@redhat.com>
5106
5107 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5108 declaration.
5109 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5110 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5111 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5112 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5113 "gdb_string.h".
5114 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5115 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5116 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5117 (avr-tdep.o, mon960-rom.o): Ditto.
5118 (aout_stabs_gnu_h): Define.
5119 (symtab_h): Remove $(gdb_obstack_h).
5120
67f07146
JB
51212002-07-30 Jim Blandy <jimb@redhat.com>
5122
5123 Patch from David Carlton <carlton@math.stanford.edu>:
5124 * gdbinit.in: Move the `dir' commands that add GDB's own source
5125 directory to the search path to the end, so that the `gdb' source
5126 directory will be searched first.
5127
04ea0df1
AC
51282002-07-29 Andrew Cagney <ac131313@redhat.com>
5129
5130 * gdb_obstack.h: New file.
5131 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5132 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5133 * objfiles.h: Include "gdb_obstack.h".
5134 * Makefile.in (gdb_obstack_h): Define.
5135 (symtab_h): Add $(gdb_obstack_h).
5136 (objfiles_h): Add $(gdb_obstack_h).
5137
5138 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5139 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5140 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5141 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5142 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5143 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5144 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5145 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5146
5147 * Makefile.in (bcache.o): Update dependencies.
5148 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5149 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5150 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5151 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5152 (stabsread.o, symfile.o, symmisc.o): Ditto.
5153 (symtab.o, typeprint.o, macroexp.o): Ditto.
5154 (macrotab.o, mdebugread.o): Ditto.
5155 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5156 (coff_ecoff_h, aout_aout64_h): Define.
5157 (aout_stabs_gnu_h, libaout_h): Define.
5158
d138e37a
AC
51592002-07-29 Andrew Cagney <cagney@redhat.com>
5160
5161 * regcache.c (struct regcache_descr): Rename nr_registers to
5162 nr_cooked_registers. Revise comments describing the structure
5163 member fields.
5164 (init_regcache_descr): Update.
5165 (init_legacy_regcache_descr): Update.
5166 (read_register_gen, write_register_gen): When a cooked register in
5167 the raw register range, directly access the value from the raw
5168 register cache.
5169
460e6ec3
AC
51702002-07-29 Andrew Cagney <ac131313@redhat.com>
5171
5172 * z8k-tdep.c: Do not include "obstack.h".
5173 * h8300-tdep.c, h8500-tdep.c: Ditto.
5174 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5175 * valprint.c, v850-tdep.c: Ditto.
5176 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5177 * mn10200-tdep.c: Ditto.
5178
5179 * Makefile.in (z8k-tdep.o): Update dependencies.
5180 (m68hc11-tdep.o, valprint.o): Ditto.
5181 (v850-tdep.o, d10v-tdep.o): Ditto.
5182 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5183 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5184 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5185 (sh_opc_h, gdb_sim_sh_h): Define.
5186 (elf_sh_h, elf_bfd_h): Define.
5187 (opcode_m68hc11_h): Define.
5188 (OPCODES_SRC, OPCODES_DIR): define.
5189 (OPCODES): Use $(OPCODES_DIR).
5190 (gdb_sim_d10v_h): Rename sim_d10v_h.
5191 (gdb_sim_arm_h): Rename sim_arm_h.
5192
790c9cf0
KB
51932002-07-26 Kevin Buettner <kevinb@redhat.com>
5194
5195 * utils.c (host_pointer_to_address, address_to_host_pointer):
5196 Change internal_error() message to indicate function responsible
5197 for the error.
5198
9647fa49
KB
51992002-07-26 Kevin Buettner <kevinb@redhat.com>
5200
5201 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5202 calls to local_hex_string_custom().
5203
dabbe2c0
KB
52042002-07-26 Kevin Buettner <kevinb@redhat.com>
5205
5206 * irix5-nat.c: Move IRIX shared library support from here...
5207 * solib-irix.c: ...to here. Revised substantially to work with
5208 generic solib framework.
5209
b96d0a4e
KB
5210 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5211 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5212 * mips-irix-tdep.c: New file.
5213
313fb2f6
KB
5214 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5215 (mips-irix-tdep.o, solib-irix.o): New rules.
5216 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5217 solib-irix.o.
5218 * config/mips/irix6.mt (TDEPFILES): Likewise.
5219 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5220
ab2eaf26
KB
52212002-07-26 Kevin Buettner <kevinb@redhat.com>
5222
177e4768 5223 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5224 disabled (via ``#if 0'') includes.
5225
7244546a
KB
52262002-07-26 Kevin Buettner <kevinb@redhat.com>
5227
5228 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5229 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5230 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5231 Add support for the fpscr register.
5232 * rs6000-nat.c (regmap, fetch_inferior_registers)
5233 (store_inferior_registers, fetch_core_registers): Likewise.
5234
dd7be90a
KB
52352002-07-26 Kevin Buettner <kevinb@redhat.com>
5236
5237 * rs6000-nat.c (language.h): Include.
5238 (special_regs): Delete this array.
5239 (regmap): New function.
5240 (fetch_register, store_register): Use regmap() to map gdb
5241 register numbers to ptrace register numbers. Also, use
5242 outputs from regmap() to make decisions regarding type of
5243 ptrace() call to make. In particular, don't compare against
5244 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5245 (fetch_inferior_registers, store_inferior_registers): Where
5246 possible, obtain register numbers from tdep struct. Don't
5247 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5248 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5249 (LAST_UISA_SP_REGNUM): Delete.
5250
11bf77db
KB
52512002-07-25 Kevin Buettner <kevinb@redhat.com>
5252
5253 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5254 (fetch_registers, store_register, fetch_core_registers): Don't
5255 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5256 regcache_collect() as appropriate.
5257 (find_toc_address): Format hex address with local_hex_string().
5258
06afebeb
AC
52592002-07-25 Andrew Cagney <ac131313@redhat.com>
5260
5261 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5262 bfd/elf32-frv.c.
5263
8c554d79
TT
52642002-07-24 Tom Tromey <tromey@redhat.com>
5265
5266 * jv-exp.y: Marked all strings with _().
5267 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5268 internal_error.
5269 (MethodInvocation, CastExpression, parse_number, yyerror,
5270 java_type_from_name, push_expression_name, yylex): Typo fixes.
5271
e4c242d9
DJ
52722002-07-24 Daniel Jacobowitz <drow@mvista.com>
5273
5274 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5275 (tee_file_flush, tee_file_write, tee_file_fputs)
5276 (tee_file_isatty): New.
5277 * ui-file.h (tee_file_new): Add prototype.
5278
ebf56fd3
AS
52792002-07-24 Aidan Skinner <aidan@velvet.net>
5280
5281 * ada-lang.c: Change k&r style function definitions to prototyped
5282 form.
5283 * ada-typeprint.c: Change k&r style function definitions to prototyped
5284 form.
5285 * ada-valprint.c: Change k&r style function definitions to prototyped
5286 form.
5287
7fb623f7
AC
52882002-07-24 Andrew Cagney <cagney@redhat.com>
5289
5290 * README: Remove reference to remote-bug.
5291 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5292 remote-bug.c.
5293 (m88k-nat.o): Delete rule.
5294 (m88k-tdep.o): Delete rule.
5295 (remote-bug.o): Delete rule.
5296 * MAINTAINERS: Mark as obsolete.
5297 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5298 * m88k-tdep.c: Make file obsolete.
5299 * config/m88k/m88k.mh: Ditto.
5300 * config/m88k/delta88v4.mh: Ditto.
5301 * config/m88k/delta88v4.mt: Ditto.
5302 * config/m88k/delta88.mt: Ditto.
5303 * config/m88k/delta88.mh: Ditto.
5304 * remote-bug.c: Ditto.
5305 * config/m88k/tm-delta88.h: Ditto.
5306 * config/m88k/nm-delta88v4.h: Ditto.
5307 * config/m88k/xm-delta88.h: Ditto.
5308 * config/m88k/xm-dgux.h: Ditto.
5309 * config/m88k/tm-m88k.h: Ditto.
5310 * config/m88k/nm-m88k.h: Ditto.
5311 * config/m88k/tm-delta88v4.h: Ditto.
5312 * m88k-nat.c: Ditto.
5313 * cxux-nat.c: Ditto.
5314 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5315 and m88*-*-* obsolete.
5316 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5317 m88*-*-* obsolete.
5318
37611a2b
AC
53192002-07-24 Andrew Cagney <cagney@redhat.com>
5320
5321 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5322 constant. Same for local pointer variables.
5323 (extract_signed_integer): Ditto.
5324 * defs.h (extract_unsigned_integer): Update.
5325 (extract_signed_integer): Update.
5326
1aaa5f99
AC
53272002-07-24 Andrew Cagney <cagney@redhat.com>
5328
5329 * regcache.c (regcache_raw_write): Change buf parameter to a
5330 constant void pointer.
5331 (regcache_raw_read): Change buf parameter to a void pointer.
5332 (legacy_write_register_gen): Change myaddr parameter a constant
5333 void pointer.
5334 (supply_register): Change val parameter to a const void pointer.
5335 * regcache.h (regcache_raw_write): Update declaration.
5336 (regcache_raw_read): Update declaration.
5337 (supply_register): Update declaration.
5338
b4f5539f
TT
53392002-07-24 Tom Tromey <tromey@redhat.com>
5340
5341 * defs.h (gdb_readline_wrapper): Declare.
5342 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5343 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5344 * top.c (gdb_readline_wrapper): New function.
5345 (command_line_input): Use it.
5346
0818c12a
AC
53472002-07-24 Andrew Cagney <cagney@redhat.com>
5348
5349 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5350 regcache_read and regcache_write.
5351 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5352 * regcache.c: Update.
5353 * sh-tdep.c (sh64_push_arguments): Update comment.
5354 (sh_pseudo_register_read): Update.
5355 (sh_pseudo_register_write): Update.
5356 (sh4_register_read): Update.
5357 (sh4_register_write): Update.
5358 (sh64_pseudo_register_read): Update.
5359 (sh64_pseudo_register_write): Update.
5360 (sh64_register_read): Update.
5361 (sh64_register_write): Update.
5362 * i386-tdep.c (i386_extract_return_value): Update.
5363 (i386_extract_struct_value_address): Update.
5364 (i386_extract_return_value): Update.
5365 * blockframe.c (generic_read_register_dummy): Update.
5366 (generic_call_dummy_register_unwind): Update
5367 * infrun.c (write_inferior_status_register): Update.
5368
f7321c06
JB
53692002-07-23 Jim Blandy <jimb@redhat.com>
5370
5371 * parser-defs.h (expression_context_pc): Make this extern.
5372 (Thanks to Michael Snyder.)
5373
2037aebb
AC
53742002-07-23 Andrew Cagney <ac131313@redhat.com>
5375
5376 GDB 5.2.1 released from 5.2 branch.
5377 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5378 * README: Update to mention 5.2.1.
5379
66504d44
MS
53802002-07-23 Mark Salter <msalter@redhat.com>
5381
5382 * remote.c (remote_read_bytes): Fix check for error.
5383
27bae383
KB
53842002-07-22 Kevin Buettner <kevinb@redhat.com>
5385
5386 * aix-thread.c (language.h): Include.
5387 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5388 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5389 Print newlines at end of debug messages.
5390 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5391 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5392
53932002-07-22 Kevin Buettner <kevinb@redhat.com>
5394
5395 * aix-thread.c (ppc-tdep.h): Include.
5396 (special_register_p): New function.
5397 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5398 (store_regs_user_thread): Use register number information from
5399 gdbarch_tdep struct instead of hardcoded offsets relative to
5400 FIRST_UISA_SP_REGNUM.
5401 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5402 special_register_p() instead of using FPLAST_REGNUM and
5403 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5404 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5405 will be MQ's register number.
5406
54072002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5408
5409 * aix-thread.c (ops): Rename to aix_thread_ops.
5410 (base_ops): Rename to base_target.
5411 (ops_attach): Rename to aix_thread_attach.
5412 (ops_detach): Rename to aix_thread_detach.
5413 (ops_resume): Rename to aix_thread_detach.
5414 (ops_wait): Rename to aix_thread_wait.
5415 (ops_kill): Rename to aix_thread_kill.
5416 (init_ops): Rename to init_aix_thread_ops.
5417 (ops_fetch_register): Rename to aix_thread_fetch_register.
5418 (ops_store_register): Rename to aix_thread_store_register.
5419 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5420 (ops_thread_alive): Rename to aix_thread_thread_alive.
5421 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5422 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5423 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5424 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5425 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5426 (store_regs_lib): Rename to store_regs_user_thread.
5427 (store_regs_kern): Rename to store_regs_kernel_thread.
5428
27bae383 54292002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5430
5431 * aix-thread.c (ops_prepare_to_store): Eliminate.
5432 (init_ops): Don't initialize ops.prepare_to_store.
5433 (store_regs_kern): Pre-fetch register buffers from child,
5434 because some registers may not be in the cache. Copy
5435 regs from register cache only if they are cached.
5436 (store_regs_lib): Copy regs from register cache only
5437 if they are cached.
5438 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5439 fill_gprs64): Ditto.
5440
61c5da0b
KB
54412002-07-22 Kevin Buettner <kevinb@redhat.com>
5442
5443 * aix-thread.c (gdb_assert.h): Include.
5444 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5445 register sizes (from register cache) match size of buffer holding
5446 register data.
5447 (fill_sprs32): Change parameter types to match those in the ptrace()
5448 buffer.
5449 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5450 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5451
54522002-07-22 Michael Snyder <msnyder@redhat.com>
5453
5454 * aix-thread.c (supply_sprs64): Cosmetic change.
5455 (supply_sprs32): Cosmetic change.
5456 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5457 (fill_sprs64): Use regcache_collect instead of read_register.
5458 (store_regs_lib): Use regcache_collect instead of
5459 read_register. Use fill_sprs32 instead of fill_sprs64,
5460 if debugging a 32-bit architecture.
5461 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5462 out of the register cache, instead of passing a pointer into
5463 the register cache directly to ptrace. Use regcache_collect
5464 insteaad of read_register.
5465 (ops_prepare_to_store): Use target_read_registers instead
5466 of read_register_bytes.
5467
36479eb1
AS
54682002-07-20 Aidan Skinner <aidan@velvet.net>
5469
5470 * MAINTAINERS: Add self under write after approval.
5471
80ae6ee2
AS
54722002-07-20 Aidan Skinner <aidan@velvet.net>
5473
5474 * ada-tasks.c: Change k&r style function definitions to prototyped
5475 form.
5476
8a8ab2b9
AC
54772002-07-19 Andrew Cagney <ac131313@redhat.com>
5478
5479 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5480 * x86-64-tdep.c: Include "objfiles.h".
5481 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5482 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5483
fb16b900
ML
54842002-07-17 Michal Ludvig <michal@suse.cz>
5485
5486 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5487 (update_context): Initialise cfa variable.
5488
0fe7bf7b
MS
54892002-07-17 Michael Snyder <msnyder@redhat.com>
5490
5491 * aix-thread.c: Shorten some long lines.
5492 Bring comments into line with code spec.
5493
488f131b
JB
54942002-07-18 Joel Brobecker <brobecker@gnat.com>
5495
5496 * infrun.c: Re-indent using gdb_indent.sh.
5497
46c415d2
JB
54982002-07-18 Joel Brobecker <brobecker@gnat.com>
5499
5500 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5501 Leave the indentation temporarily untouched, to minimize the diffs.
5502
cdecafbe
EZ
55032002-07-18 Elena Zannoni <ezannoni@redhat.com>
5504
5505 * stabsread.c: Make os9k sections of the code obsolete,
5506 for real this time.
5507 * stabsread.h: Make os9k sections of the code obsolete.
5508
7b6aa020
ML
55092002-07-18 Michal Ludvig <mludvig@suse.cz>
5510
09ec9b38
ML
5511 * linux-low.c (regsets_store_inferior_registers): Add free()
5512 at the end of a loop to prevent memory leak.
5513 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5514 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5515 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5516 line a comment.
4894ac5d 5517 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5518
233282cd
JB
55192002-07-17 Jim Blandy <jimb@redhat.com>
5520
5521 * macrocmd.c (info_macro_command): Remove newline from error
5522 message.
5523
7b6aa020 55242002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5525
5526 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5527 (sh_gdbarch_init): Use it for sh-dsp.
5528
f7ef9339
KB
55292002-07-16 Kevin Buettner <kevinb@redhat.com>
5530
5531 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5532 64-bit DWARF2 format.
5533
8dd72958
JB
55342002-07-16 Joel Brobecker <brobecker@gnat.com>
5535
5536 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5537 <sys/proc.h> when not available.
5538
a99a9e1b
AC
55392002-07-16 Andrew Cagney <ac131313@redhat.com>
5540
5541 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5542 * stabsread.c: Make os9k sections of the code obsolete.
5543 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5544 * config/i386/i386os9k.mt: Make file obsolete.
5545 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5546 (COMMON_OBS): Remove os9kread.o
5547 (SFILES): Remove os9kread.c.
5548 (os9kread.o, remote-os9k.o): Make target obsolete.
5549 * remote-os9k.c: Make file obsolete.
5550 * os9kread.c: Make file obsolete.
5551 * Makefile.in
5552
7a3085c1
AC
55532002-07-16 Andrew Cagney <ac131313@redhat.com>
5554
5555 * NEWS: Mention that the FR30 has been made obsolete.
5556 * fr30-tdep.c: Make file obsolete.
5557 * config/fr30/tm-fr30.h: Ditto.
5558 * config/fr30/fr30.mt: Ditto.
5559 * configure.tgt: Make fr30-*-elf obsolete.
5560 * MAINTAINERS: Make fr30-elf obsolete.
5561
28a93f5a
PM
55622002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5563
5564 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5565 found is not inside a section.
5566
be006b8b
KB
55672002-07-15 Kevin Buettner <kevinb@redhat.com>
5568
5569 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5570 strerror().
5571 (pdc_realloc): Use xrealloc() instead of realloc().
5572
14fa3751
KB
55732002-07-15 Kevin Buettner <kevinb@redhat.com>
5574
5575 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5576 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5577 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5578 macros.
5579
42cc437f
KB
55802002-07-15 Kevin Buettner <kevinb@redhat.com>
5581
5582 * aix-thread.c (ptrace_check): Eliminate goto.
5583 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5584 problem.
5585
8e2c28d4
KB
55862002-07-15 Kevin Buettner <kevinb@redhat.com>
5587
5588 * aix-thread.c (gdbcmd.h): Include.
5589 (DEBUG, DBG, DBG2, dbg): Eliminate.
5590 (debug_aix_thread): New static global.
5591 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5592 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5593 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5594 invocations to DBG and DBG2 macros to test against
5595 ``debug_aix_thread'' and call fprintf_unfiltered().
5596 (_initialize_aix_thread): Add new command "set debug aix-thread".
5597
30413464
AC
55982002-07-15 Andrew Cagney <ac131313@redhat.com>
5599
5600 From Gerhard Tonn <TON@de.ibm.com>:
5601 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5602 instead of supply_register.
5603
7c43edc1
AC
56042002-07-15 Andrew Cagney <ac131313@redhat.com>
5605
5606 * dwarf2cfi.c: Include "gdb_assert.h".
5607 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5608 non-NULL.
5609 (update_context): Do not use __func__. Add missing ``break''.
5610 (update_context): Do not use __func__.
5611
9364a0ef
EZ
56122002-07-15 Elena Zannoni <ezannoni@redhat.com>
5613
5614 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5615 and its setting. Set gdbarch instruction printing functions
5616 directly. For non-rs6000 case use new function
5617 gdb_print_insn_powerpc.
5618 (gdb_print_insn_powerpc): New function.
5619
3fbeef0b
AC
56202002-07-13 Andrew Cagney <ac131313@redhat.com>
5621
92eb23c5 5622 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5623 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5624 * configure.tgt: Mark d30v-*-* as obsolete.
5625 * d30v-tdep.c: Mark file as obsolete.
5626 * config/d30v/d30v.mt: Ditto.
5627 * config/d30v/tm-d30v.h: Ditto.
5628
aacb1f0a
AS
56292002-07-13 Aidan Skinner <aidan@velvet.net>
5630
5631 * ada-tasks.c (add_task_entry): replace calls to
5632 malloc() with xmalloc
5633 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5634
5635 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5636 ada_finish_decode_line_1, all_sals_for_line
5637 ada_breakpoint_rewrite): replace calls to free() with xfree()
5638
c11d79f2
KB
56392002-07-12 Kevin Buettner <kevinb@redhat.com>
5640
5641 From Nicholas Duffek (with minor changes by Martin Hunt,
5642 Louis Hamilton, and Kevin Buettner):
5643 * aix-thread.c: New file.
5644
8e19ed76
PS
56452002-07-12 Petr Sorfa <petrs@caldera.com>
5646
5647 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5648 complaint for invalid attribute class or form.
5649 (read_func_scope): DW_AT_frame_base
5650 better handling of DW_AT_block*.
5651 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5652 better handling of DW_AT_block*.
5653 (read_common_block): DW_AT_location
5654 better handling of DW_AT_block*.
5655 (read_partial_die): DW_AT_location better handling
5656 of DW_AT_block*.
5657 (new_symbol): DW_AT_external better handling of
5658 DW_AT_block*. Proper initialization of variable
5659 "addr".
5660 (attr_form_is_block): New function that returns true
5661 if the attribute's form is of DW_FORM_block*.
5662
295401f7
DJ
56632002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5664
5665 * valops.c (find_method_list): Remove comment about
5666 removed STATIC_MEMFUNCP argument.
5667 (value_find_oload_method_list): Likewise.
5668
e42dc924
KB
56692002-07-12 Kevin Buettner <kevinb@redhat.com>
5670
5671 From Nicholas Duffek:
5672 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5673 target_new_objfile_hook.
5674
6904b546
KB
56752002-07-12 Kevin Buettner <kevinb@redhat.com>
5676
5677 From Nicholas Duffek:
5678 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5679 csect.
5680
53fe9346
AC
56812002-07-12 Andrew Cagney <cagney@redhat.com>
5682
5683 * MAINTAINERS: Mention --enable-sim-build-warnings.
5684 (m68hc11-elf): Disable sim build warnings.
5685 (m32r-elf): Mark as broken obsolete candidate.
5686 (x86_64-linux-gnu): Mark as buildable with -Werror.
5687 (arm-elf): Change -w to ``,'' which enables warnings but not
5688 -Werror.
5689
af5f3db6
AC
56902002-07-12 Andrew Cagney <ac131313@redhat.com>
5691
5692 * bcache.h: Update copyright.
5693 (struct bstring, struct bcache): Move definition to "bcache.c".
5694 Replaced by opaque declaration.
5695 (bcache_xfree): Replace free_bcache.
5696 (bcache_xmalloc, bcache_memory_used): Declare.
5697
5698 * bcache.c: Update copyright.
5699 (struct bstring, struct bcache): Moved to here from "bcache.h".
5700 Update comments.
5701 (bcache_xmalloc, bcache_memory_used): New functions.
5702 (bcache_xfree): Replace function free_bcache.
5703
5704 * Makefile.in (objfiles.o): Add $(bcache_h).
5705 (objfiles_h): Remove $(bcache_h).
5706 (symfile.o): Add $(bcache_h).
5707
5708 * symmisc.c: Update copyright.
5709 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5710 (print_objfile_statistics): Use bcache_memory_used.
5711
5712 * symfile.c: Include "bcache.h".
5713 (reread_symbols): Use bcache_xfree.
5714 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5715 (add_psymbol_to_list): Pass psymbol_cache by value.
5716 (add_psymbol_with_dem_name_to_list): Ditto.
5717
5718 * objfiles.h: Update copyright.
5719 (struct bcache): Declare opaque. Do not include "bcache.h".
5720 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5721 bcache'' pointers.
5722 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5723
5724 * objfiles.c: Include "bcache.h". Update copyright.
5725 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5726 macro_cache.
5727 (free_objfile): Use bcache_xfree.
5728
444199e7
GS
57292002-07-11 Grace Sainsbury <graces@redhat.com>
5730
5731 * monitor.c (monitor_fetch_register): Make name a constant.
5732 (monitor_store_register): Same.
5733
261397f8
DJ
57342002-07-11 Daniel Jacobowitz <drow@mvista.com>
5735
5736 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5737 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5738 (finish_block) For non-function blocks, hash the symbol table. For
5739 function blocks, mark the symbol table as unhashed.
5740 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5741 (msymbol_hash_iw): Likewise.
5742 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5743 value.
5744 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5745 (lookup_minimal_symbol): Likewise for both.
5746 * symtab.h (struct block): Add `hashtable' flag. Comment the
5747 hashtable.
5748 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5749 (ALL_BLOCK_SYMBOLS): Update.
5750 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5751 (struct symbol): Add `hash_next' pointer.
5752 * symtab.c (lookup_block_symbol): Search using the hash table when
5753 possible.
5754 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5755 (search_symbols, find_addr_symbol): Likewise.
5756
5757 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5758 (read_dst_symtab): Likewise.
5759 * jv-lang.c (get_java_class_symtab): Likewise.
5760 * mdebugread.c: Include "gdb_assert.h".
5761 (shrink_block): Assert that the block being modified is not hashed.
5762 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5763 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5764 symbols.
5765 (dump_symtab): Recognize hashed blocks.
5766 * printcmd.c (print_frame_args): Assert that function blocks do not
5767 have hashed symbol tables.
5768 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5769 (fill_in_ada_prototype, debug_print_block): Likewise.
5770 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5771
6f0eaa01
CV
57722002-07-11 Corinna Vinschen <vinschen@redhat.com>
5773
5774 * stack.c (print_frame): Use result of frame_address_in_block()
5775 instead of fi->pc when evaluating symbols.
5776 (backtrace_command_1): Ditto.
5777
a208b0cb
AC
57782002-07-11 Andrew Cagney <cagney@redhat.com>
5779
5780 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5781 Make static.
5782
5783 * arm-tdep.c (arm_register_name): Make return type constant.
5784
a6b6b089
AC
57852002-07-10 Andrew Cagney <ac131313@redhat.com>
5786
5ae5f592
AC
5787 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5788 prototype.
5789 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5790 * s390-tdep.c (s390_fp_regnum): Ditto.
5791 (s390_read_fp): Ditto.
5792 (s390_pop_frame): Ditto.
5793 (_initialize_s390_tdep): Ditto.
5794 * remote.c (get_remote_state): Ditto.
5795 * procfs.c (mappingflags): Ditto.
5796 * memattr.c (_initialize_mem): Ditto.
5797 * mcore-tdep.c (mcore_pop_frame): Ditto.
5798 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5799 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5800 * language.c (set_case_str): Ditto.
5801 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5802 * frv-tdep.c (new_variant): Ditto.
5803 (frv_stopped_data_address): Ditto.
5804 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5805 (context_alloc): Ditto.
5806 (frame_state_alloc): Ditto.
5807 (unwind_tmp_obstack_init): Ditto.
5808 (unwind_tmp_obstack_free): Ditto.
5809 (cfi_read_fp): Ditto.
5810 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5811 (cris_pop_frame): Ditto.
5812 * c-lang.c (scanning_macro_expansion): Ditto.
5813 (finished_macro_expansion): Ditto.
5814 (c_preprocess_and_parse): Ditto.
5815 * gdbarch.sh: Ditto.
5816 * gdbarch.h, gdbarch.c: Regenerate.
5817 * config/mn10200/tm-mn10200.h: Adjust indentation.
5818 * target.c: Adjust indentation.
5819 * symtab.h: Adjust indentation.
5820 * stabsread.h: Adjust indentation.
5821 * remote-es.c: Adjust indentation.
5822 * os9kread.c: Adjust indentation.
5823
58242002-07-10 Andrew Cagney <ac131313@redhat.com>
5825
a6b6b089
AC
5826 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5827 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5828
a1789893
GS
58292002-07-10 Grace Sainsbury <graces@redhat.com>
5830
5831 * NEWS: Mention m68k, mcore multi-arching.
5832 * MAINTAINERS: Change status of m68k, mcore to reflect
5833 multi-arching.
5834
02f0d45d
DJ
58352002-07-10 Daniel Jacobowitz <drow@mvista.com>
5836
5837 * valops.c (find_overload_match): Free oload_syms.
5838
f15f768e
JB
58392002-07-09 Joel Brobecker <brobecker@gnat.com>
5840
5841 Define HAVE_SYS_PROC_H if sys/proc.h exists
5842 * configure.in: Add check for sys/proc.h
5843 * config.in: Regenerate.
5844 * configure: Regenerate.
5845
902a7139
GS
58462002-07-09 Grace Sainsbury <graces@redhat.com>
5847
5848 * config/m68k/tm-m68k.h: Remove macros wrapped in
5849 #if !GDB_MULTI_ARCH.
5850
a534e424
AC
58512002-07-08 Andrew Cagney <ac131313@redhat.com>
5852
5853 * config.in, configure: Regenerate.
5854
9b94f7bf
MK
58552002-07-08 Mark Kettenis <kettenis@gnu.org>
5856
5857 * dwarf2cfi.c: Include "gcore.h".
5858 (execute_stack_op): Fix implementation of the
5859 DW_OP_deref and DW_OP_deref_size operators by letting do their
5860 lookup in the target.
5861
1d34db41
MK
58622002-07-07 Mark Kettenis <kettenis@gnu.org>
5863
5864 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5865 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5866 tdep->sc_sp_offset.
5867
79d5b63a
DJ
58682002-07-05 Daniel Jacobowitz <drow@mvista.com>
5869
5870 Fix PR gdb/595, gdb/602
5871 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5872 Don't call value_cast, just read the vtable pointer; update comments
5873 to match.
5874
3bb912e8
GS
58752002-07-05 Grace Sainsbury <graces@redhat.com>
5876
5877 * config/mcore/tm-mcore.h: Remove file.
5878 * config/mcore/mcore.mt: Remove definition of TM_FILE
5879 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5880
ca39387d
MK
58812002-07-05 Mark Kettenis <kettenis@gnu.org>
5882
5883 * i386bsd-tdep.c: Include "gdb_string.h".
5884
efdc1108
GS
58852002-07-04 Grace Sainsbury <graces@redhat.com>
5886
5887 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5888 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5889 mcore-tdep.
5890 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5891 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5892 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5893 (RETVAL_REGNUM): Move macros from tm-mcore.h
5894 (mcore_reg_struct_has_addr): New function.
5895 (mcore_gdbarch_init): Added initializations for the macros removed
5896 from tm-mcore.h.
5897
bb21884d
MK
58982002-07-04 Mark Kettenis <kettenis@gnu.org>
5899
5900 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5901 traditonal string branding within the ELF header.
5902
228c6d41
DJ
59032002-07-04 Daniel Jacobowitz <drow@mvista.com>
5904
5905 * symtab.c (remove_params): New function.
5906 (make_symbol_overload_list): Use it instead of cplus_demangle.
5907 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5908
2404952e
MK
59092002-07-04 Mark Kettenis <kettenis@gnu.org>
5910
e5e4acad
MK
5911 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5912
baadce09
MK
5913 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5914 New variables.
5915 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5916 and tdep->sigtramp_end.
5917 * i386obsd-nat.c: New file.
5918 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5919
2404952e
MK
5920 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5921 Don't call get_current_frame().
5922
9b4f1ba7
PM
59232002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5924
5925 * i386-nat.c (child_post_startup_inferior): New function
5926 calling i386_cleanup_dregs if
5927 I386_USE_GENERIC_WATCHPOINTS is defined.
5928 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5929 conditional to acknowledge that i386-nat.c has its
5930 own child_post_startup_inferior function.
5931
c0d1d883
MK
59322002-07-04 Mark Kettenis <kettenis@gnu.org>
5933
00f8375e
MK
5934 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5935 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5936 instead of MAX_REGISTER_RAW_SIZE.
5937 (i386_extract_return_value, i386_extract_struct_value_address):
5938 Convert to use regcache.
5939 (i386_gdbarch_init): Set max_register_raw_size and
5940 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5941 Set extract_return_value and extract_struct_value_address instead
5942 of their deprecated variants.
5943
c0d1d883
MK
5944 Convert i386 target to generic dummy frames.
5945 * i386-tdep.c: Include "symfile.h".
5946 (i386_frameless_signal_p): Consider a function to be frameless if
5947 the pc points at the first instruction of the function.
5948 (i386_frame_chain): Handle (generic) call dummies.
5949 (i386_frame_saved_pc): Likewise.
5950 (i386_frame_init_saved_regs): Remove code dealing with call
5951 dummies on the stack.
5952 (i386_push_dummy_frame): Removed.
5953 (i386_call_dummy_words): Removed.
5954 (i386_fix_call_dummy): Removed.
5955 (i386_push_return_address): New function.
5956 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5957 parameter, and don't call get_current_frame.
5958 (i386_pop_frame): New function.
5959 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5960 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5961 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5962 call_dummy_length to 0, set call_dummy_words to NULL, set
5963 sizeof_call_dummy_words to 0, set fix_call_dummy to
5964 generic_fix_call_dummy, set pc_in_call_dummy to
5965 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5966 generic_push_dummy_frame, set push_return_address to
5967 i386_push_return_address and set frame_chain_valid to
5968 generic_file_frame_chain_valid.
5969
049ee0e4
AC
59702002-07-03 Andrew Cagney <ac131313@redhat.com>
5971
5972 * gdbarch.sh (struct regcache): Add opaque declaration.
5973 (EXTRACT_RETURN_VALUE): New architecture method.
5974 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5975 * gdbarch.h, gdbarch.c: Regenerate.
5976 * arch-utils.c (legacy_extract_return_value): New function.
5977 * arch-utils.h (legacy_extract_return_value): Declare.
5978 * values.c (value_being_returned): Re-enable code handling
5979 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5980 deprecated_grub_regcache_for_registers call to block handling
5981 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5982 (EXTRACT_RETURN_VALUE): Do not define.
5983
4e0d9804
GS
59842002-07-03 Grace Sainsbury <graces@redhat.com>
5985
5986 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5987 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5988 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5989 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5990 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5991 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5992 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5993 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5994 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5995 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5996 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5997 argument so the function fits the prototype in the architecture
5998 vector.
5999 (mcore_pop_frame): Remove argument so the function fits the
6000 prototype. Use get_current_frame instead of the argument.
6001 (mcore_push_arguments): Change type of struct_return so the
6002 function can be used in the architecture vector.
6003 (mcore_store_struct_return): Add.
6004 (mcore_frame_init_saved_regs): Add.
6005 (mcore_gdbarch_init): Add function calls to replace the macros
6006 removed from tm-mcore.h
6007
36160dc4
AC
60082002-07-03 Andrew Cagney <ac131313@redhat.com>
6009
6010 * infcmd.c (print_return_value): Remove compatibility code calling
6011 deprecated_grub_regcache_for_registers.
6012
6013 * values.c: Include "regcache.h".
6014 (value_being_returned): Update. Use
6015 deprecated_grub_regcache_for_registers to extract the register
6016 buffer address.
6017 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6018 ``struct regcache''.
6019 * Makefile.in (values.o): Add dependency on $(regcache_h).
6020
6021 * inferior.h (run_stack_dummy): Change type of second parameter to
6022 a ``struct regcache''.
6023 * valops.c (hand_function_call): Change type of retbuf to ``struct
6024 regcache''. Allocate using regcache_xmalloc, clean using
6025 make_cleanup_regcache_xfree.
6026 * infcmd.c (run_stack_dummy): Update. Use
6027 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6028
6029 * regcache.c (do_regcache_xfree): New function.
6030 (make_cleanup_regcache_xfree): New function.
6031 * regcache.h (make_cleanup_regcache_xfree): Declare.
6032
e64d9b3d
MH
60332002-07-03 Martin M. Hunt <hunt@redhat.com>
6034
4dd79c29
MH
6035 * event-top.c (command_line_handler): Don't read past
6036 beginning of buffer.
e64d9b3d 6037
4dd79c29
MH
60382002-07-03 Martin M. Hunt <hunt@redhat.com>
6039
e64d9b3d
MH
6040 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6041 struct frame_id.
6042 (varobj_create): Store frame_id for root.
6043 (varobj_gen_name): Use xasprintf.
6044 (varobj_update): Save and restore frame using get_frame_id() and
6045 frame_find_by_id().
6046 (create_child): Use xasprintf.
6047 (new_root_variable): Initialize frame_id.
6048 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6049 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6050 to prevent memory leak.
6051
26e6c56a
AC
60522002-07-03 Andrew Cagney <ac131313@redhat.com>
6053
6054 * valops.c (hand_function_call): Move declaration of retbuf to
6055 start of function, allocate using malloc, add a cleanup but before
6056 the inf_status cleanup, cleanup the buffer. Rename local variable
6057 old_chain to inf_status_cleanup.
6058
f436dd25
MH
60592002-07-03 Martin M. Hunt <hunt@redhat.com>
6060
6061 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6062
6063 * cli/cli-decode.c (cmd_func_p): New function.
6064 (cmd_func): New function.
6065
6066 * command.h: Add cmd_func() and cmd_func_p().
6067
4cfe2084
GS
60682002-07-03 Grace Sainsbury <graces@redhat.com>
6069
6070 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6071 (REGISTER_SIZE): Remove.
6072 (MAX_REGISTER_RAW_SIZE): Remove.
6073 (REGISTER_VIRTUAL_TYPE): Remove.
6074 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6075 (REGISTER_NAME): Remove.
6076 (USE_GENERIC_DUMMY_FRAMES): Remove.
6077 (CALL_DUMMY): Remove.
6078 (CALL_DUMMY_START_OFFSET): Remove.
6079 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6080 (CALL_DUMMY_LOCATION): Remove.
6081 (FIX_CALL_DUMMY): Remove.
6082 (CALL_DUMMY_ADDRESS): Remove.
6083 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6084 (SAVE_DUMMY_FRAME_TOS): Remove.
6085 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6086 (mcore_register_virtual_type): New function.
6087 (mcore_register_byte): New function.
6088 (mcore_register_size): New function.
6089 (mcore_register_name): New function.
6090 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6091 macros removed from tm-mcore.h.
6092 (mcore_dump_tdep): Add.
6093 (_initialize_mcore_tdep): Add gdbarch_register call.
6094
4fd667e9
MK
60952002-07-03 Mark Kettenis <kettenis@gnu.org>
6096
6097 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6098 frameless_look_for_prologue, such that we actually call this
6099 function.
6100
42f99ac2
JB
61012002-07-02 Joel Brobecker <brobecker@gnat.com>
6102
6103 * frame.h (frame_address_in_block): New function.
6104
6105 * blockframe.c (frame_address_in_block): New function extracted
6106 from get_frame_block().
6107 (get_frame_block): Use frame_address_in_block().
6108 (block_innermost_frame): Use frame_address_in_block() to match
6109 the frame pc address against the block boundaries rather than
6110 the frame pc directly. This prevents a failure when a frame pc
6111 is actually a return-address pointing immediately after the end
6112 of the given block.
6113
103a1597 61142002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6115
6116 * MAINTAINERS: Add self under write after approval.
6117
61182002-07-02 Grace Sainsbury <graces@redhat.com>
6119
103a1597
GS
6120 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6121 used in architecture vector. The default is
6122 m68k_local_breakpoint_from_pc.
6123 (m68k_local_breakpoint_from_pc): Add.
6124 (enum): Add register numbers from tm-m68k.h.
6125 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6126 vector.
6127 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6128 GDB_MULTI_ARCH_PARTIAL.
6129 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6130 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6131 m68k-tdep.c.
6132 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6133 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6134 to enum in m68k-tdep.c
6135
7a5a0534
JB
61362002-07-02 Joel Brobecker <brobecker@gnat.com>
6137
6138 * solib-osf.c (open_map): Compute the list of shared libraries
6139 loaded by the inferior, rather than the list of libraries loaded
6140 by GDB itself. Otherwise, GDB ends up reading the symbols from
6141 the wrong shared libraries...
6142
6f558d74
MK
61432002-07-02 Mark Kettenis <kettenis@gnu.org>
6144
b7d15bf7
MK
6145 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6146 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6147 macros.
6148 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6149 Remove functions.
6150 (FRAMELESS_SIGNAL): Remove function.
6151 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6152 i386_linux_saved_pc_after_call): Removed.
6153 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6154 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6155 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6156
6bff26de
MK
6157 * i386-tdep.c (i386_frameless_signal_p): New function.
6158 (i386_frame_chain): Deal with frameless signals.
6159 (i386_sigtramp_saved_sp): New function.
6160 (i386_frame_saved_pc): Deal with frameless signals.
6161 (i386_saved_pc_after_call): Make sure the correct value is
6162 returned just after entry into a sigtramp.
6163 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6164 i386fbsd4_sc_sp_offset): New variables.
6165 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6166 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6167 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6168 similiar to what we already did for sc_pc_offset.
6169 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6170 tdep->sc_sp_offset.
6171
6f558d74
MK
6172 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6173
145564b7
ML
61742002-07-02 Michal Ludvig <mludvig@suse.cz>
6175
6176 * config/i386/tm-x86-64linux.h: New.
6177 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6178 definitions.
6179 * config/i386/nm-x86-64.h: Rename to ...
6180 * config/i386/nm-x86-64linux.h: ... this one.
6181 * config/i386/x86-64linux.mh: Reflect the above change.
6182
3a1e71e3
MK
61832002-07-01 Mark Kettenis <kettenis@gnu.org>
6184
21d0e8a4
MK
6185 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6186 with sigcontext_addr. Add sc_sp_offset.
6187 (i386bsd_sigtramp_saved_pc): Remove prototype.
6188 (i386bsd_sicontext_addr): Add prototype.
6189 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6190 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6191 (i386_svr4_sigtramp_saved_pc): Removed.
6192 (i386_svr4_sigcontext_addr): New function.
6193 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6194 Initialize tdep->sigcontext_addr instead. Initialize
6195 tdep->sc_pc_offset and tdep->sc_sp_offset.
6196 (i386_gdbarch_init): Likewise.
6197 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6198 any more.
6199 (i386bsd_sigtramp_saved_pc): Remove function.
6200 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6201 Initialize tdep->sigcontext_addr instead. Initialize
6202 tdep->sc_pc_offset.
6203 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6204 of tdep->sigtramp_saved_pc.
6205 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6206 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6207 instead.
6208
3a1e71e3
MK
6209 * i386-tdep.c (i386_frameless_function_invocation,
6210 i386_frame_num_args, i386_frame_init_saved_regs,
6211 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6212 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6213 i386_extract_return_value, i386_store_return_value,
6214 i386_extract_struct_value_address, i386_register_virtual_type,
6215 i386_register_convertible, i386_register_convert_to_virtual,
6216 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6217 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6218 static.
6219
52e9098c
MK
62202002-07-01 Mark Kettenis <kettenis@gnu.org>
6221
77b13a25
MK
6222 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6223
52e9098c
MK
6224 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6225 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6226 this macro. Include "value.h".
6227
1b372fff
AS
62282002-06-30 Aidan Skinner <aidan@velvet.net>
6229
6230 * ada-exp.tab.c: remove as it's a generated file
6231 * ada-lex.c: remove as it's a generated file
6232
9c5045b5
MK
62332002-06-30 Mark Kettenis <kettenis@gnu.org>
6234
4a93c5bb
MK
6235 * config/i386/tm-i386.h (struct frame_info, struct
6236 frame_saved_regs, struct value, struct type): Remove forward
6237 declarations.
6238
322d4fe0
MK
6239 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6240 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6241 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6242 (FILL_FPXREGSET): Define.
6243
fdd8263d
MK
6244 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6245
482e577b
MK
6246 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6247 i[3456]86-*-netbsd* case.
6248 * config/i386/tm-obsd.h: Removed.
6249 * config/i386/obsd.mt: Removed.
6250 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6251 core-aout.o.
6252 (MH_CFLAGS): Add -DYYDEBUG=0.
6253
6916549a
MK
6254 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6255 i386nbsd_sc_pc_offset on OpenBSD too.
6256
9c5045b5
MK
6257 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6258 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6259 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6260 define.
6261 * i386bsd-tdep.c: Include "arch-utils.h".
6262 (i386bsd_aout_in_solib_call_trampoline): New function.
6263 (i386bsd_init_abi): Set in_solib_call_trampoline to
6264 i386bsd_aout_in_solib_call_trampoline.
6265 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6266 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6267
aa84d1bb
AC
62682002-06-28 Andrew Cagney <ac131313@redhat.com>
6269
6270 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6271 (struct obstack, struct bcache): Add opaque declarations.
6272 * Makefile.in (macrotab_h): Update
6273
b4d83933
AC
62742002-06-28 Andrew Cagney <ac131313@redhat.com>
6275
6276 * blockframe.c (generic_find_dummy_frame): Change return type to
6277 ``struct regcache''.
6278 (struct dummy_frame): Replace field ``registers'' with regcache, a
6279 struct regcache object.
6280 (generic_find_dummy_frame): Update.
6281 (generic_push_dummy_frame): Update. Use regcache_xfree,
6282 regcache_xmalloc and regcache_cpy.
6283 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6284 regcache_xfree.
6285 (deprecated_generic_find_dummy_frame): Update.
6286 (generic_read_register_dummy): Update. Use
6287 regcache_read_as_address.
6288 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6289 (generic_get_saved_register): Update. Use regcache_read.
6290
08c0b5bc
AC
62912002-06-28 Andrew Cagney <ac131313@redhat.com>
6292
6293 * Makefile.in (objfiles_h): Add $(bcache_h).
6294 * objfiles.h: Include "bcache.h".
6295
6296 * Makefile.in (symtab_h): Remove $(bcache_h).
6297 * symtab.h: Do not include "bcache.h".
6298
1f89801a
AC
62992002-06-28 Andrew Cagney <ac131313@redhat.com>
6300
6301 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6302 generic_func_frame_chain_valid.
6303
b9644b58
DB
63042002-06-28 David O'Brien <obrien@FreeBSD.org>
6305
6306 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6307 * config/i386/tm-fbsd.h: Likewise.
6308
dd486634
AC
63092002-06-28 Andrew Cagney <ac131313@redhat.com>
6310
6311 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6312 generic_unwind_get_saved_register.
6313
0b434a00
AC
63142002-06-27 Andrew Cagney <ac131313@redhat.com>
6315
6316 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6317 * regcache.c (supply_register): Add missing argument to
6318 register_buffer call.
6319
f30e5a77
AC
63202002-06-27 Andrew Cagney <ac131313@redhat.com>
6321
6322 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6323 Solaris /bin/grep does not not like it. From Peter Schauer.
6324
9f064c95
TT
63252002-06-26 Tom Tromey <tromey@redhat.com>
6326
6327 * command.h (add_setshow_cmd): Declare.
6328 (add_setshow_cmd_full): Declare.
6329 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6330 returns void. Use add_setshow_cmd_full.
6331 (add_setshow_cmd_full): New function.
6332 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6333 (add_setshow_boolean_cmd): Likewise.
6334
099c7589
JT
63352002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6336
6337 * config/vax/tm-vax.h: Protect from multiple inclusion.
6338 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6339 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6340 * config/vax/tm-vaxbsd.h: ...here. New file.
6341 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6342
1d049c5e
JT
63432002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6344
6345 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6346 (BELIEVE_PCC_PROMOTION): Remove.
6347 (AP_REGNUM): Move to...
6348 * config/vax/nm-vax.h: ...here.
6349 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6350 (vax_breakpoint_from_pc): New function.
6351 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6352 and gdbarch_believe_pcc_promotion.
6353
4791e091
JT
63542002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6355
6356 * Makefile.in (vax_tdep_h): Define.
6357 (vax-tdep.o): Use $(vax_tdep_h).
6358 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6359 (vax_dump_tdep): New function.
6360 (_initialize_vax_tdep): Register vax_dump_tdep.
6361 * vax-tdep.h: Include osabi.h.
6362 (struct gdbarch_tdep): New.
6363
da130f98
AC
63642002-06-26 Andrew Cagney <cagney@redhat.com>
6365
6366 * frame.h (deprecated_generic_find_dummy_frame): Rename
6367 generic_find_dummy_frame.
6368 * blockframe.c (generic_find_dummy_frame): Make static.
6369 (deprecated_generic_find_dummy_frame): New function.
6370 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6371 generic_find_dummy_frame with deprecated_find_dummy_frame.
6372 (sh64_nofp_frame_init_saved_regs): Ditto.
6373 (sh_fp_frame_init_saved_regs): Ditto.
6374 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6375 (s390_frame_chain): Ditto.
6376 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6377
6300c360
GS
63782002-06-26 Grace Sainsbury <graces@redhat.com>
6379
6380 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6381 gdbarch vector are at the top.
6382 (NUM_REGS): Remove.
6383 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6384 (FRAME_ARGS_ADDRESS): Remove.
6385 (FRAME_LOCALS_ADDRESS): Remove.
6386 (FRAME_NUM_ARGS): Remove.
6387 (FRAME_ARGS_SKIP): Remove.
6388 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6389 (m68k_gdbarch_init): Add gdbarch initializations for macros
6390 undefined in tm-m68k.h
6391
1c617db8
GS
63922002-06-26 Grace Sainsbury <graces@redhat.com>
6393
6394 * monitor.h: Add the function regname to monitor_ops
6395 structure. This way NUM_REGS does not have to be a constant.
6396 * monitor.c (monitor_fetch_register): Added support for regname
6397 function. The function is called if the array regnames is NULL.
6398 (monitor_store_register): Same.
da130f98
AC
6399 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6400 regnames array.
1c617db8
GS
6401 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6402 cpu32bug_cmds.regname to point to new function.
6403 * abug-rom.c (abug_regname): Same as above.
6404 (init_abug_cmds): Same.
6405 * dbug-rom.c (dbug_regname): Same as above.
6406 (init_dbug_cmds): Same.
6407 * remote-est.c (est_regname): Same.
6408 (init_est_cmds): Same.
6409 * rom68k-rom.c (rom68k_regname): Same.
6410 (init_rom68k_cmds): Same.
6411
ea9365bb
TT
64122002-06-25 Tom Tromey <tromey@redhat.com>
6413
6414 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6415
72cec141
AC
64162002-06-25 Andrew Cagney <cagney@redhat.com>
6417
6418 * infrun.c (stop_registers): Change variable's type to ``struct
6419 regcache'''.
6420 (xmalloc_inferior_status): Delete function.
6421 (free_inferior_status): Delete function.
6422 (normal_stop): Use regcache_cpy.
6423 (struct inferior_status): Change type of fields ``stop_registers''
6424 and ``registers'' to ``struct regcache''.
6425 (write_inferior_status_register): Use regcache_write.
6426 (save_inferior_status): Instead of calling
6427 xmalloc_inferior_status, allocate the inf_status buffer directly.
6428 Use regcache_dup_no_passthrough and regcache_dup to save the
6429 buffers.
6430 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6431 Replace the stop_registers regcache instead of overriding it. Use
6432 regcache_xfree. Instead of calling free_inferior_status, xfree
6433 the buffer directly.
6434 (discard_inferior_status): Use regcache_xfree. Instead of calling
6435 free_inferior_status, xfree the buffer directly.
6436 (build_infrun): Use regcache_xmalloc.
6437 (_initialize_infrun): Delete redundant call to build_infrun.
6438
6439 * Makefile.in (infcmd.o): Add $(regcache_h).
6440
6441 * infcmd.c: Include "regcache.h".
6442 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6443 obtain the address of `stop_registers' register buffer.
6444 (print_return_value): Ditto.
6445
6446 * inferior.h (struct regcache): Add opaque declaration.
6447 (stop_registers): Change variable's declared type to ``struct
6448 regcache''.
6449
defc6f8c
TT
64502002-06-24 Tom Tromey <tromey@redhat.com>
6451
c0e624e7
TT
6452 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6453 * target.c (initialize_targets): Fixed typo in
6454 trust-readonly-sections `show' documentation.
6455
defc6f8c
TT
6456 * main.c: Marked all strings with _().
6457
2b236d82
DH
64582002-06-24 Don Howard <dhoward@redhat.com>
6459
6460 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6461 that means max CORE_ADDR+1.
6462 (lookup_mem_region): Ditto.
6463 (mem_info_command): Ditto.
6464
942dc0e9
GS
64652002-06-24 Grace Sainsbury <graces@redhat.com>
6466
6467 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6468 (REGISTER_BYTES_OK): Remove.
6469 (REGISTER_BYTES): Remove.
6470 (STORE_STRUCT_RETURN): Remove.
6471 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6472 (STORE_RETURN_VALUE): Remove.
6473 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6474 (FRAME_CHAIN): Remove.
6475 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6476 (FRAME_SAVED_PC): Remove.
6477 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6478 (m68k_store_struct_return): Add.
6479 (m68k_deprecated_extract_return_value): Add.
6480 (m68k_deprecated_extract_struct_value_address): Add.
6481 (m68k_store_return_value): Add.
6482 (m68k_frame_chain): Add.
6483 (m68k_frameless_function_invocation): Add.
6484 (m68k_frame_saved_pc): Add.
6485 (m68k_gdbarch_init): added set_gdbarch calls for new
6486 functions and deleted macros.
6487
03c30d4d
TT
64882002-06-23 Tom Tromey <tromey@redhat.com>
6489
6490 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6491 (ALLDEPFILES): Likewise.
6492 (udiheaders): Removed.
6493 (udip2soc.o): Likewise.
6494 (udi2go32.o): Likewise.
6495 (udr.o): Likewise.
6496 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6497
37e71372
AC
64982002-06-22 Andrew Cagney <ac131313@redhat.com>
6499
06a6ac57
AC
6500 * infrun.c (_initialize_infrun): Delete unnecessary call to
6501 build_infrun.
6502
37e71372
AC
6503 * regcache.h: Update comments describing the regcache_cpy family
6504 of functions.
6505 (regcache_save, regcache_restore): Delete declaration.
6506 (regcache_save_no_passthrough): Delete declaration.
6507 (regcache_restore_no_passthrough): Delete declaration.
6508 * regcache.c (regcache_save): Delete function.
6509 (regcache_save_no_passthrough): Delete function.
6510 (regcache_restore): Delete function.
6511 (regcache_restore_no_passthrough): Delete function.
6512
78f6d055
AC
65132002-06-21 Andrew Cagney <ac131313@redhat.com>
6514
6515 * config/m68k/tm-m68k.h: Fix typo.
6516 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6517 (m68k_frame_init_saved_regs): Declare.
6518
78b119cb
JB
65192002-06-21 Jim Blandy <jimb@redhat.com>
6520
6521 Remove some vestiges of Harris 88k support.
6522 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6523 register numbering quirk.
6524 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6525 odd symbols occurring in Harris 88k ELF targets.
6526
0fbb3da7
TT
65272002-06-21 Tom Tromey <tromey@redhat.com>
6528
6529 * gdb_locale.h: New file.
6530 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6531 (defs_h): Added gdb_locale.h.
6532 * configure, config.in: Rebuilt.
6533 * configure.in (PACKAGE): Define.
6534 * defs.h: Include gdb_locale.h.
6535 * main.c (captured_main): Call setlocale, bindtextdomain,
6536 textdomain.
6537
456f8b9d
DB
65382002-06-21 Dave Brolley <brolley@redhat.com>
6539
6540 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6541 * config/frv/frv.mt: New file.
6542 * config/frv/tm-frv.h: New file.
6543 * configure.tgt: Support frv-*-*.
6544 * Makefile.in (frv-tdep.o): New target.
6545 * frv-tdep.c: New file.
6546 * NEWS: Mention frv.
6547
cdd463f9
DB
65482002-06-21 Dave Brolley <brolley@redhat.com>
6549
6550 * MAINTAINERS: Add self to "Write After Approval" list.
6551
5d3ed2e3
GS
65522002-06-21 Grace Sainsbury <graces@redhat.com>
6553
6554 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6555 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6556 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6557 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6558 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6559
6560 * m68k-tdep.c: Include arch-utils.h
6561 (m68k_register_raw_size): Add.
6562 (m68k_register_virtual_size): Add.
6563 (m68k_register_virtual_type): Add.
6564 (m68k_register_name): Add.
6565 (m68k_stack_align): Add.
6566 (m68k_register_byte): Add.
6567 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6568 tm-m68k.h.
6569
7f8e7424
GS
65702002-06-21 Grace Sainsbury <graces@redhat.com>
6571
a2c6a6d5 6572 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6573 m68k_find_saved_regs.
6574 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6575 references to it with frame->saved_regs.
7f8e7424
GS
6576 (m68k_gdbarch_init): Added function calls to initialize the
6577 gdbarch structure.
a2c6a6d5
GS
6578 (m68k_fix_call_dummy): Add.
6579 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6580 (CALL_DUMMY): Remove.
6581 (CALL_DUMMY_LENGTH): Remove.
6582 (CALL_DUMMY_START_OFFSET): Remove.
6583 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6584 (FIX_CALL_DUMMY): Remove.
6585 (PUSH_DUMMY_FRAME): Remove.
6586 (POP_FRAME): Remove.
7f8e7424 6587
f461f5cf
PM
65882002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6589
6590 * parse.c (parse_fprintf): New function used to avoid calls to
6591 fprintf in bison parser generated debug code.
6592 * parser-defs.h: Declaration of new parse_fprintf function.
6593 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6594 Set YYDEBUG to 1 by default.
6595 Set YYFPRINTF as parse_fprintf.
6596
7f0c12ed
ML
65972002-06-21 Michal Ludvig <mludvig@suse.cz>
6598
6599 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6600 encoding anymore.
6601 (pointer_encoding, enum ptr_encoding): New.
6602 (execute_cfa_program): Take care about pointer encoding.
6603 (dwarf2_build_frame_info): Only call parse_frame_info for
6604 .debug_frame and .eh_frame.
6605 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6606 fixed augmentation handling, added relative addressing,
6607 ignore duplicate FDEs. Added comments.
19d833a2 6608 * dwarf2cfi.c: Reindented.
7f0c12ed 6609
87c4a039
EZ
66102002-06-20 Elena Zannoni <ezannoni@redhat.com>
6611
6612 * event-top.c (command_handler): Don't use space_at_cmd_start
6613 unless there is sbrk() on the host. Assign time and space data
6614 to union fields of the appropriate length.
6615
1cf877ad
ML
66162002-06-20 Michal Ludvig <mludvig@suse.cz>
6617
6618 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6619 x86_64_register_name. Return type changed to 'const char *'.
6620 (x86_64_register_name2nr): Rename to x86_64_register_number.
6621 (x86_64_gdbarch_init): Update to reflect the change.
6622 * x86-64-tdep.h: Ditto.
6623 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6624 (supply_fpregset): Ditto.
6625
3fadccb3
AC
66262002-06-19 Andrew Cagney <cagney@redhat.com>
6627
6628 * regcache.h: Update copyright.
6629 (struct regcache, struct gdbarch): Add opaque declarations.
6630 (current_regcache): Declare global variable.
6631 (regcache_read, regcache_write): Add gdbarch parameter.
6632 (regcache_save, regcache_save_no_passthrough)
6633 (regcache_restore, regcache_restore_no_passthrough)
6634 (regcache_dup, regcache_dup_no_passthrough)
6635 (regcache_cpy, regcache_cpy_no_passthrough)
6636 (deprecated_grub_regcache_for_registers)
6637 (deprecated_grub_regcache_for_register_valid)
6638 (regcache_valid_p): Add function declarations.
6639
6640 * regcache.c: Update copyright.
6641 (regcache_descr_handle): New global variable.
6642 (struct regcache_descr): Define.
6643 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6644 (regcache_descr, xfree_regcache_descr): New functions.
6645 (struct regcache): Define.
6646 (regcache_xmalloc, regcache_xfree): New functions.
6647 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6648 (regcache_dup, regcache_dup_no_passthrough): New functions.
6649 (regcache_valid_p, regcache_read_as_address): New functions.
6650 (deprecated_grub_regcache_for_registers): New function.
6651 (deprecated_grub_regcache_for_register_valid): New function.
6652 (current_regcache): New global variable.
6653 (register_buffer): Add regcache parameter. Update calls.
6654 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6655 (read_register_gen, write_register_gen): Update register_buffer
6656 call. Test for legacy_p instead of gdbarch_register_read_p or
6657 gdbarch_register_write_p.
6658 (regcache_collect): Update register_buffer call.
6659 (build_regcache): Rewrite. Use deprecated grub functions.
6660 (regcache_save, regcache_save_no_passthrough): New functions.
6661 (regcache_restore, regcache_restore_no_passthrough): New
6662 functions.
6663 (_initialize_regcache): Create the regcache_data_handle. Swap
6664 current_regcache global variable.
6665
6666 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6667 parameter to regcache_read and regcache_write calls.
6668 (sh4_register_read): Ditto.
6669 (sh64_pseudo_register_read): Ditto.
6670 (sh64_register_read): Ditto.
6671 (sh_pseudo_register_write): Ditto.
6672 (sh4_register_write): Ditto.
6673 (sh64_pseudo_register_write): Ditto.
6674 (sh64_register_write): Ditto.
6675
6676 * defs.h (XCALLOC): Define.
6677
152d9db6
GS
66782002-06-19 Grace Sainsbury <graces@redhat.com>
6679
6680 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6681 * m68k-tdep.c (m68k_gdbarch_init): Added.
6682 (m68k_dump_tdep): Added.
6683
170911c7
DJ
66842002-06-19 Daniel Jacobowitz <drow@mvista.com>
6685
6686 * ada-lang.c (fill_in_ada_prototype): Update comment.
6687
2e4ebe70
DJ
66882002-06-19 Daniel Jacobowitz <drow@mvista.com>
6689
6690 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6691 MIPS_ABI_LAST.
6692 (mips_abi_string, mips_abi_strings): New.
6693 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6694 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6695 tdep->mips_abi_string. Honor mips_abi_string. Default to
6696 O32 if no ABI is found.
6697 (mips_dump_tdep): Use mips_abi_strings.
6698 (mips_abi_update): New function.
6699 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6700 ``set mips abi'' and ``show mips abi''. Check the size of
6701 mips_abi_strings.
6702
16775908
AC
67032002-06-19 Andrew Cagney <cagney@redhat.com>
6704
6705 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6706 constant.
6707
5051bfa4 67082002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6709
5051bfa4
JB
6710 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6711 current frame using only the first stack size adjustment. All
6712 subsequent size adjustments are not considered to be part of
6713 the "static" part of the current frame.
6714 Compute the address of the saved registers relative to the
6715 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6716 in use in this frame.
6717
56468235
DH
67182002-06-18 Don Howard <dhoward@redhat.com>
6719
6720 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6721 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6722 suggesting this solution.
6723
0b624158
AC
67242002-06-18 Andrew Cagney <ac131313@redhat.com>
6725
6726 * config/romp/xm-rtbsd.h: Delete file.
6727 * config/romp/rtbsd.mh: Delete file.
6728
221ea385
KS
67292002-06-18 Keith Seitz <keiths@redhat.com>
6730
6731 * breakpoint.c (condition_command): Post breakpoint_modify
6732 when a condition is added to an existing breakpoint.
6733 (commands_command): Likewise for commands.
6734 (set_ignore_count): Likewise for ignore counts.
6735 If no tty, do not simply return, still need to send event
6736 notification.
6737 (ignore_command): Only print a newline if the command came
6738 from a tty.
6739 Don't call breakpoints_changed, since this is now properly
6740 handled by set_ignore_count.
6741
5402eed1
AC
67422002-06-18 Andrew Cagney <cagney@redhat.com>
6743
6744 * MAINTAINERS: Note that cris-elf target can be compiled with
6745 -Werror.
6746 * cris-tdep.c (cris_register_name): Make return type constant.
6747 (cris_breakpoint_from_pc): Ditto.
6748
cc22880b
ML
67492002-06-18 Michal Ludvig <mludvig@suse.cz>
6750
6751 * frame.h (struct frame_info): Change type of context to
6752 'struct context'.
6753
fa88f677
AC
67542002-06-17 Andrew Cagney <cagney@redhat.com>
6755
6756 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6757 pointer.
6758 * gdbarch.h, gdbarch.c: Regenerate.
6759 * config/mips/tm-mips.h (mips_register_name): Update.
6760 * i386-tdep.h (i386_register_name): Update.
6761 * mips-tdep.c (mips_register_name): Update
6762 * alpha-tdep.c (alpha_register_name): Update.
6763 * arch-utils.c (legacy_register_name): Update.
6764 * arch-utils.h (legacy_register_name): Update.
6765 * avr-tdep.c (avr_register_name): Update.
6766 * ia64-tdep.c (ia64_register_name): Update.
6767 * i386-tdep.c (i386_register_name): Update.
6768 * sparc-tdep.c (sparc32_register_name): Update.
6769 (sparc64_register_name): Update.
6770 (sparclite_register_name): Update.
6771 (sparclet_register_name): Update.
6772 * sh-tdep.c (sh_generic_register_name): Update.
6773 (sh_sh_register_name): Update.
6774 (sh_sh3_register_name): Update.
6775 (sh_sh3e_register_name): Update.
6776 (sh_sh_dsp_register_name): Update.
6777 (sh_sh3_dsp_register_name): Update.
6778 (sh_sh4_register_name): Update.
6779 (sh_sh64_register_name): Update.
6780 * s390-tdep.c (s390_register_name): Update.
6781 * rs6000-tdep.c (rs6000_register_name): Update.
6782 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6783 (ns32k_register_name_32382): Update.
6784 * d10v-tdep.c (d10v_ts2_register_name): Update.
6785 (d10v_ts3_register_name): Update.
6786 * xstormy16-tdep.c (xstormy16_register_name): Update.
6787 * vax-tdep.c (vax_register_name): Update.
6788 * v850-tdep.c (v850_register_name): Update.
6789 * m68hc11-tdep.c (m68hc11_register_name): Update.
6790 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6791 (am33_register_name): Update.
6792
ea1e7ef6
GS
67932002-06-17 Grace Sainsbury <graces@redhat.com>
6794
6795 * m68k-tdep.c: Reindented.
6796
9b02dd1b
AC
67972002-06-17 Andrew Cagney <ac131313@redhat.com>
6798
6799 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6800 list of predefined types.
6801
8758dec1
MK
68022002-06-16 Mark Kettenis <kettenis@gnu.org>
6803
b6197528
MK
6804 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6805 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6806 REGISTER_CONVERT_TO_RAW): Remove defines.
6807 (i386_register_virtual_type, i386_register_convertible,
6808 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6809 Remove prototypes.
6810 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6811 macros mentioned above.
6812
82b47e62
MK
6813 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6814 (i386lynx_saved_pc_after_call): Remove prototype.
6815 * i386ly-tdep.c: Include "i386-tdep.h".
6816 (i386lynx_saved_pc_after_call): Make static. Use
6817 read_memory_nobpt instead of read_memory. Use
6818 read_memory_unsigned_integer instead of read_memory_integer.
6819 (i386lynx_init_abi): New function.
6820 (i386lynx_coff_osabi_sniffer): New function.
6821 (_initialize_i386bsd_tdep): New function.
6822
8758dec1
MK
6823 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6824 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6825 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6826 (i386_fix_call_dummy): Remove prototype.
6827 * i386-tdep.c (i386_call_dummy_words): New variable.
6828 (i386_gdbarch_init): Adjust for removal of the
6829 macros mentioned above.
6830
e9e68a56
AC
68312002-06-15 Andrew Cagney <ac131313@redhat.com>
6832
6833 * command.h (add_setshow_auto_boolean_cmd): Replace
6834 add_set_auto_boolean_cmd.
6835 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6836 add_set_auto_boolean_cmd.
6837 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6838 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6839 mask-address'' command.
6840 (show_mask_address): Add cmd parameter.
6841 * remote.c (add_packet_config_cmd): Update. Change type of
6842 set_func and show_func to cmd_sfunc_ftype.
6843 (_initialize_remote): Update `set remote Z-packet'
6844 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6845 (show_remote_protocol_e_packet_cmd): Ditto.
6846 (show_remote_protocol_E_packet_cmd): Ditto.
6847 (show_remote_protocol_P_packet_cmd): Ditto.
6848 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6849 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6850 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6851 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6852 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6853 (show_remote_protocol_Z_packet_cmd): Ditto.
6854 (show_remote_protocol_binary_download_cmd): Ditto.
6855 (show_remote_cmd): Pass NULL to all of above.
6856
fc08ec52
MK
68572002-06-15 Mark Kettenis <kettenis@gnu.org>
6858
6859 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6860 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6861 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6862 POP_FRAME): Remove defines.
6863 (i386_push_arguments, i386_store_struct_return,
6864 i386_extract_return_value, i386_store_return_value,
6865 i386_extract_struct_value_address, i386_push_dummy_frame,
6866 i386_pop_frame): Renove prototypes.
6867 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6868 macros mentioned above.
6869
e707bbc2
AC
68702002-06-15 Andrew Cagney <ac131313@redhat.com>
6871
6872 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6873 add_set_boolean_cmd.
6874 (add_setshow_cmd): New function.
6875 * command.h (add_setshow_boolean_cmd): Replace
6876 add_set_boolean_cmd.
6877 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6878 and ``set rdiromatzero''.
6879 * maint.c (_initialize_maint_cmds): Update commented out code.
6880 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6881 * target.c (initialize_targets): Update `set
6882 trust-readonly-sections'.
6883 * remote.c (_initialize_remote): Update `set remotebreak'.
6884
42fdc8df
MK
68852002-06-15 Mark Kettenis <kettenis@gnu.org>
6886
93924b6b
MK
6887 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6888 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6889 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6890 fit into multi-arch framework.
6891 (i386_breakpoint_from_pc): New function.
6892 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6893 above.
6894
42fdc8df
MK
6895 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6896 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6897 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6898 (i386_frameless_function_invocation, i386_frame_num_args,
6899 i386_frame_init_saved_regs): Remove prototypes.
6900 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6901 macros mentioned above.
6902
9773a94b
AC
69032002-06-15 Andrew Cagney <ac131313@redhat.com>
6904
6905 * cli/cli-decode.c (set_cmd_cfunc): Update.
6906 (set_cmd_sfunc): Update.
6907 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6908 (set_cmd_sfunc, set_cmd_cfunc): Update.
6909 * cli/cli-decode.h: Update.
6910
6e157172
MK
69112002-06-15 Mark Kettenis <kettenis@gnu.org>
6912
6913 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6914 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6915
7f19b9a2
AC
69162002-06-15 Andrew Cagney <ac131313@redhat.com>
6917
6918 * defs.h (auto_boolean): Declare enum.
6919 * command.h (cmd_auto_boolean): Delete enum.
6920 * mips-tdep.c (mask_address_var): Update.
6921 (mips_mask_address_p): Update.
6922 (show_mask_address): Update.
6923 * remote.c (struct packet_config): Update.
6924 (update_packet_config): Update.
6925 (show_packet_config_cmd): Update.
6926 (packet_ok): Update.
6927 (add_packet_config_cmd): Update.
6928 (_initialize_remote):
6929 * command.h: Update.
6930 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6931 (do_setshow_command): Update.
6932 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6933 * cli/cli-decode.h: Update.
6934
1cf88de5
MK
69352002-06-15 Mark Kettenis <kettenis@gnu.org>
6936
22ba8cf2
MK
6937 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6938 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6939 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6940 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6941 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6942 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6943
762c5349
MK
6944 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6945 list of DJGPP COFF targets.
6946
091198bb
MK
6947 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6948 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6949 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6950 (FP0_REGNUM): Remove define.
6951 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6952 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6953 (i386_register_virtual_size): Remove protoype.
6954 * i386-tdep.c (i386_register_virtual_size): Removed.
6955 (i386_extract_return_value, i386_store_return_value): Use
6956 FP0_REGNUM instead of NUM_FREGS to determine whether the
6957 floating-point registers are available.
6958 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6959 Adjust for removal of macros mentioned above.
6960
69612002-06-15 Mark Kettenis <kettenis@gnu.org>
6962
fcc9bf01
MK
6963 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6964 comments.
6965 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6966 Remove prototypes.
6967 (supply_gregset, fill_gregset): Remove use of register keyword and
6968 remove declaration for regmap. Use I386_NUM_GREGS instead of
6969 NUM_REGS and NUM_FREGS.
6970 (FPREGSET_FSAVE_OFFSET): Remove.
6971 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6972 NUM_FREGS to determine whether the floating-point registers are
6973 available.
6974
65e78234
MK
6975 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6976 gnu_store_registers): Replace usage of NUM_GREGS with
6977 I386_NUM_GREGS.
6978
98df6387
MK
6979 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6980 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6981 usage of NUM_GREGS with I386_NUM_GREGS.
6982
099a9414
MK
6983 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6984
57976e88
MK
6985 * i386bsd-nat.c: Include "i386-tdep.h".
6986 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6987 I386_NUM_GREGS.
6988
b335f4a6
MK
6989 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6990 and associated comment. They no longer make any sense, since we
6991 don't use this file anymore on Linux.
6992
1cf88de5
MK
6993 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6994 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6995 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6996 elements in these arrays.
6997 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6998 MAX_NUM_REGS.
6999
daa66587
MK
70002002-06-15 Mark Kettenis <kettenis@gnu.org>
7001
7002 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7003 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7004
26e9b323
AC
70052002-06-14 Andrew Cagney <cagney@redhat.com>
7006
7007 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7008 EXTRACT_RETURN_VALUE.
7009 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7010 EXTRACT_STRUCT_VALUE_ADDRESS.
7011 * gdbarch.h, gdbarch.c: Regenerate.
7012
7013 * values.c (value_being_returned): Handle
7014 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7015 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7016
7017 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7018 * arm-tdep.c (arm_gdbarch_init): Update.
7019 * avr-tdep.c (avr_gdbarch_init): Update.
7020 * cris-tdep.c (cris_gdbarch_init): Update.
7021 * d10v-tdep.c (d10v_gdbarch_init): Update.
7022 * ia64-tdep.c (ia64_gdbarch_init): Update.
7023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7024 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7025 * s390-tdep.c (s390_gdbarch_init): Update.
7026 * sh-tdep.c (sh_gdbarch_init): Update.
7027 * s390-tdep.c (s390_gdbarch_init): Update.
7028 * sparc-tdep.c (sparc_gdbarch_init): Update.
7029 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7030 * v850-tdep.c (v850_gdbarch_init): Update.
7031 * vax-tdep.c (vax_gdbarch_init): Update.
7032 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7033 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7034
7035 * config/arc/tm-arc.h: Update.
7036 * config/d30v/tm-d30v.h: Update.
7037 * config/fr30/tm-fr30.h: Update.
7038 * config/h8300/tm-h8300.h: Update.
7039 * config/h8500/tm-h8500.h: Update.
7040 * config/i386/tm-i386.h: Update.
7041 * config/i386/tm-ptx.h: Update.
7042 * config/i386/tm-symmetry.h: Update.
7043 * config/i960/tm-i960.h: Update.
7044 * config/m32r/tm-m32r.h: Update.
7045 * config/m68k/tm-delta68.h: Update.
7046 * config/m68k/tm-linux.h: Update.
7047 * config/m68k/tm-m68k.h: Update.
7048 * config/m88k/tm-m88k.h: Update.
7049 * config/mcore/tm-mcore.h: Update.
7050 * config/mips/tm-mips.h: Update.
7051 * config/mn10200/tm-mn10200.h: Update.
7052 * config/pa/tm-hppa.h: Update.
7053 * config/pa/tm-hppa64.h: Update.
7054 * config/sparc/tm-sp64.h: Update.
7055 * config/sparc/tm-sparc.h: Update.
7056 * config/sparc/tm-sparclet.h: Update.
7057 * config/z8k/tm-z8k.h: Update.
7058
5179e78f
AC
70592002-06-14 Andrew Cagney <cagney@redhat.com>
7060
7061 * Makefile.in (i386_linux_tdep_h): Define.
7062 (i386_tdep_h, i387_tdep_h): Define.
7063 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7064 $(i386_tdep_h) and $(i387_tdep_h).
7065 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7066
8201327c
MK
70672002-06-14 Mark Kettenis <kettenis@gnu.org>
7068
edf393ac
MK
7069 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7070 Already covered by the default.
7071
896fb97d
MK
7072 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7073 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7074 (i386_gdbarch_init): Initialize long_double_format and long_double
7075 bit.
7076
8201327c
MK
7077 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7078 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7079 Move these to ...
7080 * config/i386/i386sol2.mh: ... here.
7081 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7082 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7083 (SIGCONTEXT_PC_OFFSET): Remove define.
7084 (IN_SIGTRAMP): Remove define.
7085 * i386-sol2-tdep.c: New file.
7086
7087 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7088 * config/i386/tm-i386nw.h: Removed.
7089
7090 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7091 USE_STRUCT_CONVENTION): Remove defines.
7092 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7093 (get_longjmp_target): Remove prototype.
7094 (IN_SIGTRAMP): Remove define.
7095 (i386bsd_in_sigtramp): Remove prototype.
7096 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7097 function. Update comment accordingly
7098 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7099 (FRAME_SAVED_PC): Remove define.
7100 (i386bsd_frame_saved_pc): Remove prototype.
7101 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7102 GET_LONGJMP_TARGET): Remove defines.
7103 (get_longjmp_target): Remove prototype.
7104 (IN_SIGTRAMP): Remove define.
7105 (i386bsd_in_sigtramp): Remove prototype.
7106 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7107 function. Update comment accordingly
7108 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7109 (FRAME_SAVED_PC): Remove define.
7110 (i386bsd_frame_saved_pc): Remove prototype.
7111 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7112 Remove prototype.
7113 (USE_STRUCT_CONVENTION): Remove prototype.
7114 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7115 declaration.
7116 (_initialize_i386bsd_nat): Revise logic to determine some
7117 constants at compile time when compiling a native GDB. Warn if
7118 things don't match up with what we expect.
7119 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7120 Remove variables.
7121 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7122 to use date stored in `struct gdbarch_tdep'.
7123 (i386bsd_sigcontext_offset): Remove varaible.
7124 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7125 stored in `struct gdbarch_tdep'.
7126 (i386bsd_frame_saved_pc): Make static.
7127 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7128 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7129 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7130 i386fbsd4_sc_pc_offset): New variables.
7131 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7132 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7133 functions.
7134 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7135 functions.
7136 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7137 Modify the value of i386fbsd_sigtramp_start and
7138 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7139 i386fbsd_sigtramp_end.
7140 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7141 function.
7142
7143 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7144 define to i386-linux-tdep.h.
7145 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7146 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7147 defines.
7148 (i386_linux_register_name, i386_linux_register_byte,
7149 i386_linux_register_raw_size): Remove prototypes.
7150 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7151 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7152 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7153 TARGET_WRITE_PC): Remove defines.
7154 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7155 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7156 i386_linux_write_pc): Remove prototypes.
7157 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7158 (get_longjmp_target): Remove prototype.
7159 * i386-linux-tdep.h: New file.
7160 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7161 * i386-linux-tdep.c: Include "i386-tdep.h" and
7162 "i386-linux-tdep.h".
7163 (i386_linux_register_name, i386_linux_register_byte,
7164 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7165 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7166 Make static.
7167 (i386_linux_init_abi): New function.
7168 (_initialize_i386_linux_tdep): New function.
7169
7170 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7171 (i386_saved_pc_after_call): Remove prototype.
7172 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7173 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7174 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7175 (i386_register_name, i386_stab_reg_to_regnum,
7176 i386_dwarf_reg_to_regnum): Remove prototypes.
7177 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7178 SIZEOF_SSE_REGS): Remove defines.
7179 (REGISTER_BYTES): Remove define.
7180 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7181 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7182 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7183 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7184 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7185 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7186 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7187 (get_longjmp_target): Remove prototype.
7188 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7189 (sigtramp_saved_pc): Remove define.
7190 (i386v4_sigtramp_saved_pc): Remove prototype.
7191 * config/i386/tm-go32.h (FRAME_CHAIN,
7192 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7193 (i386go32_frame_saved_pc): Remove prototype.
7194 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7195 (get_longjmp_target): Remove prototype.
7196 * i386-tdep.h: Include "osabi.h".
7197 (enum i386_abi): Removed.
7198 (enum struct_return): New enum.
7199 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7200 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7201 sc_pc_offset members.
7202 (i386_gdbarch_register_os_abi): Remove prototype.
7203 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7204 I386_SSE_NUM_REGS): New defines.
7205 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7206 I386_SSE_SIZEOF_REGS): New defines.
7207 (i386_register_name, i386_register_byte, i386_register_raw_size):
7208 New prototypes.
7209 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7210 (i386bsd_sigtramp_saved_pc): New prototype.
7211 * i386-tdep.c: Don't include "elf-bfd.h".
7212 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7213 i386_frame_chain, i386_saved_pc_after_call): Make static.
7214 (i386_frame_saved_pc): Rewrite to call architecture dependent
7215 function to deal with signal handlers. Make static.
7216 (i386go32_frame_saved_pc): Removed.
7217 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7218 Removed.
7219 (i386_get_longjmp_target): New function.
7220 (default_struct_convention, pcc_struct_convention,
7221 reg_struct_convention, valid_conventions, struct_convention): New
7222 variables.
7223 (i386_use_struct_convention): New function.
7224 (i386v4_sigtramp_saved_pc): Renamed to
7225 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7226 (i386_pc_in_sigtramp): New function.
7227 (i386_abi_names): Removed.
7228 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7229 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7230 Removed.
7231 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7232 i386_gdbarch_register_os_abi): Removed.
7233 (struct i386_abi_handler): Removed.
7234 (i386_abi_handler_list): Removed.
7235 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7236 functions.
7237 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7238 i386_nw_init_abi): New functions.
7239 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7240 Use set_gdbarch_xxx() calls instead of relying on macros for a
7241 number of calls.
7242 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7243 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7244 Register the various architecture variants defined in this file.
7245
ad2f7632
DJ
72462002-06-14 Daniel Jacobowitz <drow@mvista.com>
7247
7248 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7249 (struct main_type): Remove arg_types member. Update comments for
7250 struct field.
7251 (TYPE_ARG_TYPES): Remove.
7252 (TYPE_FN_FIELD_ARGS): Update.
7253 (smash_to_method_type): Update prototype.
7254
7255 * c-typeprint.c (cp_type_print_method_args): Take method type
7256 instead of argument list. Use new argument layout. Simplify.
7257 (c_type_print_args): Use new argument layout. Simplify.
7258 (c_type_print_base): Update call to cp_type_print_method_args.
7259 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7260 argument; use die->type instead. Update call to
7261 smash_to_method_type.
7262 (read_structure_scope): Update call to dwarf2_add_member_fn.
7263 * gdbtypes.c (allocate_stub_method): Update comment.
7264 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7265 Use new argument layout.
7266 (check_stub_method): Use new argument layout. Don't count
7267 void as an argument.
7268 (print_arg_types): Update comments. Use new argument layout.
7269 (recursive_dump_type): Don't print arg_types member.
7270 * hpread.c (hpread_read_struct_type): Use new argument layout.
7271 (fixup_class_method_type): Likewise.
7272 (hpread_type_lookup): Likewise.
7273 * stabsread.c (read_type): Update calls to read_args and
7274 smash_to_method_type.
7275 (read_args): Use new argument layout. Simplify.
7276 * valops.c (typecmp): Use new argument layout. Update parameters
7277 and comments. Simplify.
7278 (hand_function_call): Use new argument layout.
7279 (search_struct_method): Update call to typecmp.
7280 (find_overload_match): Use new argument layout.
7281
6da02953
DJ
72822002-06-13 Daniel Jacobowitz <drow@mvista.com>
7283
7284 * NEWS: Mention multithreaded debug support for gdbserver.
7285
519b2366
DJ
72862002-06-13 Daniel Jacobowitz <drow@mvista.com>
7287
7288 * MAINTAINERS: Mention NEWS.
7289
6c0d6680
DJ
72902002-06-13 Daniel Jacobowitz <drow@mvista.com>
7291
7292 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7293 (struct mips_objfile_private, compare_pdr_entries): New.
7294 (non_heuristic_proc_desc): Read the ".pdr" section if it
7295 is present.
7296
6529d2dd
AC
72972002-06-12 Andrew Cagney <ac131313@redhat.com>
7298
7299 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7300 (arm_debug): New static variable.
7301 (_initialize_arm_tdep): Add ``set debug arm'' command.
7302
26216b98
AC
73032002-06-12 Andrew Cagney <ac131313@redhat.com>
7304
7305 * Makefile.in (sim_arm_h): Define.
7306 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7307 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7308 (arm_register_sim_regno): New function, map an internal REGNUM
7309 onto a simulator register number.
7310 (arm_gdbarch_init): Set register_sim_regno.
7311
814b3ba0
AH
73122002-06-09 Aldy Hernandez <aldyh@redhat.com>
7313
7314 * MAINTAINERS: Add self.
7315
475b0867
JB
73162002-06-11 Jim Blandy <jimb@redhat.com>
7317
919d772c
JB
7318 * source.c (source_info): Mention whether the symtab has
7319 information about preprocessor macros.
7320
475b0867
JB
7321 Call the command `info macro', not `show macro'.
7322 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7323 Fix error message.
7324 (_initialize_macrocmd): Register `info_macro_command' in
7325 `infolist', not `showlist'.
7326
9e364162
DJ
73272002-06-11 Daniel Jacobowitz <drow@mvista.com>
7328
7329 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7330 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7331 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7332 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7333 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7334 unconditionally.
7335 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7336 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7337 (_initialize_mips_tdep): Remove dead code.
7338 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7339 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7340 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7341 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7342 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7343 MIPS_LAST_FP_ARG_REGNUM): Remove.
7344
23aa4c72
ML
73452002-06-11 Michal Ludvig <mludvig@suse.cz>
7346
7347 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7348 (unwind_tmp_obstack_free, parse_frame_info)
7349 (update_context, cfi_read_fp, cfi_write_fp)
7350 (cfi_frame_chain, cfi_init_extra_frame_info)
7351 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7352 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7353
70eb15a4
CV
73542002-06-11 Corinna Vinschen <vinschen@redhat.com>
7355
7356 * v850-tdep.c (v850_type_is_scalar): New function.
7357 (v850_use_struct_convention): Match current gcc implementation
7358 as close as possible.
7359 (v850_push_arguments): Fix stack_offset handling. Don't write
7360 struct_addr into register. This is done by v850_store_struct_return.
7361 (v850_extract_return_value): Care for structs.
7362 (v850_store_return_value): Ditto.
7363 (v850_store_struct_return): Actually write address.
7364
482a4d06
ML
73652002-06-11 Michal Ludvig <mludvig@suse.cz>
7366
7367 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7368 without debug information too.
7369
d855c300
AC
73702002-06-10 Andrew Cagney <ac131313@redhat.com>
7371
7372 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7373 Make multi-arch pure.
7374 * gdbarch.h, gdbarch.c: Re-generate.
7375 * arm-tdep.c (arm_print_float_info): Update.
7376 * arch-utils.h (default_print_float_info): Update.
7377 * arch-utils.c (default_print_float_info): Update.
7378 * infcmd.c (float_info): Update call.
7379
dd12a101
AC
73802002-06-10 Andrew Cagney <ac131313@redhat.com>
7381
7382 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7383 the front of the initialize list.
7384
101dcfbe
AC
73852002-06-10 Andrew Cagney <ac131313@redhat.com>
7386
7387 * infrun.c (struct inferior_status): Replace fields
7388 selected_frame_address and selected_level with field
7389 selected_frame_id.
7390 (save_inferior_status): Update. Use get_frame_id.
7391 (struct restore_selected_frame_args): Delete.
7392 (restore_selected_frame): Update. Use frame_find_by_id.
7393 (restore_inferior_status): Update.
7394
7395 * breakpoint.h (struct breakpoint): Change type of
7396 watchpoint_frame to frame_id.
7397 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7398 call to get_current_frame.
7399 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7400 get_current_frame.
7401 (watchpoint_check): Use frame_find_by_id.
7402
7403 * frame.h (record_selected_frame): Delete declaration.
7404 * stack.c (record_selected_frame): Delete function.
7405
7406 * frame.h (struct frame_id): Define.
7407 (get_frame_id): Declare.
7408 (frame_find_by_id): Declare.
7409 * frame.c (frame_find_by_id): New function.
7410 (get_frame_id): New function.
7411
304270b6
AV
74122002-06-10 Andrey Volkov <avolkov@transas.com>
7413
7414 * ser-e7kpc.c: Fix duplicated define and call of
7415 _initialize_ser_e7000pc
7416
2f2cf184
DJ
74172002-06-09 Daniel Jacobowitz <drow@mvista.com>
7418
7419 * signals/signals.c (target_signal_from_host): Fix #ifdef
7420 SIGRTMIN case.
7421 (do_target_signal_to_host): Likewise.
7422
caaa3122
DJ
74232002-06-09 Daniel Jacobowitz <drow@mvista.com>
7424
7425 * mips-tdep.c (mips_find_abi_section): New function.
7426 (mips_gdbarch_init): Call it.
7427
6ac5df3a
MK
74282002-06-09 Mark Kettenis <kettenis@gnu.org>
7429
7430 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7431 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7432 after Andrew's 2002-06-08 gdbarch change.
7433
82ea117a
MK
74342002-06-09 Mark Kettenis <kettenis@gnu.org>
7435
7436 * i386-linux-nat.c (suppy_gregset): Don't supply
7437 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7438 register cache.
7439 (fill_gregset): Don't fetch it under the same circumstances.
7440
3c25f8c7
AC
74412002-06-09 Andrew Cagney <cagney@redhat.com>
7442
7443 * Makefile.in (callback_h): Define.
7444 (remote_sim_h): Update path to remote-sim.h.
7445 (remote-rdp.o): Add $(callback_h).
7446 (remote-sim.o): Use $(callback_h).
7447 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7448 * remote-rdp.c: Include "gdb/callback.h".
7449
1029b7fa
MK
74502002-06-09 Mark Kettenis <kettenis@gnu.org>
7451
7452 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7453 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7454
616675d3
AC
74552002-06-08 Andrew Cagney <ac131313@redhat.com>
7456
a3efda28
AC
7457 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7458 * rdi-share/serpardr.c: Ditto.
7459 * rdi-share/unixcomm.c: Ditto.
7460 * rdi-share/serdrv.c: Ditto.
7461 * rdi-share/hostchan.h: Ditto.
7462 * rdi-share/hostchan.c: Ditto.
7463 * rdi-share/host.h: Ditto.
7464 * rdi-share/devsw.c: Ditto.
7465
c5f10366
AC
7466 * objfiles.h: Change type of obj_private to void pointer.
7467 * pa64solib.c: Update copyright. Don't include "assert.h", use
7468 strcmp instead of STREQ, use LONGEST, do not use PTR
7469 * somsolib.c: Ditto.
7470
616675d3
AC
7471 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7472 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7473 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7474
e4b415d9
AC
74752002-06-08 Andrew Cagney <ac131313@redhat.com>
7476
7477 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7478 (default_get_saved_register): Delete function.
7479 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7480 generic_unwind_get_saved_register.
7481 * gdbarch.h, gdbarch.c: Re-generate.
7482
ca0d0b52
AC
74832002-06-08 Andrew Cagney <ac131313@redhat.com>
7484
7485 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7486 generic_func_frame_chain_valid.
7487 * gdbarch.h, gdbarch.c: Re-generate.
7488 * blockframe.c (generic_func_frame_chain_valid): Only check
7489 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7490 passing FP to PC_IN_CALL_DUMMY.
7491 Fix PR gdb/360.
7492
76860b5f
AC
74932002-06-08 Andrew Cagney <ac131313@redhat.com>
7494
7495 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7496 (register_gdbarch_data): Initialize init_p.
7497 (gdbarch_data): Initialize data pointer using the init function.
7498 (init_gdbarch_data): Delete function.
7499 (gdbarch_update_p): Update.
7500 (initialize_non_multiarch): Update.
7501 (struct gdbarch): Add field initialized_p.
7502 * gdbarch.h, gdbarch.c: Re-generate.
7503
8dda9770
ML
75042002-06-07 Michal Ludvig <mludvig@suse.cz>
7505
7506 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7507 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7508 better do the things actually here.
7509 * x86-64-tdep.c (x86_64_register_name2nr): New.
7510 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7511 (x86_64_gdbarch_init): Respect the above change.
7512 * x86-64-tdep.h (x86_64_register_name2nr)
7513 (x86_64_register_nr2name): Add prototypes.
7514 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7515
3d79a47c
MS
75162002-06-06 Michael Snyder <msnyder@redhat.com>
7517
7bd91a28
MS
7518 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7519 Delete extra braces and re-indent.
7520 (d10v_store_return_value): Char return values
3d79a47c
MS
7521 must be shifted over by one byte in R0.
7522 (d10v_extract_return_value): Delete extra braces, re-indent.
7523
095a4c96
EZ
75242002-06-06 Elena Zannoni <ezannoni@redhat.com>
7525
7526 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7527 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7528 (d10v_integer_to_address): Rewrite.
7529 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7530 the d10v specific functions which take care of converting to the
7531 correct space.
7532
e8a77ca4
EZ
75332002-06-06 Elena Zannoni <ezannoni@redhat.com>
7534
7535 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7536 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7537
4f2e4a4f
AC
75382002-06-02 Andrew Cagney <ac131313@redhat.com>
7539
7540 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7541 includes.
7542 * config/tm-linux.h: Ditto.
7543 * config/alpha/tm-alphalinux.h: Ditto.
7544 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7545 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7546 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7547 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7548 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7549 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7550 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7551 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7552 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7553 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7554 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7555 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7556 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7557 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7558 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7559 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7560 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7561 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7562 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7563 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7564 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7565 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7566 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7567 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7568 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7569 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7570 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7571 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7572 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7573 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7574 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7575 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7576 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7577 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7578 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7579 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7580 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7581
ae2ab2ce
AS
75822002-05-04 Aidan Skinner <aidan@velvet.net>
7583
7584 * ada-exp.tab.c: New file
7585 * ada-exp.y: New file
7586 * ada-lang.c: New file
7587 * ada-lang.h: New file
7588 * ada-lex.c: New file
7589 * ada-lex.l: New file
7590 * ada-tasks.c: New file
7591 * ada-typeprint.c: New file
7592 * ada-valprint.c: New file
7593
0ddd0135
JT
75942002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7595
7596 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7597 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7598
750fbacc
JT
75992002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7600
7601 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7602 insetead of ppc-linux-tdep.o.
7603 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7604 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7605
df94e18a
AC
76062002-06-02 Andrew Cagney <ac131313@redhat.com>
7607
7608 2002-05-07 Christian Groessler <chris@groessler.org>
7609 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7610 bit register contents for little endian hosts.
7611
1a38ab75
AC
76122002-06-01 Andrew Cagney <ac131313@redhat.com>
7613
7614 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7615 any maintainer.
7616
8b1632ac
AC
76172002-06-01 Andrew Cagney <ac131313@redhat.com>
7618
7619 * gdbarch.h: Regenerate.
7620
627054c8
AC
76212002-06-01 Andrew Cagney <ac131313@redhat.com>
7622
7623 * MAINTAINERS: Add everyone to write-after-approval list.
7624
4f460812
AC
76252002-06-01 Andrew Cagney <ac131313@redhat.com>
7626
7627 * stack.c (frame_info): Use frame_register_unwind instead of
7628 saved_regs. Mention when the SP is on the stack or in a register.
7629
7630 * frame.h (frame_register_unwind_ftype): Define. Document.
7631 (struct frame_info): Add field register_unwind and
7632 register_unwind_cache.
7633 (frame_register_unwind): Declare.
7634 (generic_unwind_get_saved_register): Declare.
7635
7636 * frame.c (frame_register_unwind): New function.
7637 (generic_unwind_get_saved_register): New function.
7638
7639 * blockframe.c (generic_call_dummy_register_unwind): New function.
7640 (frame_saved_regs_register_unwind): New function.
7641 (set_unwind_by_pc): New function.
7642 (create_new_frame): New function.
7643 (get_prev_frame): New function.
7644
de888f76
AC
76452002-05-30 Andrew Cagney <ac131313@redhat.com>
7646
7647 * a29k-share/: Delete directory.
7648 * remote-vx29k.c: Delete file.
7649
2f2c3626
JT
76502002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7653 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7654
9ce5c36a
JT
76552002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7658 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7659 (sparc64nbsd-nat.o)
7660 (sparcnbsd-nat.o)
7661 (sparcnbsd-tdep.o): New dependency lists.
7662 * NEWS: Note new UltraSPARC NetBSD native configuration.
7663 * configure.host (sparc64-*-netbsd*): New host.
7664 * configure.tgt (sparc-*-netbsdelf*)
7665 (sparc-*-netbsd*): Set gdb_target to nbsd.
7666 (sparc64-*-netbsd*): New target.
7667 * sparc64nbsd-nat.c: New file.
7668 * sparcnbsd-nat.c: New file.
7669 * sparcnbsd-tdep.c: New file.
7670 * sparcnbsd-tdep.h: New file.
7671 * config/sparc/nbsd.mt: New file.
7672 * config/sparc/nbsd64.mh: New file.
7673 * config/sparc/nbsd64.mt: New file.
7674 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7675 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7676 (HOST_IPC): Remove.
7677 * config/sparc/nbsdaout.mt: Remove.
7678 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7679 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7680 (HOST_IPC): Remove.
7681 * config/sparc/nbsdelf.mt: Remove.
7682 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7683 sparc-nat.c compatiblity defines.
7684 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7685 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7686 * config/sparc/tm-nbsd64.h: New file.
7687 * config/sparc/tm-nbsdaout.h: Remove.
7688 * config/sparc/xm-nbsd.h: Remove.
7689
ef3cf062
JT
76902002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7691
7692 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7693 * sparc-tdep.c: Include osabi.h.
7694 (gdbarch_tdep): Add osabi member.
7695 (_initialize_sparc_tdep): Use gdbarch_register.
7696 (sparc_gdbarch_init): Use generic OS ABI framework.
7697 (sparc_dump_tdep): New function.
7698
ee8ff470
KB
76992002-05-30 Kevin Buettner <kevinb@redhat.com>
7700
7701 * corefile.c (do_captured_read_memory_integer): Return non-zero
7702 result.
7703 (safe_read_memory_integer): Copy result of memory read when
7704 status is non-zero. Also, add comments.
7705
7b112f9c
JT
77062002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7707
7708 * Makefile.in (ppc_tdep_h): Define.
7709 (ppc-linux-nat.o)
7710 (ppc-linux-tdep.o)
7711 (rs6000-tdep.o): Use $(ppc_tdep_h).
7712 (ppc-sysv-tdep.o)
7713 (ppcnbsd-nat.o)
7714 (ppcnbsd-tdep.o): New dependency lists.
7715 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7716 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7717 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7718 (ppc_sysv_abi_broken_use_struct_convention)
7719 (ppc_sysv_abi_use_struct_convention)
7720 (ppc_sysv_abi_push_arguments): Move to...
7721 * ppc-sysv-tdep.c: ...here.
7722 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7723 * rs6000-tdep.c (process_note_abi_tag_sections)
7724 (get_elfosabi): Remove.
7725 (rs6000_gdbarch_init): Use generic OS ABI framework.
7726 (rs6000_dump_tdep): New function.
7727 (_initialize_rs6000_tdep): Use gdbarch_register.
7728 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7729 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7730 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7731 of ppc-linux-tdep.o.
7732 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7733 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7734 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7735 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7736 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7737 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7738
480dd42a
JB
77392002-05-29 Jim Blandy <jimb@redhat.com>
7740
7741 * macroscope.c (default_macro_scope): Put `void' in empty argument
7742 list.
7743
4182591f
AC
77442002-05-29 Andrew Cagney <ac131313@redhat.com>
7745
7746 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7747 * arch-utils.c: Include "sim-regno.h".
7748 * gdbarch.sh: Don't include "sim-regno.h".
7749 * gdbarch.h, gdbarch.c: Regenerate.
7750 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7751 here.
7752 * arch-utils.h (legacy_register_sim_regno): To here.
7753 * remote-sim.c (legacy_register_sim_regno): Move function from
7754 here.
7755 * arch-utils.c (legacy_register_sim_regno): To here.
7756
8238d0bf
AC
77572002-05-28 Andrew Cagney <ac131313@redhat.com>
7758
7759 * sim-regno.h: New file.
7760 * Makefile.in (sim_regno_h): Define.
7761 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7762 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7763 (legacy_register_sim_regno): New function.
7764 (one2one_register_sim_regno): New function.
7765 (gdbsim_fetch_register): Rewrite.
7766 (gdbsim_store_register): Only store a register when
7767 REGISTER_SIM_REGNO is valid.
7768 * d10v-tdep.c: Include "sim-regno.h".
7769 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7770 (d10v_ts3_register_sim_regno): Ditto.
7771 * gdbarch.sh: Include "sim-regno.h".
7772 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7773 * gdbarch.h, gdbarch.c: Regenerate.
7774 * arch-utils.h (default_register_sim_regno): Delete declaration.
7775 * arch-utils.c (default_register_sim_regno): Delete function.
7776
485721b1
JT
77772002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7778
7779 * ppcnbsd-nat.c: Rewrite.
7780 * ppcnbsd-tdep.c: New file.
7781 * ppcnbsd-tdep.h: New file.
7782 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7783 solib.o, and solib-svr4.o.
7784 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7785 nbsd-tdep.o, and corelow.o.
7786
697f244d
AC
77872002-05-28 Andrew Cagney <ac131313@redhat.com>
7788
7789 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7790 `tr' and `sed'. Mention that `broken' targets are not expected to
7791 build.
7792
f08caad1 77932002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7794
7795 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7796 Let PC point right after the prologue before looking up symbols.
7797
3139facc
MH
77982002-05-27 Martin M. Hunt <hunt@redhat.com>
7799
7800 * i386-tdep.c (i386_register_virtual_type): Return
7801 builtin_type_vec128i for SSE registers.
7802
7803 * gdbtypes.h (builtin_type_vec128i): Declare.
7804
7805 * gdbtypes.c (build_builtin_type_vec128i): New function.
7806 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7807 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7808 (build_gdbtypes): Initialize new builtin vector types.
7809 (_initialize_gdbtypes): Register new vector types with gdbarch.
7810
6e3ba3b8
JT
78112002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7812
7813 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7814 since it has been multi-arch'd.
7815 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7816 Move Alpha and VAX multi-arch news entries to same section
7817 as other multi-arch news.
7818
93d5585d
JT
78192002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7820
7821 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7822 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7823 static. Rename some register numbers to put them in ns32k-tdep
7824 private namespace.
7825 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7826 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7827 functions.
7828 (_initialize_ns32k_tdep): Use gdbarch_register.
7829 * ns32k-tdep.h: New file.
7830 * ns32knbsd-tdep.c: New file.
7831 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7832 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7833 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7834 REGISTER_BYTES, REGISTER_BYTE): Remove.
7835 * config/ns32k/tm-ns32k.h: New file.
7836 * config/ns32k/tm-umax.h: Remove.
7837
efb2c70e
JT
78382002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7839
7840 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7841 ns32k_store_struct_return, ns32k_extract_return_value,
7842 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7843 functions.
7844 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7845 ns32k_saved_pc_after_call.
7846 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7847 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7848 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7849 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7850 ns32k_extract_struct_value_address.
7851
7bcc927b
JT
78522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7853
7854 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7855 ns32k_fix_call_dummy): New.
7856 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7857 ns32k_call_dummy_words.
7858 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7859 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7860 CALL_DUMMY_NARGS): Remove.
7861 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7862
78f9d765
JT
78632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7866 ns32k_frame_saved_pc, ns32k_frame_args_address,
7867 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7868 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7869 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7870 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7871 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7872 (BREAKPOINT): Remove..
7873 (FRAME_CHAIN): Define as ns32k_frame_chain.
7874 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7875 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7876 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7877 (FRAME_FIND_SAVED_REGS): Remove.
7878 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7879 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7880 (POP_FRAME): Define as ns32k_pop_frame.
7881
f2c762e0
JT
78822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7883
7884 * ns32k-tdep.c (ns32k_register_byte_32082,
7885 ns32k_register_byte_32382, ns32k_register_raw_size,
7886 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7887 functions.
7888 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7889 ns32k_register_byte_32382.
7890 * config/ns32k/tm-umax.h: Update copyright years.
7891 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7892 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7893 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7894 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7895 (ns32k_get_enter_addr): Fix prototype.
7896
af137673
JT
78972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7898
7899 * ns32k-tdep.c: Update copyright years.
7900 (ns32k_register_name_32082): New function.
7901 (ns32k_register_name_32382): Ditto.
7902 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7903 (REGISTER_NAME): Define as ns32k_register_name_32382.
7904 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7905 (REGISTER_NAME): Define as ns32k_register_name_32082.
7906
a8bc7b56
JB
79072002-05-24 Jim Blandy <jimb@redhat.com>
7908
7909 * dwarf2read.c (free_line_header): Use xfree, not free.
7910
83a45910
JT
79112002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7912
7913 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7914 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7915
0db71247
AC
79162002-05-23 Andrew Cagney <ac131313@redhat.com>
7917
7918 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7919
b9e5e4dd
AC
79202002-05-23 Andrew Cagney <ac131313@redhat.com>
7921
7922 From Ross Alexander at NEC Europe:
7923 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7924
de530e84
MS
79252002-05-23 Michael Snyder <msnyder@redhat.com>
7926
7927 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7928 for input, rather than parse_and_eval_address.
7929
b91b96f4
AC
79302002-05-23 Andrew Cagney <ac131313@redhat.com>
7931
7932 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7933 * Makefile.in (sim_d10v_h): Update definition.
7934
8b279e7a
AC
79352002-05-24 Andrew Cagney <cagney@redhat.com>
7936
7937 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7938 change `2002-05-22 Michael Snyder' below.
7939 (d10v_push_arguments): Ditto.
7940 (d10v_extract_return_value): Ditto.
7941
0a3d0425
JB
79422002-05-23 Jim Blandy <jimb@redhat.com>
7943
7944 * macrotab.c (check_for_redefinition): Don't complain if the new
7945 definition is the same as the previous one. Take more arguments
7946 to allow the comparison.
7947 (macro_define_object, macro_define_function): Pass more arguments
7948 to check_for_redefinition.
7949
78eac43e
MS
79502002-05-22 Michael Snyder <msnyder@redhat.com>
7951
7952 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7953 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7954 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7955 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7956 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7957 Add a temp variable to save a call (and a memory read).
7958 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7959 if possible (so that PC_IN_CALL_DUMMY will work).
7960
9bc1edb8
CV
79612002-05-22 Corinna Vinschen <vinschen@redhat.com>
7962
7963 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7964
005ef3d2
ML
79652002-05-22 Michal Ludvig <mludvig@suse.cz>
7966
7967 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7968 fde->cie_ptr.
7969 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7970 (dwarf2_build_frame_info): Add offset to fde->initial_location
7971 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7972 (execute_stack_op): Change type of 'result' from ULONGEST to
7973 CORE_ADDR.
005ef3d2 7974
fcf4f891
JT
79752002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7976
7977 * config/alpha/tm-nbsd.h: Include solib.h.
7978
cfef91e4
JT
79792002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7980
7981 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7982 assumptions about the host's byte order.
7983
9964235a
JT
79842002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7985
7986 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7987 to dependency list.
7988 * alphanbsd-tdep.c: Include solib-svr4.h.
7989 * shnbsd-tdep.c: Ditto.
7990
9eeef8ef
JT
79912002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7992
7993 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7994 nbsd-tdep.h to dependency list.
7995 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7996 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7997 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7998 nbsdaout.mh and nbsdelf.mh consistently.
7999 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8000 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8001 nbsdaout.mt and nbsdelf.mh consistently.
8002 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8003 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8004 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8005 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8006 a.out shared library stuff from here...
8007 * config/nm-nbsdaout.h: ...to here.
8008 * config/tm-nbsd.h: Remove.
8009 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8010 * config/arm/nbsd.mh: Remove.
8011 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8012 nbsd-tdep.o.
8013 * config/arm/nbsdaout.mh: New file.
8014 * config/arm/nbsdelf.mh: New file.
8015 * config/arm/nm-nbsdaout.h: New file.
8016 * config/i386/nbsd.mh: Remove.
8017 * config/i386/nbsd.mt: Remove.
8018 * config/i386/nbsdaout.mh: New file.
8019 * config/i386/nbsdaout.mt: New file.
8020 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8021 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8022 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8023 i386_register_u_addr): Remove.
8024 * config/i386/nm-nbsdaout.h: New file.
8025 * config/i386/nm-nbsdelf.h: Remove.
8026 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8027 (USE_STRUCT_CONVENTION): Remove.
8028 * config/i386/tm-nbsdaout.h: New file.
8029 * config/i386/tm-nbsdelf.h: Remove.
8030 * config/m68k/nbsd.mh: Remove.
8031 * config/m68k/nbsd.mt: Remove.
8032 * config/m68k/nbsdaout.mh: New file.
8033 * config/m68k/nbsdaout.mt: New file.
8034 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8035 * config/m68k/nm-nbsdaout.h: New file.
8036 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8037 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8038 * config/ns32k/nbsd.mh: Remove.
8039 * config/ns32k/nbsd.mt: Remove.
8040 * config/ns32k/nbsdaout.mh: New file.
8041 * config/ns32k/nbsdaout.mt: New file.
8042 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8043 * config/ns32k/nm-nbsdaout.h: New file.
8044 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8045 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8046 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8047 (SVR4_SHARED_LIBS): Remove.
8048 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8049 * config/sparc/nbsd.mh: Remove.
8050 * config/sparc/nbsd.mt: Remove.
8051 * config/sparc/nbsdaout.mh: New file.
8052 * config/sparc/nbsdaout.mt: New file.
8053 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8054 * config/sparc/nbsdelf.mt: New file.
8055 * config/sparc/nm-nbsdaout.h: New file.
8056 * config/sparc/nm-nbsdelf.h: Remove.
8057 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8058 * config/sparc/tm-nbsdaout.h: New file.
8059
257ce470
JT
80602002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8061
8062 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8063 mipsnbsd-tdep.c
8064 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8065
76a6d5fe
JT
80662002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8067
8068 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8069 shnbsd-nat.c.
8070 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8071
45888261
JT
80722002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8073
8074 * NEWS: Note new MIPS NetBSD native configuration.
8075 * configure.host (mips*-*-netbsd*): New host.
8076 * configure.tgt (mips*-*-netbsd*): New target.
8077 * mipsnbsd-nat.c: New file.
8078 * mipsnbsd-tdep.c: New file.
8079 * mipsnbsd-tdep.h: New file.
8080 * config/mips/nbsd.mh: New file.
8081 * config/mips/nbsd.mt: New file.
8082 * config/mips/nm-nbsd.h: New file.
8083 * config/mips/tm-nbsd.h: New file.
8084
70f80edf
JT
80852002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8086
8087 * Makefile.in (SFILES): Add osabi.c.
8088 (COMMON_OBS): Add osabi.o.
8089 (osabi.o): New dependency list.
8090 * osabi.c: New file.
8091 * osabi.h: New file.
8092 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8093
8094 * Makefile.in (alpha_tdep_h): Define and use instead of
8095 alpha-tdep.h.
8096 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8097 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8098 Remove.
8099 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8100 * alpha-tdep.h: Include osabi.h.
8101 (alpha_abi): Remove.
8102 (gdbarch_tdep): Use generic OS ABI framework.
8103 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8104 gdbarch_register_osabi.
8105 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8106 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8107 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8108
8109 * Makefile.in (sh_tdep_h): Add osabi.h.
8110 * sh-tdep.h (sh_osabi): Remove.
8111 (gdbarch_tdep): Use generic OS ABI framework.
8112 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8113 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8114 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8115 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8116
8117 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8118 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8119 gdbarch_register_osabi.
8120 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8121 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8122 (get_elfosabi): Rename to...
8123 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8124 ABI framework support routines.
8125 (arm_gdbarch_init): Use generic OS ABI framework.
8126 (arm_dump_tdep): Likewise.
8127 (_initialize_arm_tdep): Likewise.
8128 * arm-tdep.h: Include osabi.h.
8129 (arm_abi): Remove.
8130 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8131 osabi member.
8132 (arm_gdbarch_register_os_abi): Remove prototype.
8133 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8134 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8135
8136 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8137 * mips-tdep.c: Include osabi.h.
8138 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8139 OS ABI framework.
8140
d194345b
KH
81412002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8142
8143 * h8300-tdep.c: Fix formatting.
8144
70c6b0d1
EZ
81452002-05-20 Elena Zannoni <ezannoni@redhat.com>
8146
8147 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8148 printing vector registers.
8149
165b8e33
AC
81502002-05-19 Andrew Cagney <ac131313@redhat.com>
8151
8152 From Fernando Nasser:
8153 * remote.c (remote_async_open_1): Re-throw the exception when the
8154 connection fails.
8155 (remote_cisco_open): Ditto.
8156 (remote_open_1): Ditto.
8157
36918e70
AC
81582002-05-19 Andrew Cagney <ac131313@redhat.com>
8159
8160 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8161 (remote_start_remote): Add uiout parameter. Pass through to
8162 remote_start_remote_dummy.
8163 (remote_open_1): Use catch_exception instead of catch_errors.
8164 (remote_async_open_1): Ditto.
8165 (remote_cisco_open): Ditto.
8166
ae44c0c4
AC
81672002-05-19 Andrew Cagney <ac131313@redhat.com>
8168
8169 * remote.c (remote_start_remote): Replace PTR with void pointer.
8170 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8171 static.
8172
8efe637d
AC
81732002-05-18 Andrew Cagney <ac131313@redhat.com>
8174
8175 * gdb_indent.sh: Allow the script to be run in the sim directory.
8176
2f1b5984
MK
81772002-05-18 Mark Kettenis <kettenis@gnu.org>
8178
f0f625e2
MK
8179 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8180 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8181
2f1b5984
MK
8182 * corelow.c (core_open): Only call set_gdbarch_from_file if
8183 exec_bfd is NULL.
8184
fc974602
AV
81852002-05-17 Andrey Volkov <avolkov@transas.com>
8186
8187 * h8300-tdep.c: Add support of EXR register
8188 * config/h8300/tm-h8300.h: Ditto.
8189
906709f4
AV
81902002-05-17 Andrey Volkov <avolkov@transas.com>
8191
8192 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8193
6e591d68
AV
81942002-05-17 Andrey Volkov <avolkov@transas.com>
8195
8196 * h8300-tdep.c: Change literal regnums to REGNO.
8197
84f0252a
JB
81982002-05-17 Jim Blandy <jimb@redhat.com>
8199
e0e9281e
JB
8200 * NEWS: Note addition of macro support.
8201
84f0252a
JB
8202 Expand preprocessor macros in C expressions.
8203 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8204 (scan_macro_expansion, scanning_macro_expansion,
8205 finished_macro_expansion): New function declarations.
8206 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8207 variable declarations.
8208 * parser-defs.h (expression_context_pc): New declaration.
8209 * parse.c (expression_context_pc): New variable.
8210 (parse_exp_1): Set expression_context_pc, as well as
8211 expression_context_block.
8212 * c-exp.y (yylex): If we're not already reading the result of a
8213 macro expansion, try to macro-expand the next token. When we're
8214 done scanning a macro expansion, switch back to the mainline text.
8215 Commas and `if's in a macro's expansion don't terminate the input.
8216 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8217 (macro_original_text, macro_expanded_text,
8218 expression_macro_lookup_func, expression_macro_lookup_baton): New
8219 variables.
8220 (scan_macro_expansion, scanning_macro_expansion,
8221 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8222 c_preprocess_and_parse): New functions.
8223 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8224 c_preprocess_and_parse, instead of c_parse.
8225 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8226 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8227
1c509ca8
JR
8228Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8229
8230 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8231 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8232 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8233
2250ee0c
CV
82342002-05-17 Corinna Vinschen <vinschen@redhat.com>
8235
8236 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8237
ab3b8126
JT
82382002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8239
8240 * Makefile.in (sh_tdep_h): Define and use.
8241 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8242 register enum): Move to...
8243 * * sh-tdep.h: ...here.
8244 * sh-tdep.c: Include sh-tdep.h.
8245 * sh3-rom.c: Likewise.
8246 * shnbsd-tdep.c: Likewise.
8247
ed9d4749
MS
82482002-05-16 Michael Snyder <msnyder@redhat.com>
8249
8250 * arm-tdep.c: Spelling fix in comment.
8251
2e276125
JB
82522002-05-16 Jim Blandy <jimb@redhat.com>
8253
6821892e
JB
8254 Add commands for manually expanding macros and showing their
8255 definitions.
8256 * macrocmd.c, macroscope.c, macroscope.h: New files.
8257 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8258 (macroscope_h): New variable.
8259 (HFILES_NO_SRCDIR): Add macroscope.h.
8260 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8261 (macroscope.o, macrocmd.o): New rules.
8262
2e276125
JB
8263 Teach the Dwarf 2 reader to read macro information.
8264 * dwarf2read.c: #include "macrotab.h".
8265 (dwarf_macinfo_buffer): New variable.
8266 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8267 dwarf_macinfo_size.
8268 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8269 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8270 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8271 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8272 dwarf2_macro_spaces_in_definition): New complaints.
8273 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8274 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8275 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8276 the partial symbol table.
8277 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8278 from what's recorded in the partial symbol table.
8279 (read_file_scope): If the compilation unit has a
8280 `DW_AT_macro_info' attribute, read its macro information.
8281 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8282
2f53fe6c
DJ
82832002-05-16 Daniel Jacobowitz <drow@mvista.com>
8284
8285 Fix PR gdb/546
8286 * ser-tcp.c: Don't include <netinet/udp.h>.
8287
2be99286
SC
82882002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8289
8290 * MAINTAINERS: Update my email address.
8291
c9af212b 82922002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8293
8294 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8295 include file of the same name.
8296
bf5f1a52
CV
82972002-05-16 Corinna Vinschen <vinschen@redhat.com>
8298
8299 * configure.tgt: Mark v850 as multi-arched.
8300 * config/v850/tm-v850.h: Remove file.
8301 * config/v850/v850.mt: Eliminate TM_FILE.
8302
435e042a
CV
83032002-05-16 Corinna Vinschen <vinschen@redhat.com>
8304
8305 * v850-tdep.c: Full multi-arch.
8306 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8307 Define GDB_MULTI_ARCH to 2.
8308
9819c6c8
PM
83092002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8310
8311 * p-exp.y (current_type): New static variable.
8312 Carries the type of the expression at the position that is parsed.
8313 (push_current_type, pop_current_type): Two new functions. Used
8314 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8315 (search_field): New static variable. Set to one after parsing a point
8316 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8317 (FIELDNAME): New token. After a point only a token belonging to
8318 current_type type definition is allowed.
8319 (all over token rules): reset and change current_type according
8320 to rules.
8321 (exp '[' rule): insert implicit array index field if
8322 exp is a pascal string type.
8323
3a06899a
CV
83242002-05-16 Corinna Vinschen <vinschen@redhat.com>
8325
8326 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8327 frame info. Use frame_info's saved_regs instead of matching member
8328 in extra_frame_info throughout.
8329 (v850_frame_init_saved_regs): New function.
8330 (v850_init_extra_frame_info): Move most functionality into
8331 v850_frame_init_saved_regs().
8332 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8333 (v850_frame_find_saved_regs): Remove declaration.
8334 (FRAME_FIND_SAVED_REGS): Remove definition.
8335 (v850_frame_init_saved_regs): Add declaration.
8336 (FRAME_INIT_SAVED_REGS): Add definition.
8337
6ed14b0e
CV
83382002-05-16 Corinna Vinschen <vinschen@redhat.com>
8339
8340 * v850-tdep.c: Begin multi-arch'ing v850.
8341 (v850_target_architecture_hook): Remove function.
8342 (v850_gdbarch_init): New function. Add code previously in
8343 v850_target_architecture_hook().
8344 (_initialize_v850_tdep): Don't set target_architecture_hook.
8345 Call register_gdbarch_init() instead.
8346
42725910
DJ
83472002-05-16 Daniel Jacobowitz <drow@mvista.com>
8348
8349 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8350 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8351 (fixup_class_method_type): Likewise.
8352
99d9066e
JB
83532002-05-15 Jim Blandy <jimb@redhat.com>
8354
8355 Add macro structures to GDB's symbol tables. Nobody puts anything
8356 in them yet.
8357 * symtab.h (struct symtab): New member: `macro_table'.
8358 * buildsym.h (pending_macros): New global variable.
8359 * buildsym.c: #include "macrotab.h".
8360 (buildsym_init): Initialize `pending_macros'.
8361 (end_symtab): If we found macro information while reading a CU's
8362 debugging info, do build a symtab structure for it. Make the
8363 symtab point to the macro information, and clear the
8364 `pending_macros' pointer which held it while we were reading the
8365 debug info.
8366 (really_free_pendings): Free any pending macro table.
8367 * objfiles.h (struct objfile): New member: `macro_cache'.
8368 * objfiles.c (allocate_objfile): Set allocate and free functions
8369 for the macro cache's objstack.
8370 (free_objfile): Empty the macro cache's obstack.
8371 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8372 set new allocate and free functions for it.
8373 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8374 free functions for the macro cache's objstack. (Why is this
8375 function building its own objfile?)
8376 * symmisc.c (print_objfile_statistics): Print statistics on the
8377 macro bcache.
8378 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8379
c899585b
RE
83802002-05-15 Richard Earnshaw <rearnsha@arm.com>
8381
8382 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8383 (REGISTER_U_ADDR): Delete definition.
8384 (arm_register_u_addr): Delete declaration.
8385
a6cdd8c5
RE
83862002-05-15 Richard Earnshaw <rearnsha@arm.com>
8387
8388 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8389 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8390
c97dcfc7
AC
83912002-05-14 Andrew Cagney <ac131313@redhat.com>
8392
8393 * regcache.c (register_valid): Revise comments refering to "Not
8394 available" and "unavailable".
8395 * frame.c (frame_register_read): Ditto.
8396 * findvar.c (value_of_register): Ditto.
8397
93021b7d
AC
83982002-05-15 Andrew Cagney <cagney@redhat.com>
8399
8400 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8401 (remote-sim.o): Update dependencies.
8402 (d10v-tdep.o): Specify dependencies.
8403 (sim_d10v_h): Define.
8404
a86bc61c
JB
84052002-05-14 Jim Blandy <jimb@redhat.com>
8406
8407 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8408 * macrotab.c (macro_lookup_inclusion, find_definition,
8409 new_macro_table): Same.
8410
8411 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8412 not `! strcmp ()'. This is a dubious improvement.
8413 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8414
8415 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8416 although it's not necessary, to avoid a warning.
8417
2fdde8f8
DJ
84182002-05-14 Daniel Jacobowitz <drow@mvista.com>
8419
8420 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8421 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8422 TYPE_INSTANCE_FLAGS.
8423 (struct main_type): New.
8424 (struct type): Move most members to struct main_type. Change
8425 cv_type and as_type to new type_chain member. Add instance_flags.
8426 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8427 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8428 (finish_cv_type): Remove prototype.
8429 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8430 Set TYPE_CHAIN.
8431 (alloc_type_instance): New function.
8432 (smash_type): New function.
8433 (make_pointer_type, make_reference_type, make_function_type)
8434 (smash_to_member_type, smash_to_method_type): Call smash_type.
8435 (make_qualified_type): New function.
8436 (make_type_with_address_space): Call make_qualified_type.
8437 (make_cv_type): Likewise.
8438 (finish_cv_type): Remove unnecessary function.
8439 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8440 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8441 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8442 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8443 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8444 * hpread.c (hpread_read_struct_type): Likewise.
8445 * stabsread.c (read_struct_type): Likewise.
8446
843fedf4
EZ
84472002-05-14 Elena Zannoni <ezannoni@redhat.com>
8448
8449 * configure.tgt: Add a catch all sh* target, for cases like
8450 sh[2,3,4]-elf and sh-hms.
8451
05a6c72c
KS
84522002-05-14 Keith Seitz <keiths@redhat.com>
8453
8454 * event-loop.c (create_file_handler): Don't do anything but
8455 update data when we are given a fd which we are already
8456 monitoring.
8457
5d085aaf
ML
84582002-05-14 Michal Ludvig <mludvig@suse.cz>
8459
8460 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8461 (update_context): Use __func__ in warnings.
8462
9db8d71f
DJ
84632002-05-14 Daniel Jacobowitz <drow@mvista.com>
8464
8465 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8466 and tcp_close to net_open and net_close.
8467 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8468 using UDP if requested. Don't try to disable Nagle on UDP
8469 sockets.
8470 * remote.c (remote_serial_open): New function. Warn about UDP.
8471 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8472
5dbc6baa
EZ
84732002-05-13 Elena Zannoni <ezannoni@redhat.com>
8474
8475 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8476
cc3023f7
EZ
84772002-05-13 Elena Zannoni <ezannoni@redhat.com>
8478
8479 * configure.tgt: Remove sh-hms target.
8480 * MAINTAINERS: Don't list sh-hms as a separate target.
8481
ec2bcbe7
JB
84822002-05-13 Jim Blandy <jimb@redhat.com>
8483
8484 Add first preprocessor macro-expansion files.
8485 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8486 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8487 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8488 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8489 (COMMON_OBS): Add macrotab.o, macroexp.o.
8490 (macroexp.o, macrotab.o): New rules.
8491
6d531722
AC
84922002-05-13 Andrew Cagney <ac131313@redhat.com>
8493
8494 * config/m88k/tm-m88k.h: Update copyright.
8495 (m88k_target_write_pc): Declare
8496 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8497 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8498 (SHIFT_INST_REGS): Update definition.
8499 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8500 using old definition of TARGET_WRITE_PC.
8501 * regcache.c (generic_target_write_pc): Delete code handling
8502 NNPC_REGNUM.
8503 * gdbarch.sh (NNPC_REGNUM): Delete.
8504 * gdbarch.h, gdbarch.c: Regenerate.
8505
3e3f2739
RE
85062002-05-13 Richard Earnshaw <rearnsha@arm.com>
8507
8508 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8509 builtin reg number.
8510
0004e5a2
DJ
85112002-05-13 Daniel Jacobowitz <drow@mvista.com>
8512
8513 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8514 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8515 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8516 access macros.
8517 * c-typeprint.c (cp_type_print_method_args): Likewise.
8518 (c_type_print_args): Likewise.
8519 * d10v-tdep.c (d10v_push_arguments): Likewise.
8520 (d10v_extract_return_value): Likewise.
8521 * expprint.c (print_subexp): Likewise.
8522 * gdbtypes.c (lookup_primitive_typename): Likewise.
8523 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8524 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8525 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8526 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8527 (TYPE_VECTOR): Likewise.
8528 * hpread.c (hpread_read_struct_type)
8529 (fix_static_member_physnames, fixup_class_method_type)
8530 (hpread_type_lookup): Likewise.
8531 * mdebugread.c (parse_symbol, parse_type): Likewise.
8532 * p-lang.c (is_pascal_string_type): Likewise.
8533 * valops.c (hand_function_call): Likewise.
8534 * x86-64-tdep.c (classify_argument): Likewise.
8535
8536 * hpread.c (hpread_read_function_type)
8537 (hpread_read_doc_function_type): Call replace_type.
8538 * dstread.c (create_new_type): Delete.
8539 (decode_dst_structure, process_dst_function): Call alloc_type.
8540 Use type access macros.
8541
dff95cc7
MK
85422002-05-12 Mark Kettenis <kettenis@gnu.org>
8543
8544 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8545 the're not supported by the current architecture.
8546 (i387_fill_fxsave): Likewise.
8547
bbcd32ad
FF
85482002-05-12 Fred Fish <fnf@redhat.com>
8549
8550 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8551 sect_index_xxx members to index the first slot in section_offsets
8552 if all of the section_offsets are zero.
8553
89cf4787
MK
85542002-05-12 Mark Kettenis <kettenis@gnu.org>
8555
8556 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8557 checked in with last change.
8558
1f77ffc5
MK
85592002-05-12 Mark Kettenis <kettenis@gnu.org>
8560
8561 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8562 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8563 config.sub.
8564
89b8b4a9
DJ
85652002-05-12 Daniel Jacobowitz <drow@mvista.com>
8566
8567 * Makefile.in: Update dependencies.
8568
14a5e767
AC
85692002-05-11 Andrew Cagney <ac131313@redhat.com>
8570
8571 * language.c (local_hex_string_custom): Simplify. Do not depend
8572 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8573
8574 * memattr.c (mem_info_command): Replace calls to
8575 longest_local_hex_string and longest_local_hex_string_custom.
8576 * buildsym.c (make_blockvector): Ditto.
8577 * solib.c (info_sharedlibrary_command): Ditto.
8578 * tracepoint.c (tracepoints_info): Ditto.
8579 * symtab.c (print_msymbol_info): Ditto.
8580
8581 * language.c (local_hex_string): Delete.
8582 (local_hex_string_custom): Delete.
8583 (longest_local_hex_string): Rename to local_hex_string.
8584 (longest_local_hex_string_custom): Rename to
8585 local_hex_string_custom.
8586 * language.h (local_hex_string): Change parameter type to LONGEST.
8587 (local_hex_string_custom): Ditto.
8588 (longest_local_hex_string): Delete declaration.
8589 (longest_local_hex_string_custom): Ditto.
8590
8591 * solib.c: Update copyright.
8592 * memattr.c: Update copyright.
8593
13d01224
AC
85942002-05-11 Andrew Cagney <ac131313@redhat.com>
8595
8596 * arch-utils.h (legacy_register_to_value): Declare.
8597 (legacy_value_to_register): Declare.
8598 (legacy_convert_register_p): Declare.
8599 * arch-utils.c (legacy_register_to_value): New function.
8600 (legacy_value_to_register): New function.
8601 (legacy_convert_register_p): New function.
8602
8603 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8604 (VALUE_TO_REGISTER): Define.
8605 (CONVERT_REGISTER_P): Define.
8606 * gdbarch.h, gdbarch.c: Regenerate.
8607
8608 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8609 VALUE_TO_REGISTER.
8610 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8611 CONVERT_REGISTER_P.
8612
4a1970e4
DJ
86132005-05-11 Daniel Jacobowitz <drow@mvista.com>
8614 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8615
8616 * Makefile.in: Update dependencies for valops.c.
8617 * valops.c: Include "gdb_assert.h".
8618 (typecmp): Skip THIS parameter to methods.
8619 (find_method_list): Remove static_memfuncp argument,
8620 update callers. Check for stub methods.
8621 (find_value_oload_method_list): Don't set *static_memfuncp.
8622 (find_overload_match): Don't check for stub methods. Assert
8623 that methods are not stubbed. Handle static methods.
8624 (value_find_oload_method_list): Remove static_memfuncp argument.
8625 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8626 to the argument list for static stub methods.
8627 * value.h (value_find_oload_method_list): Update prototype.
8628
b2e75d78
AC
86292002-05-11 Andrew Cagney <ac131313@redhat.com>
8630
8631 * arch-utils.h (generic_register_size): Declare.
8632 (generic_register_raw_size, generic_register_virtual_size): Delete
8633 declarations.
8634 * arch-utils.c (generic_register_raw_size): Delete.
8635 (generic_register_size): New function.
8636 (generic_register_virtual_size): Delete.
8637
8638 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8639 default generic_register_size.
8640 * gdbarch.h, gdbarch.c: Re-generate.
8641
8642 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8643 register_virtual_size.
8644 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8645 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8646
451fbdda
AC
86472002-05-11 Andrew Cagney <ac131313@redhat.com>
8648
8649 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8650 * gdbarch.h, gdbarch.c: Regenerate.
8651 * gnu-v3-abi.c: Update copyright.
8652 (vtable_address_point_offset): Update.
8653 (gnuv3_rtti_type): Update.
8654 (gnuv3_baseclass_offset): Update.
8655 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8656 (init_fetch_link_map_offsets): Update.
8657 * remote.c (get_remote_state): Update.
8658
6d2f5cea
DJ
86592002-05-11 Daniel Jacobowitz <drow@mvista.com>
8660
8661 * TODO: Remove value_headof/value_from_vtable_info comment.
8662 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8663 * values.c (value_headof, value_from_vtable_info): Delete.
8664 * value.h (value_from_vtable_info): Delete prototype.
8665
d2324da4
AC
86662002-05-11 Andrew Cagney <ac131313@redhat.com>
8667
8668 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8669 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8670 $(gdb_regex_h).
8671 (gdb_assert_h): Define.
8672 (gdb_wait_h): Define.
8673 (gdb_regex_h): Define.
8674
5c717440
DJ
86752002-05-11 Daniel Jacobowitz <drow@mvista.com>
8676
8677 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8678 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8679
6c7861b3
JT
86802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8681
8682 * nbsd-tdep.c: Fix comment.
8683
ea5bc2a6
JT
86842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8685
8686 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8687 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8688 (nbsd-tdep.o): New dependency list.
8689 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8690 nbsd-tdep.h.
8691 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8692 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8693 * nbsd-tdep.c: New file.
8694 * nbsd-tdep.h: New file.
8695 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8696 nbsd-tdep.h.
8697 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8698 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8699 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8700 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8701
b28da865
JT
87022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8703
8704 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8705 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8706 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8707 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8708 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8709 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8710
4b8ff1fa
JT
87112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8712
8713 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8714 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8715 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8716 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8717 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8718 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8719 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8720
dfe6eb1f
JT
87212002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8722
8723 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8724 fetch_elfcore_registers to...
8725 * i386nbsd-tdep.c: ...here.
8726 (i386nbsd_use_struct_convention): Rename to...
8727 (i386nbsd_aout_use_struct_convention): ...this.
8728 (i386nbsd_supply_reg): New function.
8729 (i386nbsd_fill_reg): New function.
8730 (fetch_core_registers): Use i386nbsd_supply_reg.
8731 (fetch_elfcore_registers): Likewise.
8732 (_initialize_i386nbsd_tdep): New function.
8733 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8734 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8735 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8736 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8737 (i386nbsd_aout_use_struct_convention): ...this.
8738
20cb8cda
JT
87392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8740
8741 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8742 (store_inferior_registers): Use shnbsd_fill_reg.
8743 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8744 sh_nbsd_supply_register): Collapse into...
8745 (shnbsd_supply_reg): ...this.
8746 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8747 (shnbsd_fill_reg): ...this.
8748 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8749 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8750 (fetch_core_registers): Use shnbsd_supply_reg.
8751 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8752 (sh_nbsd_core_fns): Rename to...
8753 (shnbsd_core_fns): ...this.
8754 (sh_nbsd_elfcore_fns): Rename to...
8755 (shnbsd_elfcore_fns): ...this.
8756 (sh_nbsd_init_abi): Rename to...
8757 (shnbsd_init_abi): ...this.
8758 (_initialize_sh_nbsd_tdep): Rename to...
8759 (_initialize_shnbsd_tdep): ...this.
8760 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8761 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8762 sh_nbsd_fill_register): Remove prototypes.
8763 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8764
e750d25e
JT
87652002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8766
8767 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8768 (i387-nat.o): Delete dependency list.
8769 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8770 (x86-64-linux-nat.o): Likewise.
8771 * i387-nat.c: Delete file, moving contents to...
8772 * i387-tdep.c: ...here.
8773 * i387-nat.h: Rename...
8774 * i387-tdep.h: ...to this.
8775 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8776 * i386-linux-nat.c: Likewise.
8777 * i386bsd-nat.c: Likewise.
8778 * i386gnu-nat.c: Likewise.
8779 * i386nbsd-nat.c: Likewise.
8780 * i386v4-nat.c: Likewise.
8781 * x86-64-linux-nat.c: Likewise.
8782 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8783 * config/i386/go32.mh (NATDEPFILES): Likewise.
8784 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8785 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8786 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8787 * config/i386/linux.mh (NATDEPFILES): Likewise.
8788 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8789 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8790 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8791 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8792
1aee598a
JT
87932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8794
8795 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8796 (alphanbsd-nat.o): Remove dependency list.
8797 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8798 * alphanbsd-nat.c: Delete. Contents moved to...
8799 * alphanbsd-tdep.c: ...here.
8800 (_initialize_alphanbsd_tdep): Register core functions.
8801 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8802
12bcb0fe
JT
88032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8804
8805 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8806 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8807 (alphanbsd-nat.o): Likewise.
8808 (alphabsd-tdep.o): New dependency list.
8809 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8810 (fill_gregset): Use alphabsd_fill_reg.
8811 (supply_fpregset): Use alphabsd_supply_fpreg.
8812 (fill_fpregset): Use alphabsd_fill_fpreg.
8813 (fetch_inferior_registers): Use struct reg and struct fpreg
8814 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8815 and alphabsd_supply_fpreg.
8816 (store_inferior_registers): Use struct reg and struct fpreg
8817 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8818 and alphabsd_fill_fpreg.
8819 * alphabsd-tdep.c: New file.
8820 * alphabsd-tdep.h: New file.
8821 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8822 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8823 alphabsd_supply_fpreg.
8824 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8825 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8826
361d1df0
EC
88272002-05-11 Eric Christopher <echristo@redhat.com>
8828
8829 * mips-tdep.c (mips_double_register_type): Fix thinko.
8830 (mips_single_register_type): Ditto.
8831 * MAINTAINERS: Add self.
8832
92dd7cee
MK
88332002-05-11 Mark Kettenis <kettenis@gnu.org>
8834
8835 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8836 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8837 right thing on architectures with different endianness and/or
8838 integer sizes.
8839
e27da16d
JT
88402002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8841
8842 From Christian Limpach <chris@Pin.LU>
8843 * configure.in: Change sed expression which comments out
8844 NATDEPFILES to also comment out continuation lines.
8845 * configure: Regenerate.
8846
ddde02bd
EZ
88472002-05-10 Elena Zannoni <ezannoni@redhat.com>
8848
8849 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8850 big patch.
8851
1c922164
EZ
88522002-05-10 Elena Zannoni <ezannoni@redhat.com>
8853
8854 * sh-tdep.c: Include correct file.
8855
283150cd
EZ
88562002-05-10 Elena Zannoni <ezannoni@redhat.com>
8857
8858 New support for sh64-elf (sh5) target.
8859
8860 * configure.tgt: For sh64-elf target, default to sh-elf.
8861
8862 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8863 (struct gdbarch_tdep): Add new fields for new registers and ABI
8864 info.
361d1df0 8865
283150cd
EZ
8866 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8867 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8868 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8869 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8870 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8871 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8872 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8873 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8874 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8875 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8876 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8877 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8878 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8879 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8880 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8881 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8882 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8883 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8884 sign_extend, sh64_nofp_frame_init_saved_regs,
8885 sh64_init_extra_frame_info, sh64_get_saved_register,
8886 sh64_extract_struct_value_address, sh64_pop_frame,
8887 sh64_push_arguments, sh64_extract_return_value,
8888 sh64_store_return_value, sh64_show_media_regs,
8889 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8890 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8891 sh_sh64_register_virtual_type,
8892 sh_sh64_register_convert_to_virtual,
8893 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8894 sh64_register_read, sh64_pseudo_register_write,
8895 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8896 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8897 sh64_do_pseudo_register, sh_compact_do_registers_info,
8898 sh64_do_registers_info, sh_gdbarch_init): New functions.
8899
3117ed25
EZ
89002002-05-10 Elena Zannoni <ezannoni@redhat.com>
8901
8902 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8903
2654e6d4
DJ
89042002-05-10 Daniel Jacobowitz <drow@mvista.com>
8905
8906 * linespec.c (decode_line_1): Check for a double quote after
8907 a filename correctly.
8908
9ab3e532
JB
89092002-05-10 Jim Blandy <jimb@redhat.com>
8910
8911 Properly track the size of the current objfile's .debug_line section.
8912 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8913 (DWARF_LINE_SIZE): New macro.
8914 (dwarf2_build_psymtabs_hard): Record the line section's size in
8915 the partial symbol table.
8916 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8917 symbol table.
8918
126fa72d
PS
89192002-05-10 Petr Sorfa <petrs@caldera.com>
8920
8921 * ia64-tdep.c: Handle breakpoints on L instruction type
8922 in MLX instruction bundle by moving the breakpoint to
8923 the third slot (X instruction type) as L holds only data.
8924
1f077a3e
KB
89252002-05-10 Kevin Buettner <kevinb@redhat.com>
8926
8927 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8928 (process_one_symbol): Complain about discarding local symbols
8929 due to a misplaced N_LBRAC entry.
8930
8120c9d5 89312002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8932
8933 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8934 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8935 decrease the depth we are at, in the case of templates.
361d1df0 8936
67b2c998
DJ
89372002-05-09 Daniel Jacobowitz <drow@mvista.com>
8938
8939 * mips-tdep.c (mips_float_register_type): New function.
8940 (mips_double_register_type): New function.
8941 (mips_print_register): Use them.
8942 (do_fp_register_row): Likewise.
8943
fd326606
DJ
89442002-05-09 Daniel Jacobowitz <drow@mvista.com>
8945
6609d9af 8946 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8947 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8948 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8949
bef35864
MS
89502002-05-09 Michael Snyder <msnyder@redhat.com>
8951
8952 * remote-rdp.c (remote_rdp_can_run): Remove.
8953
c55a3f73
TT
89542002-05-09 Tom Tromey <tromey@redhat.com>
8955
8956 * jv-valprint.c (java_val_print): Handle `char' as a special case
8957 of TYPE_CODE_INT.
8958
b8d5e71d
MS
89592002-05-09 Michael Snyder <msnyder@redhat.com>
8960
8961 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8962 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8963 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8964 str r(0123),[sp,#nn].
361d1df0 8965 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8966 order-independent by placing it in a loop.
8967
e2cd42dd
MS
89682002-05-06 Michael Snyder <msnyder@redhat.com>
8969
8970 * stabsread.c (read_type): Add recognition for new attribute:
8971 "@V;" means that an array type is actually a vector.
8972 This is analogous to the vector flag that's been added to dwarf2.
8973
3ce1502b
MK
89742002-05-09 Mark Kettenis <kettenis@gnu.org>
8975
8976 * i386-tdep.h (i386_abi): New enum.
8977 (struct gdbarch_tdep): Replace os_ident member with abi.
8978 (i386_gdbarch_register_os_abi): New prototype.
8979 * i386-tdep.c (i386_abi_names): New array.
8980 (process_note_abi_tag_sections): Removed.
8981 (process_note_sections): New function.
8982 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8983 (struct i386_abi_handler): New struct.
8984 (i386_abi_handler_list): New variable.
8985 (i386_gdbarch_register_os_abi): New function.
8986 (i386_gdbarch_init): Adapt for the changes given above.
8987
084c156a
DJ
89882002-05-08 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * gregset.h: Say "GNU/Linux".
8991
6599f021
EZ
89922002-05-08 Elena Zannoni <ezannoni@redhat.com>
8993
8994 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8995 (build_gdbtypes): Build builtin_type_v2_float.
8996 (_initialize_gdbtypes): Register new builtin type.
8997
40af4b0c
AC
89982002-05-08 Andrew Cagney <ac131313@redhat.com>
8999
9000 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9001 (clear_gdbarch_swap): New function.
9002 (initialize_non_multiarch): Call.
9003 (gdbarch_update_p): Before calling init(), swap out and clear the
9004 existing architecture.
9005 * gdbarch.c: Regenerate.
9006
4fe84f46
JT
90072002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9008
9009 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9010 alphanbsd-tdep.c.
9011
4015edd1
JT
90122002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9013
9014 * sh-nbsd-nat.c: Rename to...
9015 * shnbsd-nat.c: ...this.
9016 * sh-nbsd-tdep.c: Rename to...
9017 * shnbsd-tdep.c: ...this.
9018 * sh-nbsd-tdep.h: Rename to...
9019 * shnbsd-tdep.h: ...this.
9020 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9021 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9022
0e2bd219
RE
90232002-05-08 Richard Earnshaw <rearnsha@arm.com>
9024
9025 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9026 concatenation for command help messages.
9027
13a38d45
JT
90282002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9029
9030 * NEWS: Note new sh*-*-netbsdelf* configuration.
9031 * configure.host: Set gdb_host_cpu to sh for all sh*.
9032 (sh*-*-netbsdelf*): New host.
9033 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9034 (sh*-*-netbsdelf*): New target.
9035 * sh-nbsd-nat.c: New file.
9036 * sh-nbsd-tdep.c: New file.
9037 * sh-nbsd-tdep.h: New file.
9038 * config/sh/nbsd.mh: New file.
9039 * config/sh/nbsd.mt: New file.
9040 * config/sh/nm-nbsd.h: New file.
9041 * config/sh/tm-nbsd.h: New file.
9042
d658f924
JT
90432002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9044
9045 * sh-tdep.c (sh_osabi_names): Declare.
9046 (process_note_abi_tag_sections): New function.
9047 (get_elfosabi): Ditto.
9048 (sh_gdbarch_register_os_abi): Ditto.
9049 (sh_dump_tdep): Ditto.
9050 _initialize_sh_tdep): Use gdbarch_register to register
9051 sh_gdbarch_init and sh_dump_tdep.
9052 * config/sh/tm-sh.h (sh_osabi): Declare.
9053 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9054
848cfffb
AC
90552002-05-07 Andrew Cagney <ac131313@redhat.com>
9056
9057 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9058 (thumb_scan_prologue): Ditto.
9059 (arm_find_callers_reg): Ditto.
9060 (arm_frame_chain): Ditto.
9061 (arm_init_extra_frame_info): Ditto.
9062 (arm_frame_saved_pc): Ditto.
9063 (arm_pop_frame): Ditto.
9064 (arm_push_return_address): New function.
9065 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9066 call_dummy_location, call_dummy_breakpoint_offset_p,
9067 call_dummy_breakpoint_offset, call_dummy_p,
9068 call_dummy_stack_adjust_p, call_dummy_words,
9069 sizeof_call_dummy_words, call_dummy_start_offset,
9070 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9071 call_dummy_address, push_return_address and push_dummy_frame for
9072 generic dummy frames.
9073
e7d717c0
JT
90742002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9075
9076 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9077 size computation for alloca.
9078 (sh_fp_frame_init_saved_regs): Likewise.
9079
7bbcf283
RE
90802002-05-07 Richard Earnshaw <rearnsha@arm.com>
9081
9082 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9083 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9084 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9085 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9086 * remote-rdp.c (remote_rdp_fetch_register): Use
9087 ARM_MAX_REGISTER_RAW_SIZE.
9088 (remote_rdp_store_register): Likewise.
9089
4657573b
ML
90902002-05-07 Michal Ludvig <mludvig@suse.cz>
9091
361d1df0 9092 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9093 added default labels to switch {} statements.
9094 * x86-64-tdep.c: Ditto.
9095 * x86-64-linux-nat.c: Ditto.
9096
010f3b2f
JT
90972002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9098
9099 * solib.h: Protect against multiple inclusion.
9100
debd256d
JB
91012002-05-06 Jim Blandy <jimb@redhat.com>
9102
9ab3e532
JB
9103 Add first preprocessor macro-expansion files.
9104 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9105 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9106 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9107 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9108 (COMMON_OBS): Add macrotab.o, macroexp.o.
9109 (macroexp.o, macrotab.o): New rules.
9110
debd256d
JB
9111 Separate the job of reading the line number info statement program
9112 header (...expialidocious) out into its own function.
9113 * dwarf2read.c (struct line_head, struct filenames, struct
9114 directories): Replace with...
9115 (struct line_header): New structure, containing the full
9116 contents of the statement program header, including the
9117 include directory and file name tables.
9118 (read_file_scope): If we have line number info, instead of just
9119 calling dwarf_decode_lines to do all the work, call
9120 dwarf_decode_line_header first to get a `struct line_header'
9121 containing the data in the statement program header, and then
9122 pass that to dwarf_decode_lines, which will pick up where that
9123 left off. Be sure to clean up the `struct line_header' object.
9124 (dwarf_decode_line_header, free_line_header, add_include_dir,
9125 add_file_name): New functions.
9126 (dwarf_decode_lines): Move all the code to read the statement
9127 program header into dwarf_decode_line_header. Take the line
9128 header it built as the first argument, instead of the offset to
9129 the compilation unit's line number info. Use the new `struct
9130 line_header' type instead of the old structures. No need to do
9131 cleanups here now, since we don't allocate anything.
9132 (dwarf2_statement_list_fits_in_line_number_section,
9133 dwarf2_line_header_too_long): New complaints.
9134
ac3aafc7
EZ
91352002-05-06 Elena Zannoni <ezannoni@redhat.com>
9136
9137 * gdbtypes.c (init_vector_type): New function.
9138 (build_builtin_type_vec128): Simplify the representation of SIMD
9139 registers.
9140 (build_gdbtypes): Initialize new builtin vector types.
9141 (_initialize_gdbtypes): Register new vector types with gdbarch.
9142 (builtin_type_v4_float, builtin_type_v4_int32,
9143 builtin_type_v8_int16, builtin_type_v16_int8,
9144 builtin_type_v2_int32, builtin_type_v4_int16,
9145 builtin_type_v8_int8): New (renamed) SIMD types.
9146
13e49980
MK
91472002-05-06 Mark Kettenis <kettenis@gnu.org>
9148
9149 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9150 (i387_fill_fxsave): Likewise.
9151
997b20b8
AO
91522002-05-05 Alexandre Oliva <aoliva@redhat.com>
9153
9154 * alpha-tdep.c (alpha_extract_return_value): Don't use
9155 non-constant array size in prototype.
9156
535c96ce
AC
91572002-05-04 Andrew Cagney <ac131313@redhat.com>
9158
9159 From Brian Taylor <briant at model dot com>:
9160 * ui-out.c (ui_out_field_core_addr): Use the function
9161 longest_local_hex_string_custom'to format addresses > 32 bits
9162 wide.
9163
9164 * ui-out.c (ui_out_field_core_addr): Update comment.
9165
bedfa57b
AC
91662002-05-04 Andrew Cagney <ac131313@redhat.com>
9167
9168 * stack.c (select_and_print_frame): Make static. Delete the
9169 parameter `level'.
9170 (func_command): Update call.
9171 (select_frame_command): Delete code computing the frame level.
9172 * frame.h (select_and_print_frame): Delete declaration.
9173
f621c63e
AC
91742002-05-04 Andrew Cagney <ac131313@redhat.com>
9175
9176 * sparc-tdep.c (sparc_get_saved_register): Comment why
9177 get_prev_frame call is safe.
9178
0f7d239c
AC
91792002-05-04 Andrew Cagney <ac131313@redhat.com>
9180
9181 * frame.h (select_frame): Delete level parameter.
9182 * stack.c (select_frame): Update. Use frame_relative_level to
9183 obtain the frame's level.
9184 (select_and_print_frame): Update call.
9185 (select_frame_command): Ditto.
9186 (up_silently_base): Ditto.
9187 (down_silently_base): Ditto.
9188 * ocd.c (ocd_start_remote): Ditto.
9189 * remote-rdp.c (remote_rdp_open): Ditto.
9190 * remote-mips.c (mips_initialize): Ditto.
9191 (common_open): Ditto.
9192 * remote-e7000.c (e7000_start_remote): Ditto.
9193 * m3-nat.c (select_thread): Ditto.
9194 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9195 (child_get_current_exception_event): Ditto.
9196 * varobj.c (varobj_create): Ditto.
9197 (varobj_update): Ditto.
9198 (c_value_of_root): Ditto.
9199 * tracepoint.c (finish_tfind_command): Ditto.
9200 * corelow.c (core_open): Ditto.
9201 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9202 * thread.c (info_threads_command): Ditto.
9203 (switch_to_thread): Ditto.
9204 * infrun.c (normal_stop): Ditto.
9205 (restore_selected_frame): Ditto.
9206 (restore_inferior_status): Ditto.
9207 * breakpoint.c (insert_breakpoints): Ditto.
9208 (watchpoint_check): Ditto.
9209 (bpstat_stop_status): Ditto.
9210 (do_enable_breakpoint): Ditto.
9211 * blockframe.c (flush_cached_frames): Ditto.
9212 (reinit_frame_cache): Ditto.
9213
71d6c7b1
AC
92142002-05-04 Andrew Cagney <ac131313@redhat.com>
9215
9216 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9217 maintainer.
9218
cda6c68a
JB
92192002-05-04 Jim Blandy <jimb@redhat.com>
9220
9221 * gdbtypes.c (replace_type): Doc fix.
9222
5c1c87f0
AC
92232002-05-04 Andrew Cagney <ac131313@redhat.com>
9224
9225 * valprint.c (strcat_longest): Delete commented out function.
9226 Update copyright.
9227
cd9bfe15
AC
92282002-05-04 Andrew Cagney <ac131313@redhat.com>
9229
9230 * MAINTAINERS: Mark a29k as deleted.
9231 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9232 Move new configurations to the top.
9233 * configure.tgt: Remove a29k.
9234 * config/a29k/tm-vx29k.h: Delete.
9235 * config/a29k/vx29k.mt: Delete.
9236 * config/a29k/tm-a29k.h: Delete.
9237 * config/a29k/a29k-udi.mt: Delete.
9238 * config/a29k/a29k.mt: Delete.
9239 * a29k-tdep.c: Delete.
9240 * remote-udi.c: Delete.
9241 * remote-mm.c: Delete.
9242 * remote-eb.c: Delete.
9243 * remote-adapt.c: Delete.
9244 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9245 * config/s390/s390x.mt: Ditto.
9246 * config/s390/s390.mt: Ditto.
9247 * config/sparc/sparclynx.mh: Ditto.
9248 * config/sparc/linux.mh: Ditto.
9249 * config/pa/hppaosf.mh: Ditto.
9250 * config/pa/hppabsd.mh: Ditto.
9251 * config/ns32k/nbsd.mt: Ditto.
9252 * config/mips/vr5000.mt: Ditto.
9253 * config/m68k/sun3os4.mh: Ditto.
9254 * config/m68k/nbsd.mt: Ditto.
9255 * config/m68k/m68klynx.mh: Ditto.
9256 * config/m32r/m32r.mt: Ditto.
9257 * config/i386/x86-64linux.mt: Ditto.
9258 * config/i386/nbsdelf.mt: Ditto.
9259 * config/i386/nbsd.mt: Ditto.
9260 * config/i386/i386lynx.mh: Ditto.
9261
bf0c5130
AC
92622002-05-04 Andrew Cagney <ac131313@redhat.com>
9263
9264 * target.c (debug_print_register): New function. Handle oversize
9265 registers.
9266 (debug_to_fetch_registers): Call.
9267 (debug_to_store_registers): Call.
9268
2ae1c2d2
JB
92692002-05-03 Jim Blandy <jimb@redhat.com>
9270
13a393b0
JB
9271 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9272 (read_type): Doc fix.
9273 * gdbtypes.c (replace_type): Doc fix.
9274
2ae1c2d2
JB
9275 * stabsread.c (multiply_defined_struct): New complaint.
9276 (read_struct_type): If the type we were passed isn't empty, or
9277 incomplete, don't read the new struct type into it; complain,
9278 and return the original type unchanged. Take a new `type_code'
9279 argument, which is the type code for the new type.
9280 (read_type): Rather than storing the type's type code here, pass
9281 it as an argument to read_struct_type, and let that take care of
9282 storing it. That way, we don't overwrite the original type code,
9283 so read_struct_type can use it to decide whether we're overwriting
9284 something we shouldn't.
9285 (complain_about_struct_wipeout): New function.
9286
8de9bdc4
AC
92872002-05-03 Andrew Cagney <ac131313@redhat.com>
9288
9289 * gdbarch.sh: Assert that gdbarch is non-NULL.
9290 * gdbarch.c: Regenerate.
9291
f773fdbb
JM
92922002-05-03 Jason Merrill <jason@redhat.com>
9293
9294 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9295 and return NULL.
9296
0e04a514
ML
92972002-05-03 Michal Ludvig <mludvig@suse.cz>
9298
9299 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9300 (x86_64_dwarf2gdb_regno_map_length),
9301 (x86_64_dwarf2_reg_to_regnum): Added.
9302 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9303 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9304 (_initialize_x86_64_tdep): Synced with the change above.
9305 (x86_64_skip_prologue): Reformulated message.
9306
065432a8
PM
93072002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9308
9309 * f-exp.y: Also use new prev_lexptr variable
9310 to improve error reporting. Based on Michael Snyder
9311 2002-04-24 dated patch to c-exp.y.
9312 * jv-exp.y: Likewise.
9313 * m2-exp.y: Likewise.
9314
a3162708
EZ
93152002-05-02 Elena Zannoni <ezannoni@redhat.com>
9316
9317 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9318 we are dealing with vectors.
9319
03620c38
PM
93202002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9321
9322 * config/m68k/tm-nbsd.h: Obvious fix,
9323 correct machine name.
9324
6604db2e
PM
93252002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9326
9327 * p-typeprint.c (pascal_type_print_base): Add support
9328 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9329
0906b739
PM
93302002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9331
9332 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9333 for fondamental pascal 'char' type.
9334
e2625b33
PM
93352002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9336
9337 * p-lang.h (is_pascal_string_type): Declaration changed,
9338 new sixth argument of type char ** added.
361d1df0 9339 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9340 changed. Args length_pos, length_size, string_pos, char_size
9341 can now be NULL. New argument arrayname set to the field
9342 name of the char array. Return value set to char array
9343 field index plus one.
361d1df0 9344 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9345 is_pascal_string_type function.
9346
cf17c188
AC
93472002-05-02 Andrew Cagney <cagney@redhat.com>
9348
9349 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9350 <cagney@redhat.com> change.
9351 * gdbarch.c: Regenerate.
9352
52bca491
AC
93532002-05-02 Andrew Cagney <cagney@redhat.com>
9354
9355 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9356 before probing for a new one. Detect errorenous gdbarch_init
9357 functions.
9358 * gdbarch.c: Regenerate.
9359
d5e72505
AC
93602002-05-01 Andrew Cagney <cagney@redhat.com>
9361
9362 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9363 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9364 * config/v850/tm-v850.h: Ditto. Update copyright.
9365
af566d9f
AC
93662002-04-30 Andrew Cagney <ac131313@redhat.com>
9367
9368 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9369 current_gdbarch.
9370
880d85fa
MS
93712002-04-30 Michael Snyder <msnyder@redhat.com>
9372
94c30b78
MS
9373 * arm-tdep.c: Whitespace clean-ups.
9374 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9375 should have been removed as part of 4/24 change.
9376
6f5987a6
KB
93772002-04-30 Kevin Buettner <kevinb@redhat.com>
9378
9379 * rs6000-tdep.c: Added comment describing how fpscr register
9380 numbers were chosen.
9381
1a113c93
MS
93822002-04-30 Michael Snyder <msnyder@redhat.com>
9383
9384 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9385
9a6f53fe
EZ
93862002-04-29 Elena Zannoni <ezannoni@redhat.com>
9387
9388 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9389 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9390 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9391
11ed25ac
KB
93922002-04-29 Kevin Buettner <kevinb@redhat.com>
9393
9394 From Louis Hamilton <hamilton@redhat.com>:
9395 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9396 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9397 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9398 not bfd-private xcoff data, to determine wordsize.
9399 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9400
ae232405
AC
94012002-04-29 Andrew Cagney <ac131313@redhat.com>
9402
9403 GDB 5.2 released from 5.2 branch.
9404
91fd20f7
ML
94052002-04-29 Michal Ludvig <mludvig@suse.cz>
9406
9407 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9408 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9409 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9410
2dc5091b
EZ
94112002-04-29 Elena Zannoni <ezannoni@redhat.com>
9412
9413 * rs6000-tdep.c (rs6000_extract_return_value,
9414 rs6000_store_return_value): Handle returning vectors.
9415 (rs6000_gdbarch_init): Use
9416 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9417 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9418 New function.
9419 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9420 vectors.
9421 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9422 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9423
2b9848d8
PM
94242002-04-24 Pierre Muller <ics.u-strasbg.fr>
9425
9426 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9427 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9428 with fprintf_unfiltered (gdb_stderr,...).
9429
f8d17dc5
PM
94302002-04-24 Pierre Muller <ics.u-strasbg.fr>
9431
9432 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9433 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9434 Replace fprintf (stderr,...
9435 with fprintf_unfiltered (gdb_stderr,....
9436 * remote-es.c: Likewise.
9437 * remote-os9k.c: Likewise.
9438 * remote-st.c: Likewise.
9439
2f2f1ad1
AS
94402002-04-28 Andreas Schwab <schwab@suse.de>
9441
9442 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9443 linux-proc.o and gcore.o.
9444
b6779aa2
AC
94452002-04-26 Michal Ludvig <mludvig@suse.cz>
9446
9447 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9448 code without frame pointers.
9449
7e57f5f4
AC
94502002-04-26 Andrew Cagney <ac131313@redhat.com>
9451
9452 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9453 ON_STACK is needed.
9454
2ceb85d0
BE
94552002-04-26 Ben Elliston <bje@redhat.com>
9456
9457 * target.c (do_xfer_memory): Correct reference to the new option
9458 "trust-readonly-sections".
9459
f5f8a009
EZ
94602002-04-26 Elena Zannoni <ezannoni@redhat.com>
9461
9462 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9463 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9464 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9465 vectors.
9466 (read_array_type): Record the fact that this array type is really a
9467 vector (i.e. are passed in by value).
9468
5868c862
JT
94692002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9470
9471 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9472 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9473 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9474 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9475 * alpha-linux-tdep.c: Include frame.h.
9476 (alpha_linux_sigcontext_addr): New function.
9477 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9478 alpha_linux_sigcontext_addr.
9479 * alpha-osf1-tdep.c: Include gdbcore.h.
9480 (alpha_osf1_sigcontext_addr): New function.
9481 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9482 alpha_osf1_sigcontext_addr.
9483 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9484 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9485
bfb01f37
AC
94862002-04-26 Andrew Cagney <ac131313@redhat.com>
9487
361d1df0 9488 * stack.c (selected_frame_level):
bfb01f37
AC
9489 (select_frame): Do not set selected_frame_level.
9490 * frame.h (selected_frame_level): Delete declaration.
9491
15813d3f
AC
94922002-04-26 Andrew Cagney <ac131313@redhat.com>
9493
9494 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9495 convert_from_func_ptr-addr when AIX / PowerOpen.
9496
6096c27a
AC
94972002-04-25 Andrew Cagney <ac131313@redhat.com>
9498
9499 * valops.c (hand_function_call): Call
9500 generic_save_call_dummy_addr.
9501 * frame.h (generic_save_call_dummy_addr): Declare.
9502 * blockframe.c (struct dummy_frame): Add fields call_lo and
9503 call_hi.
9504 (generic_find_dummy_frame): Check for PC in range call_lo to
9505 call_hi instead of entry_point_address.
9506 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9507 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9508 (generic_save_call_dummy_addr): New function.
9509
f510d44e
DM
95102002-04-24 David S. Miller <davem@redhat.com>
9511
9512 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9513 sparc_skip_prologue.
9514 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9515 information to find prologue when possible.
9516 (sparc_prologue_frameless_p): Call examine_prologue directly.
9517 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9518 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9519 second argument.
9520 (SKIP_PROLOGUE): Likewise.
9521
15d72a92
JT
95222002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9523
9524 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9525 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9526 indicate that the condition it was testing is always true.
9527 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9528 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9529 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9530
accc6d1f
JT
95312002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9532
9533 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9534 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9535 tdep->jb_pc and tdep->jb_elt_size.
9536 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9537 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9538 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9539 * alpha-nat.c (get_longjmp_target): Remove.
9540 (JB_ELEMENT_SIZE): Ditto.
9541 (JB_PC): Ditto.
9542 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9543 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9544 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9545 to alpha_get_longjmp_target.
9546 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9547 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9548 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9549
1bfdc549
AC
95502002-04-25 Andrew Cagney <ac131313@redhat.com>
9551
9552 * README: Update to GDB 5.2.
9553
1bd316f0
AC
95542002-04-25 Andrew Cagney <ac131313@redhat.com>
9555
9556 * gdbarch.sh (LC_ALL): Set to `c'.
9557
2e5ff58c
TR
95582002-04-25 Theodore A. Roth <troth@verinet.com>
9559
9560 * avr-tdep.c: Ran through gdb_indent.sh.
9561
e33ce519
TR
95622002-04-25 Theodore A. Roth <troth@verinet.com>
9563
9564 * MAINTAINERS: Add myself as AVR maintainer.
9565 * NEWS: Note new target avr.
9566
8818c391
TR
95672002-04-25 Theodore A. Roth <troth@verinet.com>
9568
9569 * Makefile.in: Add support for AVR target.
9570 * configure.tgt: Add support for AVR target.
9571 * avr-tdep.c: New file
9572 * config/avr/avr.mt: New file.
9573
79509c2d
TR
95742002-04-25 Theodore A. Roth <troth@verinet.com>
9575
9576 * MAINTAINERS: Add myself to write-after-approval.
9577
dac8068e
PM
95782002-04-24 Pierre Muller <ics.u-strasbg.fr>
9579
9580 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9581 with fprintf_unfiltered (gdb_stderr,....
9582
25bf3106
PM
95832002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9584
9585 Fix PR gdb/508.
9586 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9587
24467a86
PM
95882002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9589
9590 * p-exp.y: Also use new prev_lexptr variable
9591 to improve error reporting. Based on Michael Snyder
9592 2002-04-24 dated patch to c-exp.y.
9593
95b80706
JT
95942002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9595
9596 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9597 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9598 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9599 to 0.
9600 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9601 and struct value.
9602 (FUNCTION_START_OFFSET): Remove.
9603 (BREAKPOINT): Ditto.
9604
e90cc612
JT
96052002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9606
9607 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9608 * NEWS: Ditto.
9609
6c72f9f9
JT
96102002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9611
9612 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9613 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9614 alpha_linux_pc_in_sigtramp.
9615 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9616 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9617 alpha_osf1_pc_in_sigtramp.
9618 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9619 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9620 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9621 alphafbsd_pc_in_sigtramp.
9622 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9623 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9624 alphanbsd_pc_in_sigtramp.
9625 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9626 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9627
5e4f3379
JT
96282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9629
9630 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9631
da8ca43d
JT
96322002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9633
9634 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9635 alphanbsd-tdep.c.
9636 (alphanbsd-nat.o): New dependency list.
9637 (alphanbsd-tdep.o): Ditto.
9638 * NEWS: Note new native NetBSD/alpha configuration.
9639 * alphanbsd-nat.c: New file.
9640 * alphanbsd-tdep.c: Ditto.
9641 * configure.host (alpha*-*-netbsd*): New host.
9642 * configure.tgt (alpha*-*-netbsd*): New target.
9643 * config/alpha/nbsd.mh: New file.
9644 * config/alpha/nbsd.mt: Ditto.
9645 * config/alpha/nm-nbsd.h: Ditto.
9646 * config/alpha/tm-nbsd.h: Ditto.
9647
36a6271d
JT
96482002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9649
9650 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9651 (alpha-osf1-tdep.o): New dependency list.
9652 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9653 and skip_sigtramp_frame members.
9654 * alpha-linux-tdep.c: Include gdbcore.h.
9655 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9656 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9657 * alpha-osf1-tdep.c: New file.
9658 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9659 alpha-osf1-dep.c.
9660 (alpha_frame_past_sigtramp_frame): New function.
9661 (alpha_dynamic_sigtramp_offset): Ditto.
9662 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9663 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9664 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9665 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9666 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9667 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9668 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9669 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9670 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9671 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9672 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9673 to find_solib_trampoline_target.
9674 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9675 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9676 (SKIP_TRAMPOLINE_CODE): Remove.
9677 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9678 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9679 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9680 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9681 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9682 (PROC_SIGTRAMP_MAGIC): Ditto.
9683 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9684 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9685 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9686 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9687 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9688
2f4bc57b
JT
96892002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9690
9691 * NEWS: Note that Alpha targets are now multi-arch.
9692
665132f9
MS
96932002-04-24 Michael Snyder <msnyder@redhat.com>
9694
9695 * parser-defs.h (prev_lexptr): New external variable.
9696 * parse.c (parse_exp_1): Set prev_lexptr to null before
9697 calling the language-specific parser.
9698 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9699 (yyerror): Use prev_lexptr in error reporting.
9700
32872fa7
DJ
97012002-04-24 Daniel Jacobowitz <drow@mvista.com>
9702
9703 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9704 * gregset.h: If FILL_FPXREGSET is defined, provide
9705 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9706 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9707 is defined, call fill_fpxregset.
9708
57e76fac
MS
97092002-04-24 Roland McGrath <roland@frob.com>
9710
9711 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9712 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9713 (supply_gregset, supply_fpregset): New functions.
9714
9715 * gnu-nat.c (gnu_find_memory_regions): New function.
9716 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9717 (gnu_xfer_memory): Add a cast.
9718
f43845b3
MS
97192002-04-24 Michael Snyder <msnyder@redhat.com>
9720
361d1df0 9721 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9722 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9723 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9724 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9725 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9726 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9727
a0abec03
AC
9728Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9729
9730 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9731 NUM_PSEUDO_REGS can be used.
9732
d7bd68ca
AC
97332002-04-24 Andrew Cagney <ac131313@redhat.com>
9734
9735 * arch-utils.h: Update copyright.
9736
9737 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9738 * gdbarch.h, gdbarch.c: Re-generate.
9739
9740 * inferior.h (IN_SIGTRAMP): Delete definition.
9741 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9742 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9743
9744 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9745 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9746 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9747 (find_proc_framesize): Ditto.
9748 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9749 (alpha_init_extra_frame_info): Ditto.
9750 * infrun.c (handle_inferior_event): Ditto.
9751 (handle_inferior_event): Ditto.
9752 (check_sigtramp2): Ditto.
9753 * blockframe.c (create_new_frame): Ditto.
9754 (get_prev_frame): Ditto.
9755 * ppc-linux-tdep.c: Update comments.
9756 * i386-linux-tdep.c: Update comments.
9757 * breakpoint.c (bpstat_what): Update comment.
9758
4867e41e
DM
97592002-04-24 David S. Miller <davem@redhat.com>
9760
21d83aa5
DM
9761 * i960-tdep.c (register_in_window_p): New function.
9762 (i960_find_saved_register): Use it instead of
9763 REGISTER_IN_WINDOW_P.
9764 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9765
4867e41e
DM
9766 * symtab.h (find_stab_function_addr): Kill extern.
9767 * minsyms.c (find_stab_function_addr): Remove from here...
9768 * dbxread.c: ... to here, and mark it static.
9769
69cdf6a2
DM
97702002-04-20 David S. Miller <davem@redhat.com>
9771
9772 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9773 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9774
5a595886
DM
97752002-04-21 David S. Miller <davem@redhat.com>
9776
9777 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9778 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9779 (vx_write_register): Likewise.
9780
1da1a192
JB
97812002-04-23 J. Brobecker <brobecker@gnat.com>
9782
9783 * source.c (is_regular_file): New function.
9784 (openp): Check wether file to open is a regular file
9785 to avoid opening directories.
9786
baa6f10b
JT
97872002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9788
9789 * findvar.c (extract_signed_integer): Cast printf argument
9790 to suppress format warning.
9791 (extract_unsigned_integer): Likewise.
9792 * infcmd.c (registers_info): Likewise.
9793 * top.c (get_prompt_1): Likewise.
9794 * valops.c (value_assign): Likewise.
9795 * valprint.c (print_decimal): Likewise.
9796
b2c4da81
L
97972002-04-22 H.J. Lu (hjl@gnu.org)
9798
9799 * c-exp.y (typebase): Support
361d1df0 9800
b2c4da81
L
9801 [long|long long|short] [signed|unsigned] [int|]
9802
9803 and
9804
9805 signed [long|long long|short] int
9806
f267bd6a
JT
98072002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9808
9809 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9810 and vax-tdep.h.
9811 * vax-tdep.h: New file.
9812 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9813 Make several routines static.
9814 (vax_get_saved_register): New function.
9815 (vax_gdbarch_init): New function.
9816 (_initialize_vax_tdep): Register vax_gdbarch_init.
9817 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9818 Remove macros now under the control of gdbarch.
9819
da3c6d4a
MS
98202002-04-22 Michael Snyder <msnyder@redhat.com>
9821
11d3b27d
MS
9822 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9823 Some whitespace and coding standards tweaks.
da3c6d4a 9824
a33f7558
JT
98252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9826
9827 * vax-tdep.c: Include regcache.h.
9828 (vax_call_dummy_words): New.
9829 (sizeof_vax_call_dummy_words): New.
9830 (vax_fix_call_dummy): New function.
9831 (vax_saved_pc_after_call): Ditto.
9832 * config/vax/tm-vax.h: Don't include regcache.h.
9833 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9834 (CALL_DUMMY): Remove.
9835 (CALL_DUMMY_WORDS): Define.
9836 (SIZEOF_CALL_DUMMY_WORDS): Define.
9837 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9838
47a73475
MS
98392002-04-18 Michael Snyder <msnyder@redhat.com>
9840
9841 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9842
52efde73
JT
98432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9844
9845 * vax-tdep.c (vax_frame_chain): New function.
9846 (vax_push_dummy_frame): Ditto.
9847 (vax_pop_frame): Ditto.
9848 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9849 (FRAMELESS_FUNCTION_INVOCATION): Use
9850 generic_frameless_function_invocation_not.
9851 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9852 (POP_FRAME): Use vax_pop_frame.
9853
ea74468c
JT
98542002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9855
9856 * vax-tdep.c (vax_store_struct_return): New function.
9857 (vax_extract_return_value): Ditto.
9858 (vax_store_return_value): Ditto.
9859 (vax_extract_struct_value_address): Ditto.
9860 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9861 vax_store_struct_return.
9862 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9863 (STORE_RETURN_VALUE): Use vax_store_return_value.
9864 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9865
5516aa92
JT
98662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9867
9868 * vax-tdep.c (vax_frame_saved_pc): New function.
9869 (vax_frame_args_address_correct): Ditto.
9870 (vax_frame_args_address): Ditto.
9871 (vax_frame_locals_address): Ditto.
9872 (vax_frame_num_args): Move code to be in proximity to
9873 other frame-related functions.
9874 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9875 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9876 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9877 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9878 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9879
36af0b35
L
98802002-04-22 H.J. Lu (hjl@gnu.org)
9881
9882 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9883 includedir.
9884
ab62c900
JT
98852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9886
9887 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9888 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9889 (FRAME_INIT_SAVED_REGS): New macro.
9890
7232b100
JT
98912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9892
9893 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9894
b70d2aee
JT
98952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9896
9897 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9898 where needed.
9899 (fetch_osf_core_registers): Likewise.
9900 (supply_gregset): Likewise.
9901
a0e8a2d1 99022002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9903
a0e8a2d1
JB
9904 * symfile.h (get_section_index): Define.
9905 * symfile.c (get_section_index): New function.
9906 * mdebugread.c (SC_IS_SBSS): New macro.
9907 (SC_IS_BSS): Return true for the scBss storage class only, as
9908 the scSBss storage class refers to the .sbss section.
9909 (parse_partial_symbols): Discard the symbols which associated
9910 section does not exist.
9911 Make sure to use the .sbss section index for symbols which
9912 storage class is scBss, rather than using the .bss section index.
9913
51eb8b08
JT
99142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9915
9916 * vax-tdep.c: Update copyright years.
9917 (vax_register_name): New function.
9918 (vax_register_byte): Ditto.
9919 (vax_register_raw_size): Ditto.
9920 (vax_register_virtual_size): Ditto.
9921 (vax_register_virtual_type): Ditto.
9922 * config/vax/tm-vax.h: Update copyright years.
9923 (REGISTER_NAMES): Remove.
9924 (REGISTER_NAME): Define.
9925 (REGISTER_BYTE): Use vax_register_byte.
9926 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9927 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9928 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9929
6cc1c0a8
AC
99302002-04-21 Andrew Cagney <ac131313@redhat.com>
9931
9932 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9933 declaration
9934 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9935
9319a2fe
DM
99362002-04-21 David S. Miller <davem@redhat.com>
9937
9938 * arch-utils.c (generic_prologue_frameless_p): Kill
9939 SKIP_PROLOGUE_FRAMELESS_P code.
9940 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9941 references.
9942 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9943 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9944 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9945 references.
9946 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9947 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9948 (sparc_gdbarch_init): Pass it to
9949 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9950
e9ed6d01
JT
99512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9952
9953 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9954 (alphabsd-nat.o): New dependency list.
9955
36012033
JT
99562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9957
9958 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9959 alphafbsd-tdep.c.
9960 (alpha-linux-tdep.o): New dependency list.
9961 (alphafbsd-tdep.o): Likewise.
9962
3379287a
JT
99632002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9964
9965 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9966 to here...
9967 * alpha-tdep.c: ...from here.
9968 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9969
4bcbd6cb
JT
99702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9971
9972 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9973 prototype from here...
9974 * alpha-tdep.h: ...to here.
9975
b31da25e
AC
99762002-04-21 Andrew Cagney <ac131313@redhat.com>
9977
9978 * frame.h (selected_frame_level): Document as deprecated.
9979 (frame_relative_level): Declare.
9980 * stack.c (frame_relative_level): New function.
9981 (selected_frame_level): Document as deprecated.
9982 (select_frame): Do not set the selected_frame_level.
9983
9984 * stack.c (frame_info, record_selected_frame): Update.
9985 (frame_command, current_frame_command): Update.
9986 (up_silently_base, up_command, down_silently_base): Update.
9987 (down_command): Update.
9988 * inflow.c (kill_command): Update.
9989 * tracepoint.c (finish_tfind_command): Update.
9990 * corelow.c (core_open): Update.
9991 * thread.c (info_threads_command): Update.
9992 (do_captured_thread_select): Update.
9993 * infcmd.c (finish_command): Update.
9994 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9995
9c1d6fe5
JT
99962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9997
9998 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9999
ab89facf
AC
100002002-04-21 Andrew Cagney <ac131313@redhat.com>
10001
10002 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10003 type const.
10004
82a4efa1
JT
100052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10006
10007 * alphafbsd-tdep.c: Update copyright years. Include
10008 alpha-tdep.h.
10009 (alphafbsd_use_struct_convention): Make static.
10010 (alphafbsd_init_abi): New function.
10011 (_initialize_alphafbsd_tdep): New function.
10012 * config/alpha/tm-fbsd.h: Update copyright years.
10013 (USE_STRUCT_CONVENTION): Remove.
10014
44dffaac
JT
100152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10016
10017 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10018 an Alpha ABI variant.
10019 (alpha_abi_handler_list): Declare.
10020 (alpha_gdbarch_register_os_abi): New function.
10021 (alpha_gdbarch_init): Give registered ABI variant handlers a
10022 chance to tweak the gdbarch once we have set up defaults.
10023 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10024
65585be4
JT
100252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10026
10027 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10028 to standard_coerce_float_to_double.
10029 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10030
d9b023cc
JT
100312002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10032
10033 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10034 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10035 from gdbarch_tdep rather than a constant.
10036 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10037 the default text address for all Alpha Unix ABIs.
10038 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10039 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10040
dc129d82
JT
100412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10042
10043 * alpha-tdep.h: New file. Includes several Alpha target constants
10044 taken from...
10045 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10046 let gdbarch deal with.
10047 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10048 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10049 to dependency list.
10050 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10051 Alpha target register names.
10052 * alphabsd-nat.c: Likewise.
10053 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10054 Alpha target register names. Make serveral routines static.
10055 (alpha_get_saved_register): New function.
10056 (alpha_abi_names): New.
10057 (process_note_abi_tag_sections): New function.
10058 (get_elfosabi): New function.
10059 (alpha_gdbarch_init): New function.
10060 (alpha_dump_tdep): New function.
10061 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10062
d49d1e0a
AC
100632002-04-21 Andrew Cagney <ac131313@redhat.com>
10064
10065 * frame.c (find_saved_register): Delete #ifdef
10066 HAVE_REGISTER_WINDOWS code.
10067 * config/sparc/tm-sparc.h: Update comments.
10068 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10069
92e8c9ed
AC
100702002-04-21 Andrew Cagney <ac131313@redhat.com>
10071
10072 * i960-tdep.c (i960_find_saved_register): New function.
10073 (i960_get_saved_register): New function.
10074 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10075 (i960_get_saved_register): Declare.
10076 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10077
e1925118
DM
100782002-04-20 David S. Miller <davem@redhat.com>
10079
10080 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10081
29673b29
AC
100822002-04-20 Andrew Cagney <ac131313@redhat.com>
10083
10084 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10085 instead of NUM_PSEUDO_REGS.
10086
6c86dcd5
DM
100872002-04-20 David S. Miller <davem@redhat.com>
10088
10089 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10090 GDB_MULTI_ARCH_PARTIAL
10091 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10092 define, let tm-sp64.h do it.
10093
aa40ec90
JT
100942002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10095
10096 * frame.c (find_saved_register): Avoid a NULL pointer
10097 dereference and actually walk the frame list.
10098
0f79675b
AC
100992002-04-20 Andrew Cagney <ac131313@redhat.com>
10100
10101 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10102 sorted in most most-recent-used order. Document.
10103 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10104
f91305dd 101052002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10106
10107 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10108 instead of ->prev.
10109 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10110 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10111 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10112 instead of ->prev.
10113
73d322b1
EZ
101142002-04-19 Elena Zannoni <ezannoni@redhat.com>
10115
10116 Fix PR gdb/471.
10117 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10118 (build_builtin_type_vec128): Ditto.
10119 (append_composite_type_field): Fix calculation of type length in
10120 union case.
10121
ccd9a834
EZ
101222002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10123
10124 * config/djgpp/README: Update.
10125
10126 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10127 compiler warnings.
10128
a57f9e49
JT
101292002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10130
10131 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10132 (alpha_setup_arbitrary_frame): ...to this.
10133 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10134 for alpha_setup_arbitrary_frame.
10135
f4f9705a
AC
101362002-04-18 Andrew Cagney <cagney@redhat.com>
10137
10138 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10139 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10140
f4f9705a
AC
10141 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10142 * target.h (memory_breakpoint_from_pc): Update declaration.
10143 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10144
10145 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10146 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10147 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10148 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10149 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10150 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10151 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10152 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10153 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10154 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10155 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10156 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10157
10158 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10159 const pointer.
10160 * monitor.c (monitor_insert_breakpoint): Ditto.
10161 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10162
10163 * config/mcore/tm-mcore.h: Update copyright.
10164 * mem-break.c: Ditto.
10165 * xstormy16-tdep.c: Ditto.
10166
29f319b8
PM
101672002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10168
10169 * p-exp.y: Add precedence rule for '^' token.
10170 This removes the shift/reduce conflicts.
10171 Remove the comment concerning these shift/reduce conflicts.
10172
ebeac11a
EZ
101732002-04-18 Elena Zannoni <ezannoni@redhat.com>
10174
10175 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10176 (registers_powerpc_nofp): New register set for processors
10177 without floating point unit.
10178
27c31547
DM
101792002-04-18 David S. Miller <davem@redhat.com>
10180
10181 * MAINTAINERS: Add myself to write-after-approval.
10182
47a73475
MS
101832002-04-17 Michael Snyder <msnyder@redhat.com>
10184
10185 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10186
953836b2
AC
101872002-04-17 Andrew Cagney <ac131313@redhat.com>
10188
10189 * rs6000-tdep.c (frame_initial_stack_address): Use
10190 frame_register_read to read the alloca_reg.
10191
8b0d4340
AC
101922002-04-17 Andrew Cagney <ac131313@redhat.com>
10193
10194 * frame.c (find_saved_register): Find saved registers in the next
10195 not prev frame.
10196 Fix PR gdb/365.
10197
d8864532
AC
101982002-04-17 Andrew Cagney <ac131313@redhat.com>
10199
10200 * gdbarch.sh (LANG): Set to ``c''.
10201
36cc83a3 102022002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10203
36cc83a3 10204 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10205
2f4150cc 102062002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10207
10208 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10209 Update copyright.
10210
628703c6 10211 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10212 Also fix PR gdb/391.
361d1df0 10213
56157b4a
AC
102142002-04-14 Andrew Cagney <ac131313@redhat.com>
10215
10216 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10217 * aclocal.m4, configure: Re-generate.
10218 Fix PR gdb/391.
361d1df0 10219
6d1e3329
EZ
102202002-04-14 Elena Zannoni <ezannoni@redhat.com>
10221
10222 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10223 instead of tm_print_insn.
10224
cb06fa07
EZ
102252002-04-14 Elena Zannoni <ezannoni@redhat.com>
10226
10227 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10228
f208ba17
AC
102292002-04-14 Andrew Cagney <ac131313@redhat.com>
10230
10231 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10232 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10233 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10234
20f01a46
DH
102352002-04-12 Don Howard <dhoward@redhat.com>
10236
10237 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10238 max_user_call_depth.
10239 (init_cmd_lists): Initialize the new value;
10240 * cli/cli-script.c (execute_user_command): Limit the call depth of
10241 user defined commands. This avoids a core-dump when user commands
10242 are infinitly recursive.
10243
a88376a3
KB
102442002-04-12 Kevin Buettner <kevinb@redhat.com>
10245
10246 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10247 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10248 from tdep struct instead of DEFAULT_LR_SAVE.
10249 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10250 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10251 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10252
f2172603
MS
102532002-04-12 Michael Snyder <msnyder@redhat.com>
10254
694f61fb 10255 * Remote.c: Spelling fix.
20fe79c8
MS
10256 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10257 If no symbol found for "sbrk", try "_sbrk".
10258 (make_output_phdrs): Use bfd_section_name.
10259 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10260 * eval.c: Indentation fix-ups.
169a7369
MS
10261 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10262 in case it gets applied to an address that is already
10263 in the instruction space.
de74f71f
MS
10264 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10265 * symfile.c: Fix indentation, long lines.
f2172603
MS
10266 * source.c: White space fix-up.
10267
cda5a58a
AC
102682002-04-12 Andrew Cagney <cagney@redhat.com>
10269
10270 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10271 * frame.c (frame_register_read): New function. Return non-zero on
10272 success.
10273 (read_relative_register_raw_bytes_for_frame): Delete.
10274 (read_relative_register_raw_bytes): Delete.
10275 * frame.h (frame_register_read): Declare.
10276 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10277 * sh-tdep.c: Ditto.
10278 * infcmd.c (do_registers_info): Ditto.
10279 * hppa-tdep.c: Ditto.
10280 * rs6000-tdep.c: Ditto.
10281 * h8500-tdep.c: Ditto.
10282 * mips-tdep.c: Ditto.
10283 * h8300-tdep.c: Ditto.
10284 * z8k-tdep.c: Ditto.
10285
2ea5f656
KB
102862002-04-12 Kevin Buettner <kevinb@redhat.com>
10287
10288 From Jimi X <jimix@watson.ibm.com>:
10289 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10290 64-bit SysV ABI.
10291
27b15785
KB
102922002-04-12 Kevin Buettner <kevinb@redhat.com>
10293
10294 From Jimi X <jimix@watson.ibm.com>:
10295 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10296 bfd info.
10297
5d57ee30
KB
102982002-04-12 Kevin Buettner <kevinb@redhat.com>
10299
10300 From Jimi X <jimix@watson.ibm.com>:
10301 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10302 register sets for these processor variants.
10303
bc1e36ca
DJ
103042002-04-11 Daniel Jacobowitz <drow@mvista.com>
10305
bc1e36ca
DJ
10306 * regformats/reg-ppc.dat: Support FPSCR.
10307
e3f36dbd
KB
103082002-04-11 Kevin Buettner <kevinb@redhat.com>
10309
10310 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10311 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10312 Add fpscr as an invalid/unfetchable register.
10313 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10314 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10315 (fill_fpregset): Add support for register fpscr.
10316 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10317 (fill_gregset): Account for the fact that register ``mq'' might
10318 not exist.
10319 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10320 (registers_power): Add fpscr to register set at slot 71.
10321 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10322 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10323
943c9c25
MS
103242002-04-11 Michael Snyder <msnyder@redhat.com>
10325
10326 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10327 * configure: Regenerate.
10328 * config.in: Regenerate.
10329 * acconfig.h: Add define for _SYSCALL32.
10330 * core-sol2.c: Remove #define _SYSCALL32.
10331 * solib-legacy.c: Remove #define _SYSCALL32.
10332
d8c0a2e7
AC
103332002-04-10 Andrew Cagney <ac131313@redhat.com>
10334
10335 * stack.c (select_frame): Cleanup internal error message, do not
10336 use %p.
10337
7cc19214
AC
103382002-04-10 Andrew Cagney <ac131313@redhat.com>
10339
10340 * stack.c (select_frame): Check that selected_frame and the
10341 specified level are as expected.
10342 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10343 Update copyright.
10344 * frame.h (struct frame_info): Add field `level'. Update
10345 copyright.
10346 Work-in-progress PR gdb/464.
10347
67a2b77e
AC
103482002-04-10 Andrew Cagney <ac131313@redhat.com>
10349
10350 * maint.c (maint_print_section_info): Rename print_section_info.
10351 (print_bfd_section_info, print_objfile_section_info): Update.
10352 * inferior.h (struct gdbarch): Add opaque declaration.
10353 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10354 * gdbarch.h: Regenerate.
10355
8cfda98c
ML
103562002-04-10 Michal Ludvig <mludvig@suse.cz>
10357
10358 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10359 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10360 (kernel_u_size): Added.
10361 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10362 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10363
ca439ad2 103642002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10365
ca439ad2
JI
10366 * valarith.c (find_size_for_pointer_math): New function, either returns
10367 the size for a pointer's target, returns 1 for void *, or errors for
10368 incomplete types.
10369 (value_add, value_sub): use find_size_for_pointer_math.
10370
2f2893d9
DJ
103712002-04-09 Daniel Jacobowitz <drow@mvista.com>
10372
10373 * linux-low.c (linux_look_up_symbols): New hook.
10374 (linux_target_ops): Add linux_look_up_symbols.
10375 * remote-utils.c (decode_address): New function.
10376 (look_up_one_symbol): New function.
10377 * server.c (handle_query): Call target look_up_symbols hook.
10378 * server.h (look_up_one_symbol): Add prototype.
10379 * target.h (struct target_ops): Add look_up_symbols hook.
10380
96cb11df
AC
103812002-04-09 Andrew Cagney <ac131313@redhat.com>
10382
10383 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10384 override FP_REGNUM with frame->fp. Update copyright.
10385 * parse.c (num_std_regs, std_regs): Delete.
10386 (target_map_name_to_register): Do not search std_regs. Update
10387 function description.
10388 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10389 declarations. Update copyright.
10390 Fix PR gdb/251.
361d1df0 10391
97658e92
DJ
103922002-04-09 Daniel Jacobowitz <drow@mvista.com>
10393
10394 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10395 after the last symbol in a block.
10396
6044e3eb
PM
103972002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10398
10399 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10400 is non zero as a found symbol.
10401
0406ec40
AC
104022002-04-08 Andrew Cagney <ac131313@redhat.com>
10403
10404 * findvar.c: Include "builtin-regs.h".
10405 (value_of_register): Call value_of_builtin_reg when applicable.
10406 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10407 (target_map_name_to_register): Call
10408 builtin_reg_map_name_to_regnum.
10409 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10410 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10411 (builtin_regs_h): Define.
10412 (builtin-regs.o): New target.
10413 (findvar.o): Add $(builtin_regs_h).
10414 * builtin-regs.c, builtin-regs.h: New files.
10415 * std-regs.c: New file.
10416 Partial fix for PR gdb/251.
10417
56a6dfb9
KB
104182002-04-08 Kevin Buettner <kevinb@redhat.com>
10419
10420 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10421 it's no longer required.
10422
3a808432
AC
104232002-04-08 Andrew Cagney <ac131313@redhat.com>
10424
10425 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10426
7c40d541
KB
104272002-04-08 Kevin Buettner <kevinb@redhat.com>
10428
10429 From Jimi X <jimix@watson.ibm.com>:
10430 * rs6000-tdep.c (rs6000_software_single_step): Use
10431 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10432 and size. Use target_insert_breakpoint() and
10433 target_remove_breakpoint() to insert and remove breakpoints
10434 instead of explicit memory reads and writes.
10435
cc9836a8
KB
104362002-04-08 Kevin Buettner <kevinb@redhat.com>
10437
10438 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10439 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10440 ELF_OBJECT_FORMAT ifdef.
10441
7495d1dc
KB
104422002-04-08 Kevin Buettner <kevinb@redhat.com>
10443
10444 From Jimi X <jimix@watson.ibm.com>:
10445 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10446
4288e836
KB
104472002-04-08 Kevin Buettner <kevinb@redhat.com>
10448
10449 From Jimi X <jimix@watson.ibm.com>:
10450 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10451 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10452
a4e4e501
MK
104532002-04-07 Mark Kettenis <kettenis@gnu.org>
10454
10455 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10456 s/asprintf/xasprintf/.
10457 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10458
006defba
AC
104592002-04-07 Andrew Cagney <ac131313@redhat.com>
10460
10461 I believe Jeff Law denies responsability for this one:
10462 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10463 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10464 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10465 Work-around for PR gdb/366.
10466
7aa83cac
EZ
104672002-04-07 Elena Zannoni <ezannoni@redhat.com>
10468
10469 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10470 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10471 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10472
cf1fcca1
EZ
104732002-04-07 Elena Zannoni <ezannoni@redhat.com>
10474
10475 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10476 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10477 information.
10478
3f289e6f
AC
104792002-04-07 Andrew Cagney <ac131313@redhat.com>
10480
10481 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10482 maintainer.
10483
129188f6
AC
104842002-04-07 Andrew Cagney <ac131313@redhat.com>
10485
10486 * README (Reporting Bugs in GDB): Document the bug web page as the
10487 prefered way of submitting bugs.
10488 Fix PR gdb/402.
10489
1200cd6e
AC
104902002-04-06 Andrew Cagney <ac131313@redhat.com>
10491
10492 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10493 -1. Update comment.
10494 * gdbarch.h, gdbarch.c: Re-generate.
10495
2853c33c
AS
104962002-04-07 Andreas Schwab <schwab@suse.de>
10497
10498 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10499 buffer to regcache_collect.
10500
c2169756
AC
105012002-04-06 Andrew Cagney <ac131313@redhat.com>
10502
10503 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10504 * gdbarch.c, gdbarch.h: Re-generate.
10505
25f1b008
AC
105062002-04-06 Andrew Cagney <ac131313@redhat.com>
10507
10508 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10509 declaration. Fix -Werror.
10510
59263426
DJ
105112002-04-05 Daniel Jacobowitz <drow@mvista.com>
10512
10513 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10514 * gdbarch.c: Regenerate.
10515
f5db4da3
MS
105162002-04-05 Michael Snyder <msnyder@redhat.com>
10517
80f8a6eb
MS
10518 * breakpoint.c (clear_command): Rewrite middle section to
10519 combine two loops with identical control conditions.
10520 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10521 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10522
ad3dcc5c
L
105232002-04-05 H.J. Lu (hjl@gnu.org)
10524
10525 * solib-svr4.c (bkpt_names): Add "__start".
10526
f32e7a74
AC
105272002-04-04 Andrew Cagney <ac131313@redhat.com>
10528
10529 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10530 as test for 64 bit target.
10531
8227c0ff
AC
105322002-04-05 Andrew Cagney <ac131313@redhat.com>
10533
10534 * h8500-tdep.c (h8500_write_fp): Delete function.
10535 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10536 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10537 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10539 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10540 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10541 (s390_write_fp):
10542 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10543 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10544 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10545 (d10v_write_fp): Delete function.
10546 * inferior.h (write_fp, generic_target_write_fp): Delete
10547 declarations.
10548 * regcache.c (generic_target_write_fp): Delete function.
10549 (write_fp): Delete function.
10550 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10551 * gdbarch.h, gdbarch.c: Regenerate.
10552 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10553 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10554 (sparc64_write_fp): Delete declaration.
10555 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10556 (h8500_write_fp): Delete declaration.
10557
2757dd86
AC
105582002-04-04 Andrew Cagney <ac131313@redhat.com>
10559
10560 * sparc-tdep.c (sparc64_write_fp): Delete.
10561 (sparc_push_dummy_frame): Replace write_fp call with code to store
10562 the FP directly.
10563 (sparc_gdbarch_init): Do not initialize write_fp.
10564
c69255e1
KB
105652002-04-05 Kevin Buettner <kevinb@redhat.com>
10566
10567 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10568 clause.
10569
ae767bfb
JB
105702002-03-29 Jim Blandy <jimb@redhat.com>
10571
10572 * stack.c (get_selected_block): Add new argument `addr_in_block',
10573 used to return the exact code address we used to select the block,
10574 not just the block.
10575 * blockframe.c (get_frame_block, get_current_block): Same.
10576 * frame.h (get_frame_block, get_current_block,
10577 get_selected_block): Update declarations.
10578 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10579 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10580
84d2ac95
MS
105812002-04-05 Michael Snyder <msnyder@redhat.com>
10582
10583 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10584 warning message.
10585
596aa3bf
JB
105862002-04-05 J. Brobecker <brobecker@gnat.com>
10587
10588 * utils.c (xfullpath): New function.
10589 * defs.h (xfullpath): Add declaration.
10590 * source.c (openp): Use xfullpath in place of gdb_realpath to
10591 avoid resolving the basename part of filenames when the
10592 associated file is a symbolic link. This fixes a potential
10593 inconsistency between the filenames known to GDB and the
10594 filenames it prints in the annotations.
10595 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10596 to be able to match a filename with either the real filename, or
10597 the name of any symbolic link to this file.
10598 (lookup_partial_symtab): Ditto.
10599
c02f5703
MS
106002002-04-04 Michael Snyder <msnyder@redhat.com>
10601
10602 * breakpoint.c: Add support for hardware breakpoints in overlays.
10603 (overlay_events_enabled): New state variable.
10604 (insert_breakpoints): Use overlay_events_enabled to decide
10605 whether to attempt to set a breakpoint at the overlay load addr.
10606 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10607 (remove_breakpoint): Use overlay_events_enabled to decide
10608 whether breakpoints need to be removed from overlay load addr.
10609 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10610 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10611 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10612 disable_overlay_breakpoints): Update overlay_events_enabled.
10613
5fb290d7
DJ
106142002-04-04 Daniel Jacobowitz <drow@mvista.com>
10615
10616 * dwarf2read.c (struct function_range): New.
10617 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10618 (check_cu_functions): New.
10619 (read_file_scope): Initialize global function lists.
10620 Call dwarf_decode_line after processing children.
10621 (read_func_scope): Add to global function list.
10622 (dwarf_decode_lines): Call check_cu_functions everywhere
10623 record_line is called. Call record_line with a linenumber
10624 of 0 to mark sequence ends.
10625
7b3fabf0
ML
106262002-04-04 Michal Ludvig <mludvig@suse.cz>
10627
361d1df0 10628 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10629 change sync with glibc.
10630
bce58c09
JB
106312002-04-03 Jim Blandy <jimb@redhat.com>
10632
10633 * configure.in: Call AC_C_INLINE.
10634 * configure: Regenerated.
361d1df0 10635
2fccf04a
DJ
106362002-04-01 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10639 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10640
2d1bfe2e
MK
106412002-03-31 Mark Kettenis <kettenis@gnu.org>
10642
a5941fbf
MK
10643 * NEWS: Mention gcore support on FreeBSD/i386.
10644
a90cd31d
MK
10645 * fbsd-proc.c: New file.
10646 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10647 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10648
2d1bfe2e
MK
10649 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10650 while statement.
10651
9eb6e5a1
JB
106522002-03-29 Jim Blandy <jimb@redhat.com>
10653
10654 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10655 unescaped newlines in string literals, but newer ones don't. So
10656 escape them.
10657
f02df580
MS
106582002-03-26 Michael Snyder <msnyder@redhat.com>
10659 Andrew Cagney <cagney@redhat.com>
10660
361d1df0 10661 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10662 restore file to memory.
10663 * cli/cli-dump.h: New file.
10664 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10665 * NEWS: Mention new commands.
f02df580 10666
109f874e
MS
106672002-03-28 Michael Snyder <msnyder@redhat.com>
10668
10669 * symfile.c (symbol_file_add): Move test for null symbols to later.
10670
520f6ade
AC
106712002-03-27 Andrew Cagney <ac131313@redhat.com>
10672
10673 From veksler at il.ibm.com:
10674 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10675 the xstrduped original path.
10676 Fix PR gdb/417.
10677
d4654627
MS
106782002-03-27 Michael Snyder <msnyder@redhat.com>
10679
10680 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10681 * infcmd.c (_initialize_infcmd): Ditto.
10682 * language.c (_initialize_language): Ditto.
10683 * symfile.c (_initialize_symfile): Ditto.
10684 * top.c (_init_main): Ditto.
10685 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10686
6be8bc0c
EZ
106872002-03-27 Elena Zannoni <ezannoni@redhat.com>
10688
10689 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10690 vector registers handling.
10691 (skip_prologue): Handle new AltiVec instructions. Fill in new
10692 fields of frame data.
10693 (frame_get_saved_regs): Fill in information for AltiVec registers.
10694
12af6855
JB
106952002-03-27 Jim Blandy <jimb@redhat.com>
10696
10697 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10698 a function; leave this macro here to invoke that function.
10699 (symbol_init_mangled_name): Declaration for that function.
10700 * symtab.c (symbol_init_mangled_name): New function.
10701
dc672865
AC
107022002-03-27 Andrew Cagney <ac131313@redhat.com>
10703
10704 * valarith.c: Replace strerror with safe_strerror.
10705 * tracepoint.c: Ditto.
10706 * lin-lwp.c: Ditto.
10707 * go32-nat.c: Ditto.
10708 * inflow.c: Ditto.
10709 * gnu-nat.c: Ditto.
10710
d96429cd
AS
107112002-03-27 Andreas Schwab <schwab@suse.de>
10712
10713 * event-top.c (command_line_handler): Remove useless if.
10714
7e336ba1
AJ
107152002-03-27 Andreas Jaeger <aj@suse.de>
10716
10717 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10718 comment.
10719
de220d0f
ML
107202002-03-27 Michal Ludvig <mludvig@suse.cz>
10721
10722 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10723 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10724 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10725 (x86_64_linux_dr_get_status, supply_gregset),
10726 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10727 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10728 (x86_64_register_info_table): Add.
10729 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10730 (x86_64_register_raw_size, x86_64_register_virtual_type),
10731 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10732 general x86_64_register_info_table.
10733 (i386_gdbarch_init): gdbarch_register_bytes is now set
10734 dynamicaly during initialization.
10735 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10736 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10737
0e98d0a7
DJ
107382002-03-27 Daniel Jacobowitz <drow@mvista.com>
10739
10740 * gdbserver/server.c (main): Call target_signal_to_host_p
10741 and target_signal_to_host on signals received from the remote.
10742 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10743 target_signal_from_host on signals sent to the remote.
10744 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10745 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10746
3130066b
DJ
107472002-03-27 Daniel Jacobowitz <drow@mvista.com>
10748
10749 * signals/signals.c: Include "server.h" in gdbserver build.
10750 (target_signal_from_name): Don't use STREQ.
10751 (_initialize_signals): Likewise. Don't include function in
10752 gdbserver build.
10753
9aedf4f4
DJ
107542002-03-27 Daniel Jacobowitz <drow@mvista.com>
10755
10756 * signals.c: Moved to...
10757 * signals/signals.c: Here.
7e336ba1 10758 * Makefile (signals.o): Update.
9aedf4f4 10759
3fa41cdb
JL
107602002-03-26 Jeff Law (law@redhat.com)
10761
10762 * somread.c (som_symtab_read): Remove some commented out code and
10763 updated related comments. Do not set the minimal symbol table to
10764 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10765 in a dynamic executable.
10766 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10767 where we are unable to find the minimal symbol for the given
10768 PC value.
10769
ee677e8d
MS
107702002-03-25 Jeff Law (law@redhat.com)
10771
10772 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10773
e76e1718
ML
107742002-03-25 Michal Ludvig <mludvig@suse.cz>
10775
10776 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10777
18a642a1
AC
107782002-03-23 Andrew Cagney <ac131313@redhat.com>
10779
10780 * command.h: Update copyright.
10781 (struct cmd_list_element): Replace definition with opaque
10782 declaration.
10783 (enum cmd_types): Document that it will eventually be moved to
10784 cli/cli-decode.h
10785 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10786 (MALLOCED_REPLACEMENT): Delete macro.
10787 * Makefile.in (cli_decode_h): Add $(command_h).
10788 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10789 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10790 * completer.c: Include "cli/cli-decode.h".
10791 * maint.c: Include "cli/cli-decode.h".
10792 * cli/cli-decode.h: Include "command.h".
10793 (enum command_class): Delete.
10794 (enum cmd_types): Comment out.
10795 (enum cmd_auto_boolean): Delete.
10796 (enum var_types): Delete.
10797
b2875cc0
AC
107982002-03-23 Andrew Cagney <ac131313@redhat.com>
10799
10800 * cli/cli-decode.c: Include "gdb_assert.h".
10801 (add_set_or_show_cmd): New static function.
10802 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10803 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10804 all fields, such as func, from the set command.
10805
3b45974e
AC
108062002-03-23 Andrew Cagney <ac131313@redhat.com>
10807
10808 * MAINTAINERS (sh-elf): Change warning flag to -w.
10809
823ca731
AC
108102002-03-23 Andrew Cagney <cagney@redhat.com>
10811
10812 * defs.h (error): Add printf format attribute.
10813 * thread-db.c (thread_from_lwp): Fix error format string.
10814 * stack.c (parse_frame_specification): Ditto.
10815 * cli/cli-decode.c (undef_cmd_error): Ditto.
10816 * scm-lang.c (scm_lookup_name): Ditto.
10817 * tracepoint.c (trace_error): Ditto.
10818 * remote-utils.c (usage): Ditto.
10819 * remote.c (compare_sections_command): Ditto.
10820 Fix PR gdb/328.
10821
0e101458
AC
108222002-03-22 Andrew Cagney <ac131313@redhat.com>
10823
10824 * gdbtypes.c (append_composite_type_field): New function.
10825 (init_composite_type): New function.
10826 * gdbtypes.h (append_composite_type_field): Declare.
10827 (init_composite_type): Ditto.
10828
8e0662df
EZ
108292002-03-22 Elena Zannoni <ezannoni@redhat.com>
10830
10831 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10832 function.
8e0662df
EZ
10833 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10834 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10835 structure returning convention for SYSV ABI case, but not
10836 for GNU/Linux, FreeBSD, or NetBSD.
10837
3121eff0
DJ
108382002-03-22 Daniel Jacobowitz <drow@mvista.com>
10839
10840 * symtab.h (lookup_block_symbol): Add mangled_name argument
10841 to prototype.
10842
10843 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10844 with new mangled_name argument.
10845 * linespec.c (decode_line_1): Likewise.
10846 * valops (value_of_this): Likewise.
10847 * symtab.c (lookup_transparent_type): Likewise.
10848 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10849 (lookup_symbol): If we are given a mangled name, pass it down
10850 to lookup_symbol_aux.
10851 (lookup_block_symbol): If we are given a mangled name to check
10852 against, only return symbols which match it.
10853
349b409f
CF
108542002-03-22 Christopher Faylor <cgf@redhat.com>
10855
10856 * win32-nat.c (child_create_inferior): Check for proper shell to use
10857 here, in case the user changes it on the fly.
10858 (_initialize_inftarg): Remove shell path considerations.
10859
2a873819
EZ
108602002-03-21 Elena Zannoni <ezannoni@redhat.com>
10861
10862 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10863 for gdbarch_max_register_raw_size and max_register_virtual_size.
10864 Adjust copyright year.
10865
a1b9830c
DJ
108662002-03-21 Daniel Jacobowitz <drow@mvista.com>
10867
10868 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10869 in a function to cover the entire beginning of the function
10870 as well if it does not already.
10871
8b5790f2
TR
108722002-03-21 Tom Rix <trix@redhat.com>
10873
10874 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10875 (rs6000_ptrace64): Renamed from ptrace64.
10876
bdbe5747
MH
108772002-03-20 Martin M. Hunt <hunt@redhat.com>
10878
10879 * gdbserver/remote-utils.c (remote_open): Don't call
10880 getprotobyname, we're all using TCP here so just use
10881 IPPROTO_TCP.
7e336ba1 10882 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10883
108842002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10885
bdbe5747
MH
10886 * regcache.c (_initialize_regcache): No need to call
10887 build_regcache() at this time; it gets called whenever
10888 the gdbarch changes.
10889
7781cd62
DB
108902002-03-20 David O'Brien <obrien@FreeBSD.org>
10891
10892 * sparc-nat.c: Include sys/param.h where possible.
10893
f65ca430
DJ
108942002-03-20 Daniel Jacobowitz <drow@mvista.com>
10895
10896 Fix PR gdb/422.
10897 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10898 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10899 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10900 complex types.
10901 * stabsread.c (rs6000_builtin_type): Likewise.
10902 (read_sun_floating_type): Likewise.
10903
0c867556
PS
109042002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10905
10906 * stabsread.c (read_member_functions): Remove skip code for duplicate
10907 constructor/destructor methods. Use standard parsing for these
10908 methods and just do not chain them to the list of methods after
10909 parsing.
10910
12b9c64f
AO
109112002-03-19 Alexandre Oliva <aoliva@redhat.com>
10912
10913 * coffread.c: Remove redundant static declarations. Replace
10914 occurrences of `PTR' with `void *'.
10915 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10916 * top.h (quit_cover): Likewise.
10917 * defs.h (catch_errors): Likewise.
10918
349c5d5f
AC
109192002-03-18 Andrew Cagney <ac131313@redhat.com>
10920
10921 * defs.h (XMALLOC): Define.
10922 * gdb-events.sh (XMALLOC): Delete macro.
10923 * gdb-events.c, gdb-events.h: Regenerate.
10924 * gdbarch.sh (XMALLOC): Delete macro.
10925 * gdbarch.c: Regenerate.
10926 * serial.c (XMALLOC): Delete macro.
10927 * ui-file.c (XMALLOC): Ditto.
10928 * ser-unix.h (XMALLOC): Ditto.
10929 * sh-tdep.c (XMALLOC): Ditto.
10930 * ui-out.c (XMALLOC): Ditto.
10931 * utils.c (XMALLOC): Ditto.
10932 * i386-tdep.c (XMALLOC): Ditto.
10933 * gdb-events.c (XMALLOC): Ditto.
10934 * d10v-tdep.c (XMALLOC): Ditto.
10935 * cli-out.c (XMALLOC): Ditto.
10936
10937 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10938 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10939 * ui-file.c, ui-out.c: Ditto.
10940
7d0766f3
AC
109412002-03-18 Andrew Cagney <ac131313@redhat.com>
10942
10943 * command.h (struct cmd_list_element): Add field context.
10944 (set_cmd_context, get_cmd_context): Declare.
10945 * cli/cli-decode.h: Ditto.
10946 * cli/cli-decode.c (get_cmd_context): New function.
10947 (set_cmd_context): New function.
10948 (add_cmd): Initialize context.
10949 Part of fixing PR gdb/145 and PR gdb/146.
10950
5913bcb0
AC
109512002-03-17 Andrew Cagney <ac131313@redhat.com>
10952
1868c04e
AC
10953 * cli/cli-decode.c (cmd_type): New function.
10954 * command.h (cmd_type): Declare.
10955 * infrun.c (set_schedlock_func): Call function cmd_type.
10956 * kod.c (kod_set_os): Call cmd_type.
10957 * cris-tdep.c (cris_version_update): Use function cmd_type.
10958 (cris_mode_update, cris_abi_update): Ditto.
10959
5913bcb0
AC
10960 * command.h: (execute_cmd_post_hook): Declare.
10961 (execute_cmd_pre_hook): Declare.
10962 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10963 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10964 functions. Execute pre/post hook while ensuring that afterwords
10965 hook_in is cleared.
10966 * top.c (execute_command): Use execute_cmd_post_hook, and
10967 execute_cmd_pre_hook to execute pre/post commands.
10968 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10969 hook_stop_stub.
10970 (hook_stop_stub): Call execute_cmd_pre_hook.
10971
b51450c9
AC
109722002-03-17 Andrew Cagney <ac131313@redhat.com>
10973
10974 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10975 set'' and this leads to a core dump. Move xstrdup of
10976 operating_system to after check that it is not NULL.
10977
f66c9f11
AC
109782002-03-17 Andrew Cagney <ac131313@redhat.com>
10979
8e694ecf
AC
10980 * kod.c (kod_set_os): Remove unnecessary check that
10981 ``command->type'' is set_cmd.
10982
f66c9f11
AC
10983 * valprint.c (set_input_radix): Use input_radix.
10984 (set_output_radix): Use output_radix.
10985 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10986 isn't reverted.
10987
9d01611c
AC
109882002-03-16 Andrew Cagney <ac131313@redhat.com>
10989
10990 * value.h (struct value): Delete field ``substring_addr''. Change
10991 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10992 force_core_addr_align and force_pointer_aligh.
10993
10994 * value.h (struct value): Fix typo in above change.
9d01611c 10995
4156bb53
PS
109962002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10997
10998 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10999 to fix internal_error from ``maintenance print architecture''.
11000
0e5e3ea6
PS
110012002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11002
11003 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11004 for gcc versions after gcc-2.8.1.
11005
9b013045
PS
110062002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11007
11008 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11009 for method resolution. Restore adjustment of ``this'' pointer after
11010 calling value_struct_elt, which was accidentally removed during the
11011 HP merge.
11012
376c9600
AC
110132002-03-15 Andrew Cagney <ac131313@redhat.com>
11014
11015 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11016 value_of_register.
11017 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11018 get_saved_register.
11019 * value.h (value_of_register): Update.
11020
a4db0f07
RH
110212002-03-14 Richard Henderson <rth@redhat.com>
11022
11023 * configure.in: Detect declaration for canonicalize_file_name.
11024 * utils.c (canonicalize_file_name): Declare, if needed.
11025 (gdb_realpath): Prefer realpath if available and usable.
11026 * config.in, configure: Rebuild.
11027
96383835
RH
110282002-03-14 Richard Henderson <rth@redhat.com>
11029
11030 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11031 a constant array bound.
11032
11033 * MAINTAINERS: Add myself to write-after-approval.
11034
75245b24
MS
110352002-03-14 Michael Snyder <msnyder@redhat.com>
11036
11037 * symfile.c (syms_from_objfile): Return immediately if no syms.
11038 (symbol_file_add): Return immediately if no syms.
11039 (find_sym_fns): Return immediately if no syms.
11040
e641a1ca
ML
110412002-03-13 Michal Ludvig <mludvig@suse.cz>
11042
11043 * gdbserver/remote-util.c (remote_open): Print remote-side's
11044 IP address when remote debugging over the network.
7e336ba1 11045
df08bfec
DB
110462002-03-12 David O'Brien <obrien@FreeBSD.org>
11047
11048 * config/sparc/fbsd.mh: Fix copyright.
11049 * config/sparc/fbsd.mt: Likewise.
11050
9a57864f
RE
110512002-03-11 Richard Earnshaw <rearnsha@arm.com>
11052
11053 * MAINTAINERS: Fix typo in name of gdb warnings option.
11054 (x86-64): Fix formating so that this can be parsed by awk.
11055
dd7bf85e
DJ
110562002-03-10 Daniel Jacobowitz <drow@mvista.com>
11057
11058 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11059 * defs.h: Include "gdb/signals.h".
11060 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11061
33a0a2ac
ML
110622002-03-10 Michal Ludvig <mludvig@suse.cz>
11063
11064 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11065 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11066 from x86-64-tdep.h
11067
dd824b04
DJ
110682002-03-10 Daniel Jacobowitz <drow@mvista.com>
11069 Don Howard <dhoward@redhat.com>
11070
11071 * mips-tdep.c (ST0_FR): Define.
11072 (mips2_fp_compat): New function, temporarily disabled.
11073 (mips_read_fp_register_single): New function.
11074 (mips_read_fp_register_double): New function.
11075 (mips_print_register): Use them.
11076 (do_fp_register_row): Likewise.
11077
6a41ff59
AC
110782002-03-09 Andrew Cagney <ac131313@redhat.com>
11079
11080 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11081 approval''.
11082
4ea09c10
PS
110832002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11084
11085 * stabsread.c (read_member_functions): Fix is_stub test for
11086 static member functions, improve comment.
11087
6ccc741d
RE
110882002-03-07 Richard Earnshaw <rearnsha@arm.com>
11089
11090 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11091 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11092 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11093 commands that set boolean values.
11094 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11095 (arm_rdi_resume): Always initialize PC.
11096 (arm_rdi_open): Don't use rslt as a boolean.
11097 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11098 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11099 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11100 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11101
438013df
AO
111022002-03-06 Alexandre Oliva <aoliva@redhat.com>
11103
11104 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11105 * configure: Rebuilt.
11106
70ed8774
SC
111072002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11108
11109 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11110 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11111
5ba2abeb
AC
111122002-03-06 Andrew Cagney <ac131313@redhat.com>
11113
11114 * cli/cli-decode.c (set_cmd_completer): New function.
11115 * command.h (set_cmd_completer): Declare.
11116 * cli/cli-decode.h (set_cmd_completer): Ditto.
11117
11118 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11119 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11120 * win32-nat.c (_initialize_inftarg): Ditto.
11121 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11122 * proc-api.c (_initialize_proc_api): Ditto.
11123 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11124 * source.c (_initialize_source): Ditto.
11125 * exec.c (_initialize_exec): Ditto.
11126 * solib.c (_initialize_solib): Ditto.
11127 * top.c (init_main): Ditto.
11128 * tracepoint.c (_initialize_tracepoint): Ditto.
11129 * symfile.c (_initialize_symfile): Ditto.
11130 * printcmd.c (_initialize_printcmd): Ditto.
11131 * infcmd.c (_initialize_infcmd): Ditto.
11132 * corefile.c (_initialize_core): Ditto.
11133
f779ca99
AC
111342002-03-05 Andrew Cagney <ac131313@redhat.com>
11135
11136 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11137
01a3934b
AC
111382002-03-05 Andrew Cagney <ac131313@redhat.com>
11139
11140 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11141
37057839
AC
111422002-03-05 Andrew Cagney <ac131313@redhat.com>
11143
11144 * NEWS: Update headings, 5.2 has branched.
11145
c6ecbae5
DJ
111462002-03-04 Daniel Jacobowitz <drow@mvista.com>
11147
11148 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11149 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11150 (register_addr, REGISTER_RAW_SIZE): Likewise.
11151 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11152 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11153
e9f30c21
ML
111542002-03-03 Michal Ludvig <mludvig@suse.cz>
11155
11156 * MAINTAINERS (x86-64): Add myself.
11157 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11158 changed value_ptr -> struct value *
11159
54394ac3
DB
111602002-03-01 David O'Brien <obrien@FreeBSD.org>
11161
11162 * configure.host (sparc64-*-freebsd): Add.
11163 * configure.tgt: Likewise.
11164 * config/sparc/fbsd.mh: New file.
11165 * config/sparc/fbsd.mt: Likewise.
11166 * config/sparc/nm-fbsd.h: Likewise.
11167 * config/sparc/tm-fbsd.h: Likewise.
11168
bfe95955
DJ
111692002-03-01 Daniel Jacobowitz <drow@mvista.com>
11170
11171 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11172 regformats/reg-s390x.dat.
11173
f33c6cbf
AC
111742002-03-01 Andrew Cagney <ac131313@redhat.com>
11175
11176 * utils.c: Add FIXME explaining true/false problem.
11177
5ecaa7dd
AC
111782002-02-28 Andrew Cagney <ac131313@redhat.com>
11179
11180 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11181
2a251cc2
MC
111822002-02-28 Michael Chastain <mec@shout.net>
11183
11184 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11185
6a8031a3 111862002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11187
11188 * gdbserver/linux-s390-low.c: New file.
11189 * regformats/reg-s390.dat: New file.
11190 * regformats/reg-s390x.dat: New file.
11191 * gdbserver/configure.srv: Add S/390.
11192 * gdbserver/Makefile.in: Add S/390.
11193 * configure.tgt: Enable gdbserver for S/390.
11194
ac469903
EZ
111952002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11196
11197 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11198 first line of the doc string for "info dos", except at the end of
11199 the sentence, since the short help stops at the first period.
11200
985cb1a3
JM
112012002-02-28 Jason Merrill <jason@redhat.com>
11202
11203 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11204
c570663e
FF
112052002-02-27 Fred Fish <fnf@redhat.com>
11206
11207 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11208 comment (dumy -> dummy).
11209
43630227
PS
112102002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11211
11212 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11213
b84911e8
RB
112142002-02-27 Rodney Brown <rbrown64@csc.com.au>
11215
11216 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11217
58caa3dc
DJ
112182002-02-27 Daniel Jacobowitz <drow@mvista.com>
11219
11220 * gdbserver/acconfig.h: New file.
11221 * gdbserver/i387-fp.c: New file.
11222 * gdbserver/i387-fp.h: New file.
11223 * gdbserver/linux-x86-64.c: New file.
11224 * regformats/reg-x86-64.dat: New file.
11225 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11226 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11227 * gdbserver/configure.in: Add support for regsets.
11228 * gdbserver/config.in: Regenerate.
11229 * gdbserver/configure: Regenerate.
11230 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11231 * gdbserver/linux-low.h: New file.
11232 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11233 for regsets.
11234 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11235 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11236 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11237 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11238 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11239 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11240 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11241 "i387-fp.h". Add PTRACE_GETREGS and friends.
11242 * gdbserver/regcache.c (supply_register): New function.
11243 (supply_register_by_name): New function.
11244 (collect_register): New function.
11245 (collect_register_by_name): New function.
11246
93652174
DJ
112472002-02-27 Daniel Jacobowitz <drow@mvista.com>
11248
11249 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11250 (config.status): Add configure.srv dependency.
11251 (server_h): Add config.h dependency.
11252
a02e4a61
DJ
112532002-02-27 Daniel Jacobowitz <drow@mvista.com>
11254
11255 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11256 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11257 * gdbserver/configure.srv: Change i386-*-linux* to use
11258 reg-i386-linux.o.
11259
ce0eebec
AC
112602002-02-26 Andrew Cagney <ac131313@redhat.com>
11261
11262 * x86-64-tdep.c: Re-indent. Update copyright date.
11263
82dbc5f7
AC
112642002-02-26 Andrew Cagney <ac131313@redhat.com>
11265
11266 From Michal Ludvig <mludvig@suse.cz>:
11267 * x86-64-tdep.c (value.h): Delete.
11268 (gdb_assert.h): Include.
11269 (x86_64_register_convert_to_virtual,
11270 x86_64_register_convert_to_raw ): Add check which lets only
11271 floating-point values to be converted.
11272 (value_push): Delete.
11273 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11274 (i386_gdbarch_init): Number of register_bytes fixed.
11275
e4621584
AC
112762002-02-26 Andrew Cagney <ac131313@redhat.com>
11277
11278 * MAINTAINERS: Add x86-64 target.
11279
81a9a963
AC
112802002-02-26 Andrew Cagney <ac131313@redhat.com>
11281
11282 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11283 * osfsolib.c (solib_map_sections): Ditto.
11284 * irix5-nat.c (solib_map_sections): Ditto.
11285 * corelow.c (gdb_check_format): Ditto.
11286 * symfile.c (symfile_bfd_open): Ditto.
11287 * solib.c (solib_map_sections): Ditto.
11288 Fix PR gdb/354.
7e336ba1 11289
0f017ab9
AC
112902002-02-26 Andrew Cagney <ac131313@redhat.com>
11291
11292 * remote.c (_initialize_remote): By default, disable ``e'' and
11293 ``E'' step out-of-range packets.
11294
75738c29
AS
112952002-02-26 Andreas Schwab <schwab@suse.de>
11296
11297 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11298 m68k_linux_frame_saved_pc.
11299 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11300 in_sigtramp.
11301 (SIGCONTEXT_PC_OFFSET): Remove.
11302 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11303 m68k_linux_sigtramp_saved_pc): New functions.
11304 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11305 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11306 (UCONTEXT_PC_OFFSET): Define.
11307 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11308 non-RT and RT signal trampolines.
11309
7e8ed687
RE
113102002-02-26 Richard Earnshaw <rearnsha@arm.com>
11311
11312 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11313 (TARGET_NBPG, STACK_END_ADDR): Delete
11314 (VARIABLES_INSIDE_BLOCK): Delete.
11315
6972bc8b
AC
113162002-02-25 Andrew Cagney <ac131313@redhat.com>
11317
11318 * utils.c (perror_with_name): Make string parameter constant.
11319 (print_sys_errmsg): Ditto.
11320 (query): Ditto.
11321 * defs.h (perror_with_name): Update.
11322 (print_sys_errmsg): Update.
11323 (query): Update.
11324
aa32f823
DJ
113252002-02-25 Daniel Jacobowitz <drow@mvista.com>
11326
11327 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11328 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11329
19caaa45
PS
113302002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11331
11332 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11333 if it already matches the current architecture from the exec file.
11334 Include arch-utils.h for gdbarch_info_init prototype.
11335 * Makefile.in (rs6000-nat.o): Update dependencies.
11336
d951901f
EZ
113372002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11338
11339 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11340 list of exported variables.
11341
7ea81414
DJ
113422002-02-24 Daniel Jacobowitz <drow@mvista.com>
11343
11344 * gdbserver/configure.srv: New file.
11345 * gdbserver/configure.in: Use configure.srv instead
11346 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11347 from it.
11348 * gdbserver/configure: Regenerated.
11349 * gdbserver/terminal.h: New file.
11350 * gdbserver/Makefile.in: Update for configure changes. Remove
11351 more unneeded include paths.
11352
080fe24b
AC
113532002-02-24 Andrew Cagney <ac131313@redhat.com>
11354
11355 From wiz at danbala:
11356 * config/sparc/tm-sp64.h: Fix grammar and typos.
11357 Fix PR gdb/287.
11358
8605d56e
AC
113592002-02-24 Andrew Cagney <ac131313@redhat.com>
11360
11361 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11362 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11363 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11364 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11365 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11366 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11367 * s390-tdep.c: Ditto.
92362027
AC
11368 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11369 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11370 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11371 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11372 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11373 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11374 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11375 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11376 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11377 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11378 Fix PR gdb/378.
7e336ba1 11379
8ed32cc0
AC
113802002-02-23 Andrew Cagney <ac131313@redhat.com>
11381
a3007b6f
AC
11382 * lin-thread.c: Delete file.
11383 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11384 to gdb_proc_service.h.
11385 * configure: Re-generate.
11386
50a9e2f1
AC
11387 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11388 * serial.c (serial_open): Delete check for "ocd".
11389 Fix PR gdb/349.
11390
8b6e7932
AC
11391 * Makefile.in (linux-thread.o): Delete target.
11392 * linux-thread.c: Delete file.
11393
d155c46b
AC
11394 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11395 renamed SH files to be consistent.
11396
8ed32cc0
AC
11397 * symtab.c (sort_search_symbols): Use xfree.
11398
0e18d038
RE
113992002-02-23 Richard Earnshaw <rearnsha@arm.com>
11400
11401 * arm-linux-tdep.c (arm_linux_init_abi): Register
11402 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11403 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11404 definition with undef, since we don't want the sysvr4 definition.
11405 (SKIP_TRAMPOLINE_CODE): Likewise.
11406
27aac7ff
AC
114072002-02-23 Andrew Cagney <ac131313@redhat.com>
11408
11409 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11410
11411 * configure.in: (AC_CHECK_FUNCS) Added test for
11412 canonicalize_file_name Regenerated.
11413 * config.in, configure: Regenerated.
11414 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11415 defined use canonicalize_file_name.
7e336ba1 11416
65a6e0ee
MC
114172002-02-23 Michael Chastain <mec@shout.net>
11418
11419 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11420
47b95330
AC
114212002-02-23 Andrew Cagney <ac131313@redhat.com>
11422
11423 * README: Remove references to cygnus.com.
11424 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11425 dot com'' form. Remove references to cygnus.com and sourceware.
11426
696f451b
AC
114272002-02-23 Andrew Cagney <ac131313@redhat.com>
11428
11429 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11430 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11431 1003.1-2001 no longer allows "head -1".
11432 * gdb/Makefile.in (version.c): Likewise.
11433 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11434 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11435 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11436
bbaca940
AC
114372002-02-23 Andrew Cagney <ac131313@redhat.com>
11438
11439 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11440 * command.h (cmd_cfunc_eq): Declare.
11441 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11442
11443 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11444 ``struct cmd_list_element *''.
11445 * cli/cli-cmds.c (is_complete_command): Update. Use
11446 cmd_cfunc_eq.
11447 * top.c (execute_command): Pass the command to
11448 is_complete_command.
11449 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11450
b8b8b047
AC
114512002-02-23 Andrew Cagney <ac131313@redhat.com>
11452
11453 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11454 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11455 architecture defines.
11456 * s390-tdep.c (s390_gdbarch_init): Likewise.
11457
19d3fc80
RE
114582002-02-23 Richard Earnshaw <rearnsha@arm.com>
11459
11460 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11461 (arm_linux_push_arguments): Likewise.
11462 (arm_linux_init_abi): Register them. Also register linux-specific
11463 call_dummy_words.
11464 (find_minsym_and_objfile): Use strcmp, not STREQ.
11465 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11466 (arm_linux_call_dummy_words): Delete declaration.
11467 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11468 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11469 declarations.
11470 (LOWEST_PC): Delete.
11471
3ab13650
PS
114722002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11473
11474 * maint.c (print_section_info): Do not prepend `0x' to filepos
11475 output, it will be handled by local_hex_string_custom.
11476
19d3fc80 114772002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11478
11479 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11480 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11481 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11482
d85a5daf
JB
114832002-02-22 Jim Blandy <jimb@redhat.com>
11484
11485 Indicate that the bcache functions don't change the strings
11486 they're passed.
11487 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11488 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11489
eeb25b8a
PM
114902002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11491
11492 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11493
6badb179
CF
114942002-02-21 Christopher Faylor <cgf@redhat.com>
11495
11496 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11497 find the complete path to a loaded DLL.
11498
e8717518
FF
114992002-02-21 Fred Fish <fnf@redhat.com>
11500
11501 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11502 that marks the end of the range of a function, enter a line number
11503 entry that has a line number of zero and a PC offset that matches
11504 the end of the function. This starts a range of PC's for which no
11505 line number information is known.
11506 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11507 PC's for which no line number info is found (line number is zero)
11508 then we didn't find any valid line information.
11509 * symtab.h: Document use of zero line number entry.
11510
9abe5450
EZ
115112002-02-21 Elena Zannoni <ezannoni@redhat.com>
11512
11513 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11514 (have_ptrace_getvrregs): Define for run time checks.
11515 (gdb_vrregset_t): New type for Altivec register handling.
11516 (fetch_register, store_register): Fetch/store altivec register
11517 when needed.
11518 (fetch_altivec_register, store_altivec_register): New functions.
11519 (supply_vrregset, fill_vrregset): New functions.
11520 (fetch_altivec_registers, store_altivec_registers): New functions.
11521 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11522 registers as well.
11523
aaa38bb5
AJ
115242002-02-21 Jiri Smid <smid@suse.cz>
11525
11526 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11527
b34db576
RE
115282002-02-21 Richard Earnshaw <rearnsha@arm.com>
11529
11530 * Makefile.in (armnbsd-nat.o): Update dependencies.
11531 * armnbsd-nat.c (supply_gregset): New function. Common code to
11532 supply the integer register set.
11533 (supply_fparegset): New function. Similar for FPA registers.
11534 (fetch_regs, fetch_fp_regs): Use them.
11535 (fetch_core_registers): Likewise.
11536 (fetch_elfcore_registers): New function.
11537 (arm_netbsd_elfcore_fns): New core-file type specification.
11538 (_initialize_arm_netbsd_nat): Register it.
11539
3e56fc4b
RE
115402002-02-21 Richard Earnshaw <rearnsha@arm.com>
11541
11542 * armnbsd-nat.c: Include gdbcore.h.
11543 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11544 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11545 'void' to declaration, to shut up ARI.
11546 (fetch_core_registers): Make static. Rewrite using supply_register.
11547 (arm_netbsd_core_fns): New core-file type specification.
11548 (_initialize_arm_netbsd_nat): New function.
11549
097f6b0b
CF
115502002-02-21 Christopher Faylor <cgf@redhat.com>
11551
11552 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11553 value.
11554
c914e0cc
CF
115552002-02-20 Christopher Faylor <cgf@redhat.com>
11556
11557 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11558 fails.
11559
385fa495
DJ
115602002-02-20 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * jv-exp.y (parse_number): Change type of implicit longs
11563 to builtin_type_uint64.
11564
e5f1222d
DJ
115652002-02-20 Daniel Jacobowitz <drow@mvista.com>
11566
11567 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11568 to be an integer instead of a `union wait'.
11569
75c9abc6
DJ
115702002-02-20 Daniel Jacobowitz <drow@mvista.com>
11571
11572 * mips-linux-nat.c: Call the operating system GNU/Linux.
11573 * mips-linux-tdep.c: Likewise.
11574 * mips-tdep.c: Likewise.
11575
551792a5
DJ
115762002-02-20 Daniel Jacobowitz <drow@mvista.com>
11577
11578 Fix PR gdb/265.
11579 * jv-exp.y (parse_number): Handle 64-bit integers.
11580
ee6e2b82
DJ
115812002-02-20 Daniel Jacobowitz <drow@mvista.com>
11582
11583 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11584 AC_STDC_HEADERS to AC_HEADER_STDC.
11585 * gdbserver/configure: Regenerated.
11586
a48442a0
RE
115872002-02-20 Richard Earnshaw <rearnsha@arm.com>
11588
11589 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11590 is defined.
11591 * sparc-tdep.c (get_longjmp_target): Likewise.
11592
fe419ffc
RE
115932002-02-20 Richard Earnshaw <rearnsha@arm.com>
11594
11595 * News: Add news about ARM and Multi-arch. Mention the new target
11596 arm*-*-netbsd*.
11597
5832ed7e
JB
115982002-02-19 Jim Blandy <jimb@redhat.com>
11599
11600 * stabsread.c (error_type_complaint): Improve error message.
11601
84563040
DJ
116022002-02-19 Daniel Jacobowitz <drow@mvista.com>
11603
11604 * gdbserver/README: Update documentation.
11605 * gdbserver/configure.in: Update configury to match documentation.
11606 * gdbserver/Makefile.in: Likewise.
11607 * gdbserver/configure: Regenerated.
11608 * gdbserver/aclocal.m4: New file, generated by aclocal.
11609 * gdbserver/config.in: New file, generated by autoheader.
11610
375fd65b
RE
116112002-02-19 Richard Earnshaw <rearnsha@arm.com>
11612
11613 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11614 armnbsd-nat.c.
11615
08216dd7
RE
116162002-02-19 Richard Earnshaw <rearnsha@arm.com>
11617
11618 * arm-tdep.h (enum arm_float_model): New enum.
11619 (struct gdbarch_tdep): Add fp_model.
11620 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11621 up floating-point conversions until we know the floating-point model
11622 in use by the inferior. Don't complain about being unable to
11623 determine the ABI of the inferior when we don't have one.
11624 (arm_extract_return_value): Support different floating-point models.
11625 (arm_store_return_value): Likewise.
aaa38bb5 11626 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11627 ARM_FLOAT_SOFT.
11628 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11629
65d6d66a
PS
116302002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11631
11632 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11633 of ``current_gdbarch''.
11634
47221191
RE
116352002-02-19 Richard Earnshaw <rearnsha@arm.com>
11636
11637 * armnbsd-nat.c : ANSIfy all function declarations.
11638 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11639 (fetch_inferior_registers): Re-implement in terms of above.
11640 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11641 (store_inferior_registers): Re-implement in terms of above.
11642
fdf39c9a
RE
116432002-02-19 Richard Earnshaw <rearnsha@arm.com>
11644
aaa38bb5 11645 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11646 kernel.
11647 * arm-linux-tdep.c: Likewise.
11648 * config/arm/tm-linux.h: Likewise.
11649
93247f88
RE
116502002-02-19 Richard Earnshaw <rearnsha@arm.com>
11651
11652 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11653 * config/arm/nbsd.mt (TM_FILE): Delete.
11654 * config/arm/tm-nbsd.h: Delete.
11655
d7b486e7
RE
116562002-02-19 Richard Earnshaw <rearnsha@arm.com>
11657
11658 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11659 Initialize CALL_DUMMY_LENGTH.
11660
41d39a95
RE
116612002-02-19 Richard Earnshaw <rearnsha@arm.com>
11662
11663 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11664 function.
11665 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11666 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11667 defines one thing and that is incorrect for this port.
11668 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11669
e1195560
PM
116702002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11671
11672 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11673
c1748f97
PM
116742002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11675
11676 * win32-nat.c (display_selector): New function. Displays information
11677 about the information returned by GetThreadSelectorEntry API function.
11678 (display_selectors): New function. Displays the infomation of
11679 the selector given as argument, or of CS, DS ans FS selectors
11680 if no argument is given.
11681 ( _initialize_inftarg): Add "w32" as info prefix command.
11682 Add "info w32 selector" as command calling display_selectors.
11683
e41e6bbf
PM
116842002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11685
11686 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11687 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11688 if not defined.
11689
0d3a9f48
RE
116902002-02-18 Richard Earnshaw <rearnsha@arm.com>
11691
11692 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11693
3fb4b924
RE
116942002-02-18 Richard Earnshaw <rearnsha@arm.com>
11695
11696 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11697 (arm_fix_call_dummy): Call it.
11698 (arm_call_dummy_breakpoint_offset): Delete.
11699 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11700 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11701
7f55af32
AC
117022002-02-18 Andrew Cagney <ac131313@redhat.com>
11703
11704 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11705 Default to func_frame_chain_valid.
11706 * gdbarch.h, gdbarch.c: Re-generate.
11707 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11708
05f13b9c
EZ
117092002-02-18 Elena Zannoni <ezannoni@redhat.com>
11710
11711 * ppc-linux-nat.c: Update copyright.
11712 (fetch_register, store_register): Add tid parameter, don't compute
11713 tid here.
11714 (fetch_ppc_registers, store_ppc_registers): Add tid
11715 parameter. Pass it along to callees.
11716 (fetch_inferior_registers, store_inferior_registers): Compute tid
11717 here, and pass it to calleed functions.
11718 (fill_gregset, supply_fpregset): Clean up formatting.
11719
d7afb4c9
RE
117202002-02-18 Richard Earnshaw <rearnsha@arm.com>
11721
11722 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11723 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11724
9df628e0
RE
117252002-02-18 Richard Earnshaw <rearnsha@arm.com>
11726
11727 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11728 * gdbarch.c gdbarch.h: Regenerate.
11729 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11730 function.
11731 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11732 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11733 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11734
11735 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11736 * arm-tdep.c (arm_get_longjmp_target): New function.
11737 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11738 this to a positive value register arm_get_longjmp_target as the
11739 longjmp handler.
11740 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11741 (arm_linux_init_abi): Set up longjmp description in tdep.
11742 * armnbsd-nat.c (get_longjmp_target): Delete.
11743 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11744 description in tdep.
11745 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11746 (get_longjmp_target): Delete declaration.
11747 (GET_LONGJMP_TARGET): Delete.
11748 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11749 (GET_LONGJMP_TARGET): Delete.
11750
57bc8964
KB
117512002-02-17 Kevin Buettner <kevinb@redhat.com>
11752
11753 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11754 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11755 of ``current_gdbarch''.
11756
83d31a92
TT
117572002-02-17 Tom Tromey <tromey@redhat.com>
11758
11759 * cli/cli-cmds.c (compare_strings): New function.
11760 (complete_command): Only print each unique item once.
11761 * completer.h (complete_line): Declare.
11762 * completer.c (complete_line): New function.
11763 (line_completion_function): Use it.
11764
17ef5d92
AC
117652002-02-16 Andrew Cagney <ac131313@redhat.com>
11766
11767 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11768 * gdbarch.h, gdbarch.c: Re-generate.
11769
491b8946
DJ
117702002-02-16 Daniel Jacobowitz <drow@mvista.com>
11771
11772 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11773
117742002-02-16 Daniel Jacobowitz <drow@mvista.com>
11775
11776 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11777 * valops.c (value_arg_coerce): Don't take the address of a reference
11778 to convert an argument to a reference.
11779
dfe7f3ac
CF
117802002-02-15 Christopher Faylor <cgf@redhat.com>
11781
11782 * win32-nat.c (get_image_name): New function.
11783 (handle_load_dll): Use get_image_name function.
11784 (get_child_debug_event): Avoid registering debug events until possibly
11785 execed process is started.
11786 (child_create_inferior): Allow invocation via shell so that command
11787 line redirection, etc. works ok.
11788 (_initialize_inftarg): Add new command: "set shell" to control whether
11789 a shell is used to start a process.
11790
1d33e73a
DJ
117912002-02-15 Daniel Jacobowitz <drow@mvista.com>
11792
11793 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11794 instead of find_register_by_number.
11795 (cannot_store_register): Likewise.
11796
48cd0caa
PM
117972002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11798
aaa38bb5 11799 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11800 fprintf_unfiltered (gdb_stderr, ...).
11801
8656e7d8
DJ
118022002-02-15 Daniel Jacobowitz <drow@mvista.com>
11803
11804 * gdbserver/gdbserver.1: Document --attach.
11805
66e810cd
RE
118062002-02-15 Richard Earnshaw <rearnsha@arm.com>
11807
11808 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11809 descriptions.
11810 * arm-tdep.c (arm_default_arm_le_breakpoint)
11811 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11812 (arm_default_thumb_be_breakpoint): New. Initialize them from
11813 traditional breakpoint defines.
11814 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11815 (arm_gdbarch_init): Initialize new breakpoint variables.
11816 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11817 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11818 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11819 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11820 code out to ...
11821 (arm_netbsd_init_abi_common): ... here; new function.
11822 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11823 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11824 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11825 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11826
97e03143
RE
118272002-02-15 Richard Earnshaw <rearnsha@arm.com>
11828
11829 * arm-tdep.h (enum arm_abi): New enum.
11830 (struct gdbarch_tdep): New structure.
11831 (LOWEST_PC): Provide a default.
11832 (arm_gdbarch_register_os_abi): Declare new function.
11833 * arm-tdep.c (arm_abi_names): New array.
11834 (process_note_abi_tag_sections): New function.
11835 (get_elfosabi): New function.
11836 (arm_gdbarch_register_os_abi): New function.
11837 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11838 support for that ABI has been built in, then call the appropriate
11839 configuration routine. Use gdbarch_num_regs() to get the number
11840 of registers.
11841 (arm_dump_tdep): New function.
11842 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11843 place-holder functions.
11844 (_initialize_arm_tdep): Register them.
11845 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11846
11847 * armnbsd-tdep.c: New file.
11848 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11849 * config/arm/nbsd.mt (TDEPFILES): Add it.
11850 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11851
11852 * armnbsd-nat.c: Include regcache.h.
11853 * Makefile.in (armnbsd-nat.o): Update dependency list.
11854
11855 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11856
ad68be46
DJ
118572002-02-14 Daniel Jacobowitz <drow@mvista.com>
11858
11859 * gdbserver/Makefile.in: Fix typos in target rules.
11860
003d6d1d
DJ
118612002-02-14 Daniel Jacobowitz <drow@mvista.com>
11862
aaa38bb5 11863 Fix part of PR gdb/267.
003d6d1d
DJ
11864 * linespec.c (find_methods): Handle constructors specially for now.
11865
6b230f1b
CV
118662002-02-14 Corinna Vinschen <vinschen@redhat.com>
11867
11868 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11869 handling.
11870 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11871 standard_coerce_float_to_double().
11872
1ea98d12
CF
118732002-02-14 Christopher Faylor <cgf@redhat.com>
11874
11875 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11876 GDBINIT_FILENAME.
11877
dd47e6fd
EZ
118782002-02-14 Elena Zannoni <ezannoni@redhat.com>
11879
11880 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11881 find_variant_by_name, because it confuses the multiarch
11882 framework. Return NULL if there isn't an architecture with the
11883 user supplied name, instead of forcing a different one without
11884 recording the change with the multiarch machinery.
11885 (find_variant_by_name): Delete.
11886
d7e39b9e
PS
118872002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11888
11889 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11890 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11891
76e42a4f
MH
118922002-02-13 Martin M. Hunt <hunt@redhat.com>
11893
aaa38bb5 11894 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11895 print_frame_info_listing_hook, set current_source_symtab.
11896
0a30fbc4
DJ
118972002-02-14 Daniel Jacobowitz <drow@mvista.com>
11898
11899 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11900 and remove unused $(INCLUDE_DIR).
11901 Add regcache.c to OBS.
11902 Add generated register protocol files to clean target.
11903 Update dependencies for new objects, obsolete old target code.
11904
11905 * gdbserver/linux-low.c: Remove all platform-specific code to
11906 new files. Remove various dead code. Update to use regcache
11907 functionality.
11908 * gdbserver/remote-utils.c (fromhex): Add return statement
11909 to quiet warning.
11910 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11911 constant.
11912 (input_interrupt): Add integer parameter to match prototype
11913 of a signal handler.
11914 (outreg): Use register_data ().
11915 (prepare_resume_reply): Use gdbserver_expedite_regs.
11916 * gdbserver/server.c (main): Dynamically allocate own_buf because
11917 PBUFSIZ is no longer constant. Use registers_to_string () and
11918 registers_from_string ().
11919 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11920 for error (), fatal (), and warning (). Update definition of
11921 PBUFSIZ to use regcache functionality. Add include guard.
11922 * gdbserver/utils.c (fatal): Add missing ``const''.
11923 (warning): New function.
11924
11925 * regformats/regdat.sh: Include "regcache.h" in generated files.
11926 Provide init_registers () function.
11927 * regformats/regdef.h: Add prototype for set_register_cache ().
11928 Add include guard.
11929
11930 * gdbserver/linux-arm-low.c: New file.
11931 * gdbserver/linux-i386-low.c: New file.
11932 * gdbserver/linux-ia64-low.c: New file.
11933 * gdbserver/linux-m68k-low.c: New file.
11934 * gdbserver/linux-mips-low.c: New file.
11935 * gdbserver/linux-ppc-low.c: New file.
11936 * gdbserver/linux-sh-low.c: New file.
11937
11938 * gdbserver/regcache.c: New file.
11939 * gdbserver/regcache.h: New file.
11940
11941 * gdbserver/low-linux.c: Removed obsolete file.
11942
4cc841d0
DJ
119432002-02-14 Daniel Jacobowitz <drow@mvista.com>
11944
11945 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11946 * config/i386/linux.mt: Likewise.
11947 * config/ia64/linux.mt: Likewise.
11948 * config/m68k/linux.mh: Likewise.
11949 * config/powerpc/linux.mh: Likewise.
11950 * config/mips/linux.mt: Likewise.
11951
11952 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11953
11954 * config/i386/i386lynx.mh: Mark gdbserver variables
11955 as (currently) obsolete for this target.
11956 * config/i386/nbsd.mt: Likewise.
11957 * config/i386/nbsdelf.mt: Likewise.
11958 * config/m32r/m32r.mt: Likewise.
11959 * config/m68k/m68klynx.mh: Likewise.
11960 * config/m68k/nbsd.mt: Likewise.
11961 * config/m68k/sun3os4.mh: Likewise.
11962 * config/mips/vr5000.mt: Likewise.
11963 * config/ns32k/nbsd.mt: Likewise.
11964 * config/pa/hppabsd.mh: Likewise.
11965 * config/pa/hppaosf.mh: Likewise.
11966 * config/powerpc/nbsd.mt: Likewise.
11967 * config/rs6000/rs6000lynx.mh: Likewise.
11968 * config/s390/s390.mt: Likewise.
11969 * config/s390/s390x.mt: Likewise.
11970 * config/sparc/sparclynx.mh: Likewise.
11971 * config/sparc/sun4os4.mh: Likewise.
11972 * config/i386/x86-64linux.mt: Likewise.
11973 * config/sparc/linux.mh: Likewise.
11974
a85f51e7
DJ
119752002-02-14 Daniel Jacobowitz <drow@mvista.com>
11976
11977 * configure.tgt: Configure gdbserver only for known working
11978 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11979 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11980 SUBDIRS if it is configured. Update comment for ${nativefile}.
11981 * configure: Regenerated.
11982
65554fef
MS
119832002-02-13 Michael Snyder <msnyder@redhat.com>
11984
670a52db
MS
11985 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11986
6dbdc4a3
MS
11987 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11988 (default_gcore_mach): Just return 0, work around a problem in bfd.
11989 (default_gcore_target): OK to return NULL if exec_bfd is null.
11990 (make_mem_sec): Use a cast, avoid a warning.
11991
11992 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11993 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11994 sizeof (host pointer) != sizeof (target pointer)).
11995 (procfs_make_note_section): Avoid overflow in psargs string.
11996
aaa38bb5 11997 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11998 implementation return an error.
11999
120002002-02-13 Rodney Brown <rbrown64@csc.com.au>
12001
12002 * procfs.c (procfs_make_note_section): Provide a default definition
12003 (for alpha-dec-osf4.0f). Fix typos.
12004
1e4d76e7
EZ
120052002-02-13 Elena Zannoni <ezannoni@redhat.com>
12006
12007 * linux-proc.c: Add include of regcache.h.
12008 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12009
b6d1a1d5
AC
120102002-02-13 Andrew Cagney <ac131313@redhat.com>
12011
12012 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12013 * memattr.c (create_mem_region): Disallow useless empty region.
12014 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12015 non-overlapping.
b6d1a1d5 12016
6c6ea35e
MC
120172002-02-13 Michael Chastain <mec@shout.net>
12018
12019 * defs.h: Kill CONST_PTR.
12020 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12021 * c-lang.c (c_builtin_types): Likewise.
12022 * ch-lang.c (ch_builtin_types): Likewise.
12023 * f-lang.c (f_builtin_types): Likewise.
12024 * language.c (unknown_builtin_types): Likewise.
12025 * m2-lang.c (m2_builtin_types): Likewise.
12026 * p-lang.c (pascal_builtin_types): Likewise.
12027 * scm-lang.c (c_builtin_types): Likewise.
12028
3e0b0f48
KS
120292002-02-13 Keith Seitz <keiths@redhat.com>
12030
12031 * arm-tdep.h (arm_get_next_pc): Add declaration.
12032
67255d04
RE
120332002-02-13 Richard Earnshaw <rearnsha@arm.com>
12034
12035 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12036 with other related struct-returning functions.
12037 (arm_extract_struct_value_address): New function.
12038 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12039 initialize float_format, double_format and long_double_format as
12040 appropriate to the endianness of the target.
12041 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12042 (arm_use_struct_convention): Delete declaration.
12043 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12044
079777f6
KS
120452002-02-13 Keith Seitz <keiths@redhat.com>
12046
12047 * defs.h (core_addr_to_string_nz): New function.
12048
34588f23
MK
120492002-02-13 Mark Kettenis <kettenis@gnu.org>
12050
12051 Apply missing bits of 2002-01-15 patch.
12052 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12053 (fill_fpregset): Use i387_fill_fsave.
12054
49b563f9
KS
120552002-02-12 Keith Seitz <keiths@redhat.com>
12056
49b563f9
KS
12057 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12058 (core_addr_to_string_nz): New function.
12059
aeb98c60
RE
120602002-02-11 Richard Earnshaw <rearnsha@arm.com>
12061
12062 * arm-linux-nat.c: Really include arm-tdep.h.
12063 * config/arm/tm-linux.h (struct type, struct value): Declare.
12064
65554fef
MS
120652002-02-11 Michael Snyder <msnyder@redhat.com>
12066
12067 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12068 (gcore section): Ifdef for Solaris and Unixware only.
12069 (procfs_do_thread_registers): Unixware needs one lwpstatus
12070 per thread (not one prstatus or pstatus).
12071 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12072 not over all gdb threads. For unixware, call elfcore_write_pstatus
12073 once before iterating over threads.
12074
34e8f22d
RE
120752002-02-11 Richard Earnshaw <rearnsha@arm.com>
12076
12077 * arm-tdep.h: New file.
12078 * arm-tdep.c: Include arm-tdep.h.
12079 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12080 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12081 (arm_print_float_info, arm_register_type, convert_to_extended)
12082 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12083 (arm_extract_return_value, arm_register_name): Make static.
12084 (arm_software_single_step): Similarly. Fix types in declaration.
12085 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12086 (arm_store_return_value, arm_store_struct_return): New functions.
12087 (arm_gdbarch_init): Register the above functions. Also register
12088 call_dummy_start_offset, sizeof_call_dummy_words,
12089 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12090 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12091 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12092 prologue_cache.saved_regs here, rather than ...
12093 (_initialize_arm_tdep): ... here.
12094 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12095 declarations.
12096 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12097 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12098 (arm_print_float_info, arm_register_type, convert_to_extended)
12099 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12100 (arm_extract_return_value, arm_register_name): Delete declarations.
12101 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12102 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12103 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12104 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12105 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12106 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12107 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12108 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12109 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12110 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12111 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12112 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12113 interface.
12114 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12115 * remote-rdi.c remote-rdp.c: Likewise.
12116 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12117 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12118 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12119 definition.
12120
12121 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12122 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12123 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12124 from non-ARM_ prefixed definitions.
12125 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12126 all uses of above.
12127 * remote-rdi.c remote-rdp.c: Likewise.
12128 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12129
148754e5
RE
121302002-02-11 Richard Earnshaw <rearnsha@arm.com>
12131
12132 * arm-tdep.c (arm_frameless_function_invocation)
12133 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12134 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12135 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12136 (arm_pop_frame, arm_get_next_pc): Make static.
12137 (arm_gdbarch_init): Register above in gdbarch structure.
12138 (arm_read_fp): Renamed from arm_target_read_fp.
12139 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12140 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12141 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12142 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12143 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12144 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12145 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12146 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12147 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12148 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12149 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12150
434d2d4f
DJ
121512002-02-10 Daniel Jacobowitz <drow@mvista.com>
12152
12153 * symtab.c (compare_search_syms): New function.
12154 (sort_search_symbols): New function.
12155 (search_symbols): Sort symbols after searching rather than
12156 before.
12157
55241689
AC
121582002-02-10 Andrew Cagney <ac131313@redhat.com>
12159
12160 * NEWS: Linux -> GNU/Linux.
12161
028c194b
AC
121622002-02-10 Andrew Cagney <ac131313@redhat.com>
12163
12164 * gdbarch.sh: For for level one methods, disallow a definition
12165 when partially multi-arched. Add comments explaining rationale.
12166 * gdbarch.h: Re-generate.
12167
6acf50cd
AC
121682002-02-10 Andrew Cagney <ac131313@redhat.com>
12169
12170 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12171 multi-arch partial.
aaa38bb5 12172
50248794
AC
121732002-02-10 Andrew Cagney <ac131313@redhat.com>
12174
12175 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12176 field. Use diff -u.
12177 * gdbarch.c: Re-generate.
12178
c30e0066
AC
121792002-02-10 Andrew Cagney <ac131313@redhat.com>
12180
9b56c5f3 12181 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12182 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12183 partial.
12184
6e6d6484
AC
121852002-02-10 Andrew Cagney <ac131313@redhat.com>
12186
12187 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12188 multi-arch partial.
12189 (PUSH_ARGUMENTS): Switch to using predefault.
12190 * gdbarch.c: Regenerate.
12191
c203844d
AC
121922002-02-10 Andrew Cagney <ac131313@redhat.com>
12193
12194 * valops.c (PUSH_ARGUMENTS): Delete definition.
12195 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12196 partial. Default to default_push_arguments.
12197 * gdbarch.h, gdbarch.c: Regenerate.
12198
b5a2688f
AC
121992002-02-09 Andrew Cagney <ac131313@redhat.com>
12200
12201 * defs.h (throw_exception): Rename return_to_top_level. Update
12202 comments.
12203 * utils.c (error_stream, internal_verror, quit): Ditto.
12204 * top.c (throw_exception, catcher): Ditto.
12205 * sparclet-rom.c (sparclet_load): Ditto.
12206 * remote.c (interrupt_query, minitelnet): Ditto.
12207 * remote-sds.c (interrupt_query): Ditto.
12208 * remote-mips.c (mips_error, mips_kill): Ditto.
12209 * ocd.c (interrupt_query): Ditto.
12210 * monitor.c (monitor_interrupt_query): Ditto.
12211 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12212 * target.h: Update comment.
aaa38bb5 12213
b5a2688f 12214 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12215
2fa5c1e0
AC
122162002-02-09 Andrew Cagney <ac131313@redhat.com>
12217
12218 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12219 default_double_format.
12220 * gdbarch.h, gdbarch.c: Re-generate.
12221 * findvar.c (floatformat_unknown): Delete variable definition.
12222 * doublest.h (floatformat_unknown): Delete variable declaration.
12223
da966255
JB
122242002-02-09 Jim Blandy <jimb@redhat.com>
12225
12226 * stabsread.c (read_type): Add code to parse Sun's syntax for
12227 prototyped function types.
12228
123a4891
AC
122292002-02-09 Andrew Cagney <ac131313@redhat.com>
12230
12231 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12232 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12233
fb39c8f3
PS
122342002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12235
12236 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12237 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12238 now _initialize_xcoffsolib gets called again and overrides the
12239 commands from solib.c in a native configuration.
12240
0b87a11d
MK
122412002-02-09 Mark Kettenis <kettenis@gnu.org>
12242
12243 * doublest.c (store_typed_floating): Don't try to return a value.
12244 Fixes PR gdb/290.
12245
bdc2fc72
JB
122462002-02-08 Jim Blandy <jimb@redhat.com>
12247
12248 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12249 is prototyped and has no arguments, print its argument list as
12250 `(void)'.
12251
da69bbcf
CD
122522002-02-08 Chris Demetriou <cgd@broadcom.com>
12253
12254 * MAINTAINERS (write-after-approval): Add myself.
12255 (paper-trail): I've escaped!
aaa38bb5 12256
b69571f5
CF
122572002-02-08 Christopher Faylor <cgf@redhat.com>
12258
12259 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12260 changes.
12261 (_initialize_check_for_gdb_ini): Ditto.
12262
f6871398
MH
122632002-02-08 Martin M. Hunt <hunt@redhat.com>
12264
12265 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12266 xaprintf -> xasprintf.
12267
4e52d31c
PM
122682002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12269
12270 * win32-nat.c: Remove use of printf and sprintf functions.
12271
39bbf761
RE
122722002-02-08 Richard Earnshaw <rearnsha@arm.com>
12273
12274 * arm-tdep.c (arm_frame_chain_valid): Make static.
12275 (arm_push_arguments): Likewise.
12276 (arm_gdbarch_init): New function.
12277 (_initialize_arm_tdep): Call it.
12278 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12279 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12280 (FRAME_CHAIN_VALID): Delete.
12281 (arm_frame_chain_valid): Delete declaration.
12282 (PUSH_ARGUMENTS): Delete.
12283 (arm_push_arguments): Delete declaration.
12284 (CALL_DUMMY_P): Delete.
12285
9c9532c9
CV
122862002-02-08 Andrew Cagney <ac131313@redhat.com>
12287 Corinna Vinschen <vinschen@redhat.com>
12288
12289 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12290 on builtin float types.
12291
4e8f7a8b
DJ
122922002-02-08 Daniel Jacobowitz <drow@mvista.com>
12293
12294 * utils.c: Include <curses.h> before "bfd.h".
12295 * tui/tui-hooks.c: Likewise.
12296 * tui/tui.c: Likewise.
12297 * tui/tuiCommand.c: Likewise.
12298 * tui/tuiData.c: Likewise.
12299 * tui/tuiDataWin.c: Likewise.
12300 * tui/tuiDisassem.c: Likewise.
12301 * tui/tuiGeneralWin.c: Likewise.
12302 * tui/tuiIO.c: Likewise.
12303 * tui/tuiLayout.c: Likewise.
12304 * tui/tuiRegs.c: Likewise.
12305 * tui/tuiSource.c: Likewise.
12306 * tui/tuiSourceWin.c: Likewise.
12307 * tui/tuiStack.c: Likewise.
12308 * tui/tuiWin.c: Likewise.
12309
cd4bffcf
EZ
123102002-02-07 Elena Zannoni <ezannoni@redhat.com>
12311
12312 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12313 to include space for pseudoregs as well. Update loops accordingly.
12314 (sh_fp_frame_init_saved_regs): Ditto.
12315 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12316
26806ce2
AC
123172002-02-07 Andrew Cagney <ac131313@redhat.com>
12318
12319 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12320 Add Richard Earnshaw to Arm maintainers.
12321
97fdab62
AC
123222002-02-07 Andrew Cagney <ac131313@redhat.com>
12323
a6b98203
AC
12324 * defs.h (warning_begin): Delete declaration.
12325
97fdab62
AC
12326 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12327 Delete macro.
12328
78b29b40
MS
123292002-02-07 Michael Snyder <msnyder@redhat.com>
12330
aaa38bb5 12331 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12332 Logic bug, remove misplaced else.
12333
d8849953
KD
123342002-02-07 Klee Dienes <klee@apple.com>
12335
12336 * fork-inferior.c (fork_inferior): Add '!' to the list of
12337 characters that need to be quoted when building a string for the
12338 shell. Quote '!' specifically with a backslash, since CSH chokes
12339 when trying to evaluate "str!str".
aaa38bb5 12340
095778a0
NC
123412002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12342
12343 * rdi-share/host.h: Only provide a typedef for bool if it is not
12344 defined.
12345
1900040c
MS
123462002-02-04 Michael Snyder <msnyder@redhat.com>
12347
12348 * breakpoint.h (enum bptype): Add new overlay event bp type.
12349 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12350
1900040c
MS
12351 * breakpoint.c (create_internal_breakpoint): New function.
12352 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12353 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12354 (create_thread_event_breakpoint): Ditto.
12355 (create_solib_event_breakpoint): Ditto.
12356 (create_overlay_event_breakpoint): New function.
12357 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12358 (update_breakpoints_after_exec): Delete and re-initialize
12359 overlay event breakpoints after an exec. Add FIXME comment
12360 about longjmp breakpoint.
12361 (print_it_typical): Ignore overlay event breakpoints.
12362 (print_one_breakpoint): Ditto.
12363 (mention): Ditto.
12364 (bpstat_what): Do not stop for overlay event breakpoints.
12365 (delete_breakpoint): Don't delete overlay event breakpoints.
12366 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12367 (breakpoint_re_set): Re-create overlay event breakpoint.
12368
12369 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12370 (overlay_manual_command): Disable overlay breakpoints.
12371 (overlay_off_command): Disable overlay breakpoints.
12372
082fc60d
RE
123732002-02-06 Richard Earnshaw <rearnsha@arm.com>
12374
12375 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12376 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12377 to here from config/tm-arm.h.
12378 (coff_sym_is_thumb): Make static.
12379 (arm_elf_make_msymbol_special): New function.
12380 (arm_coff_make_msymbol_special): New function.
12381 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12382 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12383 (coff_sym_is_thumb): Delete declaration.
12384 (arm_elf_make_msymbol_special): Declare.
12385 (arm_coff_make_msymbol_special): Declare.
12386 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12387 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12388
039c5766
RE
123892002-02-06 Richard Earnshaw <rearnsha@arm.com>
12390
12391 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12392
123932002-02-06 Richard Earnshaw <rearnsha@arm.com>
12394
12395 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12396 * gdbarch.c gdbarch.h: Regenerate.
12397 * arch-utils.c (default_print_float_info): New function.
12398 * arch-utils.h (default_print_float_info): Prototype it.
12399 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12400 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12401 (PRINT_FLOAT_INFO): Document it.
12402
12403 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12404 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12405 (PRINT_FLOAT_INFO): Define.
12406
58fa08f0
PM
124072002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12408
aaa38bb5 12409 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12410 Add typecast to sprintf argument to suppress a warning.
12411
7393af7c
PM
124122002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12413
58fa08f0 12414 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12415 to allow easier handling of pass state.
12416 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12417 that gives exception name and address.
12418 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12419 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12420 exceptions added.
aaa38bb5
AJ
12421 (child_continue): Correctly report continue_status.
12422 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12423 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12424 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12425 the exception should be passed to debuggee or not.
12426
6af4589c
MS
124272002-02-05 Michael Snyder <msnyder@redhat.com>
12428
12429 * regcache.c (fetch_register): Call target_fetch_register
12430 only if we don't call FETCH_PSEUDO_REGISTER.
12431 (store_register): Call target_store_register only if we
12432 don't call STORE_PSEUDO_REGISTER.
12433
a2cf933a
EZ
124342002-02-05 Elena Zannoni <ezannoni@redhat.com>
12435
12436 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12437 ELF_MAKE_MSYMBOL_SPECIAL.
12438 * gdbarch.c, gdbarch.h: Regenerate.
12439 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12440 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12441 * elfread.c (elf_symtab_read): Compile use of
12442 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12443 multiarched.
12444 * coffread.c (coff_symtab_read): Ditto, for
12445 COFF_MAKE_MSYMBOL_SPECIAL.
12446
6bb7be43
JB
124472002-02-05 Jim Blandy <jimb@redhat.com>
12448
12449 * solib-svr4.c (svr4_truncate_ptr): New function.
12450 (svr4_relocate_section_addresses): Do the address arithmetic with
12451 the appropriate truncation for target addresses, even when
12452 CORE_ADDR is larger than a target address.
12453
e18651ec
DJ
124542002-02-05 Daniel Jacobowitz <drow@mvista.com>
12455
12456 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12457 to (int *).
12458
6b2725be
DJ
124592002-02-05 Daniel Jacobowitz <drow@mvista.com>
12460
12461 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12462 code.
12463
fca9e603
DJ
124642002-02-05 Daniel Jacobowitz <drow@mvista.com>
12465
12466 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12467
6c537a52
DJ
124682002-02-05 Daniel Jacobowitz <drow@mvista.com>
12469
12470 * gdbserver/linux-low.c: Remove unused include files.
12471
d844cde6
DJ
124722002-02-05 Daniel Jacobowitz <drow@mvista.com>
12473
12474 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12475 (read_inferior_memory): Use it.
12476 (write_inferior_memory): Likewise.
12477
d07c63e7
DJ
124782002-02-05 Daniel Jacobowitz <drow@mvista.com>
12479
12480 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12481 grubbing through sys_errlist.
12482
da6d8c04
DJ
124832002-02-05 Daniel Jacobowitz <drow@mvista.com>
12484
12485 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12486
5b421780
PM
124872002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12488 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12489
9f60d481
AC
124902002-02-04 Andrew Cagney <ac131313@redhat.com>
12491
12492 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12493 (do_sfunc, set_cmd_sfunc): New functions.
12494
12495 * command.h (struct cmd_list_element): Add field func.
12496 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12497 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12498 * cli/cli-decode.h: Ditto.
12499
12500 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12501 (help_all, help_cmd_list): Ditto.
12502 (find_cmd, complete_on_cmdlist): Ditto.
12503 * top.c (execute_command): Ditto.
12504
12505 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12506 function.sfunc.
12507
12508 * infcmd.c (notice_args_read): Fix function signature.
12509
12510 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12511 * cli/cli-decode.c (add_set_cmd): Ditto.
12512 * utils.c (initialize_utils): Ditto.
12513 * maint.c (_initialize_maint_cmds): Ditto.
12514 * infrun.c (_initialize_infrun): Ditto.
12515 * demangle.c (_initialize_demangler): Ditto.
12516 * remote.c (add_packet_config_cmd): Ditto.
12517 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12518 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12519 * proc-api.c (_initialize_proc_api): Ditto.
12520 * kod.c (_initialize_kod): Ditto.
12521 * valprint.c (_initialize_valprint): Ditto.
12522 * top.c (init_main): Ditto.
12523 * infcmd.c (_initialize_infcmd): Ditto.
12524 * corefile.c (_initialize_core): Ditto.
12525 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12526 * arch-utils.c (initialize_current_architecture): Ditto.
12527 (_initialize_gdbarch_utils): Ditto.
12528 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12529
12530 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12531 * wince.c (_initialize_inftarg): Ditto.
12532 * symfile.c (_initialize_symfile): Ditto.
12533 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12534 * language.c (_initialize_language): Ditto.
12535 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12536
f9ba0717
MS
125372002-02-04 Michael Snyder <msnyder@redhat.com>
12538
12539 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12540
0c74b2a7
DJ
125412002-02-04 Daniel Jacobowitz <drow@mvista.com>
12542
12543 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12544 Add rules for building the register data files.
12545
c638789f
DJ
125462002-02-04 Daniel Jacobowitz <drow@mvista.com>
12547
12548 * regformats/regdat.sh: Add braces to the definition of
12549 expedite_regs_${arch}.
12550
db253027
DJ
125512002-02-04 Daniel Jacobowitz <drow@mvista.com>
12552
12553 * regformats/regdef.h (struct reg): Add comment describing the
12554 requirements for offset and size fields.
12555
206be19c
AS
125562002-02-04 Andreas Schwab <schwab@suse.de>
12557
12558 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12559 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12560
181c1381
RE
125612002-02-04 Richard Earnshaw <rearnsha@arm.com>
12562
12563 * gdbarch.sh (copyright): Update years in generated header.
12564 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12565 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12566 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12567 * dbxread.c: Likewise.
12568 * dwarfread.c: Likewise.
12569 * elfread.c: Likewise.
12570 * somread.c: Likewise.
12571
12572 * arm-tdep.c (arm_smash_text_address): New function.
12573 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12574
fa4ba8da
PM
125752002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12576
12577 Add support for hardware watchpoints on win32 native.
aaa38bb5 12578 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12579 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12580 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12581 of debug registers.
12582 (debug_registers_changed): New variable. Reflects when debug registers
12583 are changed and need to be written to inferior.
aaa38bb5 12584 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12585 was set, used when new threads are created.
12586 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12587 i386-nat code.
12588 (thread_rec): Set dr array if id is the thread of current_event .
12589 (child_continue, child_resume): Change the debug registers for all
12590 threads if debug_registers_changed.
12591 (child_add_thread): Change the debug registers if debug_registers_used.
12592 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12593 Link nm.h to new nm-cygwin.h file.
12594 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12595 of hardware registers.
12596
a73c86fb
AC
125972002-02-03 Andrew Cagney <ac131313@redhat.com>
12598
12599 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12600 Restore behavour broken by 2002-01-20 Andrew Cagney
12601 <ac131313@redhat.com> IEEE_FLOAT removal.
12602
acf5ed49
DJ
126032002-02-03 Daniel Jacobowitz <drow@mvista.com>
12604
12605 * c-valprint.c (c_val_print): Pass a proper valaddr to
12606 cp_print_class_method.
12607 * valops.c (search_struct_method): If there is only one method
12608 and args is NULL, return that method.
12609
493d28d5
DJ
126102002-02-03 Daniel Jacobowitz <drow@mvista.com>
12611
12612 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12613 accessing tag_name directly.
12614
7495dfdb
DJ
126152002-02-03 Daniel Jacobowitz <drow@mvista.com>
12616
12617 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12618 of accessing tag_name directly.
12619
dd6bda65
DJ
126202002-02-03 Daniel Jacobowitz <drow@mvista.com>
12621
12622 PR gdb/280
12623 * gdbtypes.c (replace_type): New function.
12624 * gdbtypes.h (replace_type): Add prototype.
12625 * stabsread.c (read_type): Use replace_type.
12626
88fe217c
RE
126272002-02-03 Richard Earnshaw <rearnsha@arm.com>
12628
12629 * Makefile.in (memattr.o): Add missing dependencies rule.
12630
e5d66720
PS
126312002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12632
12633 * breakpoint.c (break_at_finish_command): Really export.
12634 (break_at_finish_at_depth_command): Ditto.
12635 (tbreak_at_finish_command): Ditto.
12636 * hppa-tdep.c: Include completer.h.
12637 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12638 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12639
fffee0be
AC
126402002-02-01 Andrew Cagney <ac131313@redhat.com>
12641
12642 * utils.c (do_write): New function.
12643 (error_stream): Rewrite combining the code from error_begin and
12644 verror.
12645 (verror): Rewrite using error_stream.
12646 (error_begin): Delete function.
12647
255e7dbf
AC
126482002-02-01 Andrew Cagney <ac131313@redhat.com>
12649
12650 * utils.c (error_begin): Make static.
12651 * defs.h (error_begin): Delete declaration.
12652
12653 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12654 (decode_line_1): Use cplusplus_error instead of error_begin,
12655 cplusplus_hint and return_to_top_level.
12656 * coffread.c (coff_symfile_read): Use error instead of error_begin
12657 and return_to_top_level.
12658 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12659
ddfe3c15
AC
126602002-02-01 Andrew Cagney <ac131313@redhat.com>
12661
12662 * language.h (type_error, range_error): Make string parameter
12663 constant.
12664 * language.c (warning_pre_print): Delete extern declaration.
12665 * dwarfread.c (warning_pre_print): Ditto.
12666 * language.c (type_error, range_error): Rewrite to use verror and
12667 vwarning instead of warning_begin.
12668
03ac34d5
MS
126692002-02-01 Michael Snyder <msnyder@redhat.com>
12670
261c4ca2
MS
12671 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12672 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12673
e00d1dc8
AC
126742002-02-01 Andrew Cagney <ac131313@redhat.com>
12675
12676 * command.h (NO_FUNCTION): Delete macro.
12677 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12678 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12679 * tracepoint.c (_initialize_tracepoint): Ditto.
12680 * cli/cli-decode.c (add_set_cmd): Ditto.
12681 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12682
76b79d6e
DJ
126832002-02-01 Daniel Jacobowitz <drow@mvista.com>
12684
12685 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12686 Update ``this'' pointer when calling virtual functions.
12687
799f9e91
MS
126882002-02-01 Michael Snyder <msnyder@redhat.com>
12689
c7bd442c 12690 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12691 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12692
3cf384d4
DJ
126932002-02-01 Daniel Jacobowitz <drow@mvista.com>
12694
12695 * regformats/reg-arm.dat: New file.
12696 * regformats/reg-i386.dat: New file.
12697 * regformats/reg-ia64.dat: New file.
12698 * regformats/reg-m68k.dat: New file.
12699 * regformats/reg-mips.dat: New file.
12700 * regformats/reg-ppc.dat: New file.
12701 * regformats/reg-sh.dat: New file.
12702 * regformats/regdef.h: New file.
12703 * regformats/regdat.sh: New file.
12704
0defa245
RE
127052002-02-01 Richard Earnshaw <reanrsha@arm.com>
12706
12707 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12708 (arm_frame_args_address, arm_frame_locals_address): New functions.
12709 (arm_frame_num_args): New function.
12710 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12711 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12712 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12713
405f26e6
MS
127142002-01-31 Michael Snyder <msnyder@redhat.com>
12715
502fd408
MS
12716 * breakpoint.c (break_at_finish_command): Export.
12717 (break_at_finish_at_depth_command): Export.
12718 (tbreak_at_finish_command): Export.
d6020d45 12719 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12720 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12721 "txbreak" commands, which are HPPA specific.
502fd408 12722
7d35e135
MS
12723 * printcmd.c (disassemble_command): Remove an ancient
12724 artifact of an old merge.
12725
aaa38bb5 12726 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12727 Define enum constant values for overlay mode.
12728 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12729 (overlay_is_mapped, overlay_auto_command,
12730 overlay_manual_command): Ditto.
d874f1e2 12731
aaa38bb5
AJ
12732 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12733 breakpoint_here_p, breakpoint_inserted_here_p,
12734 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12735 describe_other_breakpoints, check_duplicates, clear_command):
12736 Coding standard fixes.
12737
8add0441 12738 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12739 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12740 code: check bfd SEC_READONLY flag for section.
12741
e351066e
AC
127422002-01-31 Andrew Cagney <ac131313@redhat.com>
12743
7d35e135 12744 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12745
8a48e967
DJ
127462002-01-30 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12749 data symbols, since we search based on textlow and texthigh.
12750 (find_pc_sect_symtab): Likewise.
12751
f5a96129
AC
127522002-01-30 Andrew Cagney <ac131313@redhat.com>
12753
12754 * defs.h (vwarning): Declare.
f5a96129
AC
12755 * utils.c (vwarning): New function.
12756 (warning): Call vwarning.
12757 (warning_begin): Delete function.
12758
12759 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12760 the warning message.
12761 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12762 warning_begin.
12763
cefd4ef5
MS
127642002-01-30 Michael Snyder <msnyder@redhat.com>
12765
1a703748
MS
12766 * NEWS: Mention "set trust-readonly-sections" command.
12767 Mention generate-core-file command.
cefd4ef5 12768
3a11626d
MS
127692002-01-15 Michael Snyder <msnyder@redhat.com>
12770
12771 * target.c: New command, "set trust-readonly-sections on".
12772 (do_xfer_memory): Honor the suggestion to trust readonly sections
12773 by reading them from the object file instead of from the target.
12774 (initialize_targets): Register command "set trust-readonly-sections".
12775
d1c7e53b
AC
127762002-01-29 Andrew Cagney <ac131313@redhat.com>
12777
12778 * parse.c (target_map_name_to_register): Simplify, search regs and
12779 pseudo-regs using a single loop.
12780
e2c9a72c
AC
127812002-01-30 Andrew Cagney <ac131313@redhat.com>
12782
12783 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12784
69824b4e
MK
127852002-01-15 Rodney Brown <rbrown64@csc.com.au>
12786
12787 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12788 * config/i386/i386v42mp.mh: Add i387-nat.o .
12789 * i386v4-nat.c: Include i387-nat.h.
12790 (supply_fpregset): Use i387_supply_fsave.
12791 (fill_fpregset): Use i387_fill_fsave.
12792
6eb69eab
RE
127932002-01-30 Richard Earnshaw <rearnsha@arm.com>
12794
12795 * arm-tdep.c (arm_call_dummy_words): Define.
12796 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12797 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12798 (CALL_DUMMY_WORDS): Define.
12799 (arm_call_dummy_words): Declare.
12800 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12801 (arm_linux_call_dummy_words): Declare.
12802
9852326a
AS
128032002-01-30 Andreas Schwab <schwab@suse.de>
12804
12805 * m68klinux-nat.c: Fix last change to use regcache_collect
12806 instead of referencing registers[] directly.
12807
977a3030
AC
128082002-01-29 Andrew Cagney <ac131313@redhat.com>
12809
12810 * parse.c (target_map_name_to_register): Delete code wrapped in
12811 #ifdef REGISTER_NAME_ALIAS_HOOK.
12812
2076c72b
MS
128132002-01-28 Michael Snyder <msnyder@redhat.com>
12814
12815 * regcache.c (legacy_read_register_gen): Need to be able to
12816 read pseudo-register as well as real register.
12817 (legacy_write_register_gen): Ditto.
12818
8fcc723b
AC
128192002-01-28 Andrew Cagney <ac131313@redhat.com>
12820
12821 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12822 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12823 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12824 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12825 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12826 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12827 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12828 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12829 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12830 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12831 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12832 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12833 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12834 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12835 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12836 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12837 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12838 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12839 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12840 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12841
afe64c1a
AC
128422002-01-28 Andrew Cagney <ac131313@redhat.com>
12843
12844 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12845 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12846 (initialize_current_architecture): Update target_byte_order using
12847 information from BFD.
aaa38bb5 12848 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12849 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12850
75bc7ddf
AC
128512002-01-28 Andrew Cagney <ac131313@redhat.com>
12852
12853 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12854 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12855
12856 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12857 #ifdef INVALID_FLOAT.
12858 * infcmd.c (do_registers_info): Ditto.
12859 * values.c (unpack_double): Ditto. Add comment.
12860
12861 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12862 already commented out.
12863
0280a90a
AS
128642002-01-26 Andreas Schwab <schwab@suse.de>
12865
12866 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12867 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12868 registers and add support for PTRACE_GETREGS.
12869
7072a954
AC
128702002-01-24 Andrew Cagney <ac131313@redhat.com>
12871
12872 GDB 5.1.1 released from 5.1 branch.
12873 * NEWS: Add 5.1.1 news.
12874 * README: Sync with 5.1 branch.
12875
86f902e0
FF
128762002-01-23 Fred Fish <fnf@redhat.com>
12877
12878 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12879 stabstring on initial malloc. Reallocing will copy it for us,
12880 if necessary.
12881
8af51c36
EZ
128822002-01-23 Elena Zannoni <ezannoni@redhat.com>
12883
aaa38bb5 12884 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12885 (HFILES_NO_SRCDIR): Remove hpread.h.
12886 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12887 (hpread.o): Update dependencies.
12888 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12889
12890 * hp-psymtab-read.c: Remove file.
12891 * hp-symtab-read.c: Remove file.
12892 * hpread.h: Remove file.
12893
12894 * hpread.c: Merge all contents of hp-psymtab-read.c,
12895 hp-symtab-read.c and hpread.h into this file, as it was prior to
12896 January 1999.
12897
12898 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12899 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12900 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12901 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12902
dc5cfeb6
EZ
129032002-01-23 Elena Zannoni <ezannoni@redhat.com>
12904
12905 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12906 fill_gregset): Call gdbarch_tdep() just once, assign result to
12907 variable and use that, instead of calling the function several
12908 times.
12909
ea87b71b
AO
129102002-01-24 Alexandre Oliva <aoliva@redhat.com>
12911
12912 * configure.host: Accept sparcv9 as alias for sparc64.
12913 * configure.tgt: Likewise.
12914
13fc0c2f
KB
129152002-01-22 Kevin Buettner <kevinb@redhat.com>
12916
12917 * solib-aix5.c (build_so_list_from_mapfile)
12918 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12919 arguments is not reversed.
12920 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12921 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12922
7bd872fe
EZ
129232002-01-22 Elena Zannoni <ezannoni@redhat.com>
12924
12925 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12926 modified version of obsolete sh_fetch_pseudo_register.
12927 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12928 (sh4_register_read): New function.
12929 (sh_pseudo_register_write): New function. Renamed and modified
12930 version of obsolete sh_store_pseudo_register.
12931 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12932 (sh4_register_write): New function.
12933 (sh_gdbarch_init): Remove setting of gdbarch function
12934 fetch_pseudo_register and store_pseudo_register. Remove setting of
12935 register_convert_to_raw, register_convert_to_virtual,
12936 register_convertible.
12937 (sh_sh4_register_convertible): Delete. No longer needed. All is
12938 taken care by architecture specific functions
12939 register_read/register_write.
12940 (sh_sh4_register_convert_to_virtual): Make static.
12941 (sh_sh4_register_convert_to_raw): Ditto.
12942
069e84fd
AC
129432002-01-22 Andrew Cagney <ac131313@redhat.com>
12944
12945 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12946 (floatformat_is_nan, floatformat_mantissa): Ditto.
12947
12948 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12949 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12950 builtin_type_ieee_double_little,
12951 builtin_type_ieee_double_littlebyte_bigword,
12952 builtin_type_m68881_ext, builtin_type_i960_ext,
12953 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12954 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12955 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12956 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12957
211a4f69
CV
129582002-01-22 Corinna Vinschen <vinschen@redhat.com>
12959
12960 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12961 parameter. Set frameless flag if it exists and depended of
12962 whether the scanned function is frameless or not.
12963 (xstormy16_skip_prologue): If function is frameless, return
12964 result of xstormy16_scan_prologue().
12965 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12966 call.
12967
f81353e4
EZ
129682002-01-21 Elena Zannoni <ezannoni@redhat.com>
12969
12970 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12971 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12972 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12973 sh_sh4_register_byte, sh_sh4_register_raw_size,
12974 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12975 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12976 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12977 sh_store_pseudo_register, sh_do_pseudo_register): Call
12978 gdbarch_tdep() just once, assign result to variable and use that,
12979 instead of calling the function several times.
12980
63c73a17
MK
129812002-01-20 Mark Kettenis <kettenis@gnu.org>
12982
12983 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12984 macros instead of LAST_FPU_CTRL_REGNUM.
12985 (store_register): Likewise.
12986
39ad761d
JB
129872002-01-21 Jim Blandy <jimb@redhat.com>
12988
12989 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12990 is up-to-date before running the program, not just when a program
12991 exits.
12992
3d74b771
FF
129932002-01-21 Fred Fish <fnf@redhat.com>
12994
12995 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12996 when we have found all instructions we are looking for.
12997
966fbf70
RE
129982002-01-21 Richard Earnshaw <rearnsha@arm.com>
12999
13000 * arm-tdep.c (arm_register_name): New function.
13001 (arm_registers_names): Make static.
13002 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13003 (arm_register_name): Declare.
13004 (REGISTER_NAME): Use it.
13005
c3b4394c
RE
130062002-01-21 Richard Earnshaw <rearnsha@arm.com>
13007 Kevin Buettner <kevinb@redhat.com>
13008
13009 Convert arm targets to new FRAME interface.
13010 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13011 (arm_frame_find_save_regs): Delete.
13012 (arm_frame_init_saved_regs): New.
13013 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13014 Allocate extra_info as required. Convert all uses of fsr.regs
13015 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13016 to use extra_info.
13017 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13018 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13019 (check_prologue_cache, save_prologue_cache): Likewise.
13020 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13021 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13022 (FRAME_FIND_SAVED_REGS): Delete.
13023 (arm_frame_find_saved_regs): Delete prototype.
13024 (arm_frame_init_saved_regs): New prototype.
13025 (FRAME_INIT_SAVED_REGS): Define.
13026
61d99182
AC
130272002-01-20 Andrew Cagney <ac131313@redhat.com>
13028
13029 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13030
6aaea291
AC
130312002-01-20 Andrew Cagney <ac131313@redhat.com>
13032
13033 From Jeff Law <law@redhat.com>:
13034 * infttrace.c: Include <sys/pstat.h>.
13035 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13036 exec file if the ttrace equivalent fails.
13037
15f698d2
AC
130382002-01-20 Andrew Cagney <ac131313@redhat.com>
13039
13040 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13041 (closeLogFile): Ditto.
13042
f86ddd7c
MC
130432002-01-20 Michael Chastain <mec@shout.net>
13044
13045 * top.c (print_gdb_version): Bump copyright year to 2002.
13046
904507ce
AC
130472002-01-20 Andrew Cagney <ac131313@redhat.com>
13048
13049 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13050 Zannoni and Eli Zaretskii.
13051
d7f0b9ce
DJ
130522002-01-20 Daniel Jacobowitz <drow@mvista.com>
13053
13054 * buildsym.c: Update copyright years.
13055 * c-typeprint.c: Likewise.
13056 * dwarf2read.c: Likewise.
13057 * f-typeprint.c: Likewise.
13058 * gdbtypes.c: Likewise.
13059 * gdbtypes.h: Likewise.
13060 * hp-symtab-read.c: Likewise.
13061 * hpread.c: Likewise.
13062 * mdebugread.c: Likewise.
13063 * p-typeprint.c: Likewise.
13064
3fd3d7d2
AC
130652002-01-20 Andrew Cagney <ac131313@redhat.com>
13066
13067 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13068 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13069 byte-order selectable.
13070 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13071 * arch-utils.c: Ditto.
13072 (set_endian): Ditto.
13073 (set_endian_from_file): Ditto.
13074 * gdbserver/low-sim.c (create_inferior): Ditto.
13075 * gdbarch.sh: Ditto.
13076 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13077 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13078 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13079 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13080 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13081 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13082 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13083 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13084 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13085 macro definition.
13086 * config/mips/tm-wince.h: Remove #undef of macro
13087 TARGET_BYTE_ORDER_SELECTABLE.
13088 * config/sh/tm-wince.h: Ditto.
13089
b02dede2
DJ
130902002-01-20 Daniel Jacobowitz <drow@mvista.com>
13091
13092 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13093 member function fields. Add accessor macro
13094 TYPE_FN_FIELD_ARTIFICIAL.
13095 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13096 * c-typeprint.c (c_type_print_base): Skip artificial member
13097 functions.
13098
c3643761
DJ
130992002-01-20 Daniel Jacobowitz <drow@mvista.com>
13100
13101 * f-typeprint.c: Delete unused function f_type_print_args.
13102 * p-typeprint.c: Delete unused function pascal_type_print_args.
13103
8176bb6d
DJ
131042002-01-20 Daniel Jacobowitz <drow@mvista.com>
13105
13106 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13107 comment. Add ``artificial'' to ``union field_location''.
13108
13109 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13110
13111 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13112 * mdebugread.c (parse_symbol): Likewise.
13113 * stabsread.c (define_symbol): Likewise.
13114 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13115 initializing TYPE_FIELD_BITPOS to n (obsolete).
13116 (hpread_doc_function_type): Likewise.
13117 * hpread.c (hpread_function_type): Likewise.
13118
7fd60527
AC
131192002-01-20 Andrew Cagney <ac131313@redhat.com>
13120
13121 * configure.in (host_makefile_frag): Only require a host makefile
13122 fragment when a native build.
13123 * configure: Re-generate.
13124
c2f05ac9
AC
131252002-01-20 Andrew Cagney <ac131313@redhat.com>
13126
13127 * doublest.h (floatformat_from_type): Declare.
13128 * doublest.c (floatformat_from_type): New function.
13129 (convert_typed_floating): Use.
13130
13131 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13132 call to function floatformat_from_type.
13133
13134 * gdbarch.sh (IEEE_FLOAT): Delete.
13135 * gdbarch.h, gdbarch.c: Re-generate.
13136 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13137 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13138 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13139 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13140 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13141 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13142 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13143 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13144 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13145 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13146 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13147 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13148
13149 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13150 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13151 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13152 * sh-tdep.c (sh_gdbarch_init): Ditto.
13153 * mips-tdep.c (mips_gdbarch_init): Ditto.
13154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13155 * cris-tdep.c (cris_gdbarch_init): Ditto.
13156
abf22e64
AJ
131572002-01-20 Jiri Smid <smid@suse.cz>
13158
13159 * configure.host, configure.tgt: Support x86-64.
13160 * NEWS: Note new target x86-64.
13161
b7c4cbf8
AJ
13162 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13163 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13164 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13165 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13166 x86-64-linux-nat.o): Fix dependencies.
13167
82600034
AC
131682002-01-19 Andrew Cagney <ac131313@redhat.com>
13169
13170 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13171 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13172 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13173 * config/sparc/xm-sun4os4.h: Delete file.
13174 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13175
bbe5c628
AC
131762002-01-19 Andrew Cagney <ac131313@redhat.com>
13177
13178 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13179 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13180 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13181 * config/i386/i386lynx.mh (XM_FILE): Delete.
13182 * config/rs6000/xm-rs6000ly.h: Delete file.
13183 * config/sparc/xm-sparclynx.h: Delete file.
13184 * config/m68k/xm-m68klynx.h: Delete file.
13185 * config/i386/xm-i386lynx.h: Delete file.
13186 * config/xm-lynx.h: Delete file.
13187 * config/djgpp/fnchange.lst: Update.
13188
f8453e34
JT
131892002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13190
13191 * alpha-tdep.c (alpha_register_byte): New function.
13192 (alpha_register_raw_size): Ditto.
13193 (alpha_register_virtual_size): Ditto.
13194 (alpha_skip_prologue_internal): Renamed from
13195 alpha_skip_prologue.
13196 (alpha_skip_prologue): New version that calls
13197 alpha_skip_prologue_internal.
13198 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13199 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13200 second argument from alpha_skip_prologue.
13201 (REGISTER_BYTE): Use alpha_register_byte.
13202 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13203 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13204 (FRAMELESS_FUNCTION_INVOCATION): Use
13205 generic_frameless_function_invocation_not.
13206 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13207 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13208
52d9e613
AC
132092002-01-19 Andrew Cagney <ac131313@redhat.com>
13210
13211 * config/mips/xm-news-mips.h: Delete file.
13212 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13213
13214 * config/m88k/xm-m88k.h: Delete file.
13215 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13216 * config/m88k/xm-delta88v4.h: Ditto.
13217 * config/m88k/xm-delta88.h: Ditto.
13218
13219 * config/alpha/xm-fbsd.h: Delete file.
13220 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13221
13222 * config/sparc/xm-sparc.h: Delete file.
13223 * Makefile.in (xm-sun4os4.h): Delete dependency.
13224 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13225 * config/sparc/xm-sun4os4.h: Ditto.
13226 * config/sparc/xm-linux.h: Ditto.
13227
13228 * config/i386/xm-windows.h: Delete file.
13229
2d1b2124
AC
132302002-01-19 Andrew Cagney <ac131313@redhat.com>
13231
13232 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13233 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13234
ee1f65f0
JT
132352002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13236
13237 * alpha-tdep.c (alpha_call_dummy_words): New.
13238 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13239 (CALL_DUMMY_P): Define.
13240 (CALL_DUMMY_WORDS): Define.
13241 (SIZEOF_CALL_DUMMY_WORDS): Define.
13242
98081e55
PB
132432002-01-19 Per Bothner <per@bothner.com>
13244
13245 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13246 isn't NULL, which can happen with some gcj-3.x-produced code.
13247
0d056799
JT
132482002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13249
13250 * alpha-tdep.c (alpha_register_virtual_type): New function.
13251 (alpha_init_frame_pc_first): Ditto.
13252 (alpha_fix_call_dummy): Ditto.
13253 (alpha_store_struct_return): Ditto.
13254 (alpha_extract_struct_value_address): Ditto.
13255 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13256 alpha_register_virtual_type.
13257 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13258 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13259 alpha_extract_struct_value_address.
13260 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13261 (INIT_FRAME_PC): Use init_frame_pc_noop.
13262 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13263
4604bcad
MK
132642002-01-19 Mark Kettenis <kettenis@gnu.org>
13265
13266 * i386gnu-nat.c: Include "i386-tdep.h".
13267 (fetch_fpregs): Simplify code dealing with uninitialized floating
13268 point states such that it doesn't require FP7_REGNUM.
13269
140f9984
JT
132702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13271
abf22e64
AJ
13272 * alpha-tdep.c (frame_extra_info): New.
13273 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13274 frame->extra_info.
13275 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13276 (alpha_frame_saved_pc): Use frame->extra_info.
13277 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13278 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13279 (init_extra_frame_info): Rename to...
13280 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13281 (alpha_print_extra_frame_info): New function.
140f9984
JT
13282 (alpha_frame_locals_address): Ditto.
13283 (alpha_frame_args_address): Ditto.
abf22e64 13284 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13285 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13286 alpha_frame_args_address.
abf22e64 13287 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13288 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13289 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13290 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13291 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13292 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13293
d734c450
JT
132942002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13295
13296 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13297 (alpha_cannot_fetch_register): Ditto.
13298 (alpha_cannot_store_register): Ditto.
13299 (alpha_register_convertible): Ditto.
13300 (alpha_use_struct_convention): Ditto.
13301 * config/alpha/tm-alpha.h: Update copyright years.
13302 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13303 (INNER_THAN): Use core_addr_lessthan.
13304 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13305 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13306 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13307 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13308 (FRAME_CHAIN): Remove unnecessary cast.
13309
b4ceaee6
AC
133102002-01-18 Andrew Cagney <ac131313@redhat.com>
13311
13312 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13313 obsolete.
13314
0a65a603
AC
133152002-01-18 Andrew Cagney <ac131313@redhat.com>
13316
13317 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13318 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13319 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13320 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13321 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13322 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13323 * x86-64-linux-nat.c: Ditto.
13324
636a6dfc
JT
133252002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13326
abf22e64 13327 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13328 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13329 (REGISTER_NAME): Define.
13330
acceddb6
JT
133312002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13332
13333 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13334
ec32e4be
JT
133352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13336
13337 * alpha-tdep.c: Update copyright years.
13338 (alpha_next_pc): New function.
13339 (alpha_software_single_step): Ditto.
13340 * config/alpha/tm-alpha.h: Add prototype for
13341 alpha_software_single_step.
13342
e771a871
JT
133432002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13344
13345 * alphabsd-nat.c: Update copyright years.
13346 (fill_gregset): Use regcache_collect.
13347 (fill_fpregset): Likewise.
13348 (fetch_inferior_registers): Only fetch integer registers
13349 if requested to do so.
13350 (store_inferior_registers): Only store integer registers
13351 if requested to do so.
13352
7708fa01
AC
133532002-01-17 Andrew Cagney <ac131313@redhat.com>
13354
13355 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13356 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13357 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13358 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13359 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13360 * config/arm/linux.mh (XDEPFILES): Delete.
13361 * config/arm/nbsd.mh (XDEPFILES): Delete.
13362 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13363 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13364 * config/i386/i386m3.mh (XDEPFILES): Delete.
13365 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13366 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13367 * config/i386/fbsd.mh (XDEPFILES): Delete.
13368 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13369 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13370 * config/i386/i386v4.mh (XDEPFILES): Delete.
13371 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13372 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13373 * config/i386/i386aix.mh (XDEPFILES): Delete.
13374 * config/i386/go32.mh (XDEPFILES): Delete.
13375 * config/i386/cygwin.mh (XDEPFILES): Delete.
13376 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13377 * config/i386/i386mach.mh (XDEPFILES): Delete.
13378 * config/i386/i386v32.mh (XDEPFILES): Delete.
13379 * config/i386/linux.mh (XDEPFILES): Delete.
13380 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13381 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13382 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13383 * config/i386/i386sco.mh (XDEPFILES): Delete.
13384 * config/i386/i386v.mh (XDEPFILES): Delete.
13385 * config/i386/nbsd.mh (XDEPFILES): Delete.
13386 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13387 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13388 * config/i386/symmetry.mh (XDEPFILES): Delete.
13389 * config/i386/obsd.mh (XDEPFILES): Delete.
13390 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13391 * config/ia64/linux.mh (XDEPFILES): Delete.
13392 * config/ia64/aix.mh (XDEPFILES): Delete.
13393 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13394 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13395 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13396 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13397 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13398 * config/m68k/linux.mh (XDEPFILES): Delete.
13399 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13400 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13401 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13402 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13403 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13404 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13405 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13406 * config/m88k/delta88.mh (XDEPFILES): Delete.
13407 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13408 * config/m88k/m88k.mh (XDEPFILES): Delete.
13409 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13410 * config/mips/linux.mh (XDEPFILES): Delete.
13411 * config/mips/irix6.mh (XDEPFILES): Delete.
13412 * config/mips/irix5.mh (XDEPFILES): Delete.
13413 * config/mips/irix4.mh (XDEPFILES): Delete.
13414 * config/mips/irix3.mh (XDEPFILES): Delete.
13415 * config/mips/decstation.mh (XDEPFILES): Delete.
13416 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13417 (NATDEPFILES): Move core-aout.o to here.
13418 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13419 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13420 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13421 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13422 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13423 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13424 * config/pa/hpux11.mh (XDEPFILES): Delete.
13425 * config/powerpc/aix.mh (XDEPFILES): Delete.
13426 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13427 * config/powerpc/linux.mh (XDEPFILES): Delete.
13428 * config/romp/rtbsd.mh: Rename XDEPFILES.
13429 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13430 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13431 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13432 * config/s390/s390.mh (XDEPFILES): Delete.
13433 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13434 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13435 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13436 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13437 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13438 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13439 * config/sparc/linux.mh (XDEPFILES): Delete.
13440 * config/vax/vaxult.mh (XDEPFILES): Delete.
13441 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13442 * Makefile.in (DEPFILES): Remove XDEPFILES.
13443
375fc983
AC
134442002-01-17 Andrew Cagney <ac131313@redhat.com>
13445
13446 * utils.c (internal_verror): Fix comments, default is yes not no.
13447 Update queries to match. Default to quit and dump core.
13448
8926118c
AC
134492002-01-17 Andrew Cagney <ac131313@redhat.com>
13450
13451 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13452 copyright.
13453 * defs.h, event-top.c, gdbcmd.h: Ditto.
13454 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13455 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13456 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13457 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13458 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13459 * mi/mi-main.c:Ditto.
13460
13461 * stack.c, symfile.c: Update copyright.
13462
45b7b345
DJ
134632002-01-17 Daniel Jacobowitz <drow@mvista.com>
13464
db728ff7
DJ
13465 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13466 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13467 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13468 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13469
db728ff7
DJ
134702002-01-17 Daniel Jacobowitz <drow@mvista.com>
13471
13472 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13473 * gdbserver/low-lynx.c (myattach): Likewise.
13474 * gdbserver/low-nbsd.c (myattach): Likewise.
13475 * gdbserver/low-sim.c (myattach): Likewise.
13476 * gdbserver/low-sparc.c (myattach): Likewise.
13477 * gdbserver/low-sun3.c (myattach): Likewise.
13478
13479 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13480
db728ff7 13481 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13482 (main): Handle "--attach".
13483
8de3c354
AC
134842002-01-16 Andrew Cagney <ac131313@redhat.com>
13485
13486 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13487 maintainer.
13488
b0129042
DJ
134892002-01-15 Daniel Jacobowitz <drow@mvista.com>
13490
13491 * c-typeprint.c (is_type_conversion_operator): Add additional
13492 check for non-conversion operators.
13493
ba8679fb 134942002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13495
13496 * linux-proc.c: Add "info proc" command, a la procfs.c.
13497 (read_mapping): New function, abstract and re-use code.
13498 (linux_find_memory_regions): Use new func read_mapping.
13499 (linux_info_proc_cmd): New function, implement "info proc".
13500 (_initialize_linux_proc): Add new command "info proc".
13501
e4f9b4d5
MS
135022002-01-15 Michael Snyder <msnyder@redhat.com>
13503
13504 * symfile.c (generic_load): Use bfd_map_over_sections method
13505 instead of manipulating bfd structure members directly.
13506 (add_section_size_callback): New function, bfd sections callback
13507 used by generic_load.
13508 (load_sections_callback): New function, bfd sections callback
13509 used by generic_load.
13510
08cf96df
EZ
135112002-01-15 Elena Zannoni <ezannoni@redhat.com>
13512
abf22e64 13513 [Based on work by Jim Blandy]
08cf96df
EZ
13514 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13515 (builtin_type_vec128): Export.
13516 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13517 types.
13518 (builtin_type_vec128): New builtin type for 128 bit vector
13519 registers.
13520 (build_gdbtypes): Initialize builtin_type_v16qi and
13521 builtin_type_v8hi. Create the vec128 register builtin type
13522 structure.
13523 (build_builtin_type_vec128): New function.
abf22e64 13524 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13525 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13526 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13527 AltiVec register to new builtin type.
13528
d7242108
DJ
135292001-01-15 Daniel Jacobowitz <drow@mvista.com>
13530
13531 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13532 to make_cv_type.
13533
4ee3352d
AC
135342002-01-14 Andrew Cagney <ac131313@redhat.com>
13535
13536 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13537 CLEAN_UP_REGISTER_VALUE.
13538 * regcache.c (supply_register): Update only call.
13539
f015b2e7
AC
135402002-01-14 Andrew Cagney <ac131313@redhat.com>
13541
13542 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13543 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13544 a29k-*-vxworks* targets as obsolete.
13545
356ae49d
MS
135462002-01-14 Michael Snyder <msnyder@redhat.com>
13547
13548 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13549 until we can resolve portability issues.
13550 * gregset.h: Remove references to fpxregs.
13551 * gcore.c (gcore_command): Initialize note_sec to NULL.
13552
ade8f45e
AC
135532002-01-13 Andrew Cagney <ac131313@redhat.com>
13554
13555 * signals.c (target_signal_to_name): Rewrite. Only use
13556 signals[].name when in bounds and non-NULL.
abf22e64 13557
89c49e7a
AC
135582002-01-13 Andrew Cagney <ac131313@redhat.com>
13559
13560 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13561 * signals.c (target_signal_to_name): Verify that SIG is within the
13562 bounds of the signals array.
13563
4daa9f9f
AC
135642002-01-13 Andrew Cagney <ac131313@redhat.com>
13565
13566 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13567
ba4bbdcb
KS
135682002-01-13 Keith Seitz <keiths@redhat.com>
13569
13570 * stack.c (print_frame_info_base): Print the frame's pc
13571 only if when print_frame_info_listing_hook is not defined.
13572
575bbeb6
KS
135732002-01-13 Keith Seitz <keiths@redhat.com>
13574
13575 * varobj.c (varobj_set_value): Make sure that there were no
13576 errors evaluating the object before attempting to set its
13577 value.
13578 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13579 so this offset adjustment is no longer necessary.
13580 (create_child): Don't set the error flag if the child is
13581 a CPLUS_FAKE_CHILD.
13582 (value_of_child): If value_fetch_lazy fails, return NULL
13583 so that callers will be notified that an error occurred.
13584 (c_value_of_variable): Delay check of variable's validity
13585 until later. We actually want all structs and unions to have
13586 the value "{...}".
13587 Do not return "???" for variables which could not be evaluated.
13588 This error condition must be returned to the caller so that it
13589 can get the error condition from gdb.
13590 (cplus_name_of_child): Adjust index for vptr before figuring
13591 out the name of the child.
13592 (cplus_value_of_child): If a child's (real) parent is not valid,
13593 don't even bother trying to give a value for it. Just return
13594 an error. Change all instances in this function.
13595 (cplus_type_of_child): If our parent is one of the "fake"
13596 parents, we need to get at the type of the real parent, and
13597 derive the child's true type using this information.
13598
b76898ab
AC
135992002-01-13 Andrew Cagney <ac131313@redhat.com>
13600
13601 From 2002-01-09 John Marshall <johnm@falch.net>:
13602 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13603 sources.redhat.com, and tweak some related URLs which had
13604 suffered from linkrot.
13605
b6649e88
AC
136062002-01-13 Andrew Cagney <ac131313@redhat.com>
13607
13608 From Jeff law:
13609 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13610 structures passed in registers.
13611
82cc5033
EZ
136122002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13613
13614 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13615 white space which prevented compilation. Reported by DSK
13616 <dsk@student.unsw.edu.au>.
13617
ba5f2f8a
MS
136182002-01-11 Michael Snyder <msnyder@redhat.com>
13619
fbd35540
MS
13620 * symfile.c (build_section_addr_info_from_section_tab):
13621 Use bfd access method instead of manipulating bfd directly.
13622 (syms_from_objfile): Ditto.
13623 (simple_overlay_update_1): Ditto.
13624 (simple_overlay_update): Ditto.
13625 (generic_load): Ditto.
13626 (overlay_unmapped_address): FIXME comment, bfd access methods.
13627 (sections_overlap): FIXME comment, bfd access methods.
13628 (pc_in_mapped_range): FIXME comment, bfd access methods.
13629 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13630 (section_is_mapped): FIXME comment, bfd access methods.
13631 (section_is_overlay): FIXME comment, bfd access methods.
13632
ba5f2f8a
MS
13633 * symfile.c (generic_load): Whitespace and long line cleanups.
13634 Remove duplicate variable, change several local variables to
13635 more appropriate data types.
13636 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13637
17df2af6
AC
136382002-01-12 Andrew Cagney <ac131313@redhat.com>
13639
13640 From Peter Schauer:
13641 * language.c (longest_local_hex_string_custom): Use phex_nz to
13642 convert NUM to a hex string.
13643
ec920329
EZ
136442002-01-12 Elena Zannoni <ezannoni@redhat.com>
13645
13646 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13647 the function.
538a76d6 13648 Update Copyright year.
ec920329 13649
3abd2e01
AC
136502002-01-12 Andrew Cagney <ac131313@redhat.com>
13651
13652 * language.c (longest_raw_hex_string): Delete unused function.
13653
b21b22e0
PS
136542002-01-11 Petr Sorfa <petrs@caldera.com>
13655
13656 * MAINTAINERS (write-after-approval): Add myself.
13657 * dwarf2read.c (read_tag_string_type): Handling of
13658 DW_AT_byte_size.
13659 (read_tag_string_type): FORTRAN fix to prevent propagation of
13660 first string size.
13661 (set_cu_language): Handling of DW_LANG_Fortran95
13662
747fe712
RE
136632002-01-11 Richard Earnshaw <rearnsha@arm.com>
13664
13665 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13666 GETPID(inferior_ptid).
13667 (store_inferior_registers): Likewise.
13668
f1bea926
JM
136692002-01-10 Jason Merrill <jason@redhat.com>
13670
13671 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13672 Fix DW_OP_minus.
13673
ae940673
AC
136742002-01-10 Andrew Cagney <ac131313@redhat.com>
13675
13676 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13677 and bfd/elf32-sh-nbsd.c.
13678
00546b04
MS
136792002-01-10 Michael Snyder <msnyder@redhat.com>
13680
352ed7b4
MS
13681 * NEWS: Mention --pid and corefile/proc-id behavior change.
13682
c18be923
MS
13683 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13684 * gcore.c: Include cli/cli-decode.h instead of command.h.
13685
00546b04
MS
13686 * main.c (captured_main): Add new command line option "--pid".
13687 If the second command line argument (following the symbol-file)
13688 begins with a digit, try to attach to it before trying to open
13689 it as a corefile.
13690 (print_gdb_help): Document the "--pid" argument.
13691
db60ec62
EZ
136922002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13693
13694 * completer.c (command_completer): New function.
13695
13696 * completer.h <command_completer>: Add prototype.
13697
13698 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13699 completer for the "help" command.
13700
39c22d1a
JM
137012002-01-09 Jason Merrill <jason@redhat.com>
13702
13703 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13704
c564377f
MS
137052002-01-09 Michael Snyder <msnyder@redhat.com>
13706
975aec09
MS
13707 * i386-linux-nat.c (fill_fpxregset): Make global.
13708 (store_fpxregset): Ditto.
13709
db4a10fa
MS
13710 * gregset.h (gdb_fpxregset_t): Define.
13711 (supply_fpxregset): Prototype.
13712 (fill_fpxregset): Prototype.
13713
c564377f
MS
13714 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13715
c3d45d70
RE
137162002-01-09 Richard Earnshaw <rearnsha@arm.com>
13717
13718 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13719 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13720 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13721
fcc87af1
AC
137222002-01-09 Andrew Cagney <ac131313@redhat.com>
13723
13724 * MAINTAINERS: Update target maintainer rules so that any
13725 Maintainer can approve a tested patch for a maintenance-only
13726 target.
13727
dd96c05b
RE
137282002-01-09 Richard Earnshaw <rearnsha@arm.com>
13729
d4297db9 13730 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13731
d4297db9 13732 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13733 IN_SIGTRAMP.
13734
145fdc6e
MS
137352002-01-08 Michael Snyder <msnyder@redhat.com>
13736
13737 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13738 real name of the executable, rather than the /proc name.
13739
be4d1333
MS
137402002-01-03 Michael Snyder <msnyder@redhat.com>
13741
13742 Implement a "generate-core-file" command in gdb, save target state.
13743 * gcore.c: New file. Implement new command 'generate-core-file'.
13744 Save a corefile image of the current state of the inferior.
13745 * linux-proc.c: Add linux-specific code for saving corefiles.
13746 * target.h (struct target_ops): Add new target vectors for saving
13747 corefiles; to_find_memory_regions and to_make_corefile_notes.
13748 (target_find_memory_regions): New macro.
13749 (target_make_corefile_notes): New macro.
13750 * target.c (update_current_target): Inherit new target methods.
13751 (dummy_find_memory_regions): New place-holder method.
13752 (dummy_make_corefile_notes): New place-holder method.
13753 (init_dummy_target): Initialize new dummy target vectors.
13754 * exec.c (exec_set_find_memory_regions): New function.
13755 Allow the exec_ops vector for memory regions to be taken over.
13756 (exec_make_note_section): New function, target vector method.
13757 * defs.h (exec_set_find_memory_regions): Export prototype.
13758 * procfs.c (proc_find_memory_regions): New function, corefile method.
13759 (procfs_make_note_section): New function, corefile method.
13760 (init_procfs_ops): Set new target vector pointers.
13761 (find_memory_regions_callback): New function.
13762 (procfs_do_thread_registers): New function.
13763 (procfs_corefile_thread_callback): New function.
13764 * sol-thread.c (sol_find_memory_regions): New function.
13765 (sol_make_note_section): New function.
13766 (init_sol_thread_ops): Initialize new target vectors.
13767 * inftarg.c (inftarg_set_find_memory_regions): New function.
13768 Allow to_find_memory_regions vector to be taken over.
13769 (inftarg_set_make_corefile_notes): New function.
13770 Allow to_make_corefile_notes vector to be taken over.
13771 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13772 interface layer if not target_has_execution (may be a corefile).
13773 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13774 * config/sparc/sun4sol2.mh: Ditto.
13775 * config/alpha/alpha-linux.mh: Ditto.
13776 * config/arm/linux.mh: Ditto.
13777 * config/i386/x86-64linux.mh: Ditto.
13778 * config/ia64/linux.mh: Ditto.
13779 * config/m68k/linux.mh: Ditto.
13780 * config/mips/linux.mh: Ditto.
13781 * config/powerpc/linux.mh: Ditto.
13782 * config/sparc/linux.mh: Ditto.
13783
c6b92abd
MS
137842002-01-07 Michael Snyder <msnyder@redhat.com>
13785
13786 * arm-linux-nat.c: Remove references to regcache.c internal data
13787 (registers[] and register_valid[]).
13788
4b09dc8c
MS
137892002-01-07 Michael Snyder <msnyder@redhat.com>
13790
abf22e64
AJ
13791 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13792 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13793 symbol file and shlibs.
13794 * Makefile.in: Add rule for linux-proc.o.
13795 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13796 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13797 * config/arm/linux.mh: Ditto.
13798 * config/i386/linux.mh: Ditto.
13799 * config/i386/x86-64linux.mh: Ditto.
13800 * config/ia64/linux.mh: Ditto.
13801 * config/m68k/linux.mh: Ditto.
13802 * config/mips/linux.mh: Ditto.
13803 * config/powerpc/linux.mh: Ditto.
13804 * config/sparc/linux.mh: Ditto.
13805
c25b74ac
PM
138062002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13807
13808 * win32-nat.c: Add i386-tdep.h dependency.
13809
94cd915f
MS
138102002-01-07 Michael Snyder <msnyder@redhat.com>
13811
c7cccb76
MS
13812 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13813 instead of bfd_get_arch_size. Don't bail out just because
13814 there's no exec_bfd.
abf22e64 13815
34c0bd93
MS
13816 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13817 * p-valprint.c (pascal_object_print_value): Ditto.
13818 * somread.c (som_symtab_read): Ditto.
13819 * symfile.c (simple_free_overlay_region_table): Ditto.
13820 * valops.c (value_assign): Ditto.
13821
21c1c920
MS
13822 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13823 use tilde_expand and strerror for opening save-tracepoints file.
13824
5bbd998e
MS
13825 * thread-db.c (thread_db_new_objfile): Indendation fix.
13826
94cd915f
MS
13827 * infptrace.c (GDB_MAX_ALLOCA): New define.
13828 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13829 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13830 can be overridden with whatever value is appropriate to the host).
13831 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13832 alloca to allocate potentially large buffer.
13833 * rs6000-nat.c (child_xfer_memory): Ditto.
13834 * symm-nat.c (child_xfer_memory): Ditto.
13835 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13836
494e8a93
JSC
138372002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13838
13839 From Nick Clifton <nickc@redhat.com>
13840 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13841
d0e1d48e
MS
138422002-01-07 Michael Snyder <msnyder@redhat.com>
13843
abf22e64 13844 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13845 Don't use exec_bfd if it's NULL.
13846
290b2c7a
MK
138472002-01-06 Mark Kettenis <kettenis@gnu.org>
13848
abf22e64 13849 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13850
aef21287
AC
138512002-01-06 Andrew Cagney <ac131313@redhat.com>
13852
13853 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13854 * gnu-nat.c: Ditto.
13855
30efa627
AC
138562002-01-06 Andrew Cagney <ac131313@redhat.com>
13857
13858 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13859 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13860 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13861 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13862 z8k-coff have not been multi-arched. Update z8k-coff build
13863 status.
13864
9b4ff276
AC
138652002-01-06 Andrew Cagney <ac131313@redhat.com>
13866
13867 * MAINTAINERS: Mark a29k target as obsolete.
13868 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13869 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13870 comments.
13871 * NEWS: Note that a29k targets are obsolete.
13872 * a29k-tdep.c: Mark as obsolete.
13873 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13874 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13875 a29k-*-vxworks* targets as obsolete.
13876 * remote-adapt.c: Obsolete.
13877 * remote-eb.c: Obsolete.
13878 * remote-mm.c: Obsolete.
13879 * remote-udi.c: Obsolete.
13880 * config/a29k/a29k-udi.mt: Obsolete.
13881 * config/a29k/a29k.mt: Obsolete.
13882 * config/a29k/tm-a29k.h: Obsolete.
13883 * config/a29k/tm-vx29k.h: Obsolete.
13884 * config/a29k/vx29k.mt: Obsolete.
13885
a9011d31
AC
138862002-01-05 Andrew Cagney <ac131313@redhat.com>
13887
13888 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13889 with BFD_ENDIAN_BIG.
13890
9299404e
AC
138912002-01-05 Andrew Cagney <ac131313@redhat.com>
13892
13893 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13894 * configure, config.in: Re-generate.
13895 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13896 * defs.h: Do not include <endian.h>.
13897
7e89e357
JT
138982002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13899
13900 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13901 * config.in: Regenerate.
13902 * configure.in: Update copyright years.
13903 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13904 * configure: Regenerate.
13905 * i386bsd-nat.c: Update copyright years.
13906 (fill_gregset): Use regcache_collect.
13907 (fetch_inferior_registers): Only fetch integer registers
13908 if requested to do so. Add support for XMM registers
13909 using PT_GETXMMREGS.
13910 (store_inferior_registers): Only store integer registers
13911 if requested to do so. Add support for XMM registers
13912 using PT_SETXMMREGS.
13913 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13914 (store_inferior_registers): Remove.
13915 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13916 (fetch_elfcore_registers): New function.
13917 (i386nbsd_elfcore_fns): New.
13918 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13919 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13920 i386bsd-nat.o.
13921 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13922 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13923 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13924 * config/i386/tm-nbsd.h: Update copyright years.
13925 (HAVE_SSE_REGS): Define.
13926 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13927 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13928 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13929 (SIGCONTEXT_PC_OFFSET): Remove.
13930 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13931
a752853e
AC
139322002-01-05 Andrew Cagney <ac131313@redhat.com>
13933
13934 * configure.tgt: Remove powerpc-*-macos* target.
13935 * config/m68k/xm-mpw.h: Delete file.
13936 * config/xm-mpw.h: Delete file.
13937 * ser-mac.c: Delete file.
13938 * mpw-make.sed: Delete file.
13939 * mpw-config.in: Delete file.
13940 * mac-xdep.c: Delete file.
13941 * mac-gdb.r: Delete file.
13942 * mac-defs.h: Delete file.
13943 * mac-nat.c: Delete file.
13944 * config/powerpc/macos.mh: Delete file.
13945 * config/powerpc/macos.mt: Delete file.
13946 * config/powerpc/nm-macos.h: Delete file.
13947 * config/powerpc/tm-macos.h: Delete file.
13948 * source.c (openp, open_source_file): Remove obsolete code.
13949 * top.c (gdb_readline): Ditto.
13950 * utils.c (query): Ditto.
13951 * event-top.c (display_gdb_prompt): Ditto.
13952 * Makefile.in (ser-mac.o): Delete obsolete target.
13953 * NEWS: Update.
13954
d7449b42
AC
139552002-01-04 Andrew Cagney <ac131313@redhat.com>
13956
13957 * defs.h (BIG_ENDIAN): Delete macro definition.
13958 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13959 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13960 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13961 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13962 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13963 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13964 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13965 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13966 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13967 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13968 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13969 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13970 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13971 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13972 * gdbarch.c: Re-generate.
13973
356374e8
DJ
139742002-01-04 Daniel Jacobowitz <drow@mvista.com>
13975
13976 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13977 for core files.
13978
a2b8f8f8
JT
139792002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13980
13981 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13982
12466af9
AC
139832002-01-04 Andrew Cagney <ac131313@redhat.com>
13984
13985 * value.h (value_ptr): Delete typedef.
13986
3549ab40
JT
139872002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13988
13989 * i386nbsd-nat.c: Update copyright years.
13990 Include i386-tdep.h.
13991
fedbd091
EZ
139922002-01-04 Elena Zannoni <ezannoni@redhat.com>
13993
13994 * stabsread.c: Update copyright years.
13995
13996 From Debashis Mahata <debashis.mahata@wipro.com>:
13997 (read_struct_fields): Deal with Sun C compiler erroneous stab
13998 output for structs and unions.
fec8b34f 13999 Fix PR gdb/269.
fedbd091 14000
eb43544b
DJ
140012002-01-04 Daniel Jacobowitz <drow@mvista.com>
14002
14003 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14004 prototype.
14005
1514d34e
DJ
140062002-01-04 Daniel Jacobowitz <drow@mvista.com>
14007
14008 * cp-abi.c: Fix whitespace.
14009 (baseclass_offset): New wrapper function.
14010 * cp-abi.h (baseclass_offset): Add prototype.
14011 (struct cp_abi_ops): Add baseclass_offset pointer.
14012
14013 * valops.c (vb_match): Move to...
14014 * gnu-v2-abi.c (vb_match): here.
14015 * valops.c (baseclass_offset): Move to...
14016 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14017
14018 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14019
14020 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14021 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14022 * hpacc-abi.c (init_hpacc_ops): Likewise.
14023
7f8c9282
DJ
140242002-01-04 Daniel Jacobowitz <drow@mvista.com>
14025
14026 * valops.c (find_overload_match): Accept obj as a
14027 reference parameter. Update it before returning.
14028 * value.h (find_overload_match): Update prototype.
14029 * eval.c (evaluate_subexp_standard): Pass object to
14030 find_overload_match by reference.
14031
f23631e4
AC
140322002-01-03 Andrew Cagney <ac131313@redhat.com>
14033
14034 * valarith.c: Replace value_ptr with struct value pointer. Remove
14035 register attribute from value declarations.
14036 * valops.c: Ditto.
14037 * value.h: Ditto.
14038 * scm-lang.c (scm_lookup_name): Ditto.
14039
79e10fab 140402002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14041
79e10fab
AC
14042 Abstract the functionality of iterating over mapped memory
14043 regions into a general purpose iterator function.
abf22e64 14044 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14045 iterator for memory sections.
14046 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14047 (solib_mappings_callback): New function, callback for above.
14048 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14049 (info_mappings_callback): New function, callback for above.
14050
14051 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14052
c5ad026a
MK
140532002-01-01 Mark Kettenis <kettenis@gnu.org>
14054
d2a7c97a
MK
14055 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14056 * i386-tdep.c: Include "elf-bfd.h".
14057 (process_note_abi_tag_sections): New function.
14058 (i386_gdbarch_init): Add code to recognize various OS/ABI
14059 combinations.
14060
c5ad026a
MK
14061 * maint.c (_initialize_maint_cmds): Add missing \ in
14062 string-literal.
14063
a1a5b71e 14064For older changes see ChangeLog-2001
c906108c
SS
14065\f
14066Local Variables:
14067mode: change-log
14068left-margin: 8
14069fill-column: 74
14070version-control: never
14071End:
This page took 0.998531 seconds and 4 git commands to generate.